query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
/ renamed from: io.fabric.sdk.android.services.network.e
public interface C2836e { /* renamed from: a */ InputStream mo1151a(); /* renamed from: b */ String mo1152b(); /* renamed from: c */ String[] mo1153c(); /* renamed from: d */ long mo1154d(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void buildNetwork() {\n }", "@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}", "void onCreateNewNetFailure();", "@Override\n\tprotected void onNetworkConnected(NetType type) {\n\n\t}", "private ConnectivityManager.NetworkCallback getNetworkCallback() {\n return new NetworkRequestCallback();\n }", "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "NetworkFactory getNetworkFactory();", "public NetworkCallError() {\n }", "public synchronized io.fabric.sdk.android.services.settings.Settings m58818a(io.fabric.sdk.android.C15611g r23, io.fabric.sdk.android.services.common.IdManager r24, io.fabric.sdk.android.services.network.HttpRequestFactory r25, java.lang.String r26, java.lang.String r27, java.lang.String r28) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r22 = this;\n r1 = r22;\n r3 = r23;\n monitor-enter(r22);\n r2 = r1.f48448d;\t Catch:{ all -> 0x0095 }\n if (r2 == 0) goto L_0x000b;\n L_0x0009:\n monitor-exit(r22);\n return r1;\n L_0x000b:\n r2 = r1.f48447c;\t Catch:{ all -> 0x0095 }\n r9 = 1;\t Catch:{ all -> 0x0095 }\n if (r2 != 0) goto L_0x0091;\t Catch:{ all -> 0x0095 }\n L_0x0010:\n r2 = r23.getContext();\t Catch:{ all -> 0x0095 }\n r4 = r24.m58638c();\t Catch:{ all -> 0x0095 }\n r5 = new io.fabric.sdk.android.services.common.f;\t Catch:{ all -> 0x0095 }\n r5.<init>();\t Catch:{ all -> 0x0095 }\n r11 = r5.m58689a(r2);\t Catch:{ all -> 0x0095 }\n r5 = r24.m58644i();\t Catch:{ all -> 0x0095 }\n r6 = new io.fabric.sdk.android.services.common.m;\t Catch:{ all -> 0x0095 }\n r6.<init>();\t Catch:{ all -> 0x0095 }\n r7 = new io.fabric.sdk.android.services.settings.j;\t Catch:{ all -> 0x0095 }\n r7.<init>();\t Catch:{ all -> 0x0095 }\n r8 = new io.fabric.sdk.android.services.settings.h;\t Catch:{ all -> 0x0095 }\n r8.<init>(r3);\t Catch:{ all -> 0x0095 }\n r20 = io.fabric.sdk.android.services.common.CommonUtils.m58625k(r2);\t Catch:{ all -> 0x0095 }\n r10 = java.util.Locale.US;\t Catch:{ all -> 0x0095 }\n r12 = \"https://settings.crashlytics.com/spi/v2/platforms/android/apps/%s/settings\";\t Catch:{ all -> 0x0095 }\n r13 = new java.lang.Object[r9];\t Catch:{ all -> 0x0095 }\n r14 = 0;\t Catch:{ all -> 0x0095 }\n r13[r14] = r4;\t Catch:{ all -> 0x0095 }\n r4 = java.lang.String.format(r10, r12, r13);\t Catch:{ all -> 0x0095 }\n r15 = new io.fabric.sdk.android.services.settings.k;\t Catch:{ all -> 0x0095 }\n r10 = r25;\t Catch:{ all -> 0x0095 }\n r12 = r28;\t Catch:{ all -> 0x0095 }\n r15.<init>(r3, r12, r4, r10);\t Catch:{ all -> 0x0095 }\n r12 = r24.m58642g();\t Catch:{ all -> 0x0095 }\n r13 = r24.m58641f();\t Catch:{ all -> 0x0095 }\n r4 = r24.m58640e();\t Catch:{ all -> 0x0095 }\n r16 = r24.m58637b();\t Catch:{ all -> 0x0095 }\n r10 = new java.lang.String[r9];\t Catch:{ all -> 0x0095 }\n r2 = io.fabric.sdk.android.services.common.CommonUtils.m58627m(r2);\t Catch:{ all -> 0x0095 }\n r10[r14] = r2;\t Catch:{ all -> 0x0095 }\n r2 = io.fabric.sdk.android.services.common.CommonUtils.m58598a(r10);\t Catch:{ all -> 0x0095 }\n r5 = io.fabric.sdk.android.services.common.DeliveryMechanism.determineFrom(r5);\t Catch:{ all -> 0x0095 }\n r19 = r5.getId();\t Catch:{ all -> 0x0095 }\n r5 = new io.fabric.sdk.android.services.settings.r;\t Catch:{ all -> 0x0095 }\n r10 = r5;\t Catch:{ all -> 0x0095 }\n r14 = r4;\t Catch:{ all -> 0x0095 }\n r21 = r15;\t Catch:{ all -> 0x0095 }\n r15 = r16;\t Catch:{ all -> 0x0095 }\n r16 = r2;\t Catch:{ all -> 0x0095 }\n r17 = r27;\t Catch:{ all -> 0x0095 }\n r18 = r26;\t Catch:{ all -> 0x0095 }\n r10.<init>(r11, r12, r13, r14, r15, r16, r17, r18, r19, r20);\t Catch:{ all -> 0x0095 }\n r10 = new io.fabric.sdk.android.services.settings.i;\t Catch:{ all -> 0x0095 }\n r2 = r10;\t Catch:{ all -> 0x0095 }\n r4 = r5;\t Catch:{ all -> 0x0095 }\n r5 = r6;\t Catch:{ all -> 0x0095 }\n r6 = r7;\t Catch:{ all -> 0x0095 }\n r7 = r8;\t Catch:{ all -> 0x0095 }\n r8 = r21;\t Catch:{ all -> 0x0095 }\n r2.<init>(r3, r4, r5, r6, r7, r8);\t Catch:{ all -> 0x0095 }\n r1.f48447c = r10;\t Catch:{ all -> 0x0095 }\n L_0x0091:\n r1.f48448d = r9;\t Catch:{ all -> 0x0095 }\n monitor-exit(r22);\n return r1;\n L_0x0095:\n r0 = move-exception;\n r2 = r0;\n monitor-exit(r22);\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.fabric.sdk.android.services.settings.Settings.a(io.fabric.sdk.android.g, io.fabric.sdk.android.services.common.IdManager, io.fabric.sdk.android.services.network.HttpRequestFactory, java.lang.String, java.lang.String, java.lang.String):io.fabric.sdk.android.services.settings.Settings\");\n }", "@Override\r\n\t\tpublic void onGetNetworkState(int iError) {\n\t\t\tToast.makeText(NearActivity.this, \"您的网络出错啦!\", Toast.LENGTH_LONG).show();\r\n\t\t}", "private AdesaNetworkCall(){ }", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "@Override\n public void onFailure(Call<VehicleDetailModel> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"Network issue\", Toast.LENGTH_SHORT).show();\n }", "static java.lang.String d(android.content.Context r7) {\n /*\n r1 = 0\n java.lang.String r0 = \"android.permission.ACCESS_WIFI_STATE\"\n boolean r0 = c(r7, r0) // Catch:{ Exception -> 0x0051 }\n if (r0 == 0) goto L_0x0046\n java.lang.String r0 = \"wifi\"\n java.lang.Object r0 = r7.getSystemService(r0) // Catch:{ Exception -> 0x0051 }\n android.net.wifi.WifiManager r0 = (android.net.wifi.WifiManager) r0 // Catch:{ Exception -> 0x0051 }\n android.net.wifi.WifiInfo r2 = r0.getConnectionInfo() // Catch:{ Exception -> 0x0051 }\n java.lang.String r0 = r2.getMacAddress() // Catch:{ Exception -> 0x0051 }\n boolean r1 = android.text.TextUtils.isEmpty(r0) // Catch:{ Exception -> 0x0061 }\n if (r1 != 0) goto L_0x0027\n byte[] r1 = r0.getBytes() // Catch:{ Exception -> 0x0061 }\n r3 = 0\n android.util.Base64.encode(r1, r3) // Catch:{ Exception -> 0x0061 }\n L_0x0027:\n boolean r1 = com.baidu.b.a.d.a // Catch:{ Exception -> 0x0061 }\n if (r1 == 0) goto L_0x0045\n java.lang.String r1 = \"ssid=%s mac=%s\"\n r3 = 2\n java.lang.Object[] r3 = new java.lang.Object[r3] // Catch:{ Exception -> 0x0061 }\n r4 = 0\n java.lang.String r5 = r2.getSSID() // Catch:{ Exception -> 0x0061 }\n r3[r4] = r5 // Catch:{ Exception -> 0x0061 }\n r4 = 1\n java.lang.String r2 = r2.getMacAddress() // Catch:{ Exception -> 0x0061 }\n r3[r4] = r2 // Catch:{ Exception -> 0x0061 }\n java.lang.String r1 = java.lang.String.format(r1, r3) // Catch:{ Exception -> 0x0061 }\n com.baidu.b.a.d.a(r1) // Catch:{ Exception -> 0x0061 }\n L_0x0045:\n return r0\n L_0x0046:\n boolean r0 = com.baidu.b.a.d.a // Catch:{ Exception -> 0x0051 }\n if (r0 == 0) goto L_0x004f\n java.lang.String r0 = \"You need the android.Manifest.permission.ACCESS_WIFI_STATE permission. Open AndroidManifest.xml and just before the final </manifest> tag add:android.permission.ACCESS_WIFI_STATE\"\n com.baidu.b.a.d.a(r0) // Catch:{ Exception -> 0x0051 }\n L_0x004f:\n r0 = r1\n goto L_0x0045\n L_0x0051:\n r0 = move-exception\n r6 = r0\n r0 = r1\n r1 = r6\n L_0x0055:\n boolean r2 = com.baidu.b.a.d.a\n if (r2 == 0) goto L_0x0045\n java.lang.String r1 = r1.toString()\n com.baidu.b.a.d.a(r1)\n goto L_0x0045\n L_0x0061:\n r1 = move-exception\n goto L_0x0055\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.b.a.e.d(android.content.Context):java.lang.String\");\n }", "private ReceiveEthernetStrategy() {\n }", "@Link Network network();", "@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}", "public interface NetworkStringCallback\n{\n void onServiceCallback(String response, Exception exception);\n}", "public interface NetworkServiceListener {\n void onFailure(String response);\n\n void onSuccess(String response, Boolean cancelFlag);\n }", "public interface zzke\n extends IInterface\n{\n public static abstract class zza extends Binder\n implements zzke\n {\n\n public static zzke zzbc(IBinder ibinder)\n {\n if(ibinder == null)\n return null;\n IInterface iinterface = ibinder.queryLocalInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(iinterface != null && (iinterface instanceof zzke))\n return (zzke)iinterface;\n else\n return new zza(ibinder);\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n zzkd zzkd;\n switch(i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n return true;\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n zzkd = com.google.android.gms.internal.zzkd.zza.zzbb(parcel.readStrongBinder());\n break;\n }\n UserAddressRequest useraddressrequest;\n if(parcel.readInt() != 0)\n useraddressrequest = (UserAddressRequest)UserAddressRequest.CREATOR.createFromParcel(parcel);\n else\n useraddressrequest = null;\n if(parcel.readInt() != 0)\n parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);\n else\n parcel = null;\n zza(zzkd, useraddressrequest, parcel);\n parcel1.writeNoException();\n return true;\n }\n }\n\n private static class zza.zza\n implements zzke\n {\n\n public IBinder asBinder()\n {\n return zzlW;\n }\n\n public void zza(zzkd zzkd1, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(zzkd1 == null) goto _L2; else goto _L1\n_L1:\n zzkd1 = zzkd1.asBinder();\n_L5:\n parcel.writeStrongBinder(zzkd1);\n if(useraddressrequest == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n useraddressrequest.writeToParcel(parcel, 0);\n_L6:\n if(bundle == null)\n break MISSING_BLOCK_LABEL_127;\n parcel.writeInt(1);\n bundle.writeToParcel(parcel, 0);\n_L7:\n zzlW.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n zzkd1 = null;\n goto _L5\n_L4:\n parcel.writeInt(0);\n goto _L6\n zzkd1;\n parcel1.recycle();\n parcel.recycle();\n throw zzkd1;\n parcel.writeInt(0);\n goto _L7\n }\n\n private IBinder zzlW;\n\n zza.zza(IBinder ibinder)\n {\n zzlW = ibinder;\n }\n }\n\n\n public abstract void zza(zzkd zzkd, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException;\n}", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onNetworkInfoReceived(OnReceiverNetInfoEvent event){\n\n WifiP2pInfo info = event.getInfo();\n\n // InetAddress from WifiP2pInfo struc.\n groupOwnerAddress = info.groupOwnerAddress.getHostAddress();\n // String port = \"8888\";\n\n\n // After the group negotiation, we can determine the group owner\n // (server).\n if(info.groupFormed && info.isGroupOwner){\n Toast.makeText(getContext(), \"Group formed. Host\", Toast.LENGTH_SHORT).show();\n if(peersDialog.isShowing())peersDialog.dismiss();\n\n // starting a data thread with the latest connected device\n Wifip2pService mService = new Wifip2pService(getContext(), mHandler,port, true, groupOwnerAddress);\n // assign the name of the latest connect device to this thread so we keep track\n mService.deviceName = devicesConnected.get(devicesConnected.size() - 1);\n connectionThreads.add(mService);\n\n\n // One common case is creating a group owner thread and accepting\n // incoming connections.\n } else if(info.groupFormed){\n Toast.makeText(getContext(), \"Connected as Peer\", Toast.LENGTH_SHORT).show();\n if(peersDialog.isShowing())peersDialog.dismiss();\n\n // starting a data thread with the owner\n Wifip2pService mService = new Wifip2pService(getContext(), mHandler, port, false, groupOwnerAddress);\n mService.deviceName = devicesConnected.get(devicesConnected.size() - 1);\n connectionThreads.add(mService);\n\n }\n\n }", "@MainThread // MainThread since threading is handled by Retrofit\n public abstract LiveData<NetworkModel> fetchFromNetwork();", "interface CreateNewNetCallback {\n\n /**\n * Method is called after the net was created successfully.\n */\n void onCreateNewNetSuccess();\n\n /**\n * Method is called after something went wrong with creation of new net.\n */\n void onCreateNewNetFailure();\n\n void onApplicationMainPortUsed();\n }", "@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}", "public interface NetworkType {\n\n /**\n * Vehicletypes in the order they are send in info packets.\n */\n public enum NetworkVehicleType {\n NETWORK_VEH_TRAIN,\n NETWORK_VEH_LORRY,\n NETWORK_VEH_BUS,\n NETWORK_VEH_PLANE,\n NETWORK_VEH_SHIP,\n NETWORK_VEH_END;\n\n public static int length() {\n return Arrays\n .asList(NetworkVehicleType.values())\n .indexOf(NetworkVehicleType.NETWORK_VEH_END);\n }\n };\n\n public enum DestType {\n DESTTYPE_BROADCAST, // /< Send message/notice to all clients (All)\n DESTTYPE_TEAM, // /< Send message/notice to everyone playing the same company (Team)\n DESTTYPE_CLIENT, // /< Send message/notice to only a certain client (Private)\n };\n\n /**\n * Actions that can be used for NetworkTextMessage\n */\n public enum NetworkAction {\n NETWORK_ACTION_JOIN,\n NETWORK_ACTION_LEAVE,\n NETWORK_ACTION_SERVER_MESSAGE,\n NETWORK_ACTION_CHAT,\n NETWORK_ACTION_CHAT_COMPANY,\n NETWORK_ACTION_CHAT_CLIENT,\n NETWORK_ACTION_GIVE_MONEY,\n NETWORK_ACTION_NAME_CHANGE,\n NETWORK_ACTION_COMPANY_SPECTATOR,\n NETWORK_ACTION_COMPANY_JOIN,\n NETWORK_ACTION_COMPANY_NEW,\n NETWORK_ACTION_KICKED,\n NETWORK_ACTION_EXTERNAL_CHAT,\n };\n\n public enum NetworkErrorCode {\n NETWORK_ERROR_GENERAL, // Try to use this one like never\n\n /* Signals from clients */\n NETWORK_ERROR_DESYNC,\n NETWORK_ERROR_SAVEGAME_FAILED,\n NETWORK_ERROR_CONNECTION_LOST,\n NETWORK_ERROR_ILLEGAL_PACKET,\n NETWORK_ERROR_NEWGRF_MISMATCH,\n /* Signals from servers */\n NETWORK_ERROR_NOT_AUTHORIZED,\n NETWORK_ERROR_NOT_EXPECTED,\n NETWORK_ERROR_WRONG_REVISION,\n NETWORK_ERROR_NAME_IN_USE,\n NETWORK_ERROR_WRONG_PASSWORD,\n NETWORK_ERROR_COMPANY_MISMATCH, // Happens in CLIENT_COMMAND\n NETWORK_ERROR_KICKED,\n NETWORK_ERROR_CHEATER,\n NETWORK_ERROR_FULL,\n NETWORK_ERROR_TOO_MANY_COMMANDS,\n NETWORK_ERROR_TIMEOUT_PASSWORD,\n NETWORK_ERROR_TIMEOUT_COMPUTER,\n NETWORK_ERROR_TIMEOUT_MAP,\n NETWORK_ERROR_TIMEOUT_JOIN,\n NETWORK_ERROR_INVALID_CLIENT_NAME,\n NETWORK_ERROR_END;\n\n public static NetworkErrorCode valueOf(int order) {\n for (NetworkErrorCode value : values()) {\n if (value.ordinal() == order) {\n return value;\n }\n }\n return null;\n }\n };\n\n}", "public static String getNetworkType(Context context) {\n try {\n TelephonyManager mTelephonyManager = (TelephonyManager)\n context.getSystemService(Context.TELEPHONY_SERVICE);\n int networkType = mTelephonyManager.getNetworkType();\n switch (networkType) {\n case TelephonyManager.NETWORK_TYPE_GPRS:\n case TelephonyManager.NETWORK_TYPE_EDGE:\n case TelephonyManager.NETWORK_TYPE_CDMA:\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n case TelephonyManager.NETWORK_TYPE_IDEN:\n return \"2g\";\n case TelephonyManager.NETWORK_TYPE_UMTS:\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n /**\n From this link https://en.wikipedia.org/wiki/Evolution-Data_Optimized ..NETWORK_TYPE_EVDO_0 & NETWORK_TYPE_EVDO_A\n EV-DO is an evolution of the CDMA2000 (IS-2000) standard that supports high data rates.\n\n Where CDMA2000 https://en.wikipedia.org/wiki/CDMA2000 .CDMA2000 is a family of 3G[1] mobile technology standards for sending voice,\n data, and signaling data between mobile phones and cell sites.\n */\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n case TelephonyManager.NETWORK_TYPE_HSPA:\n case TelephonyManager.NETWORK_TYPE_EVDO_B:\n case TelephonyManager.NETWORK_TYPE_EHRPD:\n case TelephonyManager.NETWORK_TYPE_HSPAP:\n //Log.d(\"Type\", \"3g\");\n //For 3g HSDPA , HSPAP(HSPA+) are main networktype which are under 3g Network\n //But from other constants also it will 3g like HSPA,HSDPA etc which are in 3g case.\n //Some cases are added after testing(real) in device with 3g enable data\n //and speed also matters to decide 3g network type\n //https://en.wikipedia.org/wiki/4G#Data_rate_comparison\n return \"3g\";\n case TelephonyManager.NETWORK_TYPE_LTE:\n //No specification for the 4g but from wiki\n //I found(LTE (Long-Term Evolution, commonly marketed as 4G LTE))\n //https://en.wikipedia.org/wiki/LTE_(telecommunication)\n return \"4g\";\n default:\n return \"Unknown\";\n }\n } catch (Exception e) {\n e.printStackTrace();\n return \"Unknown\";\n }\n }", "public NetworkException() {\n\t\tsuper();\n\t}", "public DefaultCniNetworkInner() {\n }", "public final void setAddress(java.lang.String r1, android.net.Uri r2, int r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setAddress(java.lang.String, android.net.Uri, int):void\");\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "public void handleNetworkException(WorkerChore chore, CallNetworkException e);", "protected abstract MainNetworkAdapter<T> getMainAdapter(Context context);", "Network_Resource createNetwork_Resource();", "public interface TCNetworkManageInterface {\n\n public String serviceIdentifier();\n\n public String apiClassPath();\n\n public String apiMethodName();\n}", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "private int getPreferredNetworkMode(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getPreferredNetworkMode(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getPreferredNetworkMode(int):int\");\n }", "@Override\n\tpublic String getNetworkType()\n\t{\n\t\treturn DeviceNetworkType.UEI;\n\t}", "public void networkError() {\n Context context = getActivity();\n if (context == null) {\n return;\n }\n\n showToast(context.getString(R.string.status_network_error), Toast.LENGTH_LONG);\n }", "@Override\n public void failure(RetrofitError arg0) {\n Log.info(\"net err:\"+arg0.toString());\n }", "@Override\n\tpublic void onNetStart(String id) {\n\t\t\n\t}", "public NetworkAdapter() {\n }", "public interface NetInterface {\r\n /**\r\n * 接口有正确响应\r\n * @param result\r\n */\r\n public void onNetResult(String interfaceAction,Object result);\r\n\r\n /**\r\n * 接口调用异常\r\n * @param ex\r\n * @param isOnCallback\r\n */\r\n public void onNetError(String interfaceAction,Throwable ex, boolean isOnCallback);\r\n\r\n public void onNetFinished(String interfaceAction);\r\n\r\n}", "@Override\n\t\t\tpublic void onConnectRemoteNode(String url) {\t \t\t\t\n\t\t\t}", "public IEndPointData getLocalEndPoint();", "@Override\n public void onCompleted(Exception e, String result) {\n\n if (result.equals(\"-1\")) {\n imagepath_server = null;\n\n } else {\n imagepath_server = result;\n\n }\n }", "public void onNetDisConnect() {\n\n\t}", "@Override\n\t\t\tpublic void onDiscoverRemoteNode(String url) {\n\t\t\t\t\n\t\t\t}", "private NetTransferMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n }", "@Override\n\tpublic void onNetWorkError() {\n\t\t\n\t}", "@DSSource({DSSourceKind.NETWORK})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.243 -0500\", hash_original_method = \"E608923787A6482FF0ABAB03074C01F6\", hash_generated_method = \"7955BA736BD8AD783B98FFDED7E574D5\")\n \npublic LocalSocketAddress getLocalSocketAddress()\n {\n return localAddress;\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Fail to request connection: \" + e.getMessage());\n }", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "@Override\n public void onAvailable(@NonNull final Network network) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n manager.bindProcessToNetwork(network);\n } else {\n //This method was deprecated in API level 23\n ConnectivityManager.setProcessDefaultNetwork(network);\n }\n manager.unregisterNetworkCallback(this);\n }", "public static KubevirtNetwork parseKubevirtNetwork(String resource) {\n JsonObject json = JsonObject.readFrom(resource);\n String name = parseResourceName(resource);\n JsonObject annots = json.get(\"metadata\").asObject().get(\"annotations\").asObject();\n if (annots.get(NETWORK_CONFIG) == null) {\n // SR-IOV network does not contain network-config field\n return null;\n }\n String networkConfig = annots.get(NETWORK_CONFIG).asString();\n if (networkConfig != null) {\n KubevirtNetwork.Builder builder = DefaultKubevirtNetwork.builder();\n\n JsonObject configJson = JsonObject.readFrom(networkConfig);\n String type = configJson.get(TYPE).asString().toUpperCase(Locale.ROOT);\n Integer mtu = configJson.get(MTU).asInt();\n String gatewayIp = configJson.getString(GATEWAY_IP, \"\");\n boolean defaultRoute = configJson.getBoolean(DEFAULT_ROUTE, false);\n\n if (!type.equalsIgnoreCase(FLAT.name())) {\n builder.segmentId(configJson.getString(SEGMENT_ID, \"\"));\n }\n\n String cidr = configJson.getString(CIDR, \"\");\n\n JsonObject poolJson = configJson.get(IP_POOL).asObject();\n if (poolJson != null) {\n String start = poolJson.getString(START, \"\");\n String end = poolJson.getString(END, \"\");\n builder.ipPool(new KubevirtIpPool(\n IpAddress.valueOf(start), IpAddress.valueOf(end)));\n }\n\n if (configJson.get(HOST_ROUTES) != null) {\n JsonArray routesJson = configJson.get(HOST_ROUTES).asArray();\n Set<KubevirtHostRoute> hostRoutes = new HashSet<>();\n if (routesJson != null) {\n for (int i = 0; i < routesJson.size(); i++) {\n JsonObject route = routesJson.get(i).asObject();\n String destinationStr = route.getString(DESTINATION, \"\");\n String nexthopStr = route.getString(NEXTHOP, \"\");\n\n if (StringUtils.isNotEmpty(destinationStr) &&\n StringUtils.isNotEmpty(nexthopStr)) {\n hostRoutes.add(new KubevirtHostRoute(\n IpPrefix.valueOf(destinationStr),\n IpAddress.valueOf(nexthopStr)));\n }\n }\n }\n builder.hostRoutes(hostRoutes);\n }\n\n if (configJson.get(DNSES) != null) {\n JsonArray dnsesJson = configJson.get(DNSES).asArray();\n Set<IpAddress> dnses = new HashSet<>();\n if (dnsesJson != null) {\n for (int i = 0; i < dnsesJson.size(); i++) {\n String dns = dnsesJson.get(i).asString();\n if (StringUtils.isNotEmpty(dns)) {\n dnses.add(IpAddress.valueOf(dns));\n }\n }\n }\n builder.dnses(dnses);\n }\n\n builder.networkId(name).name(name).type(KubevirtNetwork.Type.valueOf(type))\n .mtu(mtu).gatewayIp(IpAddress.valueOf(gatewayIp))\n .defaultRoute(defaultRoute).cidr(cidr);\n\n return builder.build();\n }\n return null;\n }", "public interface IFingerprintServiceReceiver extends android.os.IInterface\n{\n/** Local-side IPC implementation stub class. */\npublic static abstract class Stub extends android.os.Binder implements android.service.fingerprint.IFingerprintServiceReceiver\n{\nprivate static final java.lang.String DESCRIPTOR = \"android.service.fingerprint.IFingerprintServiceReceiver\";\n/** Construct the stub at attach it to the interface. */\npublic Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}\n/**\n * Cast an IBinder object into an android.service.fingerprint.IFingerprintServiceReceiver interface,\n * generating a proxy if needed.\n */\npublic static android.service.fingerprint.IFingerprintServiceReceiver asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.service.fingerprint.IFingerprintServiceReceiver))) {\nreturn ((android.service.fingerprint.IFingerprintServiceReceiver)iin);\n}\nreturn new android.service.fingerprint.IFingerprintServiceReceiver.Stub.Proxy(obj);\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn this;\n}\n@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException\n{\nswitch (code)\n{\ncase INTERFACE_TRANSACTION:\n{\nreply.writeString(DESCRIPTOR);\nreturn true;\n}\ncase TRANSACTION_onEnrollResult:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nint _arg1;\n_arg1 = data.readInt();\nthis.onEnrollResult(_arg0, _arg1);\nreturn true;\n}\ncase TRANSACTION_onAcquired:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onAcquired(_arg0);\nreturn true;\n}\ncase TRANSACTION_onProcessed:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onProcessed(_arg0);\nreturn true;\n}\ncase TRANSACTION_onError:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onError(_arg0);\nreturn true;\n}\ncase TRANSACTION_onRemoved:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nthis.onRemoved(_arg0);\nreturn true;\n}\n}\nreturn super.onTransact(code, data, reply, flags);\n}\nprivate static class Proxy implements android.service.fingerprint.IFingerprintServiceReceiver\n{\nprivate android.os.IBinder mRemote;\nProxy(android.os.IBinder remote)\n{\nmRemote = remote;\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn mRemote;\n}\npublic java.lang.String getInterfaceDescriptor()\n{\nreturn DESCRIPTOR;\n}\n@Override public void onEnrollResult(int fingerprintId, int remaining) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\n_data.writeInt(remaining);\nmRemote.transact(Stub.TRANSACTION_onEnrollResult, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onAcquired(int acquiredInfo) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(acquiredInfo);\nmRemote.transact(Stub.TRANSACTION_onAcquired, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onProcessed(int fingerprintId) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\nmRemote.transact(Stub.TRANSACTION_onProcessed, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onError(int error) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(error);\nmRemote.transact(Stub.TRANSACTION_onError, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n@Override public void onRemoved(int fingerprintId) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(fingerprintId);\nmRemote.transact(Stub.TRANSACTION_onRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);\n}\nfinally {\n_data.recycle();\n}\n}\n}\nstatic final int TRANSACTION_onEnrollResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);\nstatic final int TRANSACTION_onAcquired = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);\nstatic final int TRANSACTION_onProcessed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);\nstatic final int TRANSACTION_onError = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);\nstatic final int TRANSACTION_onRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);\n}\npublic void onEnrollResult(int fingerprintId, int remaining) throws android.os.RemoteException;\npublic void onAcquired(int acquiredInfo) throws android.os.RemoteException;\npublic void onProcessed(int fingerprintId) throws android.os.RemoteException;\npublic void onError(int error) throws android.os.RemoteException;\npublic void onRemoved(int fingerprintId) throws android.os.RemoteException;\n}", "@BusInterface (name = IconTransport.INTERFACE_NAME)\npublic interface IconTransport extends BusObject\n{\n public static final String INTERFACE_NAME = \"org.alljoyn.Icon\";\n public final static String OBJ_PATH = \"/About/DeviceIcon\";\n\n /**\n * @return Interface version\n * @throws BusException indicating failure to obtain Version property\n */\n @BusProperty(signature=\"q\")\n public short getVersion() throws BusException;\n\n /**\n * @return Mime type for the icon\n * @throws BusException indicating failure to obtain MimeType property\n */\n @BusProperty(signature=\"s\")\n public String getMimeType() throws BusException;\n\n /**\n * @return Size of the icon\n * @throws BusException indicating failure to obtain Size property\n */\n @BusProperty(signature=\"u\")\n public int getSize() throws BusException;\n\n /**\n * Returns the URL if the icon is hosted on the cloud\n * @return the URL if the icon is hosted on the cloud\n * @throws BusException indicating failure to make GetUrl method call\n */\n @BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;\n\n /**\n * Returns binary content for the icon\n * @return binary content for the icon\n * @throws BusException indicating failure to make GetContent method call\n */\n @BusMethod(replySignature=\"ay\")\n public byte[] GetContent() throws BusException;\n}", "public interface OperationEventListener {\n\n int ERROR_CODE_NAME_VALID = 100;\n int ERROR_CODE_SUCCESS = 0;\n int ERROR_CODE_DECRYPT_SUCCESS = 1;\n int ERROR_CODE_UNSUCCESS = -1;\n int ERROR_CODE_NAME_EMPTY = -2;\n int ERROR_CODE_NAME_TOO_LONG = -3;\n int ERROR_CODE_FILE_EXIST = -4;\n int ERROR_CODE_NOT_ENOUGH_SPACE = -5;\n int ERROR_CODE_DELETE_FAILS = -6;\n int ERROR_CODE_USER_CANCEL = -7;\n int ERROR_CODE_PASTE_TO_SUB = -8;\n int ERROR_CODE_UNKOWN = -9;\n int ERROR_CODE_COPY_NO_PERMISSION = -10;\n int ERROR_CODE_MKDIR_UNSUCCESS = -11;\n int ERROR_CODE_CUT_SAME_PATH = -12;\n int ERROR_CODE_BUSY = -100;\n int ERROR_CODE_DELETE_UNSUCCESS = -13;\n int ERROR_CODE_PASTE_UNSUCCESS = -14;\n int ERROR_CODE_DELETE_NO_PERMISSION = -15;\n int ERROR_CODE_FAVORITE_UNSUCESS = -16;\n int ERROR_CODE_ENCRYPT_UNSUCCESS = -17;\n int ERROR_INVALID_CHAR = -20;\n int ERROR_COMPRESS_FILE_NAME_TOO_LONG = -21;\n int ERROR_CODE_EXCEEDED_MAX_TASK = -22;\n int ERROR_CODE_ADD_WAITING_TASK = -23;\n int ERROR_CODE_EXTRACT_FAIL_TASK = -24;\n int ERROR_CODE_OPERATION_FAILS = -25;\n int ERROR_SET_PRIVATE_FAILS = -26;\n\n int ERROR_SAFE_SIZE_LIMTED = -18;\n int ERROR_SAFE_DRM_LIMTED = -19;\n\n /**\n * This method will be implemented, and called in onPreExecute of\n * asynctask\n */\n void onTaskPrepare();\n\n /**\n * This method will be implemented, and called in onProgressUpdate\n * function of asynctask\n *\n * @param progressInfo information of ProgressInfo, which will be\n * updated on UI\n */\n void onTaskProgress(ProgressInfo progressInfo);\n\n /**\n * This method will be implemented, and called in onPostExecute of\n * asynctask\n *\n * @param result the result of asynctask's doInBackground()\n */\n void onTaskResult(TaskInfo mTaskInfo);\n\n}", "@Service NetworkService network(String id);", "@Override\n\tpublic void networkIsOk() {\n\n\t}", "public interface NetworkStateChangeObserver {\n /**\n * 网络状态消失时\n */\n void onNetworkDisconnected();\n\n /**\n * 当Wifi连接时\n */\n void onWifiConnected();\n\n /**\n * 当移动网络连接时\n */\n void onMobileDataTrafficConnected();\n\n /**\n * 当4G连接时\n */\n void on4GConnected();\n\n\n /**\n * 网络可用的情况(可能是Wifi,流量,蓝牙等网络可用)\n */\n void onNetworkAvailable();\n\n /**\n * 网络完全不可用的情况(Wifi,流量,蓝牙等网络都不可用)\n */\n void onNetworkNotAvailable();\n\n /**\n * 蜂窝网络可用的情况\n */\n void onCellularAvailable();\n\n /**\n * WIFI网络可用的情况\n */\n void onWIFIAvailable();\n\n /**\n * 蓝牙网络可用的情况\n */\n void onBluetoothAvailable();\n\n /**\n * 以太网络可用的情况\n */\n void onEthernetAvailable();\n\n /**\n * VPN网络可用的情况\n */\n void onVPNAvailable();\n\n /**\n * 6LoWPAN 网络可用的情况\n */\n void onLOWPANAvailable();\n}", "private String getTelephonyNetworkType() {\n assert NETWORK_TYPES[14].compareTo(\"EHRPD\") == 0;\n\n int networkType = telephonyManager.getNetworkType();\n if (networkType < NETWORK_TYPES.length) {\n return NETWORK_TYPES[telephonyManager.getNetworkType()];\n } else {\n return \"Unrecognized: \" + networkType;\n }\n }", "public NetworkManager getNetwork()\n {\n return network;\n }", "public String networkFailureMessage();", "@Override\n public void onFailure(Call<CafeEtcInfoResponse> call, Throwable t) {\n Log.e(\"tag\", t.toString());\n Toast.makeText(getApplicationContext(), networkErrorStr,Toast.LENGTH_SHORT).show();\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:02.868 -0500\", hash_original_method = \"E552E8F41A6230395AD2464B82A88215\", hash_generated_method = \"B474121E171E0C15AB9C9C17C2686C0E\")\n \npublic static android.net.wifi.IWifiManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.net.wifi.IWifiManager))) {\nreturn ((android.net.wifi.IWifiManager)iin);\n}\nreturn new android.net.wifi.IWifiManager.Stub.Proxy(obj);\n}", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }", "abstract String getRemoteAddress();", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "protected String getDefaultRpcReceiver() {\n return \"droid\";\n }", "public Optional<D> getNetworkEventListener();", "void onCreateNewNetSuccess();", "AnonymousClass2(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public void queryRemoteConnectionServices(com.android.internal.telecom.RemoteServiceCallback r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.queryRemoteConnectionServices(com.android.internal.telecom.RemoteServiceCallback):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.queryRemoteConnectionServices(com.android.internal.telecom.RemoteServiceCallback):void\");\n }", "LabNetworkProfile networkProfile();", "public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}", "public interface ActWifiListener {\n\n\n void neighbourWIFI(NearbyWifi responseObj);\n void userInfo(UserInfoResponse userInfoResponseObj);\n void deviceStatus(DeviceStatusResponse responseObj);\n void deviceInfo(DeviceInfoResponse responseObj);\n void getSSID(GetSSIDResponse responseObj);\n void connectedDevices(ConnectedDeviceResponse responseObj);\n void allJsonResponse(String responseObj);\n void updateDetails(UpdateDetailsResponse responseObj);\n void deviceReboot(DeviceRebootResponse responseObj);\n\n\n}", "public NetworkSource() {\n }", "public void showNetworkStatus(com.miui.networkassistant.netdiagnose.NetworkDiagnosticsUtils.NetworkState r3) {\n /*\n r2 = this;\n int[] r0 = com.miui.networkassistant.ui.activity.NetworkDiagnosticsActivity.AnonymousClass8.$SwitchMap$com$miui$networkassistant$netdiagnose$NetworkDiagnosticsUtils$NetworkState\n int r3 = r3.ordinal()\n r3 = r0[r3]\n r0 = 1\n r1 = 2131758456(0x7f100d78, float:1.9147877E38)\n if (r3 == r0) goto L_0x0027\n r0 = 2\n if (r3 == r0) goto L_0x0015\n r0 = 3\n if (r3 == r0) goto L_0x0015\n goto L_0x0047\n L_0x0015:\n r2.lastStr = r1\n L_0x0017:\n android.widget.TextView r3 = r2.mTvCurrentActiveNetworkType\n android.content.res.Resources r0 = r2.getResources()\n int r1 = r2.lastStr\n java.lang.String r0 = r0.getString(r1)\n r3.setText(r0)\n goto L_0x0047\n L_0x0027:\n boolean r3 = b.b.c.h.f.i(r2)\n if (r3 == 0) goto L_0x0033\n r3 = 2131755812(0x7f100324, float:1.9142514E38)\n L_0x0030:\n r2.lastStr = r3\n goto L_0x0017\n L_0x0033:\n boolean r3 = b.b.c.h.f.l(r2)\n if (r3 == 0) goto L_0x003d\n r3 = 2131755814(0x7f100326, float:1.9142518E38)\n goto L_0x0030\n L_0x003d:\n boolean r3 = b.b.c.h.f.h(r2)\n if (r3 == 0) goto L_0x0015\n r3 = 2131755813(0x7f100325, float:1.9142516E38)\n goto L_0x0030\n L_0x0047:\n android.widget.TextView r3 = r2.mTvCurrentActiveNetworkType\n r0 = 0\n r3.setVisibility(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.miui.networkassistant.ui.activity.NetworkDiagnosticsActivity.showNetworkStatus(com.miui.networkassistant.netdiagnose.NetworkDiagnosticsUtils$NetworkState):void\");\n }", "private MockClientNetworkModule() {\n\t\t// TODO complete this constructor\n\t}", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "@Service\n@Area(\"Network\")\npublic interface NetworksService {\n /**\n * Creates a new logical network, or associates an existing network with a data center.\n *\n * Creation of a new network requires the `name` and `data_center` elements.\n *\n * For example, to create a network named `mynetwork` for data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>mynetwork</name>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n *\n * To associate the existing network `456` with the data center `123` send a request like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/datacenters/123/networks\n * ----\n *\n * With a request body like this:\n *\n * [source,xml]\n * ----\n * <network>\n * <name>ovirtmgmt</name>\n * </network>\n * ----\n *\n * To create a network named `exnetwork` on top of an external _OpenStack_ network provider `456` send a request\n * like this:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/networks\n * ----\n *\n * [source,xml]\n * ----\n * <network>\n * <name>exnetwork</name>\n * <external_provider id=\"456\"/>\n * <data_center id=\"123\"/>\n * </network>\n * ----\n *\n * @author Martin Mucha <[email protected]>\n * @author Petr Horacek <[email protected]>\n * @date 12 Nov 2017\n * @status added\n */\n interface Add {\n @InputDetail\n default void inputDetail() {\n or(mandatory(network().id()), mandatory(network().name()));\n optional(network().comment());\n optional(network().description());\n optional(network().ip().address());\n optional(network().ip().gateway());\n optional(network().ip().netmask());\n optional(network().mtu());\n optional(network().profileRequired());\n optional(network().stp());\n optional(network().vlan().id());\n optional(network().usages()[COLLECTION]);\n optional(network().externalProvider().id());\n optional(network().externalProviderPhysicalNetwork().id());\n optional(network().portIsolation());\n }\n @In @Out Network network();\n }\n\n /**\n * List logical networks.\n *\n * For example:\n *\n * [source]\n * ----\n * GET /ovirt-engine/api/networks\n * ----\n *\n * Will respond:\n *\n * [source,xml]\n * ----\n * <networks>\n * <network href=\"/ovirt-engine/api/networks/123\" id=\"123\">\n * <name>ovirtmgmt</name>\n * <description>Default Management Network</description>\n * <link href=\"/ovirt-engine/api/networks/123/permissions\" rel=\"permissions\"/>\n * <link href=\"/ovirt-engine/api/networks/123/vnicprofiles\" rel=\"vnicprofiles\"/>\n * <link href=\"/ovirt-engine/api/networks/123/networklabels\" rel=\"networklabels\"/>\n * <mtu>0</mtu>\n * <stp>false</stp>\n * <usages>\n * <usage>vm</usage>\n * </usages>\n * <data_center href=\"/ovirt-engine/api/datacenters/456\" id=\"456\"/>\n * </network>\n * ...\n * </networks>\n * ----\n *\n * The order of the returned list of networks is guaranteed only if the `sortby` clause is included in the\n * `search` parameter.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 14 Sep 2016\n * @status added\n */\n interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }\n\n /**\n * Reference to the service that manages a specific network.\n *\n * @author Ori Ben Sasson <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Service NetworkService network(String id);\n}", "public interface NetworkClientManager {\n\n /**\n * Get a NetworkClientConnection\n *\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection();\n\n /**\n * Get a NetworkClientConnection from uriToNode\n * @param uriToNode\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection(String uriToNode);\n\n}", "public NetworkInfo getActiveNetworkInfo() {\n\treturn null;\r\n}", "void onDiscoverPeersFailure(final int reasonCode);", "@Override\n public NetworkResources getNetworkResources() {\n return null;\n }", "@SuppressLint(\"MissingPermission\")\n private NetworkInfo getActiveNetworkInfo(){\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n return connectivityManager == null ? null : connectivityManager.getActiveNetworkInfo();\n }", "public interface UdpReceiverService {\n\n public void start() throws IOException, TimeoutException;\n\n public void setCompress(boolean compress);\n}", "@Override\n public void onFailure(@NonNull Exception e) {\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n }" ]
[ "0.5916501", "0.5869496", "0.5654802", "0.5542226", "0.55194706", "0.5509773", "0.5490784", "0.54808396", "0.5411741", "0.5409541", "0.5396045", "0.53893685", "0.53557503", "0.5310211", "0.52807033", "0.5277451", "0.527636", "0.5268458", "0.52580863", "0.5247666", "0.52456194", "0.52319264", "0.5220463", "0.5216805", "0.5216205", "0.520681", "0.51920384", "0.5161677", "0.51562464", "0.5145134", "0.514057", "0.514057", "0.5132967", "0.5112277", "0.5111491", "0.51031804", "0.51029176", "0.5097666", "0.50954", "0.5090718", "0.50888634", "0.50844353", "0.50794923", "0.5078686", "0.5074959", "0.5072974", "0.5071887", "0.50649375", "0.50626343", "0.505899", "0.50588924", "0.50582874", "0.5056633", "0.50557774", "0.505048", "0.5043382", "0.5043382", "0.5043382", "0.5043382", "0.5043382", "0.5042454", "0.50416845", "0.5038898", "0.503158", "0.5030816", "0.50216347", "0.5020825", "0.50141215", "0.50105846", "0.5010001", "0.5007895", "0.5003693", "0.49996084", "0.4996204", "0.49820134", "0.49801022", "0.4973354", "0.4966874", "0.4966108", "0.49611592", "0.49530396", "0.4952535", "0.49515998", "0.49482647", "0.4944874", "0.49416652", "0.49336773", "0.49331832", "0.49313226", "0.49241978", "0.4920649", "0.49188203", "0.49166626", "0.49138522", "0.49111214", "0.49088687", "0.49027666", "0.4893703", "0.48928872", "0.48920378", "0.48920378" ]
0.0
-1
/ renamed from: a
InputStream mo1151a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\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 }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
String mo1152b();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: c
String[] mo1153c();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "abstract String mo1748c();", "private void kk12() {\n\n\t}", "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 abstract void mo70710a(String str, C24343db c24343db);", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "byte mo30283c();", "public final void mo11687c() {\n }", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public abstract String mo11611b();", "public interface C9223b {\n }", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "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}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "public interface C0764b {\n}", "void mo1749a(C0288c cVar);", "void mo41083a();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\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 interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.646023", "0.6441935", "0.6431023", "0.6417576", "0.6412886", "0.6397014", "0.62504345", "0.6247425", "0.62438375", "0.6231897", "0.61910754", "0.6165594", "0.61528003", "0.6149262", "0.6138536", "0.61364913", "0.61308527", "0.61036843", "0.609853", "0.6076961", "0.6061939", "0.6050559", "0.60471463", "0.6030308", "0.6027267", "0.60085833", "0.5998003", "0.59780973", "0.59565556", "0.5948767", "0.5937481", "0.5911918", "0.5905917", "0.5902594", "0.58840746", "0.5872173", "0.58655053", "0.5850816", "0.5819776", "0.581646", "0.5801529", "0.5789546", "0.57865655", "0.5778088", "0.57634664", "0.5734382", "0.5734083", "0.5727698", "0.5723496", "0.5713694", "0.5708715", "0.5707952", "0.5698559", "0.56980413", "0.5691187", "0.56878", "0.56878", "0.56761485", "0.56749475", "0.5659746", "0.5658919", "0.5657985", "0.5653132", "0.5653119", "0.56492734", "0.5641236", "0.56386966", "0.5638344", "0.56308514", "0.5630626", "0.5618713", "0.5617213", "0.5610731", "0.55965334", "0.55904454", "0.5581427", "0.5580782", "0.5573293", "0.5572724", "0.5569311", "0.55623966", "0.55600923", "0.55567914", "0.5552629", "0.5550099", "0.5547118", "0.55451196", "0.55393326", "0.5536628", "0.5531286", "0.5528421", "0.55193967", "0.55183125", "0.5517036", "0.5516213", "0.55144805", "0.55136347", "0.55095464", "0.55040264", "0.54992807" ]
0.5569131
80
/ renamed from: d
long mo1154d();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner rd = new Scanner(System.in); double C = 0, F = 0; System.out.println("Escreva a Temperatura: "); C = rd.nextDouble(); F = (C * 1.8) + 32; System.out.println("A temperatura em Fahrenheit é : \n" + F); }
{ "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: 0000
public CharSequence a(Object obj) { return obj instanceof CharSequence ? (CharSequence) obj : obj.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Member mo23408O();", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void mo115190b() {\n }", "public abstract void mo70713b();", "public abstract String mo118046b();", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "private void m50366E() {\n }", "public final void mo91715d() {\n }", "public abstract void mo53562a(C18796a c18796a);", "private stendhal() {\n\t}", "public abstract Object mo26777y();", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void mo38117a() {\n }", "public abstract C14408a mo11607a();", "public void mo1403c() {\n }", "public abstract void m15813a();", "public abstract Object mo1185b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo27385c();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "public abstract Object mo1771a();", "public void mo1531a() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public void mo21779D() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private Rekenhulp()\n\t{\n\t}", "void m1864a() {\r\n }", "public void mo12628c() {\n }", "public abstract void mo42329d();", "public abstract void mo56925d();", "public void O000000o() {\r\n super.O000000o();\r\n this.O0000o0 = false;\r\n }", "public void mo12930a() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public abstract void mo27464a();", "public int method_113() {\r\n return 0;\r\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 final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public abstract C7036b mo24411d();", "public void mo97908d() {\n }", "public void method_4270() {}", "public void mo21825b() {\n }", "public abstract void mo30696a();", "public abstract int mo41077c();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "public abstract String mo41079d();", "public int method_209() {\r\n return 0;\r\n }", "public void mo55254a() {\n }", "public abstract void mo35054b();", "protected void mo6255a() {\n }", "public void mo115188a() {\n }", "public abstract String mo11611b();", "public abstract void mo20899UO();", "public abstract void mo70702a(C30989b c30989b);", "public abstract long mo9229aD();", "public void mo23813b() {\n }", "protected boolean func_70814_o() { return true; }", "public interface C0764b {\n}", "public interface C0777a {\n }", "public void mo9848a() {\n }", "@Override\n public void perish() {\n \n }", "public final void mo92083O() {\n }", "public abstract long mo24409b();", "public abstract int mo13680b();", "public abstract C mo29734a();", "public void mo21879u() {\n }", "public interface C0939c {\n }", "public void mo21782G() {\n }", "public void mo97906c() {\n }", "public void mo44053a() {\n }", "public void mo4359a() {\n }", "public interface C0136c {\n }", "public void mo21787L() {\n }", "public void mo21800a() {\n }", "public void mo21781F() {\n }", "public abstract void mo42331g();", "public abstract void mo133131c() throws InvalidDataException;", "protected boolean func_70041_e_() { return false; }", "public interface C0938b {\n }", "private AccessType(String rtCode) {\n\t this.rtCode = rtCode;\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo92082N() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract C13619e mo34787a();", "public abstract void mo102899a();", "public abstract String mo13682d();", "public void mo21791P() {\n }", "public abstract int mo9747l();" ]
[ "0.65168345", "0.6417889", "0.6403412", "0.6346675", "0.6299906", "0.62951195", "0.6244629", "0.6228537", "0.620437", "0.6192846", "0.6189669", "0.61808765", "0.6173851", "0.6169742", "0.616948", "0.6162881", "0.6150504", "0.6149917", "0.61402553", "0.6134384", "0.6133215", "0.6132091", "0.61185074", "0.61123616", "0.61056376", "0.6103969", "0.61017185", "0.6098234", "0.6079347", "0.6079246", "0.60791034", "0.6077395", "0.60729754", "0.6041395", "0.60256493", "0.60169536", "0.6015826", "0.60151106", "0.6013114", "0.60013115", "0.5998371", "0.59860754", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.59848595", "0.598462", "0.5978975", "0.59778947", "0.59774643", "0.59727186", "0.5969569", "0.5967532", "0.5963771", "0.5953787", "0.5952977", "0.59515095", "0.5951448", "0.59418756", "0.59380716", "0.5937042", "0.5933502", "0.59258235", "0.5920355", "0.5919339", "0.59180367", "0.5910083", "0.5909217", "0.5907112", "0.5900161", "0.5897533", "0.58957314", "0.58927464", "0.5882746", "0.58764744", "0.58723474", "0.58707637", "0.5866063", "0.584263", "0.58394545", "0.5838862", "0.583529", "0.58348346", "0.58324844", "0.58285266", "0.58264506", "0.58255637", "0.58253694", "0.58250713", "0.582227", "0.5818361", "0.581547", "0.5813973", "0.5811735", "0.5806413", "0.5805687", "0.58014107", "0.57993686" ]
0.0
-1
Unidade unidade = new Unidade(); // Grupo grupo = new Grupo(); // Subgrupo subgrupo = new Subgrupo(); // Fornecedor fornecedor = new Fornecedor(); Promocao promocao = new Promocao(); Estoque estoque = new Estoque(); NCM ncm = new NCM(); Lote lote = new Lote();
public CadastroProdutoNew() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public MorteSubita() {\n }", "public Caso_de_uso () {\n }", "public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2.nome = \"MARIA\";\n exemplo2.matricula = \"MAT-2\";\n exemplo2.nota = 10;\n exemplo2.anoNacimento = 2000;\n\n\n System.out.println(\"Nome: \"+exemplo1.nome + \" matricula: \" + exemplo1.matricula + \" nota: \" + exemplo1.nota);\n System.out.println(\"Nome: \"+exemplo2.nome + \" matricula: \" + exemplo2.matricula + \" nota: \" + exemplo2.nota);\n\n exemplo1.mostraIdade(2030);//metodos\n exemplo2.mostraIdade(2021);\n exemplo2.mostraIdade(2003, 2021);\n }", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "private static void pruebas() {\n\t\tResultadosDaoImpl resultadosDao = new ResultadosDaoImpl();\r\n\t\tPartidosDaoImpl partidosDao = new PartidosDaoImpl();\r\n\t\tEquiposDaoImpl equiposDao = new EquiposDaoImpl();\r\n\t\tJornadasDaoImpl jornadasDao = new JornadasDaoImpl();\r\n\t\tEstadisticasDaoImpl estadisticasDao = new EstadisticasDaoImpl();\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesTotalesCasa();\r\n\t\t\r\n\t\tEquipos equipoC = equiposDao.getEquipoById(7);\r\n\t\tEquipos equipoF = equiposDao.getEquipoById(6);\r\n\t\tJornadas jornada = jornadasDao.nextJornada();\r\n//\t\t\r\n//\t\tpartidosDao.getPartidosCasa(equipo,jornada);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesFavorCasa(equipo);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesContraFuera(equipo);\r\n//\t\tdouble phiVM = staticsC.getValorMercado() / (estadisticasDao.getValorMercadoMedio());\r\n\t\t\r\n\t\tEstadisticas staticsC = estadisticasDao.getStatics(equipoC);\r\n\t\tEstadisticas staticsF = estadisticasDao.getStatics(equipoF);\r\n\t\t\r\n\t\tDouble phiF = PlayMethods.analizeStaticsFuera(staticsF,staticsC,jornada);\r\n\t\tDouble phiC = PlayMethods.analizeStaticsCasa(staticsC,staticsF,jornada);\r\n\t\t\r\n\t\t\r\n\t}", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }", "public static void main(String[] args) {\n\n\t\tMulta_Trafico mt1 = new Multa_Trafico(20, \"B\");\n\t\tmt1.setResponsable(\"Paco\");\n\t\tmt1.setDescripcion(\"Exceso de velocidad\");\n\t\tmt1.setMatricula(\"MK\");\n\t\tmt1.setFecha(\"Viernes\");\n\t\tmt1.verdatos();\n\n\t\tMulta_Covid mc2 = new Multa_Covid(10, \"C\");\n\t\tmc2.setResponsable(\"Pepa\");\n\t\tmc2.setDescripcion(\"No llevaba mascarilla\");\n\t\tmc2.setMascarilla(false);\n\t\tmc2.setFecha(\"Jueves\");\n\t\tmc2.verdatos();\n\n\t\t// Para saber de qué tipo es una clase, objeto, etc... con instanceof\n\t\t// Método saberTipo\n\n\t\tExpediente expe1 = new Expediente(10, \"A\");\n\t\tSystem.out.println(saberTipo(expe1));\n\t\tSystem.out.println(saberTipo(mt1));\n\t\tSystem.out.println(saberTipo(mc2));\n\n\t\tMulta m3 = new Multa(10, \"A\"); // variables del metodo ImporteMayor\n\t\tMulta m4 = new Multa(10, \"B\");\n\t\tm3.setDescripcion(\"Multa\");\n\t\tm3.setResponsable(\"Alberto\");\n\t\tm3.setImporte(200);\n\t\tm4.setImporte(2000);\n\n\t\tSystem.out.println(ImporteMayor(m3, m4));\n\t\tSystem.out.println(conocerTipo(m3));\n\t\tSystem.out.println(m3);\n\n\t\t// array de 50 posiciones para el método MultaMayor\n\n\t\tMulta multas[] = new Multa[50];\n\n\t\tfor (int i = 0; i < multas.length; i++) { // Relleno con descripción e importe\n\t\t\tmultas[i] = new Multa(i, \"A\");\n\t\t\tmultas[i].setDescripcion(\"Descripción\" + i);\n\t\t\tmultas[i].setImporte(Math.random() * 1000 + 25);\n\t\t}\n\t\tSystem.out.println(CalcularMayor(multas));\n\n\t}", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }", "@Override\n\tvoid geraDados() {\n\n\t}", "private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\", \"Horario de funcionamento: 6:00 as 23:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Aclimação\", \"Horario de funcionamento: 7:00 as 22:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Vinhedo\", \"Horario de funcionamento: 6:00 as 22:00\");\n unidadeDAO.insert(unidade);\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public Unidadmedida() {\r\n\t}", "private void populaNoticia()\n {\n NoticiaCat nc = new NoticiaCat();\n ProfessorFunc prof = new ProfessorFunc();\n\n prof.setId(1);\n nc.setId(1);\n Noticia n = new Noticia(Calendar.getInstance(), \"Titulo 1\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n\n prof.setId(1);\n nc.setId(2);\n n = new Noticia(Calendar.getInstance(), \"Titulo 2\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n\n prof.setId(2);\n nc.setId(2);\n n = new Noticia(Calendar.getInstance(), \"Titulo 3\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n\n prof.setId(5);\n nc.setId(3);\n n = new Noticia(Calendar.getInstance(), \"Titulo 4\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n\n prof.setId(5);\n nc.setId(3);\n n = new Noticia(Calendar.getInstance(), \"Titulo 5\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n\n prof.setId(1);\n nc.setId(3);\n n = new Noticia(Calendar.getInstance(), \"Titulo 6\", \"Descricao aqui\", nc, prof);\n noticiaDAO.insert(n);\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public Exposicao() {\n obras = new TreeSet<Obra>();\n }", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "public Login() {\n socio = new Socio();\n empleado = new Personal();\n }", "public GrupoBodegaLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.grupobodegaDataAccess = new GrupoBodegaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.grupobodegas= new ArrayList<GrupoBodega>();\r\n\t\t\tthis.grupobodega= new GrupoBodega();\r\n\t\t\t\r\n\t\t\tthis.grupobodegaObject=new Object();\r\n\t\t\tthis.grupobodegasObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.grupobodegaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.grupobodegaDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public AgenteEstAleatorio() {\r\n }", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }", "public void carregar(DadosGrafico dados){\r\n \r\n }", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "public Utilizador(){\n this.email = \"\";\n this.password = \"\";\n this.nome = \"\";\n this.genero = \"\";\n this.morada = \"\";\n this.data_nasc = new GregorianCalendar();\n this.data_reg = new GregorianCalendar();\n this.amigos = new TreeSet<>();\n this.pedido_amizade = new TreeSet<>();\n this.atividades = new HashMap<>();\n this.eventos = new TreeSet<>();\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 Jeu(){\n Saisie.Initialiser();\n this.premierJoueur = CreationDePersonnage(\"joueur1\");\n this.secondJoueur = CreationDePersonnage(\"joueur2\");\n Combat();\n Saisie.Terminer();\n }", "public static void main(String[] args) {\n\n\t\tUsuario lisa = new Usuario(\"Lisa\", 8);\n\t\tlisa.addGeneroPreferido(\"Romántico\");\n\t\tlisa.addGeneroPreferido(\"Musical\");\n\t\tlisa.addGeneroPreferido(\"Infantil\");\n\t\tlisa.addGeneroPreferido(\"Aventura\");\n\n\t\tUsuario bart = new Usuario(\"Bart\", 10);\n\t\tbart.addGeneroPreferido(\"Infantil\");\n\t\tbart.addGeneroPreferido(\"Musical\");\n\t\tbart.addGeneroPreferido(\"Aventura\");\n\t\tbart.addGeneroPreferido(\"Accion\");\n\n\t\tUsuario maggie = new Usuario(\"Maggie\", 1);\n\t\tmaggie.addGeneroPreferido(\"Musical\");\n\t\tmaggie.addGeneroPreferido(\"Aventura\");\n\t\tmaggie.addGeneroPreferido(\"Infantil\");\n\n\t\tUsuario marge = new Usuario(\"Marge\", 30);\n\t\tmarge.addGeneroPreferido(\"Musical\");\n\t\tmarge.addGeneroPreferido(\"Aventura\");\n\t\tmarge.addGeneroPreferido(\"Infantil\");\n\t\tmarge.addGeneroPreferido(\"Romántico\");\n\n\t\tUsuario homero = new Usuario(\"Homero\", 31);\n\t\thomero.addGeneroPreferido(\"Musical\");\n\t\thomero.addGeneroPreferido(\"Accion\");\n\t\thomero.addGeneroPreferido(\"Infantil\");\n\n\t\t// GRUPO DE USUARIOS\n\t\tGrupoDeUsuarios hombresSimpson = new GrupoDeUsuarios(\"Hombres Simpson\");\n\n\t\thombresSimpson.addUser(bart);\n\t\thombresSimpson.addUser(homero);\n\n\t\tGrupoDeUsuarios hermanosSimpson = new GrupoDeUsuarios(\"Hermanos Simpson\");\n\t\thermanosSimpson.addUser(lisa);\n\t\thermanosSimpson.addUser(maggie);\n\t\thermanosSimpson.addUser(bart);\n\n\t\tGrupoDeUsuarios familiaSimpson = new GrupoDeUsuarios(\"Familia Simpson\");\n\t\tfamiliaSimpson.addUser(lisa);\n\t\tfamiliaSimpson.addUser(maggie);\n\t\tfamiliaSimpson.addUser(bart);\n\t\tfamiliaSimpson.addUser(homero);\n\t\tfamiliaSimpson.addUser(marge);\n\n\t\tPelicula p1 = new Pelicula(\"Up : una aventura en la altura\",\n\t\t\t\t\"Carl Fredricksen es un vendedor de globos de 78 años de edad dispuesto a cumplir su sueño: \"\n\t\t\t\t\t\t+ \"atar miles de globos a su casa y volar a Sudamérica. Sin embargo, descubre demasiado tarde a un joven e inesperado polizón.\"\n\t\t\t\t\t\t+ \" Lo que en principio será recelo, acabará por tornarse simpatía hacia el muchacho mientras juntos pasan fascinantes aventuras en exóticos lugares.\",\n\t\t\t\t1.4, 2009);\n\t\tp1.addDirector(\"Pete Docter\");\n\t\tp1.addDirector(\"Bob Peterson\");\n\t\tp1.addActor(\"Pete Docter\");\n\t\tp1.addActor(\"Ed Asner\");\n\t\tp1.addActor(\"Bob Peterson\");\n\t\tp1.addActor(\"Jordan Nagai\");\n\t\t\n\t\tp1.addGenero(\"Infantil\");\n\t\tp1.addGenero(\"Accion\");\n\t\tp1.addGenero(\"Drama\");\n\n\t\tPelicula p2 = new Pelicula(\"Los Simpson\",\n\t\t\t\t\" la película La combinación de Homero (Dan Castellaneta), su nuevo puerco mascota, \"\n\t\t\t\t\t\t+ \"y un silo lleno de excremento podrían provocar un desastre que amenace no sólo a Springfield, sino al mundo entero. Una muchedumbre enojada llega a la casa de los Simpson,\"\n\t\t\t\t\t\t+ \" dividiendo a la familia. Con el destino de la Tierra en equilibrio, Homero se prepara para intentar redimirse con la intención de salvar al mundo y ganarse el perdón de Marge (Julie Kavner).\",\n\t\t\t\t2.0, 2007);\n\n\t\tp2.addDirector(\"David Silverman\");\n\t\tp2.addActor(\"Dan Castellaneta\");\n\t\tp2.addActor(\"Harry Shearer\");\n\t\tp2.addActor(\"Julie Kavner\");\n\t\t\n\t\tp2.addGenero(\"Romántico\");\n\t\tp2.addGenero(\"Musical\");\n\t\tp2.addGenero(\"Infantil\");\n\t\tp2.addGenero(\"Aventura\");\n\t\tp2.addGenero(\"Comedia\");\n\n\t\tPelicula p3 = new Pelicula(\"Los Increibles\",\n\t\t\t\t\"Un súper héroe retirado lucha contra el aburrimiento en un suburbio y junto con su familia tiene la oportunidad de salvar al mundo.\\r\\n\",\n\t\t\t\t2.0, 2004);\n\n\t\tp3.addDirector(\"Brad Bird\");\n\t\tp3.addActor(\"Brad Bird\");\n\t\tp3.addActor(\"Craig T. Nelson\");\n\t\tp3.addActor(\"Holly Hunter\");\n\t\t\n\t\tp3.addGenero(\"Musical\");\n\t\tp3.addGenero(\"Infantil\");\n\t\tp3.addGenero(\"Aventura\");\n\t\tp3.addGenero(\"Accion\");\n\n\t\tPelicula p4 = new Pelicula(\"Los Increibles 2\",\n\t\t\t\t\" Helen entra en acción y debe luchar contra un cibercriminal que planea hipnotizar el mundo a través de las pantallas de las computadoras. Eso deja al Sr. Increíble con uno de sus mayores desafíos: quedarse en casa y cuidar de tres niños traviesos.\\r\\n\",\n\t\t\t\t2.0, 2018);\n\n\t\tp4.addDirector(\"Brad Bird\");\n\t\tp4.addActor(\"Brad Bird\");\n\t\tp4.addActor(\"Craig T. Nelson\");\n\t\tp4.addActor(\"Holly Hunter\");\n\t\t\n\t\tp4.addGenero(\"Musical\");\n\t\tp4.addGenero(\"Infantil\");\n\t\tp4.addGenero(\"Aventura\");\n\t\tp4.addGenero(\"Accion\");\n\n\t\tPelicula p5 = new Pelicula(\"Toy Story\",\n\t\t\t\t\"Lo mejor de la animación computarizada produce esta historia sobre juguetes que cobran vida cuando su dueño se ausenta.\",\n\t\t\t\t2.0, 1995);\n\n\t\tp5.addDirector(\"John Lasseter\");\n\t\tp5.addActor(\"Tim Allen\");\n\t\tp5.addActor(\"Tom Hanks\");\n\t\tp5.addActor(\"Don Rickles\");\n\t\tp5.addActor(\"Wallace Shawn\");\n\t\t\n\t\tp5.addGenero(\"Infantil\");\n\t\tp5.addGenero(\"Aventura\");\n\t\tp5.addGenero(\"Accion\");\n\n\t\tPelicula p6 = new Pelicula(\"Monsters Inc.\",\n\t\t\t\t\"Monsters, Incorporated es la fábrica de sustos más grande en el mundo de los\"\n\t\t\t\t\t\t+ \" monstruos y James P. Sullivan (John Goodman) es uno de sus mejores asustadores. Sullivan es un monstruo \"\n\t\t\t\t\t\t+ \"grande e intimidante de piel azul, grandes manchas color púrpura y cuernos. Su asistente, mejor amigo y \"\n\t\t\t\t\t\t+ \"compañero de cuarto es Mike Wazowski (Billy Crystal), un pequeño y alegre monstruo verde con un solo ojo.\"\n\t\t\t\t\t\t+ \" Boo (Mary Gibbs), una niña pequeña visita lugares en donde nunca antes había estado un ser humano.\\r\\n\",\n\t\t\t\t2.0, 2001);\n\n\t\tp6.addDirector(\"Pete Docter\");\n\t\tp6.addActor(\"John Goodman\");\n\t\tp6.addActor(\"Billy Crystal\");\n\t\tp6.addActor(\"John Ratzenberger\");\n\t\t\n\t\tp6.addGenero(\"Infantil\");\n\t\tp6.addGenero(\"Musical\");\n\t\tp6.addGenero(\"Aventura\");\n\t\tp6.addGenero(\"Accion\");\n\n\t\t// Agregar peliculas al cine\n\t\tGestorDePeliculas cine = new GestorDePeliculas();\n\t\tcine.agregarPelicula(p1);\n\t\tcine.agregarPelicula(p2);\n\t\tcine.agregarPelicula(p3);\n\t\tcine.agregarPelicula(p4);\n\t\tcine.agregarPelicula(p5);\n\t\tcine.agregarPelicula(p6);\n\n\t\t// agregar usuarios\n\n\t\tcine.agregarUsuario(lisa);\n\t\tcine.agregarUsuario(homero);\n\t\tcine.agregarUsuario(bart);\n\t\tcine.agregarUsuario(maggie);\n\t\tcine.agregarUsuario(marge);\n\t\tcine.agregarUsuario(hombresSimpson);\n\t\tcine.agregarUsuario(hermanosSimpson);\n\t\tcine.agregarUsuario(familiaSimpson);\n\n\t\t// Calificaciones\n\t\tlisa.darCalificacion(p3, 5);\n\t\tbart.darCalificacion(p3, 2);\n\t\thomero.darCalificacion(p3, 4);\n\t\tmarge.darCalificacion(p3, 2);\n\n\t\tmarge.darCalificacion(p4, 5);\n\t\tmaggie.darCalificacion(p5, 1);\n\n\t\tCondicion conTodosGeneros = new CondicionTodosGeneros();\n\t\tCondicion conUnGeneros = new CondicionUnGenero();\n\t\t\n\t\tCondicionBusqueda conActorPD = new CondicionPoseeActor(\"Pete Docter\");\n\t\tCondicionBusqueda conDirectorPD = new CondicionPoseeDirector(\"Pete Docter\");\n\t\tCondicionBusqueda andActorDirector = new CondicionAnd(conActorPD,conDirectorPD); \n\t\t\n\t\tCondicionBusqueda generoRomantico = new CondicionGenero(\"Romántico\");\n\t\tCondicionBusqueda generoComedia = new CondicionGenero(\"Comedia\");\n\t\tCondicionBusqueda generoDrama = new CondicionGenero(\"Drama\");\n\t\t\n\t\tCondicionBusqueda andRC = new CondicionOR(generoRomantico,generoComedia);\n\t\tCondicionBusqueda andAD = new CondicionOR(andRC,generoDrama);\n\t\t\n\t\tCondicionBusqueda conActorTH = new CondicionPoseeActor(\"Tom Hanks\");\n\t\t\n\t\tCondicionBusqueda busquedaPorAnio = new CondicionAnio(2000);\n\t\t\n\t\tOrdenarPelicula comp = new OrdenarPorPromedio();\n\t\tOrdenarPelicula compVoto = new OrdenarPorVotos();\n\t\t\n\t\t//SETEAMOS TODOS LOS GENEROS\n\t\tcine.setCondicion(conTodosGeneros);\n\t\t\n\t\tArrayList<User> usuarios = new ArrayList<>();\n\t\t\n\t\t// Una vez probado todo agregas esta linea para volver a imprimir todo hermanosSimpson.darCalificacion(p1, 4);\n\t\t\n\t\t//LISTAR PELICULAS VISTAS POR MARGE Y BART\n\t\t\n\t\timprimirIterador(bart.listarPeliculasVistas(), bart, \"Peliculas vistas por \");\n\t\t\n\t\timprimirIterador(marge.listarPeliculasVistas(), marge, \"Peliculas vistas por \");\n\t\t\n\t\t//Pedimos todo los usuarios del cine\n\t\tusuarios = cine.getUsuarios();\n\t\t\n\t\t//Recomendar peliculas con todos los generos\n\t\tfor(int i=0; i < usuarios.size(); i++) {\n\t\t\t\n\t\t\timprimirIterador(cine.recomendarPeliculas(usuarios.get(i), compVoto, 2), usuarios.get(i), \"Recomendar peliculas para \");\n\t\t}\n\t\t\n\t\tcine.setCondicion(conUnGeneros);\n\t\t\n\t\tfor(int i=0; i < usuarios.size(); i++) {\n\t\t\t\n\t\t\timprimirIterador(cine.recomendarPeliculas(usuarios.get(i), comp, 5), usuarios.get(i), \"Recomendar peliula con un genero \");\n\t\t}\n\t\t\n\t\tIterator<Pelicula> itPeliculas = cine.buscarPeliculas(busquedaPorAnio);\n\t\tIterator<Pelicula> itPeliculasDA = cine.buscarPeliculas(andActorDirector);\n\t\tIterator<Pelicula> itPeliculasA = cine.buscarPeliculas(conActorTH);\n\t\tIterator<Pelicula> itPeliculasPorGenero = cine.buscarPeliculas(andAD);\n\t\t\n\t\t\n\t\timprimirIterador(itPeliculas, \"Peliculas estrenadas a partir del 2000\");\n\t\timprimirIterador(itPeliculasDA, \"Todas las películas en las que Pete Docter haya actuado y sido director al\\r\\n\" + \n\t\t\t\t\"mismo tiempo\");\n\t\timprimirIterador(itPeliculasA, \"Todas las películas en las que haya actuado Tom Hanks\");\n\t\timprimirIterador(itPeliculasPorGenero, \"Todas las películas con género romántico, comedia, o drama\");\n\t\t\n\t}", "public PantallaPrincipal() {\n gestor= new Gestor();\n initComponents();\n inicializarTablaCarreras();\n inicializarTablaCorredorTotales();\n inicializarTablaCorredor();\n mostrarCarreras();\n mostrarCorredoresTotales();\n \n \n }", "public static void main(String[] args) {\n\r\n clsAlumno alumno1 = new clsAlumno();\r\n\r\n alumno1.setNombre(\"Eneko\");\r\n\r\n alumno1.setApellido(\"Galdos\");\r\n\r\n alumno1.setDNI(\"72826873H\");\r\n\r\n alumno1.setCreditos(60);\r\n\r\n alumno1.mostrarPersona();\r\n\r\n alumno1.mostrarCreditos();\r\n\r\n System.out.println();\r\n\r\n clsProfesor profesor1 = new clsProfesor();\r\n\r\n profesor1.setNombre(\"Javier\");\r\n\r\n profesor1.setApellido(\"Cerro\");\r\n\r\n profesor1.setDNI(\"11111111A\");\r\n\r\n profesor1.setDepartamento(\"Informática\");\r\n\r\n profesor1.mostrarPersona();\r\n\r\n profesor1.mostrarDepartamento();\r\n\r\n }", "private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "public static void main(String[] args) {\n Aviso aviso1 = new Aviso();\n \n aviso1.id=1;\n \n aviso1.tipoAviso=\"General\";\n aviso1.titulo=\"Insumos y bienes muebles de laboratorio disponibles\";\n aviso1.texto=\"La Coordinación de Control Técnico de Insumos (COCTI) de la Dirección de Prestaciones Médicas, pone a disposición del personal que realiza investigación el inventario adjunto.\";\n aviso1.resumen=\"Insumos y bienes muebles de laboratorio disponibles por la Coordinación de Control Técnico de Insumos (COCTI)\";\n aviso1.nombre=\"Eduardo Flores Díaz\";\n aviso1.estatusF=\"Vigente\";\n \n aviso1.diaP=02;\n aviso1.mesP=02;\n aviso1.yearP=2020;\n \n aviso1.diaA=02;\n aviso1.mesA=02;\n aviso1.yearA=2020;\n \n aviso1.diaB=02;\n aviso1.mesB=02;\n aviso1.yearB=2021;\n \n System.out.println(aviso1);\n \n Aviso aviso2 = new Aviso();\n \n aviso2.id=2;\n \n aviso2.tipoAviso=\"Conferencia\";\n aviso2.titulo=\"CONFERENCIA DR. COSSARIZZA\";\n aviso2.texto=\"El Dr. Andrea Cossarizza, ofreció a la comunidad IMSS su conferencia “Clinical Applications of Advanced Cytometry” y aprovechó la presencia de investigadores y estudiantes del IMSS para compartir sus últimos resultados de investigación, aún no publicados, sobre VIH y el uso de citometría de flujo.\\n\" +\n\"\\n\" +\n\"Además, invitó a nuestra comunidad a agregarse a la sociedad internacional sobre citometría: ISAC(International Society for the Advancement of Cytometry) y aprovechar los recursos que tienen como:\\n\" +\n\"\\n\" +\n\"Programa de Liderazgo MARYLOU INGRAM SCHOLARS PROGRAM, de 5 años para formación de citomteristas\\n\" +\n\"Iniciativa de innovación CYTO-Innovation apoya a las propuestas innovadoras que contemplan la conversión de ideas en productos comerciales de alto impacto para ayudar a nuevos empresarios a aprovechar la tecnología de citometría\\n\" +\n\"\\n\" +\n\"Además en la ISAC tienen disponibles una serie de manuales e información de punta sobre la citometría para uso libre. El Dr. Cossarizza reiteró la invitación al personal IMSS a vincularse con la Universidad de Módena y su laboratorio aprovechando el prestigio que tiene el Laboratorio de Citometría de Flujo del Centro de Instrumentos del Centro Médico Nacional Siglo XXI.\";\n \n aviso2.resumen=\"Conferencia de Dr. Andrea Cossarizza del tema “Clinical Applications of Advanced Cytometry\\\"\";\n aviso2.nombre=\"Kevin Meza Gonzalez\";\n aviso2.estatusF=\"No Vigente\";\n \n aviso2.diaP=02;\n aviso2.mesP=03;\n aviso2.yearP=2020;\n \n aviso2.diaA=15;\n aviso2.mesA=02;\n aviso2.yearA=2020;\n \n aviso2.diaB=31;\n aviso2.mesB=03;\n aviso2.yearB=2020;\n \n System.out.println(aviso2);\n \n }", "public static void main(String[] args)\n {\n Director director = new Director();\n // Crear los objetos ConcreteBuilder\n BuilderCajita Menu1 = new ConstructorTipo1();\n BuilderCajita Menu2 = new ConstructorTipo2();\n BuilderCajita Menu3 = new ConstructorTipo3();\n // Construir un coche con equipamiento base\n director.construir( Menu1 );\n Cajita MenuTipo1 = Menu1.getCajita();\n // Construir un coche con equipamiento medio\n director.construir( Menu2 );\n Cajita MenuTipo2 = Menu2.getCajita();\n // Construir un coche con equipamiento full\n director.construir( Menu3 );\n Cajita MenuTipo3 = Menu3.getCajita();\n // Mostrar la información de cada coche creado\n mostrarCaracteristicas( MenuTipo1 );\n mostrarCaracteristicas( MenuTipo2 );\n mostrarCaracteristicas( MenuTipo3 );\n }", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "public static void main(String[] args) {\n\r\n\t\templeado emple = new empleado(\"Jonnhy\", 25, 1800);\r\n\t\tSystem.out.println(emple.toString());\r\n\t\t\r\n\t\tcomercial com = new comercial(\"Joseph\", 23, 1200, 100);\r\n\t\tSystem.out.println(com.toString());\r\n\t\t\r\n\t\trepartidor rep = new repartidor(\"Jonathan\", 45, 43, \"zona2\");\r\n\t\tSystem.out.println(rep.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "public Sistema(){\r\n\t\t\r\n\t}", "public GestioneDomandeD() {\n this.daoDomande = null;\n this.daoPunteggi = null;\n this.daoDipendenti = null;\n this.gestionePunteggiD = null;\n this.gestioneLog = null;\n this.gestioneBadge = null;\n }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "private void iniciarJogo(Dificuldade dificuldade) {\n\r\n\t\tswitch (dificuldade) {\r\n\t\tcase FACIL:\r\n\t\t\tthis.mapa = new MapaFacil();\r\n\t\t\tbreak;\r\n\t\tcase MEDIO:\r\n\t\t\tthis.mapa = new MapaMedio();\r\n\t\t\tbreak;\r\n\t\tcase DIFICIL:\r\n\t\t\tthis.mapa = new MapaDificil();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tthis.numeroBombas = mapa.getBombas();//SALVA O NUMERO DE BOMBAS\r\n\t\tthis.montarTela();//MONTA A TELA\r\n\r\n\t}", "public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }", "public Diccionario(){\r\n rz=new BinaryTree<Association<String,String>>(null, null, null, null);\r\n llenDic();\r\n tradOra();\r\n }", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public static void main(String[] args) {\n\t\tUsuario user = new Usuario(1, \"Joseph\", \"Climber\", \"Joseph Climber\", \"[email protected]\" \"222-3344\");\r\n\t\t\r\n\t\tpublic void mostrar() {\r\n\t\tSystem.out.println(\"\\n\\nUsuário:\\n\");\r\n\t\tSystem.out.println(\"Matrícula: \" + this.matricula);\r\n\t\tSystem.out.println(\"Login: \" + this.login);\r\n\t\tSystem.out.println(\"Senha: \" + this.senha);\r\n\t\tSystem.out.println(\"Nome: \" + this.nome);\r\n\t\tSystem.out.println(\"Email: \" + this.email);\r\n\t\tSystem.out.println(\"Telefone: \" + this.telefone);\r\n\t\t\r\n\t\tuser.mostrar();\r\n\t\t}\r\n\t\t\r\n\t\tItemDePedido Idp1 = new ItemDePedido();\r\n\t\tIdp1.setQtde(2);\r\n\t\tIdp1.setSubtotal(22.98);\r\n\r\n\r\n\t\tItemDePedido Idp2 = new ItemDePedido();\r\n\t\tIdp2.setQtde(1);\r\n\t\tIdp2.setSubtotal(98.75);\r\n\t\t\r\n\t\t\r\n\t\tEndereco end = new Endereco();\r\n\t\tend.setBairro(\"\");\r\n\t\tend.setCidade(\"\");\r\n\t\tend.setCep(\"\");\r\n\t\tend.setLogradouro(\"\");\r\n\t\tend.setComplemento(\"\");\r\n\t\tend.setEstado(\"\");\r\n\t\tend.setNumero(\"\");\r\n\t\t\r\n\t\tNotebook note = new Notebook();\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Intel\");\r\n\t\tnote.setNumeroNote(2002-4);\r\n\t\tnote.setDataCadastro(\"0001-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(2.000);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"CCE\");\r\n\t\tnote.setNumeroNote(2044-4);\r\n\t\tnote.setDataCadastro(\"0456-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1500.00);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Positivo\");\r\n\t\tnote.setNumeroNote(2012-4);\r\n\t\tnote.setDataCadastro(\"00063-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1.800);\r\n\t\t\r\n\t\t\r\n\t\tPedido pdd = new Pedido();\r\n\t\tpdd.setNumero(0001);\r\n\t\tpdd.setDataEmissao(\"23-11-2018\");\r\n\t\tpdd.setFormaDePagamento(\"\");\r\n\t\tpdd.setValorTotal(1.200);\r\n\t\tpdd.setSituacao(\"\");\r\n\t\t\r\n\t\t\r\n\t}", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public Alojamiento() {\r\n\t}", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "public static void main(String[] args) {\n Produto prod1 = new Produto(1, \"coca-cola\",200.99, true, 10 );\n\n //objeto instanciado pelo construtor 2\n Produto prod2 = new Produto();\n prod2.setCodigo(2);\n prod2.setNome(\"Fanta\");\n prod2.setDisponivel(true);\n prod2.setValor(300.88);\n prod2.setQuantidade(10);\n\n System.out.println(\"Empresa dos Produtos: \");\n\n\n }", "Compuesta createCompuesta();", "private void limpiarDatos() {\n\t\t\n\t}", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public Regras()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1100, 457, 1); \n prepare();\n if(MenuPrincipal.mundo == 1) //se o mundo anterior tiver sido MenuPrincipal\n som1 = MenuPrincipal.som2; //a música ficar com a mesma opção do mundo Menu Principal (a tocar ou sem som)}\n else if(MenuPrincipal.mundo == 3) //se o mundo anterior tiver sido MundoJogo\n som1 = MundoJogo.som3; //a música ficar com a mesma opção do mundo MundoJogo (a tocar ou sem som)\n imgsom2 = MenuPrincipal.imgsom1; //atualiza a imagem da coluna para ser igual à do mundo MenuPrincipal (mute/unmute)\n MenuPrincipal.mundo = 2; //atualizar 'mundo' para indicar que o mundo atual é o mundo Regras\n }", "private ControleurAcceuil(){ }", "public PlantillaFacturaLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.plantillafacturaDataAccess = new PlantillaFacturaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturas= new ArrayList<PlantillaFactura>();\r\n\t\t\tthis.plantillafactura= new PlantillaFactura();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturaObject=new Object();\r\n\t\t\tthis.plantillafacturasObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.plantillafacturaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.plantillafacturaDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public static void main(String[] args) {\n Punto p1 = new Punto(2, 2);\r\n Punto p2 = new Punto(1, 4);\r\n Punto p3 = new Punto(5, 2);\r\n Punto p4 = new Punto(10, 1);\r\n \r\n Datos d1 = new Datos();\r\n d1.add(p1);\r\n d1.add(p2);\r\n d1.add(p3);\r\n d1.add(p4);\r\n \r\n System.out.println(\"Distancia Media: \"+d1.distanciaMedia());\r\n \r\n \r\n // -- Act 2 Test\r\n //Correcta: Una librería para construir interfaces gráficas\r\n \r\n // -- Act 3 insertaPaisCiudad\r\n PaisCiudades pc = new PaisCiudades();\r\n System.out.println(\"Insertamos: España, Granada. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Granada\"));\r\n System.out.println(\"Insertamos: España, Zaidin. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Zaidin\"));\r\n System.out.println(\"Insertamos: PatataLandia, Huerto de Patatas. ¿Inserto?: \"+pc.insertaPaisCiudad(\"PatataLandia\", \"Huerto de Patatas\"));\r\n \r\n System.out.println(\"HashMap: \\n\"+pc.toString());\r\n \r\n // -- Act 4 Test\r\n //Correcta: public class Componente implements Printable\r\n \r\n }", "public GWDPEXPRESS_MY_ACHIEVEMENTS()\n{\najouterFenetre(\"EXPRESS_FEN_Search\", mWD_EXPRESS_FEN_Search);\najouterFenetre(\"EXPRESS_FEN_Profil\", mWD_EXPRESS_FEN_Profil);\najouterFenetre(\"EXPRESS_FEN_Achievement\", mWD_EXPRESS_FEN_Achievement);\n\n}", "public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}", "public static void main( String[] args )\n {\n int contador = 0;\n Perro perro1 = new Perro(\"Pepe\",4,\"Pug\"); \n //perro1.setNombre(\"Axel\");\n //System.out.println(perro1.getNombre());\n Perro perro2 = new Perro(\"Sasha\",3,\"Siberiano\"); \n //System.out.println(perro2.getNombre()); */\n JOptionPane.showMessageDialog(null, \"Unidad 2\",\"Misiontic\",JOptionPane.ERROR_MESSAGE);\n Perro perro3 = new Perro(\"Manchis\",7,\"Chandoso\"); \n System.out.println(Perro.contadorPerros);\n Perro.ladrar();\n }", "public static void main(String[] args) {\r\n\r\n Operatii o1 = new Operatii();\r\n o1.constructor();\r\n o1.print_bilete();\r\n o1.sorteaza();\r\n o1.print_bilete();\r\n o1.preturi_categorii();\r\n o1.pret_total();\r\n o1.plata_grup();\r\n o1.tag_id();\r\n o1.tag_id();\r\n o1.tag_id();\r\n o1.print_lista();\r\n o1.pret_lista();\r\n o1.plata();\r\n\r\n }", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "public VotacaoSegundoDia() {\n\n\t}", "public static void main(String args []){\n Vista miVista=new Vista();\n ListaEstudiantes miListaEstudiantes=new ListaEstudiantes();\n Grupo miGrupo=new Grupo();\n Controlador miControlador=new Controlador(miVista,miListaEstudiantes,miGrupo);\n miControlador.iniciar();\n\n }", "public void annuler(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public static void main(String[] args) {\n\n\n\t\tString nombre[]={\"juan\",\"Rafa\",\"Raul\",\"Jesus\",\"Diegotriste\",\"Lucholose\",\"lolo\"};\n\t\tString estudio[]={\"mates\",\"fisica\",\"deportes\",\"lenguaje\",\"biologia\",\"filosofia\"};\n\t\tint numeroMaq=0;\n\t\tint numEmp=0;\n\t\tint numAdmin=0;\n\t\tint numMaq=0;\n\t\tRandom aleatorio = new Random();\n\t\tEmpleado[] empleados =null;\n\t\tMaquinista[] maquinistas =null;\n\t\tAdministrativo[] administrativos = null;\n\n\t\tnumEmp=Metodos.pedirentero(\"cuantos empleados queres introducir\");\n\n\t\templeados = new Empleado[numEmp];\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\templeados[i]=new Empleado(nombre[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\tSystem.out.println( \"Empleado numero \" + (i+1) +empleados[i]);\n\n\n\t\t}\n\n\t\tnumMaq=Metodos.pedirentero(\"cuantos maquinistas queres introducir\");\n\t\tmaquinistas= new Maquinista[numMaq];\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tmaquinistas[i]=new Maquinista( nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20);\n\n\n\t\t}\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tSystem.out.println(\"maquinista numero \" + (i+1) + maquinistas[i]);\n\n\t\t}\n\t\tnumAdmin=Metodos.pedirentero(\"cuantos administrativos hay en la empresa\");\n\t\tadministrativos=new Administrativo[numAdmin];\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tadministrativos[i]=new Administrativo(nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,estudio[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tSystem.out.println(\"administrativo numero \" +(i+1)+administrativos[i] );\n\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\n\t\tvisualizar(empleados, maquinistas, administrativos);\n\n\t\tvisualizarMediaEdad(empleados, maquinistas, administrativos);\n\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSistemaStock sistema=new SistemaStock();\n\t\t\n\t\tProducto producto1=new Producto(1,\"Producto 1\",20.5);\n Producto producto2=new Producto(2,\"Producto 2\",15.5);\n System.out.println(producto1+\"\\n\"+producto2); \n try {\n\t\t\tsistema.agregarProducto(producto1.getDescripcion(),producto1.getPrecioUnitario());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n System.out.println(sistema.getProductos().toString());\n Sucursal sucursal1=new Sucursal(1,\"direccion 1\");\n Sucursal sucursal2=new Sucursal(2,\"direccion 2\");\n\t\ttry {\n\t\t\tsistema.agregarSucursal(sucursal1.getDireccion());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tEmpleado empleado1=new Empleado(\"Juan\",\"Gomez\",11111111,sucursal1);\n\t\tEmpleado empleado2=new Empleado(\"Julian\",\"Suarez\",22222222,sucursal2);\n\t\tSystem.out.println(empleado1+\"\\n\"+empleado2);\n\t\t\n\t\tLote lote1=new Lote(sucursal1, producto1,LocalDate.of(2019, 10, 1),100,100,true);\n\t Lote lote2=new Lote(sucursal1,producto2,LocalDate.of(2019,10,1),50,50,true);\n\t Lote lote3=new Lote(sucursal1,producto1,LocalDate.of(2019,10,3),40,40,true);\n\t Lote lote4=new Lote(sucursal2,producto1,LocalDate.of(2019, 10, 2),80,80,true);\n\t Lote lote5=new Lote(sucursal2, producto2,LocalDate.of(2019,10, 2),80,80,true);\n\t System.out.println(lote1+\"\\n\"+lote2+\"\\n\"+lote3+\"\\n\"+lote4+\"\\n\"+lote5);\n\t \n\t sucursal1.getLotes().add(lote1);\n\t sucursal1.getLotes().add(lote2);\n\t sucursal1.getLotes().add(lote3);\n\t sucursal2.getLotes().add(lote4);\n\t sucursal2.getLotes().add(lote5);\n\t \n\t \n\t System.out.println(\"Cantidad: \"+sucursal1.traerCantidad(producto1));\n\t System.out.println(\"Validar Stock: \"+sucursal1.validarConsumo(producto1, 80));\n\t \n\t \n\t \n\t \n\t sistema.getSucursales().add(sucursal1);\n\t sistema.getSucursales().add(sucursal2);\n\t \n\t Remito remito1=new Remito(LocalDate.of(2019,10,5),producto1,80,empleado1,\"Forma de pago 1\");\n\t Remito remito2=new Remito(LocalDate.of(2019,10,5).plusDays(1),producto1,80,empleado1,\"Forma de pago 1\");\n\t System.out.println(remito1);\n\t System.out.println(remito2);\n\t \n\t try {\n\t\t\tSystem.out.println(\"Remito Generado: \"+sistema.generarRemitoDeConsumo(LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n try {\n\t\tSystem.out.println(\"Remito Sucursal: \"+sistema.generarRemitoDeConsumo(sucursal1,LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t \n\t \n\t}", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "public GestionarRegistro() {\n initComponents();\n this.setLocationRelativeTo(null);\n d = new Donante();\n v = new Validacion();\n a=new Archivos();\n \n // r=new RegistroDonanteApto();\n\n }", "public Facturacion() {\n }", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "public static void main(String[] args) {\n Empleado arquitecto1 = new Arquitecto(\"Arq 1\", \"1\", 1, 1 ,\"1\" , 1 );\n Empleado arquitecto2 = new Arquitecto(\"Arq 2\", \"2\", 2, 2 ,\"2\" , 2 );\n Empleado arquitecto3 = new Arquitecto(\"Arq 3\", \"3\", 3, 3 ,\"3\" , 3 );\n Empleado maestro1 = new Maestro(\"Mae 1\", \"1\", 1, 1, \"1\", 1);\n Empleado maestro2 = new Maestro(\"Mae 2\", \"2\", 2, 2, \"2\", 2);\n Empleado maestro3 = new Maestro(\"Mae 3\", \"3\", 3, 3, \"3\", 3);\n Empleado obrero1 = new Obrero(\"Obr 1\", \"1\", 1, 1, \"1\", 1);\n Empleado obrero2 = new Obrero(\"Obr 2\", \"2\", 2, 2, \"2\", 2);\n Empleado obrero3 = new Obrero(\"Obr 3\", \"3\", 3, 3, \"3\", 3);\n//Empresa\n //Lista de Empelado en donde van a estar los empleados de toda la empresa\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(arquitecto1);\n totalEmployeesOnSite.add(maestro1);\n totalEmployeesOnSite.add(obrero1);\n //Lista de obreros en la obra\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n //Lista ed Obras realizadas\n ArrayList<Obra> doneWorks = new ArrayList<>();\n Obra obra1 = new Obra();\n doneWorks.add(obra1);\n Empresa empresa1 = new Empresa(\"Empresa 1\", totalEmployeesOnSite, doneWorks);\n\n System.out.println(empresa1.toString());\n\n//Arquitecto\n\t /* Empleado arquitecto1 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n Empleado arquitecto2 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n//Maestro\n\t Empleado maestro1 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n Empleado maestro2 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n//Obrero\n\t Empleado obrero1 = new Obrero(\"Matilda\", \"12549632\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n Empleado obrero2 = new Obrero(\"Matilda2\", \"125496322\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n//Array Empleado que va a ir a\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(empleado4);\n\n System.out.println(empleado1.getWork());\n System.out.println(empleado2.getWork());\n System.out.println(empleado3.getWork());\n\n ArrayList<Empleado> totalEmployees = new ArrayList<>();\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n Obra obra1 = new Obra(\"Lo De Jaz\", 2, 54, 7, totalEmployeesOnSite );\n\n activeWorks.add(obra1);\n\n totalEmployees.add(empleado1);\n totalEmployees.add(empleado2);\n\n Empresa empresa = new Empresa(\"Lo de Jaz\", totalEmployees, activeWorks);\n\n System.out.println(empresa.toString());\n */\n\n }", "public Exercicio(){\n \n }", "public Prova() {}", "private void iniciar() {\r\n\t\tprincipal = new Principal();\r\n\t\tgestionCientificos=new GestionCientificos();\r\n\t\tgestionProyectos=new GestionProyectos();\r\n\t\tgestionAsignado= new GestionAsignado();\r\n\t\tcontroller= new Controller();\r\n\t\tcientificoServ = new CientificoServ();\r\n\t\tproyectoServ = new ProyectoServ();\r\n\t\tasignadoA_Serv = new AsignadoA_Serv();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tprincipal.setControlador(controller);\r\n\t\tgestionCientificos.setControlador(controller);\r\n\t\tgestionProyectos.setControlador(controller);\r\n\t\tgestionAsignado.setControlador(controller);\r\n\t\tcientificoServ.setControlador(controller);\r\n\t\tproyectoServ.setControlador(controller);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tcontroller.setPrincipal(principal);\r\n\t\tcontroller.setGestionCientificos(gestionCientificos);\r\n\t\tcontroller.setGestionProyectos(gestionProyectos);\r\n\t\tcontroller.setGestionAsignado(gestionAsignado);\r\n\t\tcontroller.setCientificoService(cientificoServ);\r\n\t\tcontroller.setProyectoService(proyectoServ);\r\n\t\tcontroller.setAsignadoService(asignadoA_Serv);\r\n\t\t\t\t\r\n\t\tprincipal.setVisible(true);\r\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "Oracion createOracion();", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "public static void main(String[] args) {\n\t\tEmpleados empleado1 = new Empleados(\"Carlos Arquero\",16000,2016,6,03);\r\n\t\tEmpleados empleado2 = new Empleados(\"Luisa Lopez\",25000,2010,12,19);\r\n\t\tEmpleados empleado3 = new Empleados(\"Juaquin Moreno\",12000,2017,11,27);\t\r\n\t\r\n\t\templeado1.subeSueldo(4);\r\n\t\templeado2.subeSueldo(6);\r\n\t\templeado3.subeSueldo(3);\r\n\t\tSystem.out.println(\"nombre :\"+empleado1.dameNombre()+\" sueldo :\"+empleado1.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado1.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado2.dameNombre()+\" sueldo :\"+empleado2.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado2.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado3.dameNombre()+\" sueldo :\"+empleado3.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado3.damealtaContrato());\r\n\t}", "public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public static void main(String[] args) {\n\t\tSecretario s1 = new Secretario(\"Mauro\", \"Pérez\", \"2168\", \"Calle Falsa\", 999, 500, true, \"Fax\");\n\t\tVendedor v1 = new Vendedor(\"Pepe\", \"Martinez\", \"2177\", \"Calle de atras\", 998, 750, 669, \"Alguna\", 0.10);\n\t\tVendedor v2 = new Vendedor(\"Antonio\", \"Martinez\", \"2144\", \"Calle de delante\", 996, 750, 669, \"Alguna\", 0.10);\n\t\tJefeZona j1 = new JefeZona(\"Manolo\", \"Ortega\", \"2155\", \"Una calle\", 997, 1000, true);\n\t\t\n\t\tClientes c1 = new Clientes(\"Cliente 1\");\n\t\tClientes c2 = new Clientes(\"Cliente 2\");\n\t\t\n\t\ts1.setSupervisor(v1);\n\t\t\n\t\tv1.agregarCliente(c1);\n\t\tv1.agregarCliente(c2);\n\t\tv1.eliminarCliente(c1);\n\t\t\n\t\tj1.agregarVendedor(v1);\n\t\tj1.agregarVendedor(v2);\n\t\t\n\t\tSystem.out.println(v1.toString());\n\t\tv1.incrementarSalario();\n\t\tSystem.out.println(v1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(s1.toString());\n\t\ts1.incrementarSalario();\n\t\tSystem.out.println(s1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(j1.toString());\n\t\tj1.incrementarSalario();\n\t\tSystem.out.println(j1.toString());\n\t}" ]
[ "0.7377752", "0.65339386", "0.64417064", "0.6438846", "0.64319617", "0.64271235", "0.6400308", "0.6366435", "0.63249683", "0.630304", "0.6263739", "0.62486464", "0.6224298", "0.62239826", "0.6218279", "0.62063843", "0.6203799", "0.61861223", "0.6183947", "0.6160464", "0.6147633", "0.61425126", "0.61385447", "0.6123303", "0.6122872", "0.6086862", "0.6083601", "0.6075184", "0.6070585", "0.606093", "0.6053121", "0.6049251", "0.6041549", "0.60385674", "0.60235274", "0.60227966", "0.6022281", "0.6021521", "0.60063004", "0.6005902", "0.6003151", "0.599861", "0.59964657", "0.5994334", "0.5987294", "0.59818035", "0.5980259", "0.59778196", "0.59753203", "0.59690285", "0.5967779", "0.59535086", "0.5951001", "0.59508896", "0.59484065", "0.59452057", "0.5944495", "0.59416604", "0.5936006", "0.5930002", "0.5927202", "0.5925166", "0.5917946", "0.5916738", "0.591191", "0.5911444", "0.5890738", "0.5886478", "0.58737856", "0.5873604", "0.5872944", "0.5871109", "0.5870623", "0.58691597", "0.58646643", "0.58633035", "0.58553505", "0.58545804", "0.5848604", "0.5847161", "0.58455676", "0.5841945", "0.58402604", "0.5833898", "0.5832869", "0.5829405", "0.58245313", "0.5817634", "0.58157057", "0.58140635", "0.58094984", "0.5798687", "0.5797811", "0.5792435", "0.57874537", "0.5783432", "0.5782366", "0.5781169", "0.5777446", "0.5772512", "0.57699543" ]
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() { jToggleButton1 = new javax.swing.JToggleButton(); jTabbedPane1 = new javax.swing.JTabbedPane(); PanelProdutoPes = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); TextPesquisaProd = new javax.swing.JTextField(); ButtonPesquisar = new javax.swing.JButton(); ButtonAdicionar = new javax.swing.JButton(); ButtonListar = new javax.swing.JButton(); ComboFiltro = new javax.swing.JComboBox(); PanelCadastro = new javax.swing.JPanel(); PanelDados = new javax.swing.JPanel(); ComboStatus = new javax.swing.JComboBox(); ButtonNewSub = new javax.swing.JButton(); LabelDataCad = new javax.swing.JLabel(); TextCodigo = new javax.swing.JTextField(); ComboSubGrupo = new javax.swing.JComboBox(); LabelDescricao = new javax.swing.JLabel(); ComboGrupo = new javax.swing.JComboBox(); LabelCodigo = new javax.swing.JLabel(); LabelStatus = new javax.swing.JLabel(); LabelGrupo = new javax.swing.JLabel(); ButtonNewGrupo = new javax.swing.JButton(); TextDescricao = new javax.swing.JTextField(); LabelSubgrupo = new javax.swing.JLabel(); LabelFornecedor = new javax.swing.JLabel(); ButtonNewForn = new javax.swing.JButton(); LabelDescriçaoECF = new javax.swing.JLabel(); TextDescricaoECF = new javax.swing.JTextField(); LabelUnidade = new javax.swing.JLabel(); ComboUnidade = new javax.swing.JComboBox(); ButtonNewUni = new javax.swing.JButton(); LabelCodBarras = new javax.swing.JLabel(); TextCodBarras = new javax.swing.JTextField(); LabelModelo = new javax.swing.JLabel(); TextModelo = new javax.swing.JTextField(); LabelMarca = new javax.swing.JLabel(); TextMarca = new javax.swing.JTextField(); ButtonNovo = new javax.swing.JButton(); ButtonExcluir = new javax.swing.JButton(); ButtonEditar = new javax.swing.JButton(); ButtonSalvar = new javax.swing.JButton(); ButtonCancelar = new javax.swing.JButton(); DateCadastro = new com.toedter.calendar.JDateChooser(); TextCodigo2 = new javax.swing.JTextField(); LabelGrupo1 = new javax.swing.JLabel(); TextCodigo3 = new javax.swing.JTextField(); ButtonNewForn1 = new javax.swing.JButton(); ButtonNewForn2 = new javax.swing.JButton(); TextCodigo11 = new javax.swing.JTextField(); ButtonNewUni1 = new javax.swing.JButton(); jTabbedPane8 = new javax.swing.JTabbedPane(); PanelFinanceiro4 = new javax.swing.JPanel(); LabelModelo12 = new javax.swing.JLabel(); TextModelo12 = new javax.swing.JTextField(); TextModelo13 = new javax.swing.JTextField(); LabelModelo13 = new javax.swing.JLabel(); LabelModelo14 = new javax.swing.JLabel(); TextModelo14 = new javax.swing.JTextField(); TextModelo15 = new javax.swing.JTextField(); LabelModelo15 = new javax.swing.JLabel(); TextModelo16 = new javax.swing.JTextField(); LabelModelo16 = new javax.swing.JLabel(); LabelModelo17 = new javax.swing.JLabel(); TextModelo17 = new javax.swing.JTextField(); TextModelo18 = new javax.swing.JTextField(); LabelModelo18 = new javax.swing.JLabel(); TextModelo19 = new javax.swing.JTextField(); LabelModelo19 = new javax.swing.JLabel(); TextModelo20 = new javax.swing.JTextField(); LabelModelo20 = new javax.swing.JLabel(); LabelModelo21 = new javax.swing.JLabel(); TextModelo21 = new javax.swing.JTextField(); jPanel13 = new javax.swing.JPanel(); jScrollPane5 = new javax.swing.JScrollPane(); AreaObs2 = new javax.swing.JTextArea(); LabelObservacao2 = new javax.swing.JLabel(); PanelImagem2 = new javax.swing.JPanel(); LabelImagem2 = new javax.swing.JLabel(); jPanel14 = new javax.swing.JPanel(); ButtonNewPromo13 = new javax.swing.JButton(); jPanel15 = new javax.swing.JPanel(); TextValorCusto28 = new javax.swing.JTextField(); LabelValorCus22 = new javax.swing.JLabel(); TextValorCusto29 = new javax.swing.JTextField(); LabelValorCus23 = new javax.swing.JLabel(); TextValorCusto30 = new javax.swing.JTextField(); LabelValorCus24 = new javax.swing.JLabel(); TextValorCusto31 = new javax.swing.JTextField(); LabelValorCus25 = new javax.swing.JLabel(); TextValorCusto32 = new javax.swing.JTextField(); LabelValorCus26 = new javax.swing.JLabel(); PanelEstoque = new javax.swing.JPanel(); LabelImEstoque = new javax.swing.JLabel(); PanelTextEstoq = new javax.swing.JPanel(); LabelEstoque = new javax.swing.JLabel(); LabelAtual = new javax.swing.JLabel(); LabelMax = new javax.swing.JLabel(); CheckBoxLimite = new javax.swing.JCheckBox(); TextAtual = new javax.swing.JTextField(); TextMax = new javax.swing.JTextField(); LabelMax1 = new javax.swing.JLabel(); TextMax1 = new javax.swing.JTextField(); jSeparator1 = new javax.swing.JSeparator(); LabelCodigo1 = new javax.swing.JLabel(); TextCodigo1 = new javax.swing.JTextField(); ButtonNewUni2 = new javax.swing.JButton(); jPanel21 = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); jTableSubGrupo1 = new javax.swing.JTable(); ButtonCancelar2 = new javax.swing.JButton(); ButtonCancelar3 = new javax.swing.JButton(); jSeparator2 = new javax.swing.JSeparator(); jTabbedPane7 = new javax.swing.JTabbedPane(); jPanel11 = new javax.swing.JPanel(); ButtonNewPromo10 = new javax.swing.JButton(); LabelValorCus16 = new javax.swing.JLabel(); TextValorCusto20 = new javax.swing.JTextField(); TextValorCusto21 = new javax.swing.JTextField(); LabelValorCus17 = new javax.swing.JLabel(); TextValorCusto22 = new javax.swing.JTextField(); ButtonNewPromo11 = new javax.swing.JButton(); TextValorCusto23 = new javax.swing.JTextField(); ButtonNewPromo12 = new javax.swing.JButton(); jSeparator7 = new javax.swing.JSeparator(); jPanel8 = new javax.swing.JPanel(); TextValorCusto24 = new javax.swing.JTextField(); LabelValorCus18 = new javax.swing.JLabel(); TextValorCusto25 = new javax.swing.JTextField(); LabelValorCus19 = new javax.swing.JLabel(); ComboUnidade6 = new javax.swing.JComboBox(); LabelUnidade6 = new javax.swing.JLabel(); ComboUnidade7 = new javax.swing.JComboBox(); LabelUnidade7 = new javax.swing.JLabel(); ComboUnidade8 = new javax.swing.JComboBox(); LabelUnidade8 = new javax.swing.JLabel(); ComboUnidade9 = new javax.swing.JComboBox(); LabelUnidade9 = new javax.swing.JLabel(); jPanel12 = new javax.swing.JPanel(); TextValorCusto26 = new javax.swing.JTextField(); LabelValorCus20 = new javax.swing.JLabel(); TextValorCusto27 = new javax.swing.JTextField(); LabelValorCus21 = new javax.swing.JLabel(); jToggleButton1.setText("jToggleButton1"); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("3D - Soluções Tecnológicas - Produto"); jTabbedPane1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N jTable1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {"0000010102", null, "Desktop", null, "Pauta", "100", "ATIVO"} }, new String [] { "Código", "Código de Barras", "Descrição Completa", "Grupo", "Fornecedor", "Estoque", "Status" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTable1.setMaximumSize(new java.awt.Dimension(2147483647, 200)); jTable1.setMinimumSize(new java.awt.Dimension(770, 800)); jTable1.setRowHeight(20); jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jTable1.getTableHeader().setReorderingAllowed(false); jScrollPane1.setViewportView(jTable1); if (jTable1.getColumnModel().getColumnCount() > 0) { jTable1.getColumnModel().getColumn(0).setMinWidth(100); jTable1.getColumnModel().getColumn(0).setPreferredWidth(100); jTable1.getColumnModel().getColumn(0).setMaxWidth(100); jTable1.getColumnModel().getColumn(1).setMinWidth(120); jTable1.getColumnModel().getColumn(1).setPreferredWidth(120); jTable1.getColumnModel().getColumn(1).setMaxWidth(120); jTable1.getColumnModel().getColumn(2).setMinWidth(300); jTable1.getColumnModel().getColumn(2).setPreferredWidth(300); jTable1.getColumnModel().getColumn(2).setMaxWidth(300); jTable1.getColumnModel().getColumn(3).setMinWidth(200); jTable1.getColumnModel().getColumn(3).setPreferredWidth(200); jTable1.getColumnModel().getColumn(3).setMaxWidth(200); jTable1.getColumnModel().getColumn(4).setMinWidth(200); jTable1.getColumnModel().getColumn(4).setPreferredWidth(200); jTable1.getColumnModel().getColumn(4).setMaxWidth(200); jTable1.getColumnModel().getColumn(5).setMinWidth(100); jTable1.getColumnModel().getColumn(5).setPreferredWidth(100); jTable1.getColumnModel().getColumn(5).setMaxWidth(100); jTable1.getColumnModel().getColumn(6).setMinWidth(100); jTable1.getColumnModel().getColumn(6).setPreferredWidth(100); jTable1.getColumnModel().getColumn(6).setMaxWidth(100); } TextPesquisaProd.setFont(new java.awt.Font("Arial", 0, 20)); // NOI18N TextPesquisaProd.setForeground(new java.awt.Color(153, 153, 153)); TextPesquisaProd.setText("Selecione uma das opções de pesquisa ..."); TextPesquisaProd.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextPesquisaProd.setPreferredSize(new java.awt.Dimension(500, 25)); TextPesquisaProd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextPesquisaProdActionPerformed(evt); } }); ButtonPesquisar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/search.png"))); // NOI18N ButtonPesquisar.setText("Pesquisar Produto"); ButtonPesquisar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonPesquisarActionPerformed(evt); } }); ButtonAdicionar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add.png"))); // NOI18N ButtonAdicionar.setText("Adicionar "); ButtonAdicionar.setMaximumSize(new java.awt.Dimension(300, 25)); ButtonAdicionar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonAdicionarActionPerformed(evt); } }); ButtonListar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonListar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/abrircli.png"))); // NOI18N ButtonListar.setText("Listar Produtos"); ButtonListar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonListarActionPerformed(evt); } }); ComboFiltro.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N ComboFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Código Interno", "Código Externo", "Código de Barras", "Descrição", "Grupo", "Subgrupo", "Data de Cadastro" })); javax.swing.GroupLayout PanelProdutoPesLayout = new javax.swing.GroupLayout(PanelProdutoPes); PanelProdutoPes.setLayout(PanelProdutoPesLayout); PanelProdutoPesLayout.setHorizontalGroup( PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelProdutoPesLayout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1295, Short.MAX_VALUE) .addGroup(PanelProdutoPesLayout.createSequentialGroup() .addComponent(TextPesquisaProd, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(3, 3, 3) .addComponent(ButtonListar) .addGap(2, 2, 2) .addComponent(ButtonAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(5, 5, 5)) ); PanelProdutoPesLayout.setVerticalGroup( PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup() .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelProdutoPesLayout.createSequentialGroup() .addContainerGap() .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false) .addComponent(ButtonListar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(ButtonAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(ButtonPesquisar))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup() .addGap(1, 1, 1) .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextPesquisaProd, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(3, 3, 3) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) .addGap(5, 5, 5)) ); jTabbedPane1.addTab("Pesquisar Produto", PanelProdutoPes); PanelDados.setBorder(javax.swing.BorderFactory.createEtchedBorder()); ComboStatus.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ativo", "Bloqueado", "Inativo" })); ComboStatus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboStatusActionPerformed(evt); } }); ButtonNewSub.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N ButtonNewSub.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewSubActionPerformed(evt); } }); LabelDataCad.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelDataCad.setText("Data de cadastro:"); TextCodigo.setEditable(false); TextCodigo.setBackground(new java.awt.Color(255, 255, 255)); TextCodigo.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodigo.setForeground(new java.awt.Color(153, 153, 153)); TextCodigo.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodigo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodigoActionPerformed(evt); } }); ComboSubGrupo.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N LabelDescricao.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelDescricao.setText("Descrição:"); ComboGrupo.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N LabelCodigo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelCodigo.setText("Código:"); LabelStatus.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelStatus.setText("Status:"); LabelGrupo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelGrupo.setText("Grupo:"); ButtonNewGrupo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N ButtonNewGrupo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewGrupoActionPerformed(evt); } }); TextDescricao.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextDescricao.setForeground(new java.awt.Color(153, 153, 153)); TextDescricao.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextDescricao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextDescricaoActionPerformed(evt); } }); LabelSubgrupo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelSubgrupo.setText("Subgrupo:"); LabelFornecedor.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelFornecedor.setText("Fornecedor:"); ButtonNewForn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N ButtonNewForn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewFornActionPerformed(evt); } }); LabelDescriçaoECF.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelDescriçaoECF.setText("Descrição PDV:"); TextDescricaoECF.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextDescricaoECF.setForeground(new java.awt.Color(153, 153, 153)); TextDescricaoECF.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextDescricaoECF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextDescricaoECFActionPerformed(evt); } }); LabelUnidade.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelUnidade.setText("Unidade:"); ComboUnidade.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboUnidade.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboUnidadeActionPerformed(evt); } }); ButtonNewUni.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N ButtonNewUni.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewUniActionPerformed(evt); } }); LabelCodBarras.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelCodBarras.setText("Cód. Barras:"); TextCodBarras.setEditable(false); TextCodBarras.setBackground(new java.awt.Color(255, 255, 255)); TextCodBarras.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodBarras.setForeground(new java.awt.Color(153, 153, 153)); TextCodBarras.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodBarras.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodBarrasActionPerformed(evt); } }); LabelModelo.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo.setText("Modelo:"); TextModelo.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo.setForeground(new java.awt.Color(153, 153, 153)); TextModelo.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModeloActionPerformed(evt); } }); LabelMarca.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelMarca.setText("Marca:"); TextMarca.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextMarca.setForeground(new java.awt.Color(153, 153, 153)); TextMarca.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextMarca.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextMarcaActionPerformed(evt); } }); ButtonNovo.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add.png"))); // NOI18N ButtonNovo.setText("Novo Produto"); ButtonExcluir.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/editar.png"))); // NOI18N ButtonExcluir.setText("Editar Cadastro"); ButtonExcluir.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonExcluirActionPerformed(evt); } }); ButtonEditar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/close24x24.png"))); // NOI18N ButtonEditar.setText("Excluir Cadastro"); ButtonEditar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonEditarActionPerformed(evt); } }); ButtonSalvar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Save.png"))); // NOI18N ButtonSalvar.setText("Salvar Cadastro"); ButtonSalvar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonSalvarActionPerformed(evt); } }); ButtonCancelar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cancelarCli.png"))); // NOI18N ButtonCancelar.setText("Cancelar"); ButtonCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonCancelarActionPerformed(evt); } }); DateCadastro.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N DateCadastro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/Calendar.png"))); TextCodigo2.setEditable(false); TextCodigo2.setBackground(new java.awt.Color(255, 255, 255)); TextCodigo2.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodigo2.setForeground(new java.awt.Color(153, 153, 153)); TextCodigo2.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodigo2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodigo2ActionPerformed(evt); } }); LabelGrupo1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelGrupo1.setText("NCM/SH:"); TextCodigo3.setEditable(false); TextCodigo3.setBackground(new java.awt.Color(255, 255, 255)); TextCodigo3.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodigo3.setForeground(new java.awt.Color(153, 153, 153)); TextCodigo3.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodigo3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodigo3ActionPerformed(evt); } }); ButtonNewForn1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pesquisarncm.png"))); // NOI18N ButtonNewForn1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewForn1ActionPerformed(evt); } }); ButtonNewForn2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/print.png"))); // NOI18N ButtonNewForn2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewForn2ActionPerformed(evt); } }); TextCodigo11.setEditable(false); TextCodigo11.setBackground(new java.awt.Color(255, 255, 255)); TextCodigo11.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodigo11.setForeground(new java.awt.Color(153, 153, 153)); TextCodigo11.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodigo11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodigo11ActionPerformed(evt); } }); ButtonNewUni1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N ButtonNewUni1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewUni1ActionPerformed(evt); } }); jTabbedPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Dados Complementares ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N jTabbedPane8.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N PanelFinanceiro4.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); LabelModelo12.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo12.setText("Valor Compra:"); TextModelo12.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo12.setForeground(new java.awt.Color(153, 153, 153)); TextModelo12.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo12ActionPerformed(evt); } }); TextModelo13.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo13.setForeground(new java.awt.Color(153, 153, 153)); TextModelo13.setText("100000,00"); TextModelo13.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo13ActionPerformed(evt); } }); LabelModelo13.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo13.setText("Valor Venda:"); LabelModelo14.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo14.setText("Preço Venda Min.:"); TextModelo14.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo14.setForeground(new java.awt.Color(153, 153, 153)); TextModelo14.setText("100000,00"); TextModelo14.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo14ActionPerformed(evt); } }); TextModelo15.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo15.setForeground(new java.awt.Color(153, 153, 153)); TextModelo15.setText("100000,00"); TextModelo15.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo15.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo15ActionPerformed(evt); } }); LabelModelo15.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo15.setText("Preço Sugerido:"); TextModelo16.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo16.setForeground(new java.awt.Color(153, 153, 153)); TextModelo16.setText("100000,00"); TextModelo16.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo16.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo16ActionPerformed(evt); } }); LabelModelo16.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo16.setText("Custo Medio Liq.:"); LabelModelo17.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo17.setText("Preço Lucro Zero:"); TextModelo17.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo17.setForeground(new java.awt.Color(153, 153, 153)); TextModelo17.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo17.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo17ActionPerformed(evt); } }); TextModelo18.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo18.setForeground(new java.awt.Color(153, 153, 153)); TextModelo18.setText("100000,00"); TextModelo18.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo18.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo18ActionPerformed(evt); } }); LabelModelo18.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo18.setText("Preço Lucro Max.:"); TextModelo19.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo19.setForeground(new java.awt.Color(153, 153, 153)); TextModelo19.setText("100000,00"); TextModelo19.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo19.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo19ActionPerformed(evt); } }); LabelModelo19.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo19.setText("Preço Lucro Min.:"); TextModelo20.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo20.setForeground(new java.awt.Color(153, 153, 153)); TextModelo20.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo20ActionPerformed(evt); } }); LabelModelo20.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo20.setText("Markup:"); LabelModelo21.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelModelo21.setText("Valor Promocional:"); TextModelo21.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextModelo21.setForeground(new java.awt.Color(153, 153, 153)); TextModelo21.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextModelo21.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextModelo21ActionPerformed(evt); } }); javax.swing.GroupLayout PanelFinanceiro4Layout = new javax.swing.GroupLayout(PanelFinanceiro4); PanelFinanceiro4.setLayout(PanelFinanceiro4Layout); PanelFinanceiro4Layout.setHorizontalGroup( PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addContainerGap() .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo12) .addGap(24, 24, 24)) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(TextModelo12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1))) .addGap(6, 6, 6) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(LabelModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(LabelModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(TextModelo18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(LabelModelo19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo18) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextModelo20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGap(1, 1, 1) .addComponent(TextModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(LabelModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); PanelFinanceiro4Layout.setVerticalGroup( PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo16) .addGap(1, 1, 1) .addComponent(TextModelo16, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo15) .addGap(1, 1, 1) .addComponent(TextModelo15, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo14) .addGap(1, 1, 1) .addComponent(TextModelo14, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelModelo12) .addComponent(LabelModelo13)) .addGap(1, 1, 1) .addComponent(TextModelo12, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelModelo17) .addComponent(LabelModelo19) .addComponent(LabelModelo18) .addComponent(LabelModelo20)) .addGap(1, 1, 1) .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextModelo17, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextModelo18, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(PanelFinanceiro4Layout.createSequentialGroup() .addComponent(LabelModelo21) .addGap(1, 1, 1) .addComponent(TextModelo21, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(16, 16, 16)) ); jTabbedPane8.addTab(" Valores Principais ", PanelFinanceiro4); AreaObs2.setColumns(1); AreaObs2.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N AreaObs2.setLineWrap(true); AreaObs2.setRows(1); AreaObs2.setPreferredSize(null); jScrollPane5.setViewportView(AreaObs2); LabelObservacao2.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelObservacao2.setText("Observação:"); PanelImagem2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); LabelImagem2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); LabelImagem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/ProdutoFoto.png"))); // NOI18N LabelImagem2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); LabelImagem2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); javax.swing.GroupLayout PanelImagem2Layout = new javax.swing.GroupLayout(PanelImagem2); PanelImagem2.setLayout(PanelImagem2Layout); PanelImagem2Layout.setHorizontalGroup( PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelImagem2Layout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(LabelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); PanelImagem2Layout.setVerticalGroup( PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelImagem2Layout.createSequentialGroup() .addComponent(LabelImagem2) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelObservacao2) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(PanelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup() .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(PanelImagem2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel13Layout.createSequentialGroup() .addComponent(LabelObservacao2) .addGap(1, 1, 1) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(5, 5, 5)) ); jTabbedPane8.addTab(" Observação / Imagem Produto", jPanel13); ButtonNewPromo13.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNewPromo13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N ButtonNewPromo13.setText("Adicionar Uma Promoção ao Produto"); ButtonNewPromo13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewPromo13ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addContainerGap() .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE) .addContainerGap()) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addContainerGap() .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(70, Short.MAX_VALUE)) ); jTabbedPane8.addTab(" Promoção ", jPanel14); TextValorCusto28.setEditable(false); TextValorCusto28.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto28.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto28.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto28.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto28.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto28ActionPerformed(evt); } }); LabelValorCus22.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus22.setText("Codigo Balança:"); TextValorCusto29.setEditable(false); TextValorCusto29.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto29.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto29.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto29.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto29.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto29ActionPerformed(evt); } }); LabelValorCus23.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus23.setText("Peso:"); TextValorCusto30.setEditable(false); TextValorCusto30.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto30.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto30.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto30.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto30.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto30ActionPerformed(evt); } }); LabelValorCus24.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus24.setText("Porcento Comissao:"); TextValorCusto31.setEditable(false); TextValorCusto31.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto31.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto31.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto31.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto31.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto31ActionPerformed(evt); } }); LabelValorCus25.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus25.setText("Ponto Pedido:"); TextValorCusto32.setEditable(false); TextValorCusto32.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto32.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto32.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto32.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto32.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto32ActionPerformed(evt); } }); LabelValorCus26.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus26.setText("Lote Economico Compra:"); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelValorCus26) .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelValorCus24) .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelValorCus25) .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel15Layout.createSequentialGroup() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelValorCus22) .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(LabelValorCus23) .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(316, Short.MAX_VALUE)) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(LabelValorCus22) .addGap(1, 1, 1) .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(LabelValorCus23) .addGap(1, 1, 1) .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(LabelValorCus26) .addGap(1, 1, 1) .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(LabelValorCus25) .addGap(1, 1, 1) .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel15Layout.createSequentialGroup() .addComponent(LabelValorCus24) .addGap(1, 1, 1) .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))) ); jTabbedPane8.addTab(" Dados Complementares ", jPanel15); javax.swing.GroupLayout PanelDadosLayout = new javax.swing.GroupLayout(PanelDados); PanelDados.setLayout(PanelDadosLayout); PanelDadosLayout.setHorizontalGroup( PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createSequentialGroup() .addContainerGap() .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelCodigo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelCodBarras) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextCodBarras, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonNewForn2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(LabelStatus) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(PanelDadosLayout.createSequentialGroup() .addComponent(LabelDescricao) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(TextDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(PanelDadosLayout.createSequentialGroup() .addComponent(ButtonNovo, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(3, 3, 3) .addComponent(ButtonExcluir) .addGap(3, 3, 3) .addComponent(ButtonEditar) .addGap(3, 3, 3) .addComponent(ButtonSalvar) .addGap(3, 3, 3) .addComponent(ButtonCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelFornecedor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextCodigo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelDataCad) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(DateCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup() .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelModelo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelMarca) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelGrupo1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(1, 1, 1) .addComponent(TextCodigo3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelDescriçaoECF) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextDescricaoECF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(LabelUnidade) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup() .addComponent(LabelGrupo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelSubgrupo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboSubGrupo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(ButtonNewUni1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addContainerGap()) ); PanelDadosLayout.setVerticalGroup( PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createSequentialGroup() .addGap(17, 17, 17) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(TextCodBarras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelCodigo) .addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelStatus) .addComponent(LabelCodBarras))) .addComponent(ButtonNewForn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelGrupo1) .addComponent(TextCodigo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelDescricao) .addComponent(TextDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelModelo) .addComponent(LabelMarca)) .addComponent(TextMarca, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(ButtonNewUni1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextDescricaoECF, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelDescriçaoECF) .addComponent(LabelUnidade) .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ComboSubGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelSubgrupo))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelGrupo))) .addGap(11, 11, 11) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(LabelDataCad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(DateCadastro, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelFornecedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextCodigo11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 179, Short.MAX_VALUE) .addGap(5, 5, 5) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(ButtonNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ButtonSalvar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(ButtonCancelar) .addComponent(ButtonEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(ButtonExcluir)) .addGap(5, 5, 5)) ); PanelEstoque.setBorder(javax.swing.BorderFactory.createEtchedBorder()); LabelImEstoque.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/shipping-icon.png"))); // NOI18N LabelImEstoque.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); LabelImEstoque.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { LabelImEstoqueMouseClicked(evt); } }); PanelTextEstoq.setBorder(javax.swing.BorderFactory.createEtchedBorder()); LabelEstoque.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelEstoque.setText("Estoque do Produto"); javax.swing.GroupLayout PanelTextEstoqLayout = new javax.swing.GroupLayout(PanelTextEstoq); PanelTextEstoq.setLayout(PanelTextEstoqLayout); PanelTextEstoqLayout.setHorizontalGroup( PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelTextEstoqLayout.createSequentialGroup() .addContainerGap() .addComponent(LabelEstoque) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); PanelTextEstoqLayout.setVerticalGroup( PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelTextEstoqLayout.createSequentialGroup() .addGap(3, 3, 3) .addComponent(LabelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(3, 3, 3)) ); LabelAtual.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelAtual.setText("Estoque Atual:"); LabelMax.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelMax.setText("Minimo:"); CheckBoxLimite.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N CheckBoxLimite.setText("Aviso de Limites"); TextAtual.setEditable(false); TextAtual.setBackground(new java.awt.Color(204, 204, 204)); TextAtual.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N TextAtual.setHorizontalAlignment(javax.swing.JTextField.CENTER); TextMax.setEditable(false); TextMax.setBackground(new java.awt.Color(204, 204, 204)); TextMax.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N TextMax.setHorizontalAlignment(javax.swing.JTextField.CENTER); LabelMax1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelMax1.setText("Maximo:"); TextMax1.setEditable(false); TextMax1.setBackground(new java.awt.Color(204, 204, 204)); TextMax1.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N TextMax1.setHorizontalAlignment(javax.swing.JTextField.CENTER); LabelCodigo1.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelCodigo1.setText("Almoxarifado:"); TextCodigo1.setEditable(false); TextCodigo1.setBackground(new java.awt.Color(255, 255, 255)); TextCodigo1.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextCodigo1.setForeground(new java.awt.Color(153, 153, 153)); TextCodigo1.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextCodigo1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextCodigo1ActionPerformed(evt); } }); ButtonNewUni2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N javax.swing.GroupLayout PanelEstoqueLayout = new javax.swing.GroupLayout(PanelEstoque); PanelEstoque.setLayout(PanelEstoqueLayout); PanelEstoqueLayout.setHorizontalGroup( PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addContainerGap() .addComponent(LabelMax) .addGap(54, 54, 54) .addComponent(TextMax)) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(1, 1, 1) .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(3, 3, 3)) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addGap(8, 8, 8) .addComponent(LabelAtual) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(TextAtual)) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addContainerGap() .addComponent(LabelMax1) .addGap(50, 50, 50) .addComponent(TextMax1))) .addGap(5, 5, 5) .addComponent(LabelImEstoque)) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addComponent(jSeparator1) .addGap(1, 1, 1)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEstoqueLayout.createSequentialGroup() .addContainerGap() .addComponent(LabelCodigo1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextCodigo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(3, 3, 3) .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); PanelEstoqueLayout.setVerticalGroup( PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelEstoqueLayout.createSequentialGroup() .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(TextAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(LabelAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(5, 5, 5) .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(LabelImEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelCodigo1) .addComponent(TextCodigo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(5, 5, 5)) ); jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Lotes do Produto ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N jTableSubGrupo1.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N jTableSubGrupo1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null} }, new String [] { "Código Lote", "Código da NF", "Data Entrada", "Data de Fabricação", "Data de Validade", "Quantidade" } ) { boolean[] canEdit = new boolean [] { false, true, false, true, false, true }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTableSubGrupo1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF); jTableSubGrupo1.setMaximumSize(new java.awt.Dimension(2147483647, 200)); jTableSubGrupo1.setMinimumSize(new java.awt.Dimension(770, 800)); jTableSubGrupo1.setRowHeight(20); jTableSubGrupo1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION); jTableSubGrupo1.getTableHeader().setReorderingAllowed(false); jScrollPane6.setViewportView(jTableSubGrupo1); if (jTableSubGrupo1.getColumnModel().getColumnCount() > 0) { jTableSubGrupo1.getColumnModel().getColumn(0).setMinWidth(100); jTableSubGrupo1.getColumnModel().getColumn(0).setPreferredWidth(100); jTableSubGrupo1.getColumnModel().getColumn(0).setMaxWidth(100); jTableSubGrupo1.getColumnModel().getColumn(1).setMinWidth(120); jTableSubGrupo1.getColumnModel().getColumn(1).setPreferredWidth(120); jTableSubGrupo1.getColumnModel().getColumn(1).setMaxWidth(120); jTableSubGrupo1.getColumnModel().getColumn(2).setMinWidth(100); jTableSubGrupo1.getColumnModel().getColumn(2).setPreferredWidth(100); jTableSubGrupo1.getColumnModel().getColumn(2).setMaxWidth(100); jTableSubGrupo1.getColumnModel().getColumn(3).setMinWidth(120); jTableSubGrupo1.getColumnModel().getColumn(3).setPreferredWidth(120); jTableSubGrupo1.getColumnModel().getColumn(3).setMaxWidth(120); jTableSubGrupo1.getColumnModel().getColumn(4).setMinWidth(120); jTableSubGrupo1.getColumnModel().getColumn(4).setPreferredWidth(120); jTableSubGrupo1.getColumnModel().getColumn(4).setMaxWidth(120); jTableSubGrupo1.getColumnModel().getColumn(5).setMinWidth(100); jTableSubGrupo1.getColumnModel().getColumn(5).setPreferredWidth(100); jTableSubGrupo1.getColumnModel().getColumn(5).setMaxWidth(100); } ButtonCancelar2.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonCancelar2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/pesquisarncm.png"))); // NOI18N ButtonCancelar2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonCancelar2ActionPerformed(evt); } }); ButtonCancelar3.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonCancelar3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/add2.png"))); // NOI18N javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21); jPanel21.setLayout(jPanel21Layout); jPanel21Layout.setHorizontalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGap(2, 2, 2) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGap(2, 2, 2) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(2, 2, 2)) ); jPanel21Layout.setVerticalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGap(2, 2, 2) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel21Layout.createSequentialGroup() .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2) .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPane7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), " Fiscal ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 14))); // NOI18N jTabbedPane7.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNewPromo10.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNewPromo10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N ButtonNewPromo10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewPromo10ActionPerformed(evt); } }); LabelValorCus16.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus16.setText("Grupo Tributario:"); TextValorCusto20.setEditable(false); TextValorCusto20.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto20.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto20.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto20.setText("1"); TextValorCusto20.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto20ActionPerformed(evt); } }); TextValorCusto21.setEditable(false); TextValorCusto21.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto21.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N TextValorCusto21.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto21.setText("PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST"); TextValorCusto21.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto21.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto21ActionPerformed(evt); } }); LabelValorCus17.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus17.setText("ICMS Customizado:"); TextValorCusto22.setEditable(false); TextValorCusto22.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto22.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto22.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto22.setText("1"); TextValorCusto22.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto22.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto22ActionPerformed(evt); } }); ButtonNewPromo11.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNewPromo11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N ButtonNewPromo11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewPromo11ActionPerformed(evt); } }); TextValorCusto23.setEditable(false); TextValorCusto23.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto23.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N TextValorCusto23.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto23.setText("PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST"); TextValorCusto23.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto23.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto23ActionPerformed(evt); } }); ButtonNewPromo12.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N ButtonNewPromo12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/promoção.png"))); // NOI18N ButtonNewPromo12.setText("Gerenciador Tributario"); ButtonNewPromo12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ButtonNewPromo12ActionPerformed(evt); } }); jSeparator7.setOrientation(javax.swing.SwingConstants.VERTICAL); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(TextValorCusto21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(3, 3, 3) .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(TextValorCusto23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel11Layout.createSequentialGroup() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(LabelValorCus16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(105, 105, 105)) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(7, 7, 7))) .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ButtonNewPromo12)) .addComponent(LabelValorCus17, javax.swing.GroupLayout.PREFERRED_SIZE, 435, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addComponent(LabelValorCus16) .addGap(1, 1, 1) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanel11Layout.createSequentialGroup() .addGap(6, 6, 6) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ButtonNewPromo12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(1, 1, 1) .addComponent(TextValorCusto21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(LabelValorCus17) .addGap(1, 1, 1) .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(1, 1, 1) .addComponent(TextValorCusto23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(18, Short.MAX_VALUE)) ); jTabbedPane7.addTab(" Tributações ", jPanel11); TextValorCusto24.setEditable(false); TextValorCusto24.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto24.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto24.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto24.setText("1"); TextValorCusto24.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto24.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto24ActionPerformed(evt); } }); LabelValorCus18.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus18.setText("Ex Tipi:"); TextValorCusto25.setEditable(false); TextValorCusto25.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto25.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto25.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto25.setText("1"); TextValorCusto25.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto25.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto25ActionPerformed(evt); } }); LabelValorCus19.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus19.setText("Codigo Lst:"); ComboUnidade6.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboUnidade6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboUnidade6ActionPerformed(evt); } }); LabelUnidade6.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelUnidade6.setText("Iat:"); ComboUnidade7.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboUnidade7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboUnidade7ActionPerformed(evt); } }); LabelUnidade7.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelUnidade7.setText("Ippt:"); ComboUnidade8.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboUnidade8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboUnidade8ActionPerformed(evt); } }); LabelUnidade8.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelUnidade8.setText("Tipo Item Sped:"); ComboUnidade9.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N ComboUnidade9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ComboUnidade9ActionPerformed(evt); } }); LabelUnidade9.setFont(new java.awt.Font("Arial", 0, 16)); // NOI18N LabelUnidade9.setText("Tipo:"); 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) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup() .addComponent(LabelUnidade8) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel8Layout.createSequentialGroup() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(LabelUnidade7) .addGap(194, 194, 194) .addComponent(LabelUnidade9)) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(LabelUnidade6) .addGap(130, 130, 130) .addComponent(LabelValorCus18))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(LabelValorCus19) .addGap(0, 78, Short.MAX_VALUE)) .addComponent(TextValorCusto25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ComboUnidade8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(ComboUnidade9, 0, 435, Short.MAX_VALUE)) .addContainerGap()) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelValorCus18) .addComponent(LabelUnidade6) .addComponent(LabelValorCus19)) .addGap(1, 1, 1) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextValorCusto25, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(5, 5, 5) .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel8Layout.createSequentialGroup() .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelUnidade7) .addComponent(LabelUnidade9)) .addGap(2, 2, 2) .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(ComboUnidade8, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(LabelUnidade8) .addGap(1, 1, 1) .addComponent(ComboUnidade9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane7.addTab(" Dados Complementares ", jPanel8); TextValorCusto26.setEditable(false); TextValorCusto26.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto26.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto26.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto26.setText("1"); TextValorCusto26.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto26.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto26ActionPerformed(evt); } }); LabelValorCus20.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus20.setText("Aliquota ICMS PAF:"); TextValorCusto27.setEditable(false); TextValorCusto27.setBackground(new java.awt.Color(255, 255, 255)); TextValorCusto27.setFont(new java.awt.Font("Arial", 0, 17)); // NOI18N TextValorCusto27.setForeground(new java.awt.Color(153, 153, 153)); TextValorCusto27.setText("1"); TextValorCusto27.setMaximumSize(new java.awt.Dimension(1000, 10000)); TextValorCusto27.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { TextValorCusto27ActionPerformed(evt); } }); LabelValorCus21.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N LabelValorCus21.setText("Aliquota ISSQN PAF:"); 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(LabelValorCus20, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(TextValorCusto26, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addComponent(LabelValorCus21, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 90, Short.MAX_VALUE)) .addGroup(jPanel12Layout.createSequentialGroup() .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()))) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LabelValorCus20) .addComponent(LabelValorCus21)) .addGap(1, 1, 1) .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(TextValorCusto26, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE) .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPane7.addTab(" Aliquotas Paf ", jPanel12); javax.swing.GroupLayout PanelCadastroLayout = new javax.swing.GroupLayout(PanelCadastro); PanelCadastro.setLayout(PanelCadastroLayout); PanelCadastroLayout.setHorizontalGroup( PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(PanelCadastroLayout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PanelEstoque, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTabbedPane7)) .addGap(5, 5, 5)) ); PanelCadastroLayout.setVerticalGroup( PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelCadastroLayout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(PanelCadastroLayout.createSequentialGroup() .addComponent(PanelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2) .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 237, Short.MAX_VALUE))) .addGap(4, 4, 4)) ); jTabbedPane1.addTab("Cadastro de Produto", PanelCadastro); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1310, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane1) ); pack(); setLocationRelativeTo(null); }
{ "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 PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\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 }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public 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 Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public GUI_StudentInfo() {\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 CovidGUI(){\n initComponents();\n }" ]
[ "0.73199165", "0.7291065", "0.7291065", "0.7291065", "0.72868747", "0.72488254", "0.7214099", "0.7209363", "0.7196111", "0.7190702", "0.7184576", "0.71590984", "0.71483636", "0.7093415", "0.70814407", "0.70579475", "0.69872457", "0.69773155", "0.6955104", "0.69544697", "0.69453543", "0.6943464", "0.69364315", "0.6931576", "0.6928309", "0.6925433", "0.69250214", "0.69115317", "0.6911434", "0.6893781", "0.6892524", "0.6891883", "0.6891585", "0.68891054", "0.6883182", "0.68830794", "0.6881544", "0.68788856", "0.6876481", "0.6873896", "0.6871883", "0.6859969", "0.6856538", "0.6855796", "0.6855392", "0.68540794", "0.68534625", "0.6853007", "0.6853007", "0.6844998", "0.6837484", "0.68364847", "0.68297", "0.6829288", "0.6827209", "0.6824552", "0.6822856", "0.68174845", "0.6817476", "0.68111503", "0.6809666", "0.6809588", "0.6809156", "0.68081236", "0.6802404", "0.6794206", "0.6793367", "0.6792882", "0.6791294", "0.6789582", "0.67894405", "0.6788515", "0.6782408", "0.6766765", "0.6766263", "0.67650926", "0.67574364", "0.6756913", "0.6753227", "0.67513406", "0.6741571", "0.6740101", "0.6737476", "0.6737115", "0.67346376", "0.6727922", "0.6727414", "0.67207795", "0.67162555", "0.67161065", "0.6715331", "0.6709024", "0.67072886", "0.6703357", "0.67023003", "0.6701596", "0.66995883", "0.6699478", "0.6694889", "0.66919625", "0.6689987" ]
0.0
-1
API is disabled (e.g. server not started)
public void handleApiDisabled() { handler.post(new Runnable(){ public void run(){ Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disabled)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean disableMonitoring();", "public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != null) {\n new Thread(() -> onStatusChangedListener.notEnabled()).start();\n }\n }", "public boolean enforceApiDeadlines() {\n return false;\n }", "default boolean isHeartbeatSupported() {\n return false;\n }", "void disable() {\n }", "@Override\r\n\tpublic boolean isDisabled() throws NotesApiException {\n\t\treturn false;\r\n\t}", "@Override\n boolean disable() {\n return altingChannel.disable();\n }", "void disable();", "void disable();", "protected void onDisabled() {\n // Do nothing.\n }", "public boolean isApiError() {\n return this.getCode() != null && this.getCode() > 0;\n }", "public void disable();", "public api() {}", "public API() {}", "public void disableHighAvailability() {\n enableHa = false;\n listMembersService.shutdown();\n }", "public abstract void Disabled();", "void disable()\n{\n synchronized (this) {\n is_enabled = false;\n request_queue.clear();\n for (DymonPatchRequest ar : active_requests) removeActive(ar);\n if (request_timer != null) request_timer.cancel();\n request_timer = null;\n }\n}", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "@Override\n\tpublic void onDisable() {\n\t\tgetLogger().info(\"SimplyWrapper successfully disabled !\");\n\t}", "static boolean isDisabled(Context context) {\n return polling ||\n !ConfigureActivity.getBooleanSetting(context, ConfigureActivity.POLLING_ENABLED);\n }", "@Test(expected=IllegalStateException.class)\n public void ongoingConfiguration_withRequestsRecordingDisabled() {\n initJadler().withRequestsRecordingDisabled();\n \n try {\n verifyThatRequest();\n fail(\"request recording disabled, verification must fail\");\n }\n finally {\n closeJadler();\n }\n }", "@Override\n public boolean isAIEnabled() {\n return false;\n }", "boolean hasApiUrl();", "public void onApiRequestFailed();", "@Override\r\n\tpublic boolean hasFirewallSupport() {\n\t\treturn false;\r\n\t}", "default void onDisable() {}", "public void setApiMode(String apiMode) {\n this.apiMode = apiMode;\n }", "void disableMod();", "@Override\n public void onDisabled() {\n }", "@Override\r\n public void onDisabled(Context context) {\n }", "@Override\r\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public boolean isProgrammable() {\n return false;\n }", "@Override\n protected boolean isDebugEnable() {\n return false;\n }", "private static boolean supportsOfflineResponse(int method) {\n switch (method) {\n case AylaRestService.GET_DEVICES_LANMODE:\n case AylaRestService.GET_NODES_LOCAL_CACHE:\n case AylaRestService.CREATE_DATAPOINT_LANMODE:\n case AylaRestService.CREATE_NODE_DATAPOINT_LANMODE:\n \t\n case AylaRestService.GET_DATAPOINT_LANMODE:\n case AylaRestService.GET_DATAPOINTS_LANMODE:\n \t\n case AylaRestService.GET_PROPERTIES_LANMODE:\n case AylaRestService.GET_NODE_PROPERTIES_LANMODE:\n case AylaRestService.GET_NODE_DATAPOINT_LANMODE:\n \t\n case AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE_LANMODE:\n \t\n case AylaRestService.GET_PROPERTY_DETAIL_LANMODE:\n case AylaRestService.GET_NODES_CONNECTION_STATUS_LANMODE:\n case AylaRestService.POST_USER_LOGIN:\n\n\t\t\t// These APIs are used during wifi setup / registration where we may not be\n\t\t\t// connected to the cloud, but rather to the device's wifi AP.\n case AylaRestService.SET_DEVICE_CONNECT_TO_NETWORK:\n case AylaRestService.GET_MODULE_WIFI_STATUS:\n case AylaRestService.START_NEW_DEVICE_SCAN_FOR_APS:\n case AylaRestService.GET_NEW_DEVICE_STATUS:\n case AylaRestService.PUT_NEW_DEVICE_TIME:\n case AylaRestService.DELETE_DEVICE_WIFI_PROFILE:\n case AylaRestService.CONNECT_NEW_DEVICE_TO_SERVICE:\n case AylaRestService.SET_HOST_NETWORK_CONNECTION:\n case AylaRestService.DELETE_HOST_NETWORK_CONNECTION:\n case AylaRestService.DELETE_HOST_NETWORK_CONNECTIONS:\n case AylaRestService.CONFIRM_NEW_DEVICE_TO_SERVICE_CONNECTION:\n \t\n case AylaRestService.RETURN_HOST_SCAN:\n case AylaRestService.RETURN_HOST_NETWORK_CONNECTION:\n case AylaRestService.CONNECT_TO_NEW_DEVICE:\n case AylaRestService.GET_NEW_DEVICE_SCAN_RESULTS_FOR_APS:\n case AylaRestService.PUT_DISCONNECT_AP_MODE:\n \n // While this call should require network access, it is made right after re-connecting\n\t\t\t// to the original wifi network during wifi setup, and on certain devices the\n\t\t\t// check for reachability fails before this call is made. Including this API\n\t\t\t// in the list here allows these devices to complete setup.\n case AylaRestService.GET_NEW_DEVICE_CONNECTED:\n case AylaRestService.PROPERTY_CHANGE_NOTIFIER:\n case AylaRestService.PUT_LOCAL_REGISTRATION:\n \n // for same-lan wifi setup\n case AylaRestService.POST_LOCAL_REGISTRATION:\n case AylaRestService.DELETE_NETWORK_PROFILE_LANMODE:\n case AylaRestService.SEND_NETWORK_PROFILE_LANMODE:\n case AylaRestService.GET_NEW_DEVICE_WIFI_STATUS:\n\n // Confirm reachability state is finalized locally, either service or device, or both. \n case AylaRestService.REACHABILITY:\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean onApiMessage(ApiJob job) {\n\t\treturn false;\n\t}", "public boolean isRequest(){\n return false;\n }", "@Override\n public void disabledInit() {\n //Diagnostics.writeString(\"State\", \"DISABLED\");\n }", "@Override\n\tpublic boolean status() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean status() {\n\t\treturn false;\n\t}", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }", "private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }", "@Override\r\n\tpublic void setDisabled(boolean arg0) throws NotesApiException {\n\r\n\t}", "@Override\n public void disabledInit() {}", "@Override\n public void disabledInit()\n {\n }", "@Override\n public boolean isEnabled() {\n return false;\n }", "@Override\n public boolean isEnabled() {\n return false;\n }", "public void requestInvisibleMode() {\n final ModContainer activeModContainer = Loader.instance().activeModContainer();\n if (activeModContainer != null) {\n invisibleRequesters.add(activeModContainer.getName());\n } else {\n invisibleRequesters.add(\"null\");\n }\n }", "@Override\n public void disabledInit()\n {\n \n }", "@Override\r\n public boolean isRequest() {\n return false;\r\n }", "private boolean dataAvailableOffline() {\n return false;\n }", "@Override\n public void disabledInit() {\n\t\tprocessRobotModeChange(RobotMode.DISABLED);\n }", "public boolean isApiAvailable(String string) {\n URL url;\n try {\n url = new URL(apiAddress + string);\n } catch (MalformedURLException e) {\n System.out.println(e);\n return false;\n }\n try {\n con = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n try {\n con.connect();\n if (con.getResponseCode() == 200) {\n con.disconnect();\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n System.out.println(e);\n return false;\n }\n }", "public boolean isMonitoringDisabled() {\r\n\t\treturn monitoringDisabled;\r\n\t}", "private void onUnavailable() {\n // TODO: broadcast\n }", "@Override\n public void onDisable() {\n }", "public boolean requiresOnline()\n {\n return onlineRequired;\n }", "@Override\n public void disabledInit(){\n\n }", "protected abstract void disable();" ]
[ "0.6387492", "0.61867046", "0.61230105", "0.5988751", "0.5980822", "0.597098", "0.5957695", "0.5949938", "0.5949938", "0.59442514", "0.5939036", "0.59324145", "0.59179807", "0.57938343", "0.5792053", "0.5787801", "0.5766963", "0.57655525", "0.5763713", "0.576016", "0.5721655", "0.5720503", "0.56983656", "0.568684", "0.567479", "0.56729114", "0.5663504", "0.56511974", "0.56499344", "0.5649508", "0.5649508", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.56485605", "0.5646127", "0.563698", "0.56314033", "0.56219363", "0.56079906", "0.5604899", "0.5604753", "0.5604753", "0.5597105", "0.5597105", "0.5597105", "0.5590087", "0.5588309", "0.55850214", "0.55848324", "0.5575894", "0.55663747", "0.55663747", "0.55552244", "0.55439574", "0.55434084", "0.55405194", "0.55397624", "0.5538813", "0.5538142", "0.55320925", "0.5530533", "0.5521888", "0.55163896", "0.55152863" ]
0.7353376
0
API is connected to the server
public void handleApiConnected() { handler.post(new Runnable(){ public void run(){ // Display the list of sessions updateList(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "public boolean isConnected(){\n return isConnected;\n }", "public static boolean isConnected()\r\n\t{\r\n\t\t return Globals.connected ;\r\n\t}", "private boolean isConnected() {\n\t\treturn (this.serverConnection!=null); \n }", "public boolean isConnected(){\n return connected;\n }", "private boolean isConnected() {\n if (skylinkConnection != null) {\n return skylinkConnection.isConnected();\n }\n return false;\n }", "public boolean isConnected()\n {\n return isConnected;\n }", "public boolean isConnected() {\n if (client == null) {\n return false;\n }\n return client.isConnected();\n }", "protected abstract boolean isConnected();", "public boolean isConnected() {\n return isConnected;\n }", "@Override\n public boolean isConnected()\n {\n return connected;\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "public boolean isConnected() {\n return connectionSocket.isConnected();\n }", "@Override\n public boolean isConnected() {\n return connected;\n }", "public boolean isConnected(){\r\n\t\treturn connected;\r\n\t}", "public boolean isConnected()\n {\n return connected;\n }", "public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}", "public boolean isConnected() {\r\n\t\treturn backend != null;\r\n\t}", "public boolean isConnected() {\n\t\treturn conn != null;\n\t}", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "public boolean isConnected() {\r\n\treturn connected;\r\n }", "public boolean isConnected() {\n return (this.session != null && this.session.isConnected());\n }", "public boolean isConnected() {\r\n return connected;\r\n }", "public boolean isConnected() {\n\t\treturn isCreated() && mqttClient.isConnected();\n\t}", "public boolean isConnected()\n {\n return connectionId != GatewayProcess.NO_CONNECTION_ID;\n }", "private boolean Conectividad(){\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isConnected() {\n \t\treturn connected;\n \t}", "public boolean isConnected() {\n\t\treturn sock != null;\n\t}", "public boolean isConnected() {\n return connected;\n }", "public boolean isConnected() {\n return connected;\n }", "public boolean isConnected() {\n return connected;\n }", "public boolean isConnected() {\n return connected;\n }", "public boolean isConnected() {\n return connected;\n }", "public boolean isOnline()\n\t{\t\t\n\t\treturn chatConnection.isConnected();\n\t}", "@Override\n public boolean isOnline() {\n if(mSocket != null && mSocket.isConnected())\n return true;\n return false;\n }", "public boolean isConnected() {\n\t\tfinal String METHOD = \"isConnected\";\n\t\tboolean connected = false;\n\t\tif (mqttAsyncClient != null) {\n\t\t\tconnected = mqttAsyncClient.isConnected();\n\t\t} else if (mqttClient != null) {\n\t\t\tconnected = mqttClient.isConnected();\n\t\t}\n\t\tLoggerUtility.log(Level.FINEST, CLASS_NAME, METHOD, \"Connected(\" + connected + \")\");\n\t\treturn connected;\n\t}", "public boolean isConnected() {\n \tContext context = this.getApplicationContext();\n \t/** Create, if not exists, the preference GraviolaMOB. */\n SharedPreferences settings = context.getSharedPreferences(\"GraviolaMOB\", MODE_PRIVATE);\n /** Check the preference connectivity and return false if is not set. */\n return settings.getBoolean(\"connectivity\", false);\n }", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "boolean hasAvailableConnection();", "public boolean isConnected() {\n\t\treturn this.isConnected;\n\t}", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "private Boolean isConnected() {\r\n ConnectivityManager cm = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\r\n Boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\r\n return isConnected;\r\n }", "public final boolean isConnected() {\n\t\t// retornamos si existe una conexion\n\t\treturn this.getConnection() != null;\n\t}", "public static boolean isConnected() { return irc != null && irc.isConnected(); }", "public boolean isConnected() {\n return this.connected;\n }", "public boolean isConnected() {\n return this.connected;\n }", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "public boolean ConnectionCheck(){\n ConnectivityManager cm =\n (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }", "@Override\n public boolean isConnected() {\n boolean result = false;\n synchronized (CONN_SYNC) {\n result = ((system != null) && system.isConnected());\n }\n return result;\n }", "public boolean isConnected() {\n return dataChannel != null && dataChannel.isConnected();\n }", "public boolean isConnected() {\n if (mState == STATE_CONNECTED) {\n return true;\n }\n return false;\n }", "public boolean isOnline() {\n return isOnline;\n }", "private void checkConnection(){\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n\n // if activeNetwork is not null, and a network connection is detected,\n // isConnected is true\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n // prepare output to indicate connection status\n String message = isConnected ? \"Connection Detected!\" : \"No Connection Detected!\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public boolean getIsConnected() {\n return isConnected;\n }", "@Override\n public void Connected() {\n if (strClientSerial != null) {\n LoginInfo_Req();\n }\n }", "public boolean isConnected() {\n\t\treturn connected;\n\t}", "public boolean isConnected() {\n\t\treturn connected;\n\t}", "public static boolean isConnected() {\n return (getCon() != null);\n }", "public void OnConnectSuccess();", "private boolean isOnline() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }", "void connected();", "void clientReady();", "public boolean connectionActive() {\n\t\tif (socketConnection == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn socketConnection.isConnected();\n\t\t}\n\t}", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "private boolean isOnline() {\n ConnectivityManager connect = (ConnectivityManager) this.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = connect.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnected()){\n return true;\n }\n return false;\n }", "public boolean isConnected() {\n\t\t\treturn (m_soundManager instanceof RemoteSoundManager);\n\t\t}", "public boolean isConnected() {\n ConnectivityManager manager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo info = manager.getActiveNetworkInfo();\n if (info != null && info.isConnected()) {\n return true;\n } else {\n return false;\n }\n }", "public void onServiceConnected() {\r\n\t\tapiEnabled = true;\r\n\r\n\t\t// Display the list of calls\r\n\t\tupdateList();\r\n }", "private void isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n mIsConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n }", "public boolean isConnected() {\n return mConnectionSocket.isConnected() && !mConnectionSocket.isClosed();\n }", "public void connecting() {\n\n }", "public boolean isConnected() {\n return metricDB.isConnected();\n }", "private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }", "protected boolean isConnected() {\n\t\tif (channel == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn channel.isOpen();\n\t\t}\n\t}", "public static void serverConnected() {\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status] - Connected !\");\r\n }", "@Override\r\n public boolean poll()\r\n {\n return state.isConnected();\r\n }", "public boolean isConnected() {\n\t\treturn juraMqttClient != null && juraMqttClient.isConnected();\n\t}", "private boolean isOnline(){\n ConnectivityManager cm= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnectedOrConnecting()){\n return true;\n } else{\n return false;\n }\n }", "public boolean isConnected() {\n return (this.bluetoothSocket != null);\n }", "private boolean isConnected() {\n if (mStarted && mClient != null && !mClient.isConnected()) {\n Log.e(LOG_TAG, \"MQTT Client not connected.\");\n if (DEBUG) {\n\tLog.e(LOG_TAG, \"isConnected[mStarted:\" + mStarted + \", mClient:\" + mClient + \"]\");\n }\n }\n\n return mClient != null && (mStarted && mClient.isConnected());\n }", "public boolean isConnected() {\n return mConnected;\n }", "private boolean isOnline() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) owner.getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "public boolean CheckConnected() {\n return (tcp.Status() == TCP._CONNECTED);\n }", "public static boolean isConnect() {\n try {\n if (!isConnectingToInternet()) {\n // Internet Connection is not present\n Toast.makeText(context, \"Please Check your connection\", Toast.LENGTH_LONG).show();\n return false;\n }\n } catch (Exception e) {\n\n }\n return true;\n }", "protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }", "void isReady();", "void isReady();" ]
[ "0.7300754", "0.7300754", "0.7300754", "0.7300754", "0.7300754", "0.727019", "0.727019", "0.727019", "0.727019", "0.727019", "0.727019", "0.727019", "0.727019", "0.7172494", "0.7148727", "0.7018529", "0.6934496", "0.6920061", "0.6902028", "0.6880292", "0.6851495", "0.68187094", "0.6788572", "0.6767823", "0.6767823", "0.6764308", "0.6759237", "0.6737907", "0.67272806", "0.6725239", "0.6720424", "0.6717376", "0.67026985", "0.6691149", "0.6688475", "0.6659737", "0.663518", "0.66314834", "0.66304815", "0.6629208", "0.6625671", "0.6611325", "0.6611325", "0.6611325", "0.6611325", "0.6611325", "0.66098857", "0.660836", "0.6598195", "0.659701", "0.6590381", "0.6587094", "0.65849", "0.6567807", "0.655291", "0.65455455", "0.65387654", "0.6535967", "0.6535967", "0.65299", "0.6526207", "0.6514808", "0.65143067", "0.6514196", "0.651041", "0.64862543", "0.6477126", "0.64738923", "0.64626044", "0.64626044", "0.6457671", "0.64330786", "0.6426429", "0.6423013", "0.6421549", "0.6401734", "0.64012635", "0.64000577", "0.6398916", "0.639791", "0.6395225", "0.63948417", "0.6375713", "0.63743776", "0.63628876", "0.63513106", "0.6339564", "0.63372684", "0.63327783", "0.63318145", "0.63181233", "0.6300553", "0.6293179", "0.6283462", "0.6280334", "0.627454", "0.62738097", "0.6272336", "0.6261366", "0.6261366" ]
0.66741794
35
Display the list of sessions
public void run(){ updateList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Session> getAllSessions();", "public abstract String getSessionList();", "@GetMapping\n public List<Session> list() {\n return sessionRepository.findAll();\n }", "@GetMapping(\"tv_watching_sessions\")\n\tpublic List<TvWatchingSession> listSessions(){\n\t\treturn svc.allActiveSessionsByUser(userName);\n\t}", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "private void updateList() {\r\n\t\ttry {\r\n\t \t// Reset the list\r\n\t\t\tsipSessions.clear();\r\n\t \t\r\n\t \t// Get list of pending sessions\r\n\t \tList<IBinder> sessions = sipApi.getSessions();\r\n\t\t\tfor (IBinder session : sessions) {\r\n\t\t\t\tISipSession sipSession = ISipSession.Stub.asInterface(session);\r\n\t\t\t\tsipSessions.add(sipSession);\r\n\t\t\t}\r\n\t\t\tif (sipSessions.size() > 0){\r\n\t\t String[] items = new String[sipSessions.size()]; \r\n\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\titems[i]=sipSessions.get(i).getSessionID();\r\n\t\t }\r\n\t\t\t\tsetListAdapter(new ArrayAdapter<String>(SessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t} else {\r\n\t\t\t\tsetListAdapter(null);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtils.showMessageAndExit(SessionsList.this, getString(R.string.label_session_failed));\r\n\t\t}\r\n }", "@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }", "public void show_Sessions(){\n \n ArrayList<Session> list= getSessionList();\n DefaultTableModel model=(DefaultTableModel)sessions.getModel();\n Object[] row=new Object[6];\n \n for(int i=0; i<list.size(); i++){\n row[0]=list.get(i).getSessionID();\n row[1]=list.get(i).getTag();\n row[2]=list.get(i).getStGrp();\n row[3]=list.get(i).getSubject();\n row[4]=list.get(i).getNoOfStudents();\n row[5]=list.get(i).getSessionDuration();\n \n model.addRow(row);\n }\n \n }", "public List<String> getSessionList(){\r\n \t\r\n \tList<String> sessionIds = new ArrayList<String>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue();\r\n \t\tif(!sessionIds.contains(currLock.getSessionId())){\r\n \t\t\tsessionIds.add(currLock.getSessionId());\r\n \t\t}\t\r\n \t}\r\n \t\r\n \treturn sessionIds;\r\n }", "public static List<CourseSession> createSessions() {\n List<CourseSession> list = new ArrayList<CourseSession>();\n list.add(createSession(\"1\"));\n list.add(createSession(\"2\"));\n return list;\n }", "public static List getAllSessions() {\n\t\tsynchronized (FQN) {\n\t\t\tList<MemberSession> msList = new ArrayList<MemberSession>();\n//\t\t\tObject object = cache.getValues(FQN);\n\t\t\tObject object = null;\n\t\t\tif (object != null) {\n\t\t\t\tmsList = (List<MemberSession>) object;\n\t\t\t\treturn new ArrayList(msList);\n\t\t\t} else {\n\t\t\t\tCollection list = new ArrayList();\n\t\t\t\tobject = cache.getValues(FQN);\n\t\t\t\tif(object != null){\n\t\t\t\t\tlist = (Collection) object;\n\t\t\t\t}\n\t\t\t\tmsList = new ArrayList(list);\n//\t\t\t\tfor (MemberSession ms : msList) {\n//\t\t\t\t\tcache.add(FQN, ms.getSessionId(), ms);\n//\t\t\t\t}\n\t\t\t\treturn msList;\n\t\t\t}\n\n\t\t}\n\t}", "public Collection<Long> getSessions() {\n return dataTree.getSessions();\n }", "public static ArrayList<Session> getSessions() {\r\n\t\treturn sessions;\r\n\t}", "public Session[] findSessions();", "public int getActiveSessions();", "public synchronized Session[] getVisibleSessions(Session session) {\n return session.isAdmin() ? getAllSessions()\n : new Session[]{ session };\n }", "int getActiveSessions();", "public abstract I_SessionInfo[] getSessions();", "public void returnToSessionList() {\n Context context = this;\n Class destinationClass = SessionListActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n startActivity(intentToStartDetailActivity);\n }", "@PreAuthorize(\"hasRole('ROLE_USER')\")\n @GetMapping(\"/{sessionId}\")\n public String showSessionTimelinePage(Principal principal, Model model, @PathVariable final String sessionId) {\n ArrayList<Event> eventList = siteService.getEventList(principal.getName(), sessionId);\n Session session = siteService.getSession(principal.getName(), sessionId);\n Site site = null;\n if (eventList != null && session != null) {\n site = siteService.getSite(principal.getName(), session.getSiteId());\n }\n if (site != null) {\n model.addAttribute(\"site\", site);\n model.addAttribute(\"user_session\", session);\n model.addAttribute(\"events\", eventList);\n }\n return SiteMap.SESSIONS_TIMELINE.getPath();\n }", "public Collection<RaftSession> getSessions() {\n return sessions.values();\n }", "@GET\n @Produces(\"text/plain\")\n public String getList(\n\n final StringBuilder builder = new StringBuilder();\n\n builder.append(\"JSESSIONID: \").append(sessionId).append(\"<br>Accept: \").append(acceptHeader);\n\n return builder.toString();\n }", "public ArrayList<UserSessionInfo> getAllSessionInfo() throws SessionManagementException {\n ArrayList<UserSessionInfo> userSessionInfoList = null;\n try {\n userSessionInfoList = SessionContextCache.getInstance(0).getSessionDetails();\n } catch (Exception e) {\n String errorMsg = \"Error is occurred while getting session details \";\n log.error(errorMsg, e);\n throw new SessionManagementException(errorMsg, e);\n }\n return userSessionInfoList;\n }", "public List<String> show () {\n\t\treturn userDao.show();\n\t}", "public ArrayList<Session> getSessionList(){\n \n ArrayList<Session> sessionList= new ArrayList<Session>(); \n Connection connection=getConnection();\n \n String studentGroup = combo_studentGroup.getSelectedItem().toString();\n\n String query= \"SELECT `SessionId`,`Tag`,`StudentGroup`,`Subject`,`NoOfStudents`,`SessionDuration` FROM `sessions` WHERE StudentGroup='\"+studentGroup+\"' \";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n Session session;\n while(rs.next()){\n session = new Session(rs.getInt(\"SessionId\"),rs.getString(\"Tag\"),rs.getString(\"StudentGroup\"),rs.getString(\"Subject\"),rs.getInt(\"NoOfStudents\"),rs.getInt(\"SessionDuration\"));\n sessionList.add(session);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }", "public List<Session> getListSessionApprenant() {// OK\r\n\r\n\t\tif (utilisateur.getListeSessionsApprenantAccessible().isEmpty()) {\r\n\t\t\tList<Session> liste = new ArrayList<Session>();\r\n\t\t\tliste = getListeSessionsParam(\"sessionsAcc\", \"role\", \"apprenant\");\r\n\t\t\tutilisateur.setListeSessionsApprenantAccessible(liste);\r\n\t\t\treturn liste;\r\n\t\t} else {\r\n\t\t\treturn utilisateur.getListeSessionsApprenantAccessible();\r\n\t\t}\r\n\t}", "public void printList() {\n userListCtrl.showAll();\n }", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "public SessionList() { \n sessions = ExpiringMap.builder().variableExpiration().build();\n }", "private void updateSessionListView() {\n FastLap[] temp = lapMap.values().toArray(new FastLap[lapMap.size()]);\n SessionAdapter adapter = new SessionAdapter(getApplicationContext(), temp);\n mSessionFragment.update(adapter);\n //Log.d(TAG, \"sessionListView UI updated...\");\n }", "public List getAllSessionList(){\n \tList l=null;\n try {\n Criteria crit=new Criteria();\n l=LecturePeer.doSelect(crit);\n } catch(Exception e) { ServerLog.log(\"Exception in Lecture select \"+e.getMessage());}\n \treturn l;\n }", "public List getUserListShowToClient() {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n query = session.createQuery(\"select user from app.user.User user where user.currentEmployee = 'true' and user.clientShow = 'TRUE' order by user.lastName, user.firstName\");\n return query.list();\n } catch (HibernateException e) {\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 session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "@RequestMapping(\"/list\")\n public String listPage(HttpSession session, Model model) {\n if (!baseRequest(session, model)) {\n return \"redirect:/login\";\n }\n return \"admin/data_set/list\";\n }", "public void onServiceConnected() {\r\n \t// Display the list of sessions\r\n\t\tupdateList();\r\n }", "@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public String displayStartPage(ModelMap model, HttpSession session) {\n User user = (User)session.getAttribute(Constants.SessionAttribute.SESSION_USER);\n \n // load all users except current\n List<User> users = userService.getAllUsers(user.getUsername());\n model.addAttribute(ATTR_USERS, users);\n return VIEW_NAME;\n }", "@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }", "public final List<MediaSession2> getSessions() {\n ArrayList<MediaSession2> arrayList = new ArrayList<MediaSession2>();\n Object object = this.mLock;\n synchronized (object) {\n arrayList.addAll(this.mSessions.values());\n return arrayList;\n }\n }", "public void show_NotOverlappingSessions(){\n \n ArrayList<notOverlapping> list= getNotOverlappingSessionList();\n DefaultTableModel model=(DefaultTableModel)notoverlappingsessions.getModel();\n Object[] row=new Object[3];\n \n for(int i=0; i<list.size(); i++){\n row[0]=list.get(i).getoId();\n row[1]=list.get(i).getSessionId();\n row[2]=list.get(i).getSubject();\n\n model.addRow(row);\n }\n \n }", "RunningTasks getActiveHarvestingSessions() throws RepoxException;", "public void setShowCommunicationSessions( boolean show )\r\n {\r\n showCommunicationSessions = show;\r\n }", "public List<SessionDetailVO> getSessionDetail(){\r\n \t\r\n \tList<AccessDetailVO> accessDetails = getLockList();\r\n \tIterator<AccessDetailVO> iter = accessDetails.iterator();\r\n \tString prevSessionId = \"\";\r\n \tList<SessionDetailVO> sessionList = new ArrayList<SessionDetailVO>();\r\n \t\r\n \tSessionDetailVO sessionTmp = new SessionDetailVO();\r\n \twhile(iter.hasNext()){\r\n \t\tAccessDetailVO accessDetail = iter.next();\r\n \t\tif(accessDetail.getSessionId() != prevSessionId){\r\n \t\t\tsessionTmp = new SessionDetailVO();\r\n \t\t\tsessionTmp.setSessionId(accessDetail.getSessionId());\r\n \t\t\tsessionTmp.setSessionDetail(new ArrayList<AccessDetailVO>());\r\n \t\t\tprevSessionId = accessDetail.getSessionId();\r\n \t\t\tsessionList.add(sessionTmp);\r\n \t\t}\r\n \t\tsessionTmp.getSessionDetail().add(accessDetail);\r\n \t\t\r\n \t}\r\n \t\r\n \treturn sessionList;\r\n }", "private List<? extends Map<String, ?>> getSessions() {\n List<Map<String, String>> list = new ArrayList<Map<String, String>>();\n sessions = MXChatManager.getInstance().getGroupChatSessions();\n for (MXGroupChatSession session : sessions) {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"topic\", session.getTopic());\n map.put(\"type\", session.isAChat() ? \"Chat\" : \"Meet\");\n\n list.add(map);\n }\n\n return list;\n }", "@GetMapping(path=\"/showActivity\",produces = MediaType.APPLICATION_JSON_VALUE)\n public @ResponseBody Iterable<user_activity> getactivity(HttpSession session) {\n return activityService.getactivity(session.getAttribute(\"name\").toString());\n }", "public ArrayList<Session> getActiveSessions()\r\n\t{\r\n\t\treturn this.activeSessions;\r\n\t}", "public void ShowAllUsers()\r\n {\r\n userList.forEach((s) -> { System.out.println(s); });\r\n }", "public List<Long> getSessionNodes() {\n List<Long> ret = new ArrayList<>();\n\n for (int i = 0; i < sessionsList.size(); i++) {\n ret.add(sessionsList.get(i).dhtNodes());\n }\n\n return ret;\n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByLifetime(Integer... values) {\n return fetch(Session.SESSION.LIFETIME, values);\n }", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }", "@RequestMapping(value = \"/sc\", method = RequestMethod.GET)\n public ModelAndView listsc() {\n List<Group> groups = userBean.getAllGroups();\n List<WeekDay> weekDays = userBean.getAllWeekDay();\n ModelAndView view = new ModelAndView(\"sc\");\n // view.addObject(\"list\",list);\n view.addObject(\"group\", groups);\n view.addObject(\"week\", weekDays);\n return view;\n }", "public Map<Long, Session> list() throws DAOException {\n\t\tHashMap<Long, Session> result = new HashMap<Long, Session>();\n\t\tTypedQuery<Session> query = em.createQuery(SQL_SELECT, Session.class);\n\t\ttry {\n\t\t\tList<Session> sessions = query.getResultList();\n\t\t\tfor (Session session : sessions)\n\t\t\t\tresult.put(session.getId(), session);\n\t\t} catch (NoResultException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new DAOException(e);\n\t\t}\n\n\t\treturn result;\n\t}", "public void getTestSessions(){\n TestSessionDAO sessionsManager = DAOFactory.getTestSessionDAO();\n //populate with values from the database\n if(!sessionsManager.readInactiveTestSessions(testSessions)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read test sessions from database. Please check your internet connection and try again.\");\n System.exit(-2);\n }\n }", "@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}", "public List<User> displayUsers() {\n\t\t\r\n\t\ttry {\r\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from com.niit.model.User\").list();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@RequestMapping(\"/indexAppusers\")\n\tpublic ModelAndView listAppuserss() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appuserss\", appusersService.loadAppuserss());\n\n\t\tmav.setViewName(\"appusers/listAppuserss.jsp\");\n\n\t\treturn mav;\n\t}", "private void updateList() {\r\n\t\ttry {\r\n\t\t\t// Reset the list\r\n\t\t\tcalls.clear();\r\n\r\n\t\t\tif (apiEnabled) {\r\n\t\t \t// Get list of pending sessions\r\n\t\t \tSet<IPCall> currentCalls = callApi.getIPCalls();\r\n\t\t \tcalls = new ArrayList<IPCall>(currentCalls);\r\n\t\t\t\tif (calls.size() > 0){\r\n\t\t\t String[] items = new String[calls.size()]; \r\n\t\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\t\titems[i] = getString(R.string.label_session, calls.get(i).getCallId());\r\n\t\t\t }\r\n\t\t\t\t\tsetListAdapter(new ArrayAdapter<String>(IPCallSessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetListAdapter(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tUtils.showMessageAndExit(IPCallSessionsList.this, getString(R.string.label_api_failed));\r\n\t\t}\r\n }", "@GetMapping(\"/sessions\")\n public List<Session> findByEmail(Authentication authentication) {\n return sessionServiceImpl.findAllByEmail(authentication.getName(), false);\n }", "public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }", "@GetMapping(\"tv_watching_sessions/{id}\")\n\tpublic TvWatchingSession showSession(@PathVariable int id,\n\t\t\tHttpServletResponse response){\n\t\tTvWatchingSession session = svc.retrieveSessionByUser(id, userName);\n\t\tif (session == null) {\n\t\t\tresponse.setStatus(404);\n\t\t}\n\t\treturn session;\n\t}", "public List<T> showAllClients();", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByName(String... values) {\n return fetch(Session.SESSION.NAME, values);\n }", "public UserList list();", "public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "@RequestMapping(\"/find\")\n public String find(HttpSession session) {\n return \"custom_list\";\n }", "public void printList(){\n\t\tfor(User u : userList){\r\n\t\t\tSystem.out.println(\"Username: \" + u.getUsername() + \" | User ID: \" + u.getUserID() + \" | Hashcode: \" + u.getHashcode() + \" | Salt: \" + u.getSalt());\r\n\t\t}\r\n\t}", "public List<Login>listar();", "protected List<Map<String, Object>> show() {\n List<Map<String, Object>> output = new ArrayList<>();\n try {\n ResultSet rs;\n try (PreparedStatement stmt = DBConnect.getConnection()\n .prepareStatement(String.format(\"SELECT * FROM %s WHERE userID = ?\", table))) {\n stmt.setLong(1, userId);\n rs = stmt.executeQuery();\n }\n output = DBConnect.resultsList(rs);\n rs.close();\n DBConnect.close();\n } catch (SQLException e) {\n Logger.getLogger(DBConnect.class.getName()).log(Level.SEVERE, \"Failed select\", e);\n }\n return output;\n }", "public ArrayList<User> showUsers(){\n\t\treturn this.userList;\n\t}", "public static void loadSessions() {\n try (Connection con = getConnection()) {\n String query = \"SELECT `usermask`,`username` FROM \" + mysql_db + \".`sessions`\";\n try (PreparedStatement pst = con.prepareStatement(query)) {\n ResultSet r = pst.executeQuery();\n while (r.next()) {\n Bot.addUserSession(r.getString(\"usermask\"), r.getString(\"username\"));\n }\n pst.close();\n con.close();\n }\n con.close();\n } catch (SQLException e) {\n Logger.logMessage(LOGLEVEL_IMPORTANT, \"SQL Error in 'loadSessions()': \" + e.getMessage());\n }\n }", "@GetMapping(\"/api/gamesessions\")\n public List<Presentation> getGameSessions() {\n GameSessionSettings settings = gameSessionSettingsDao.findDefaultSettings();\n List<Game> games = gameDao.findAll();\n Collections.shuffle(games);\n \n List<Presentation> presentationList = new ArrayList<>();\n Random random = new Random();\n // If no sessions are defined, generate session by selecting 10 random presentations from 10 random games\n// if(settings == null){\n// do{\n// // Get default_session_size worth of presentation from different games, unless less than that games are found in system\n// for(int i = 0; presentationList.size() < DEFAULT_SESSION_SIZE && i < games.size(); i++){\n// List<Presentation> p = games.get(i).getPresentations();\n// presentationList.add(p.get(random.nextInt(p.size())));\n// }\n// }\n// // Loop here just in case the system has less games than needed for these settings\n// while(!(presentationList.size() == DEFAULT_SESSION_SIZE));\n// return presentationList;\n// }\n \n // If settings are found, generate session based on those\n \n do {\n // Loop categories in session settings\n for(Category c : settings.getCategories()){\n boolean found = false;\n int i = 0;\n // Loop games until one is found which contains category\n do {\n if(games.get(i).getCategories().contains(c)){\n found = true;\n List<Presentation> p = games.get(i).getPresentations();\n presentationList.add(p.get(random.nextInt(p.size())));\n }\n i++;\n } while (!found && i < games.size());\n }\n // Loop here just in case the system has less games than needed for these settings\n } while (!(presentationList.size() == settings.getCategories().size()));\n return presentationList;\n }", "public List showAll() {\n\t\tSession session = null;\n\t\tList temp = new ArrayList();\n\t\ttry {\n\n\t\t\tsession = MyUtility.getSession();// Static Method which makes only\n\t\t\t\t\t\t\t\t\t\t\t\t// one object as method is\n\t\t\t\t\t\t\t\t\t\t\t\t// static\n\n\t\t\tQuery q = session.createQuery(\"FROM AuctionVO \");\n\n\t\t\ttemp = q.list();\n\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t//session.close();\n\t\t}\n\t\treturn temp;\n\t}", "public String getSessionName();", "public void doBriefing() {\n // Get all class sessions\n List<Models.Session> sessions = em.createNativeQuery(\"select s.* from session s, classparticipant cpa, participant p where s.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ? and current_date = date(s.starttime) order by s.starttime asc\", Models.Session.class).setParameter(1, user.getUserid()).getResultList();\n\n // If no data\n if (sessions.isEmpty()) {\n replyChat(\"It seems that you're free today!\");\n }\n\n // To format dates\n DateTimeFormatter timeFmt = DateTimeFormat.forPattern(\"h:mm a'\");\n DateTimeFormatter dateFmt = DateTimeFormat.forPattern(\"MMM d', ' YYYY\");\n \n String output = addStats(new DateTime().toString(dateFmt), \"Currently \" + new DateTime().toString(timeFmt));\n\n output += addChat(\"Hey there! You have \" + sessions.size() + \" classes today\");\n\n // For each session\n for (Models.Session session : sessions) {\n\n Models.Class classroom = session.getClassid();\n\n String startTime = new DateTime(session.getStarttime()).toString(timeFmt);\n String endTime = new DateTime(session.getEndtime()).toString(timeFmt);\n\n String status = \"\";\n // If already started\n if (new DateTime().isAfter(new DateTime(session.getStarttime()))) {\n\n // If already ended\n if (new DateTime().isAfter(new DateTime(session.getEndtime()))) {\n status = \"PAST\";\n } // Havent ended\n else {\n status = \"ONGOING\";\n }\n } // Havent started\n else {\n status = \"UPCOMING\";\n }\n\n output += \"<div class='result display' onclick=\\\"window.location.href='SessionDetails?id=\" + classroom.getClassid() + \"&code=\" + session.getSessionid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>\" + status + \"</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + startTime + \" - \" + endTime + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n }", "public List<String> displayuser() {\n\t\t// TODO Auto-generated method stub\n\t\tList<String> list = new ArrayList<>();\n\t\tlist = crud1.displayUsers();\n\t\treturn list;\n\t}", "@RequestMapping(value = \"/topics\", method = RequestMethod.GET)\n public String topicsList(ModelMap model, HttpSession session) {\n\t String userCode = session.getAttribute(\"currentUserCode\").toString();\n\t String userRole = session.getAttribute(\"currentUserRole\").toString();\n\t List<mStaff> staffs = staffService.listStaffs();\n\t HashMap<String, String> mStaffCode2Name = new HashMap<String, String>();\n\t for(mStaff st: staffs)\n\t\t mStaffCode2Name.put(st.getStaff_Code(), st.getStaff_Name());\n\t \n\t List<mTopics> topicsList = tProjectService.loadTopicListByStaff(userRole, userCode);\n\t System.out.println(name() + \"::topicsList\"\n\t \t\t+ \", staffs.sz = \" + staffs.size() + \", topicsList.sz = \" + topicsList.size());\n\t for(mTopics p: topicsList){\n\t\t p.setPROJDECL_User_Code(mStaffCode2Name.get(p.getPROJDECL_User_Code()));\n\t\t System.out.println(name() + \"::topicsList, userName = \" + p.getPROJDECL_User_Code());\n\t }\n\t \n\t model.put(\"topicsList\", topicsList);\n\t model.put(\"topics\", status);\n\t return \"cp.topics\";\n }", "public UserSession[] getUserSessions() throws SessionQueryException\n {\n UserSession[] userArray = null;\n\n \n // Get all of the users from the SMS\n UserLoginStruct[] userStructs;\n try {\n userStructs = getSessionManagementAdminService().getUsers(false);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.USER_SESSION,\n userStructs);\n if (GUILoggerHome.find().isInformationOn()) {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\",\n GUILoggerSABusinessProperty.USER_SESSION, \"Found \" + userStructs.length + \" User Sessions\");\n }\n\n userArray = new UserSession[userStructs.length];\n UserSession userSession = null;\n\n for (int i = 0; i < userStructs.length; i++) {\n if (userStructs[i].sourceComponents != null && userStructs[i].sourceComponents.length == 1\n && userStructs[i].sourceComponents[0].length() == 0) {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n new String[0]);\n } else {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n userStructs[i].sourceComponents);\n }\n userArray[i] = userSession;\n }\n\n // Sort the list of users in alphabetical order by Name\n Arrays.sort(userArray, getNameComparator());\n\n } catch (Exception e) {\n throw new SessionQueryException(\"Could not acquire user sessions information.\" ,e);\n }\n \n return userArray;\n }", "public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }", "private void getUserList() {\n // GET ENTRIES FROM DB AND TURN THEM INTO LIST \n DefaultListModel listModel = new DefaultListModel();\n Iterator itr = DBHandler.getListOfObjects(\"FROM DBUser ORDER BY xname\");\n while (itr.hasNext()) {\n DBUser user = (DBUser) itr.next();\n listModel.addElement(user.getUserLogin());\n }\n // SET THIS LIST FOR INDEX OF ENTRIES\n userList.setModel(listModel);\n }", "public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchById(String... values) {\n return fetch(Session.SESSION.ID, values);\n }", "public String ListUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio\r\n listUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n return listUsers.toString(); \r\n }", "public static void setSessions(ArrayList<Session> _sessions) {\r\n\t\tsessions = _sessions;\r\n\t}", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "public static void streams() {\n\t\ttry {\n\t\t\tList<Stream> streams = PlatformClient.streams(getUser());\n\t\t\trender(streams);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get streams : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}", "@Override\r\n\tpublic void viewAllUsers() {\n\t\tList<User> allUsers = new ArrayList<User>();\r\n\t\tallUsers = udao.getAllUsers();\r\n\t\t\r\n\t\tSystem.out.println(\"ALL USERS:\");\r\n\t\tSystem.out.println(\"ID\\tUsername\\tName\");\r\n\t\t\r\n\t\tfor(int i = 0; i < allUsers.size(); i++) {\r\n\t\t\tUser tempUser = allUsers.get(i);\r\n\t\t\tSystem.out.println(tempUser.getUserID() + \"\\t\" + tempUser.getUsername() + \"\\t\"\r\n\t\t\t\t\t+ tempUser.getFirstName() + \" \" + tempUser.getLastName());\r\n\t\t}\r\n\r\n\t}", "private void showStudentCourses()\r\n {\r\n \tString courseResponse = \"\";\r\n \tfor(Course course : this.getDBManager().getStudentCourses(this.studentId))\r\n \t{\r\n \t\tcourseResponse += \"Course Faculty: \" + course.getCourseName() + \", Course Number: \" + String.valueOf(course.getCourseNum()) + \"\\n\";\r\n \t}\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseResponse);\r\n \tthis.getClientOut().flush();\r\n }", "@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }", "public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }", "@RequestMapping(method = RequestMethod.GET)\n public Sessions retrieve(@RequestHeader(\"X-CS-Auth\") String auth,\n @RequestHeader(\"X-CS-Session\") String sessionId) {\n return sessionService.retrieve();\n }", "public String testSession() {\n ActionContext context = ActionContext.getContext();\n Map session = context.getSession(); //session\n Struts2Utils.renderJson(session);\n return null;\n }", "public List<User> list();", "@GET\n @Path(\"/session\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response getSessionInfo(@Context HttpServletRequest request) {\n try {\n BlahguaSession.ensureAdmin(request);\n return Response.ok(BlahguaSession.getSessionInfo(request)).build();\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\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}", "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n\tpublic String listUsers(ModelMap model)\n\t{\n\t\tList<User> users = userService.findAllUsers();\n\t\tmodel.addAttribute(\"users\", users);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipalUsername());\n\t\treturn \"userslist\";\n\t}", "@RequestMapping(\"/find\")\n public String find(HttpSession session) {\n return \"work_list\";\n }", "protected void listClients() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tif (procCount > 0) {\r\n\t\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\t\tSystem.out.print(proc.getSystemId());\r\n\t\t\t\t\t\tif (!proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" (inactive)\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@LoginRequired\n\t@RequestMapping(value={\"/user/keys\",\"/admin/user/keys\"}, method=RequestMethod.GET)\n\tpublic String showKeyList(Model model, HttpSession session) throws Exception {\n\t\tUser user = (User) session.getAttribute(\"user\"); //retrieve user being edited\n model.addAttribute(\"apiKeyList\", this.userMgtService.listApiKeyByUser(user.getUserId()));\n \n return \"user/keys\";\t\n\t}", "@GetAction(\"/list\")\n public void list(String q) {\n Iterable<Account> accounts = accountDao.findAll();\n render(accounts);\n }", "@RequestMapping(\"page\")\n\tpublic String toList(HttpServletRequest request) {\n\t\trequest.setAttribute(\"listUsrSecurityView\", iUsrSecurityService.mySelectUserList());\n\t\trequest.setAttribute(\"listUsrInformation\", iUsrInformationService.list());\n\t\treturn \"/admin/usr/usrSecurity_list\";\n\t}", "public void mem_list() {\n synchronized(chat_room) {\n Set id_set = cur_chat_room.keySet();\n Iterator iter = id_set.iterator();\n clearScreen(client_PW);\n client_PW.println(\"------------online member-----------\");\n while(iter.hasNext()) {\n String mem_id = (String)iter.next();\n if(mem_id != client_ID) {\n client_PW.println(mem_id);\n }\n }\n client_PW.flush();\n }\n }", "@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}" ]
[ "0.75973344", "0.7288414", "0.7243559", "0.7107121", "0.7009836", "0.6948215", "0.68819606", "0.6691783", "0.6437874", "0.6437061", "0.6385748", "0.6313417", "0.6296786", "0.6260785", "0.62498087", "0.6241828", "0.6239567", "0.6221137", "0.61478233", "0.61449844", "0.61380327", "0.6136114", "0.61081886", "0.6082719", "0.6032977", "0.6029111", "0.6026459", "0.60127074", "0.5993425", "0.5942755", "0.59402096", "0.5938881", "0.59177125", "0.59048903", "0.58739716", "0.5867484", "0.5815988", "0.58115965", "0.58060867", "0.5797141", "0.57616156", "0.5760634", "0.57588774", "0.5753672", "0.57469356", "0.5734024", "0.57316387", "0.5731262", "0.572275", "0.5673524", "0.56626725", "0.5661784", "0.56500775", "0.56473005", "0.5641579", "0.5640404", "0.5623908", "0.5623592", "0.5573485", "0.5572044", "0.5563708", "0.5551581", "0.5545604", "0.55399936", "0.5535477", "0.55274993", "0.5521607", "0.5515974", "0.55042183", "0.5502588", "0.5499169", "0.5495059", "0.54874355", "0.54835606", "0.54749453", "0.54519516", "0.54513675", "0.54497135", "0.5444531", "0.54416674", "0.54406226", "0.5425836", "0.5424809", "0.54193753", "0.5417158", "0.54171395", "0.54126555", "0.5406388", "0.5402519", "0.53970283", "0.539613", "0.5395865", "0.53925246", "0.5390834", "0.53878045", "0.5382002", "0.5380428", "0.5367588", "0.53656614", "0.53625363", "0.53612196" ]
0.0
-1
Update the displayed list
private void updateList() { try { // Reset the list sipSessions.clear(); // Get list of pending sessions List<IBinder> sessions = sipApi.getSessions(); for (IBinder session : sessions) { ISipSession sipSession = ISipSession.Stub.asInterface(session); sipSessions.add(sipSession); } if (sipSessions.size() > 0){ String[] items = new String[sipSessions.size()]; for (int i = 0; i < items.length; i++) { items[i]=sipSessions.get(i).getSessionID(); } setListAdapter(new ArrayAdapter<String>(SessionsList.this, android.R.layout.simple_list_item_1, items)); } else { setListAdapter(null); } } catch (Exception e) { Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_session_failed)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}", "public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}", "protected void updateDisplay() {\n BuildingAdapter adapter = new BuildingAdapter(this, R.layout.item_building, buildingList);\n setListAdapter(adapter);\n }", "private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }", "private void update(){\n\t\tIterator it = lList.iterator();\r\n\t\tString out=\"\"; // it used for collecting all members\r\n\t\tint count = 0;\r\n\t\twhile (it.hasNext()){\r\n\t\t\tObject element = it.next();\r\n\t\t\tout += \"\\nPERSON \" + count + \"\\n\";\r\n\t\t\tout += \"=============\\n\";\r\n\t\t\tout += element.toString();\r\n\t\t\t++count;\r\n\t\t}\t\t\r\n\t\toutputArea.setText(out); \r\n\t}", "public void update() {\n\n\t\tdisplay();\n\t}", "@Override\n public void refreshList() {\n }", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "public void updateJList() {\n list.setModel(toListModel(auctionItemList));\n }", "private void refreshListView() {\n model.updateAllFilteredLists(history.getPrevKeywords(), history.getPrevStartDate(),\n history.getPrevEndDate(), history.getPrevState(),\n history.getPrevSearches());\n }", "public void updateUI() {\n appViewModel.usersList.observe(getViewLifecycleOwner(), new Observer<PagedList<UserModel>>() {\n @Override\n public void onChanged(PagedList<UserModel> userModels) {\n adapter.submitList(userModels);\n adapter.notifyDataSetChanged();\n }\n });\n }", "private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }", "@SuppressWarnings(\"unused\")\n\tprivate void updateList() {\n\t\t// list of names\n\t\tnameList = new LinkedList<String>();\n\t\t// get the leafs in the tree\n\t\tdecisionTree.leafTraversal(currentQuestion, nameList);\n\t\t// remove everything in the list panel\n\t\tlistPanel.removeAll();\n\t\t// initiate a JLabel that will be holding each name\n\t\tJLabel list;\n\t\twhile (!nameList.isEmpty()) {\n\t\t\t// create a new JLabel and put in a name each time\n\t\t\tlist = new JLabel(nameList.getFirst());\n\t\t\t// set alignment, font and color\n\t\t\tlist.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tlist.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\t\tlist.setForeground(new Color(86, 10, 0));\n\t\t\t// add this JLabel to the list panel\n\t\t\tlistPanel.add(list);\n\t\t\tnameList.deleteFirst();\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}", "public void updateListViewAndCount() {\n \t\n \t//updating the currentTaskItems then getting a array of the list\n \tListView items = (ListView)findViewById(R.id.showAttachedItems);\n \t\n \tArrayList<ItemListElement> item = formatOutputForList();\n \tItemListElement[] elm = new ItemListElement[item.size()];\n \titem.toArray(elm);\n \t\n \t//updating the list view\n \tItemListAdapter adapter = \n \t new ItemListAdapter(this, R.layout.list_multi, elm);\n items.setAdapter(adapter);\n \t\n \t//update the item count\n \tEditText num = (EditText)findViewById(R.id.showCurrentItemNum);\n \tint value = currentTaskItems.size();\n \tString val = Integer.toString(value);\n \tnum.setText(val);\t\n }", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "public void updateProjectList()\r\n {\r\n\r\n projects.updateUI();// call updateUI() for the JList\r\n }", "void updateFilteredListToShowAll();", "void updateFilteredListToShowAll();", "public void updateAllFilteredListToShowAllActiveEntries();", "private void updateExpenseListView() {\n expenseListView.getItems().clear();\n int count = 1;\n for (Expense expense : duke.expenseList.getExternalList()) {\n expenseListView.getItems().add(count + \". \" + expense.toString());\n count++;\n }\n }", "private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }", "public void update_list_view() {\n\n Collections.sort(mA.alarms);\n\n // make array adapter to bind arraylist to listview with new custom item layout\n AlarmsAdapter aa = new AlarmsAdapter(mA, R.layout.alarm_entry, mA.alarms);\n alarm_list_view.setAdapter(aa);\n registerForContextMenu(alarm_list_view);\n aa.notifyDataSetChanged(); // to refresh items in the list\n }", "private void updateUI() {\n mLatestFeedsAdapter.notifyDataSetChanged();\n }", "public void updateList(boolean connected) {\n listAdapter.changeLayout(connected);\n drawerListLeft.setAdapter(listAdapter);\n }", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "private void updateProductsList() {\n this.productsList = demonstrationApplicationController.getProductsList();\n this.jListProduct.setModel(new ModelListSelectable(this.productsList));\n }", "public void reUpdate() {\n\t\tnumFloorsInBuilding = buildingModel.getNumFloors();\n\t\tPlatform.runLater(() -> label_floors_text.setText(numFloorsInBuilding.toString()));\n\t\t\n\t\tclearAndFillElevatorListView();\n\t}", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "private void updateUI() {\n swipeRefreshLayout.setRefreshing(false);\n adapter.clearItems();\n itemList.addAll(DatabaseController.getInstance(getApplicationContext()).getItems());\n if (itemList.size() > 0){\n emptyTextView.setVisibility(View.GONE);\n adapter.notifyDataSetChanged();\n } else {\n emptyTextView.setVisibility(View.VISIBLE);\n }\n }", "public void redrawListView() {\n\t\tMySimpleCursorAdapter adapt = (MySimpleCursorAdapter)this.getListAdapter();\n\t\tadapt.notifyDataSetChanged();\n\t}", "private void updateItemDisplay(){\n String[] columnNames = new String[model.getColumns()];\n for(int i = 0; i<columnNames.length; i++){\n columnNames[i] = String.valueOf(i);\n }\n view.updateItemsDisplay(model.itemMapTo2DArray(model.getVendMacItemMap()), columnNames);\n }", "private void updateUi (){\n //get the first list item postion\n int currentPosition =listView.getFirstVisiblePosition();\n //append the new recipes to listview\n RecipeAdapter adapter = new RecipeAdapter(this , recipesList);\n listView.setAdapter(adapter);\n // Setting new scroll position to continue\n listView.setSelectionFromTop(currentPosition + 1, 0);\n }", "private void refreshList()\n {\n String line;\n int temp;\n Classes.getItems().clear();\n for (int i = 0; i < SchModMan.getClasses().length; i++)\n {\n line = \"\";\n line += SchModMan.getClasses()[i].getName();\n temp = line.length();\n for (int j = 0; j < 22 - temp; j++)\n line += \" \";\n line += SchModMan.getClasses()[i].getNumberOfStudents();\n temp = line.length();\n for (int j = 0; j < 36 - temp; j++)\n line += \" \";\n line += SchModMan.getClasses()[i].getNumberOfGroups();\n Classes.getItems().add(line);\n }\n }", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\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 void run(){\n\t\t\t\tupdateList();\r\n\t\t\t}", "public void updateUsersList() {\n\t adapter = new UsersAdapter(getActivity(), allUsers);\n setListAdapter(adapter);\n\t getListView().setOnItemClickListener(this);\n\t}", "public void refreshGameList() {\n gamesListModel.clear();\n List<String> userGames = dbMgr.getGameTitles(username);\n\n // fill list with user games\n for (int i = 0; i < userGames.size(); i++) {\n gamesListModel.addElement(userGames.get(i)); \n }\n\n gamesList.setModel(gamesListModel);\n }", "public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }", "public void refresh(ArrayList pNewList) {\n listLivingBeings.setListData(pNewList.toArray());\n if (!pNewList.isEmpty()) {\n listLivingBeings.setSelectedIndex(0);\n }\n }", "private void update(LinkedTaskList linkedTaskList){\n dispose();\n new View(linkedTaskList);\n }", "public void updateInterpList(){\n System.out.println(\"updating list\");\n tableVals = FXCollections.observableArrayList();\n for(InterpreterStaff interp: getInterpreterStaff()){\n tableVals.add(new InterpreterTableAdapter(interp));\n }\n InterpInfoTable.setItems(tableVals);\n }", "void updateFilteredListsToShowAll();", "private void updateList() {\r\n\t\ttry {\r\n\t\t\t// Reset the list\r\n\t\t\tcalls.clear();\r\n\r\n\t\t\tif (apiEnabled) {\r\n\t\t \t// Get list of pending sessions\r\n\t\t \tSet<IPCall> currentCalls = callApi.getIPCalls();\r\n\t\t \tcalls = new ArrayList<IPCall>(currentCalls);\r\n\t\t\t\tif (calls.size() > 0){\r\n\t\t\t String[] items = new String[calls.size()]; \r\n\t\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\t\titems[i] = getString(R.string.label_session, calls.get(i).getCallId());\r\n\t\t\t }\r\n\t\t\t\t\tsetListAdapter(new ArrayAdapter<String>(IPCallSessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetListAdapter(null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tUtils.showMessageAndExit(IPCallSessionsList.this, getString(R.string.label_api_failed));\r\n\t\t}\r\n }", "private void updateListViewLogWindow()\n {\n listViewMessageItems.clear();\n\n for(int i =0;i<= printResult.size() - 1;i++)\n {\n listViewMessageItems.add(printResult.get(i));\n }\n\n }", "private void updateResourcesList() {\n this.resourcesJList.setModel(new ModelListSelectable(controller.getDemonstration().getResourcesList()));\n }", "private void refreshDisplay() {\n \t\tCursor cursor;\n \t\tif (node_id >= 0)\n \t\t\tcursor = appInst.getDB().getNodeChildren(node_id);\n \t\telse\n \t\t\tcursor = appInst.getDB().getFileCursor();\n \n \t\tstartManagingCursor(cursor);\n \t\tthis.outlineAdapter = new OutlineCursorAdapter(this, cursor, appInst.getDB());\n \t\tthis.setListAdapter(outlineAdapter);\n \n \t\tgetListView().setSelection(this.lastSelection);\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 updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\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 }", "private void updateDevicesList() {\n\n netDevicesPanel.removeAll();\n\n netManager.getRecentlySeenDevices().forEach(device -> {\n netDevicesPanel.add(new DevicePanel(device));\n });\n\n netDevicesPanel.revalidate();\n netDevicesPanel.repaint();\n }", "public void refreshList() {\n mCursor.requery();\n mCount = mCursor.getCount() + mExtraOffset;\n notifyDataSetChanged();\n }", "public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public void reload(){\n populateList();\n }", "private void refreshList () {\n List<DisplayedUserCommand> list = new ArrayList<DisplayedUserCommand>();\n for (DisplayedUserCommand command : myUserDefinedCommandsList) {\n list.add(command);\n }\n myUserDefinedCommandsList.clear();\n myUserDefinedCommandsList.addAll(list);\n }", "public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}", "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 refreshListView() {\n\t\t\tisEnd=false;\n\t\t\tlistView.setMode(Mode.PULL_FROM_START);\n\t\t\tjsonArray=new JSONArray();\n\t\t\tcurrentPage=0;\n\t\t\tgetSharePage(++currentPage);\n\t\t\t\n\t\t}", "private void updateSessionListView() {\n FastLap[] temp = lapMap.values().toArray(new FastLap[lapMap.size()]);\n SessionAdapter adapter = new SessionAdapter(getApplicationContext(), temp);\n mSessionFragment.update(adapter);\n //Log.d(TAG, \"sessionListView UI updated...\");\n }", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "public void updateUI(){\n\n getCurrentDate();\n List<Object> tasks = new ArrayList<Object>(TaskManager.sharedInstance().GetTasksInProject());\n //creating a welcome message for when there are no tasks\n if(tasks.size() == 0){\n welcome.setVisibility(View.VISIBLE);\n welcome.setText(R.string.no_tasks);\n\n }else {\n welcome.setText(R.string.empty);\n welcome.setVisibility(View.GONE);\n }\n Project currentProject = ProjectManager.sharedInstance().getCurrentProject();\n List<Object> sortedTaskLists = sortTasks(tasks);\n\n if (mTaskAdapter == null) {\n mTaskAdapter = new TaskAdapter(this.getContext(), sortedTaskLists);\n myTaskListView.setAdapter(mTaskAdapter);\n } else {\n mTaskAdapter.updateData(sortedTaskLists);\n mTaskAdapter.notifyDataSetChanged();\n }\n }", "private void updateUI() {\n /* Making an array of strings to store tasks entered by the user. */\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = OpenDB.getReadableDatabase();\n Cursor cursor = db.query(AccessData.ToDoEntry.table,\n new String[]{AccessData.ToDoEntry._ID, AccessData.ToDoEntry.todo_title},\n null, null, null, null, null);\n while (cursor.moveToNext()) {\n int idx = cursor.getColumnIndex(AccessData.ToDoEntry.todo_title);\n taskList.add(cursor.getString(idx));\n }\n\n /* Check if array adapter is created. */\n if (listAdapter == null) {\n /* If adapter is not created i.e. NULL, create a new adapter */\n listAdapter = new ArrayAdapter<>(this,\n R.layout.todo_item,\n R.id.task_title,\n taskList);\n /* Set the above created adapter as the todoListView adapter */\n todoListView.setAdapter(listAdapter);\n } else {\n /* If created: it is assigned to the todoListView */\n listAdapter.clear(); // clear it\n listAdapter.addAll(taskList); // re-populate it\n listAdapter.notifyDataSetChanged(); // notify view to refresh with new data values\n }\n\n cursor.close();\n db.close();\n }", "private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }", "@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}", "private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = mHelper.getReadableDatabase();\n Cursor cursor = db.query(Task.TaskEntry.TABLE,new String[] {Task.TaskEntry.COL_TASK_TITLE},null,null,null,null,null);\n listItems.clear();\n\n while (cursor.moveToNext()){\n int index = cursor.getColumnIndex(Task.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(index));\n ListItems item = new ListItems(cursor.getString(index));\n listItems.add(item);\n }\n\n\n R_adapter = new RecyclerAdapterGoals(this.getContext(), listItems);\n mTaskListView.setAdapter(R_adapter);\n cursor.close();\n db.close();\n }", "private void updateListView() {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.textview, geofences);\n ListView list = (ListView) findViewById(R.id.listView);\n list.setAdapter(adapter);\n }", "private void refreshListContent() {\n\t\t//remove any label not associated with the given card, so the list reflects\n\t\t// only labels associated with all cards \n\t\tArrayList<String> labels = Card.removeStringsFromList(\n\t\t\t\tnew ArrayList<String>(cards[0].labels), \n\t\t\t\tCard.getAutoLabels());\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\t\tfor( Card c : cards ){\n\t\t\ttoRemove.clear();\n\t\t\tfor( String s : labels ){\n\t\t\t\tif( !c.labels.contains(s) )\n\t\t\t\t\ttoRemove.add(s);\n\t\t\t}\n\t\t\tlabels.removeAll(toRemove);\n\t\t\tif( labels.isEmpty() ) break;\n\t\t}\n\t\t\n\t\t//create prototype cell\n\t\tString longest = \"\";\n\t\tfor( String s : labels ) if( s.length() > longest.length() ) longest = s;\n\t\tlabelsList.setPrototypeCellValue(longest + \"WWW\"); //add some buffer room for readability\n\t\t\n\t\tlabelsList.setListData(labels.toArray(new String[0]));\n\t\tArrayList<String> remainingLabels = Card.removeStringsFromList(\n\t\t\t\tnew ArrayList<String>(Arrays.asList(dataManager.getLabels())), \n\t\t\t\tCard.getAutoLabels());\n\t\tremainingLabels.remove(Card.ALL);\n\t\tremainingLabels.removeAll(labels);\n\t\tnewLabelBox.removeAllItems();\n\t\tCollections.sort(remainingLabels);\n\t\tfor( String label : remainingLabels ){\n\t\t\tnewLabelBox.addItem(label);\n\t\t}\n\t}", "private void refreshDisplay(List<User> newUserList){\n Timber.i(\"refreshDisplay %s\",newUserList);\n\n //if we don't have any previous data loaded and the new list is empty,\n // we hide the RecyclerView and show the refresh button\n if((newUserList == null || newUserList.size() == 0) && mAdapter.getItemCount() == 0){\n mSwipeRefreshLayout.setVisibility(View.GONE);\n mNoDataLayout.setVisibility(View.VISIBLE);\n }\n else{\n mSwipeRefreshLayout.setVisibility(View.VISIBLE);\n mNoDataLayout.setVisibility(View.GONE);\n //Don't swap the existing list with an empty list\n if(newUserList != null && newUserList.size() > 0)\n mAdapter.setUserList(newUserList);\n }\n }", "private void reloadButtons(String newList) \n {\n // store saved url/url names in the lists array\n String[] lists = \n savedSiteList.getAll().keySet().toArray(new String[0]); \n Arrays.sort(lists, String.CASE_INSENSITIVE_ORDER); // sort by list\n\n // if a new list was added, insert in GUI at the appropriate location\n if (newList != null)\n {\n makeListGUI(newList, Arrays.binarySearch(lists, newList));\n }\n else // display GUI for all lists\n { \n // display all saved searches\n for (int index = 0; index < lists.length; ++index)\n makeListGUI(lists[index], index);\n } \n }", "public void update (List<Dependency> list)\n {\n this.list.clear();\n this.list.addAll(list);\n notifyDataSetChanged();\n }", "public void refreshList()\n {\n final ArrayAdapter adapter = (ArrayAdapter)this.foodListAdapter;\n this.getActivity().runOnUiThread(new Runnable() {\n public void run() {\n adapter.notifyDataSetChanged();\n }\n });\n }", "public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}", "private void displayUsers(List<User> users) {\n userAdapter.updateList(users);\n\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 }", "private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }", "public void updateUserLists()\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tcell.updateUserList();\n\t\t}\n\t}", "public void refreshReviewList() {\n reviewListModel.clear();\n int index = gamesList.getSelectedIndex();\n String gameName = gamesListModel.getElementAt(index).toString();\n String gameID = dbMgr.getGameID(gameName);\n List<List<String>> userReviews = dbMgr.getReviewsByGame(gameID);\n\n // fill list with review for currently selected game\n for (int i = 0; i < userReviews.size(); i++) {\n reviewListModel.addElement(userReviews.get(i).get(0) + \", \" + userReviews.get(i).get(1) + \"/10\"); \n }\n\n reviewList.setModel(reviewListModel);\n }", "public void updateListSetModel() {\n listSet.setPrototypeCellValue(\"title\" + Short.MAX_VALUE);\n listSet.setModel(new AbstractListModel() {\n @Override\n public int getSize() {\n return getListStrings().length;\n }\n\n @Override\n public Object getElementAt(int i) {\n return getListStrings()[i];\n }\n });\n }", "public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies());\r\n\t\tmoney.setText(money());\r\n\t\ttileProduction.setText(tileProduction());\r\n\t\tcapital.setText(capital());\r\n\t\thappiness.setText(happiness());\r\n\t\tland.setText(land());\r\n\t\t//ArrayList of Agents sorted from lowest to highest in money is retrieved from Tile\r\n\t\tagents=tile.getAgentsByMoney();\r\n\t\tgui3.refresh();\r\n\t\tsliderPerson.setText(\"\"+agents.get(slider.getValue()).getMoney());\r\n\t\ttick.setText(tick());\r\n\t\tthis.pack();\r\n\t}", "private void updateUi(ArrayList<Book> books) {\n ListView booksList = (ListView) activity.findViewById(R.id.books_list);\n BookAdapter adapter = new BookAdapter(activity, books);\n booksList.setAdapter(adapter);\n\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\trefreshList();\n\t\t\t\t\t}", "public void refresh(){\n\n data2.clear();\n data2=getActionsList(\"\");\n //actionsAdapter=new ActionsAdapter(data2,getContext());\n //myList.setAdapter(actionsAdapter);\n //actionsAdapter.notifyDataSetChanged();\n }", "public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void updateProgramWorkoutList(){\n //Create the list.\n workoutsInProgram = work_dbh.get_workouts_in_prog(programName);\n workoutListAdapter = new ArrayAdapter<>(\n this, android.R.layout.simple_list_item_1, workoutsInProgram);\n workoutListView.setAdapter(workoutListAdapter);\n }", "private void updateStats(ListView statsMenu) {\n ObservableList<String> scoresList = FXCollections.observableArrayList();\n for (int i = 0; i < quizScores.getSize(); i++) {\n scoresList.add(quizScores.getScore(i));\n }\n statsMenu.setItems(scoresList);\n setCellFormat(statsMenu);\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 refreshDisplayData() {\n if (useLiveDisplayUpdates && displaySection.isOpen()) {\n displayPanel.setValue(device.getDisplayData(), true);\n }\n\n }", "private void updateList() {\n\n if(!mDispositiuList.isEmpty()){\n Collections.sort(mDispositiuList, new Comparator<HashMap<String, String>>() {\n\n public int compare(HashMap<String, String> object1,\n HashMap<String, String> object2) {\n return ((String) object1.get(TAG_DEVICENAME)).compareTo((String) object2.get(TAG_DEVICENAME));\n }\n });\n }\n\n ListAdapter adapter = new SimpleAdapter(this,\n mDispositiuList,\n R.layout.dispositiu,\n new String[] { TAG_DEVICENAME, TAG_FLOTA, TAG_VEHICLE },\n new int[] { R.id.nom, R.id.flota, R.id.vehicle });\n\n\n setListAdapter(adapter);\n\n ListView lv = getListView();\n lv.setOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n HashMap<String, String> map = (HashMap<String, String>) parent.getItemAtPosition(position);\n\n //Toast.makeText(LlistaFlotaActivity.this, map.get(TAG_DEVICEID), Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(LlistaFlotaActivity.this, DispositiuActivity.class);\n intent.putExtra(\"jsonDispositiu\", mDispositiusMapper.get(Integer.parseInt(map.get(TAG_DEVICEID))).toJSON());\n startActivity(intent);\n }\n });\n }", "private void updateKeywordsList() {\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword.setModel(new ModelListSelectable(this.keywordList));\n }", "public void printList() {\n userListCtrl.showAll();\n }", "public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }", "@Override\n public void updateContent() {\n lmDriver.getTournaments();\n\n // Show all tournaments in the scene\n table.createTable();\n\n // Disable buttons\n btnJoin.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnWithdraw.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnShowInfo.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n\n // Clear list\n listLeaderboard.getItems().clear();\n\n // Update global leaderboard\n ArrayList<String> leaderboard = lmDriver.getGlobalLeaderboard();\n\n if (leaderboard.size() == 0) {\n listLeaderboard.getItems().add(\"There are no values yet.\");\n } else {\n listLeaderboard.getItems().add(\"Position Score Player\");\n for (String row : leaderboard) {\n listLeaderboard.getItems().add(row);\n }\n }\n }", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "private void updateUserSelectionList() {\n colorChosenList.setModel(new AbstractListModel<String>() {\n private static final long serialVersionUID = 8471220817189405309L;\n String[] strings = colorSelectedList.stream().toArray(String[]::new);\n\n @Override\n public int getSize() {\n return strings.length;\n }\n\n @Override\n public String getElementAt(int i) {\n return strings[i];\n }\n });\n }" ]
[ "0.7777677", "0.7770773", "0.7713223", "0.7324626", "0.7266111", "0.72441214", "0.7220325", "0.72180784", "0.7205699", "0.7202407", "0.7193581", "0.7150324", "0.71197635", "0.7105389", "0.70808554", "0.7080455", "0.7059408", "0.70346457", "0.7011537", "0.7011537", "0.6962077", "0.69289804", "0.69089466", "0.68930185", "0.68648326", "0.6861213", "0.68558174", "0.68474865", "0.682201", "0.6809441", "0.6802778", "0.679984", "0.67866975", "0.6786259", "0.67685974", "0.67580074", "0.6753897", "0.675257", "0.67470354", "0.673486", "0.67340475", "0.6729898", "0.67255384", "0.67052734", "0.66951114", "0.669354", "0.6692824", "0.668362", "0.6680491", "0.66710395", "0.66700214", "0.66636986", "0.66571337", "0.6641359", "0.66289616", "0.6603139", "0.65977454", "0.6591883", "0.6590709", "0.6586415", "0.6579191", "0.65758884", "0.6571917", "0.65683097", "0.65409255", "0.6540374", "0.6524428", "0.6518065", "0.6513115", "0.6512613", "0.65043133", "0.6492543", "0.6486191", "0.64843315", "0.6457526", "0.6451788", "0.6434723", "0.6433834", "0.64306444", "0.6427044", "0.6423515", "0.6422862", "0.64061165", "0.6398265", "0.6394764", "0.63908523", "0.63900566", "0.63885635", "0.63876307", "0.63857883", "0.6371518", "0.6367681", "0.6366458", "0.6362656", "0.6356921", "0.6351874", "0.63456684", "0.63370717", "0.6336201", "0.6330643", "0.6328802" ]
0.0
-1
API is disconnected from the server
public void handleApiDisconnected() { handler.post(new Runnable(){ public void run(){ Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disconnected)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDisconnected() {\n\t\t\r\n\t}", "@Override\n public void onDisconnected() {\n }", "protected void onDisconnect() {}", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "@Override public void onDisconnected() {\n }", "void onDisconnected();", "@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}", "@Override\n public void onDisconnected() {\n }", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\n\t}", "@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}", "public void disconnectedFromHost();", "public void onDisconnected() {\n\n }", "public void onDisconnected() {\n\n }", "public void disconnected(String reason) {}", "protected void connectionClosed() {}", "@Override\n public void connectionLost() {\n }", "public void disconnect()\n {\n isConnected = false;\n }", "@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t}", "void onDisconnectFailure();", "void serverLostConnection();", "abstract protected void onDisconnection();", "@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }", "void onConnectionLost();", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }", "@Override\n\t\t\tpublic void disconnected() {\n\t\t\t\ttoast(\"IOIO disconnected\");\n\t\t\t}", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "public void onDisconnected() {\r\n // Display the connection status\r\n Toast.makeText(this, \"Disconnected. Please re-connect.\",\r\n Toast.LENGTH_SHORT).show();\r\n }", "@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}", "void onDisconnect();", "void onDisconnect();", "@Override\n\tpublic void onDisconnected() {\n\t\t// Display the connection status\n\t\tToast.makeText(this, \"Disconnected. Please re-connect.\", Toast.LENGTH_SHORT).show();\n\t}", "void handleConnectionClosed();", "private void connectionLost() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Device connection was lost\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n handler.postDelayed(new Runnable() { //sends this stop back to the main thread to exit the reader thread\n @Override\n public void run() {\n stop();\n }\n }, 250);\n }", "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "public void connectionLost(String channelID);", "public void disconnect() {}", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "void onInternetConnectionLost();", "public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }", "protected void processDisconnection(){}", "private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }", "public void disconnect() {\n\t\t\n\t}", "@Override\n public void disconnect() {\n\n }", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "@Override\n public void connectionLost(Throwable arg0) {\n\n }", "void clientDisconnected(Client client, DisconnectInfo info);", "void connectionLost() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.VISIBLE);\n }", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "void onDisconnect( String errorMsg );", "void onDisconnectSuccess();", "@Override\n public boolean disconnectFromSensor() {\n return false;\n }", "protected void onEndpointDisconnected(Endpoint endpoint) {}", "@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}", "private void connectionLost() {\n setState(EBluetoothStates.CONNECTING);\n // Send a failure message back to the Activity\n // updateActivity(General.MessageType.ERROR, General.OnDeviceConnectionLost);\n }", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onDisconnectRemoteNode(String url) {\t\t\t\t\n\t\t\t}", "boolean isConnectionLost()\n\t{\n\t\tboolean lost = false;\n\n\t\tif (m_session != null && !m_session.isConnected())\n\t\t\tlost = true;\n\n\t\treturn lost;\n\t}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "@Override\n public void connectionLost(Throwable cause) {\n }", "@Override\n\tpublic void onDisconnected() {\n\t\tmConnectionStatus.setText(R.string.disconnected);\n\t}", "public void onDeviceDisconnected() {\n btButton.setText(\"Disconnnected\");\n }", "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "@Override\n public void onChannelDisconnected() {\n ConnectionManager.getInstance().setDisconnectNow(true);\n ((P2PListener)activity).onAfterDisconnect();\n }", "@Override\n public void disconnect() {\n getMvpView().showLoading();\n getDataManager().setSetupStatus(false);\n getDataManager().setIpAddress(\"\");\n getMvpView().setIpDetails(\"\", \"Disconnected\");\n\n new Handler().postDelayed(() -> {\n getMvpView().hideLoading();\n getMvpView().toSetupActivity();\n }, 1000);\n }", "void disconnect() throws Exception;", "protected void onDisconnected(long hconv)\n {\n }", "public String _websocket_disconnected() throws Exception{\n__c.Log(\"Disconnected\");\r\n //BA.debugLineNum = 56;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "private void connectionLost() {\n// mConnectionLostCount++;\n// if (mConnectionLostCount < 3) {\n// \t// Send a reconnect message back to the Activity\n//\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n//\t Bundle bundle = new Bundle();\n//\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost. Reconnecting...\");\n//\t msg.setData(bundle);\n//\t mHandler.sendMessage(msg);\n//\t \n// \tconnect(mSavedDevice); \t\n// } else {\n \tsetState(STATE_LISTEN);\n\t // Send a failure message back to the Activity\n\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n\t Bundle bundle = new Bundle();\n\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost\");\n\t msg.setData(bundle);\n\t mHandler.sendMessage(msg);\n// }\n }", "public void onServiceDisconnected();", "@Override\n\tpublic void connectionClosed() {\n\t}", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "@Override\n\t\t\tpublic void connectionLost(Throwable throwable) {\n\t\t\t\tSystem.out.println(\"connectionLost\");\n\t\t\t}", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }", "protected void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tJSONObject msg = new JSONObject();\n\t\t\ttry {\n\t\t\t\tmsg.put(\"type\", \"DISCONNECT_REQUEST\");\n\t\t\t\tmsg.put(\"source\", name);\n\t\t\t\tnew Write(msg).execute(\"\");\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public boolean disconnect() {\r\n\t\t\r\n\t\tString message;\r\n\t\t//ENTER YOUR CODE TO DISCONNECT\r\n\t\tif (isChatSessionOpened()){\r\n\t\t\tsendChatClosure();\r\n\t\t}\r\n\t\t\r\n\t\tmessage= \"106\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\tthis.connectedUser = null;\r\n\t\tthis.chatReceiver = null;\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic void disconnect();", "public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n\n }", "public void disconnect( ) {\n disconnect( \"\" );\n }", "@Override\r\n\t\tpublic void onDisconnect(Connection connection) {\n\r\n\t\t}", "protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}", "@Disconnect\n public void disconnected(AtmosphereResourceEvent event){\n if (event.isCancelled()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" unexpectedly disconnected\");\n } else if (event.isClosedByClient()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" closed the connection\");\n }\n }", "public void goneOffline()\n\t{\n\t\tgetMainWindow().displayOfflineSymbol();\n\t\tmainWindow.displayMessage(Resources.getString(\"msg_disconnected\"));\n\t\tcloseAllRoomWindows();\n\t}" ]
[ "0.7085023", "0.703332", "0.7024787", "0.6965978", "0.69540197", "0.6953291", "0.69516474", "0.695031", "0.6944541", "0.6944541", "0.6944541", "0.694332", "0.6935718", "0.68803406", "0.6865074", "0.6865074", "0.686405", "0.6856098", "0.6854301", "0.6816977", "0.68109804", "0.6803525", "0.67936337", "0.67805547", "0.67674255", "0.6760033", "0.67139816", "0.669852", "0.6696909", "0.6694793", "0.66613066", "0.6652692", "0.66489786", "0.66489786", "0.66430014", "0.66279835", "0.66237813", "0.6621152", "0.6605214", "0.66016847", "0.65590084", "0.6547744", "0.650857", "0.6501189", "0.6459406", "0.6437644", "0.6416408", "0.6415713", "0.6394602", "0.63912785", "0.63912785", "0.63896996", "0.63894826", "0.6384224", "0.63749784", "0.6368542", "0.6365334", "0.63512874", "0.6342153", "0.63336855", "0.6318518", "0.6315899", "0.6315899", "0.63059765", "0.63058877", "0.6298378", "0.6298378", "0.6298378", "0.6298378", "0.6297891", "0.6289512", "0.62894654", "0.62847835", "0.6269069", "0.62684846", "0.625799", "0.6252735", "0.6251725", "0.62508315", "0.6250276", "0.6241906", "0.62407935", "0.6235102", "0.62347347", "0.62332594", "0.62309754", "0.62295556", "0.6229032", "0.62259686", "0.62173134", "0.6217251", "0.62037003", "0.62031245", "0.62014526", "0.6197081", "0.6195353", "0.61917835", "0.6190883", "0.6167768", "0.61650205" ]
0.75115824
0
Created by Ivan on 2016/12/30.
public interface ApiService { public static final String BASE_URL = "http://112.124.22.238:8081/course_api/cniaoplay/"; // @GET("featured") // public Call<PageBean<AppInfo>> getApps(@Query("p") String jsonParam); @GET("featured") public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query("p") String jsonParam); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo38117a() {\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\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 }", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void one() {\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 getExras() {\n }", "@Override\n public void init() {}", "@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}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\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\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void strin() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "Petunia() {\r\n\t\t}", "private void getStatus() {\n\t\t\n\t}" ]
[ "0.6129701", "0.5971279", "0.5945622", "0.59064853", "0.59064853", "0.5898189", "0.58573455", "0.5850389", "0.57812726", "0.57242084", "0.5709882", "0.5703063", "0.5700994", "0.5690614", "0.56696707", "0.5641307", "0.5612636", "0.5610956", "0.5608631", "0.560751", "0.56045634", "0.5601131", "0.5591271", "0.5586254", "0.5577267", "0.5577267", "0.5577267", "0.5577267", "0.5577267", "0.5575179", "0.5573373", "0.55673903", "0.55551773", "0.55551773", "0.55451304", "0.5517615", "0.551358", "0.55132216", "0.55132216", "0.5511512", "0.5511512", "0.5511512", "0.5511512", "0.5511512", "0.5511512", "0.5508527", "0.55064994", "0.55064976", "0.54945296", "0.54929537", "0.5467642", "0.5467632", "0.5461913", "0.5460142", "0.5460142", "0.5460142", "0.5458764", "0.54578096", "0.54554117", "0.54554117", "0.54554117", "0.54552823", "0.54484046", "0.54459256", "0.54433864", "0.54407364", "0.54407364", "0.54407364", "0.54389244", "0.5435477", "0.5435477", "0.5428087", "0.54274946", "0.5426143", "0.5413945", "0.5413945", "0.5413945", "0.5413945", "0.5413945", "0.5413945", "0.5413945", "0.5389957", "0.5381319", "0.5375375", "0.53750587", "0.53672284", "0.5365355", "0.53643095", "0.53611046", "0.5352553", "0.53438807", "0.5338953", "0.5337005", "0.5334361", "0.5326665", "0.5324287", "0.5310847", "0.53079945", "0.53079945", "0.5304479", "0.52976024" ]
0.0
-1
Lookup the algorithm specified by its standardized name
public static PKAlgs getAlg(String name) throws SshException { // For purposes of easier maintainability, apply a generic function, // appropriate for all families of encryption algorithms PKAlgs retVal = LookUpUtil.lookUp(PKAlgs.values(), name); if ( null==retVal ) { throw new SshException("Name not found"); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAlgorithm();", "public String algorithmName();", "public String getAlgorithmName() {\n\t}", "@Override\n public String getAlgorithm()\n {\n return algorithm;\n }", "AlgorithmIdentifier getAlgorithmIdentifier();", "public String getName()\r\n\t{\r\n\r\n\t\treturn ALGORITHM_NAME;\r\n\t}", "public String getAlgorithm() {\r\n return algorithm;\r\n }", "public String getAlgorithm() {\n return _algorithm;\n }", "public final java.lang.String getAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getAlgorithm():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getAlgorithm():java.lang.String\");\n }", "Algorithm createAlgorithm();", "public String getAlgorithmName ()\n {\n return algName; //(new String (algName + \" --> Input Stream : \" + this.inputName));\n }", "String algorithm();", "public Algorithm getAlgorithm(String type)\n\t{\n\t\tif(type.equalsIgnoreCase(\"PCC\"))\n\t\t\treturn new AlgorithmPCC();\n\t\telse if(type.equalsIgnoreCase(\"Cosine\"))\n\t\t\treturn new AlgorithmCosine();\n\t\telse if(type.equalsIgnoreCase(\"DotProduct\"))\n\t\t\treturn new AlgorithmDotProduct();\n\t\t\n\t\telse \n\t\t\treturn null;\n\t}", "public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }", "public int\ngetAlgorithm() {\n\treturn alg;\n}", "String getLookupKey();", "String getHashAlgorithm();", "protected Algorithm getAlgorithm(char type) {\n\t\tfor (int i = 0; i < algorithms.size(); ++i)\n\t\t\tif (algorithms.get(i).getType() == type)\n\t\t\t\treturn algorithms.get(i);\n\t\treturn null;\n\t}", "java.lang.String getManifestHashAlgorithm();", "public static java.security.AlgorithmParameterGenerator getInstance(java.lang.String r1) throws java.security.NoSuchAlgorithmException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator\");\n }", "private static SignatureAlgorithmSpi getSignatureAlgorithmSpi(String paramString) throws XMLSignatureException {\n/* */ try {\n/* 150 */ Class<SignatureAlgorithmSpi> clazz = (Class)algorithmHash.get(paramString);\n/* 151 */ if (log.isLoggable(Level.FINE)) {\n/* 152 */ log.log(Level.FINE, \"Create URI \\\"\" + paramString + \"\\\" class \\\"\" + clazz + \"\\\"\");\n/* */ }\n/* */ \n/* 155 */ return clazz.newInstance();\n/* 156 */ } catch (IllegalAccessException illegalAccessException) {\n/* 157 */ Object[] arrayOfObject = { paramString, illegalAccessException.getMessage() };\n/* 158 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, illegalAccessException);\n/* 159 */ } catch (InstantiationException instantiationException) {\n/* 160 */ Object[] arrayOfObject = { paramString, instantiationException.getMessage() };\n/* 161 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, instantiationException);\n/* 162 */ } catch (NullPointerException nullPointerException) {\n/* 163 */ Object[] arrayOfObject = { paramString, nullPointerException.getMessage() };\n/* 164 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, nullPointerException);\n/* */ } \n/* */ }", "public String getSigAlgName()\n {\n Provider prov = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME);\n\n if (prov != null)\n {\n String algName = prov.getProperty(\"Alg.Alias.Signature.\" + this.getSigAlgOID());\n\n if (algName != null)\n {\n return algName;\n }\n }\n\n Provider[] provs = Security.getProviders();\n\n //\n // search every provider looking for a real algorithm\n //\n for (int i = 0; i != provs.length; i++)\n {\n String algName = provs[i].getProperty(\"Alg.Alias.Signature.\" + this.getSigAlgOID());\n if (algName != null)\n {\n return algName;\n }\n }\n\n return this.getSigAlgOID();\n }", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getMaskGenAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getMaskGenAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getMaskGenAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "Symbol resolve(String name);", "public String getSelectedAlgorithmName()\n {\n int selected = getSelectedAlgorithmNum();\n if (selected == -1)\n return null;\n return sortNames[selected];\n }", "public String readPolicyCombiningAlgorithm() throws EntitlementException {\n try {\n Collection policyCollection = null;\n if(registry.resourceExists(policyStorePath)){\n policyCollection = (Collection) registry.get(policyStorePath);\n }\n if(policyCollection != null){\n return policyCollection.getProperty(\"globalPolicyCombiningAlgorithm\");\n }\n return null;\n } catch (RegistryException e) {\n log.error(\"Error while reading policy combining algorithm\", e);\n throw new EntitlementException(\"Error while reading policy combining algorithm\", e);\n }\n }", "@Override\n\tpublic void selectAlgorithm(String algorithmName) {\n\t\tproblem.setAlgorithm(algorithmName);\n\t}", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum getCryptAlgorithmClass();", "public abstract String getSigAlgName();", "String getUsser();", "private static String getAlgorithmName(String sha, String mgf) throws NoSuchAlgorithmException {\n try {\n Signature.getInstance(\"RSASSA-PSS\");\n return \"RSASSA-PSS\";\n } catch (NoSuchAlgorithmException ex) {\n // RSASSA-PSS is not known. Try the other options.\n }\n String md = compactDigestName(sha);\n try {\n // Try the legacy naming for JCE.\n String name = md + \"WITHRSAand\" + mgf;\n Signature.getInstance(name);\n return name;\n } catch (NoSuchAlgorithmException ex) {\n // name is not supported. Try other options.\n }\n String name = md + \"withRSA/PSS\";\n Signature.getInstance(name);\n return name;\n }", "public abstract StandaloneAlgorithm createAlgorithm();", "public void setAlgorithm(String algorithm) {\n _algorithm = algorithm;\n }", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "public static java.security.AlgorithmParameterGenerator getInstance(java.lang.String r1, java.lang.String r2) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String, java.lang.String):java.security.AlgorithmParameterGenerator, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String, java.lang.String):java.security.AlgorithmParameterGenerator\");\n }", "public void setAlgorithm(String algorithm) {\n\t\tthis.algorithm = algorithm;\n\t}", "public void setAlgorithm(Algorithm alg) {\n this.algorithm=alg;\n }", "String lookupMashFromName(String name);", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getPSourceAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }", "public String getAlg() {\r\n\t\treturn alg;\r\n\t}", "static Algorithm createSystem(String sys, Config cfg) {\n switch (sys.toLowerCase()) {\n case \"shift\":\n return new CaesarCipher(cfg.getKey());\n case \"unicode\":\n return new UnicodeCipher(cfg.getKey());\n default:\n throw new IllegalArgumentException(String.format(\"Invalid algorithm %s\\n\", sys));\n }\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgType.Enum getCryptAlgorithmType();", "public String getLowestChromKey();", "public String getHighestChromKey();", "public Element getOperationAsciiMathLibrary(String _lookingfor) {\n Optional<Element> p = aCollection.stream()\n .filter(e -> ((NamedElement) e).getName().equals(_lookingfor))\n .findFirst();//.get();\n if (p.hashCode() != 0) {\n return p.get();\n }\n else {\n return null;\n }\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass xgetCryptAlgorithmClass();", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgType xgetCryptAlgorithmType();", "public static String getKeyAlgorithmFromSigAlg(final String signatureAlgorithm) {\n\t\tfinal String ret;\n\t\tif ( signatureAlgorithm.contains(\"ECDSA\") ) {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_ECDSA;\n\t\t} else if ( signatureAlgorithm.contains(\"DSA\") ) {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_DSA;\n\t\t} else {\n\t\t\tret = AlgorithmConstants.KEYALGORITHM_RSA;\t\t\t\n\t\t}\n\t\treturn ret;\n\t}", "String getDigestAlgorithm();", "java.lang.String getAlgIdExtSource();", "public static String lookupProviderNameFromId(int protocol) {\n switch (protocol) {\n case Im.PROTOCOL_GOOGLE_TALK:\n return ProviderNames.GTALK;\n case Im.PROTOCOL_AIM:\n return ProviderNames.AIM;\n case Im.PROTOCOL_MSN:\n return ProviderNames.MSN;\n case Im.PROTOCOL_YAHOO:\n return ProviderNames.YAHOO;\n case Im.PROTOCOL_ICQ:\n return ProviderNames.ICQ;\n case Im.PROTOCOL_JABBER:\n return ProviderNames.JABBER;\n case Im.PROTOCOL_SKYPE:\n return ProviderNames.SKYPE;\n case Im.PROTOCOL_QQ:\n return ProviderNames.QQ;\n }\n return null;\n }", "protected String getAlgorithmURI(String algorithm) {\n if(algorithm == null) {\n return null;\n }\n if(algorithm.equals(\"RSA\")) {\n return SAMLConstants.ALGO_ID_SIGNATURE_RSA;\n } else if(algorithm.equals(\"DSA\")) {\n return SAMLConstants.ALGO_ID_SIGNATURE_DSA;\n } else {\n return null;\n }\n }", "public Object getAlgorithm() {\n return graphConfig.getAlgorithm();\n }", "SchemeDBO getSchemeByName(String schemeName);", "String getMGFAlgorithm();", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Operation lookupOperation(java.lang.String name, List paramTypes) {\n Operation op;\n \n //UML-MOF-Common\n Iterator allOperationsIt = allOperations().iterator();\n while(allOperationsIt.hasNext()){\n op = (Operation) allOperationsIt.next(); \n if(name.equals(op.getNameA()) && op.hasMatchingSignature(paramTypes)){\n return op;\n } \n }\n\n return null;\n }", "public Protocol getProtocol(String sName);", "public String getAdaptiveRateAlgorithm();", "public void changeAlgorithm(String algo){\n logger.info(\"Changing algorithm to {}\", algo);\n currentPathingAlgorithm = pathingAlgorithm.get(algo);\n }", "public T caseAlgorithmSpecification(AlgorithmSpecification object)\r\n {\r\n return null;\r\n }", "GameCode getGameCode(String gameCode);", "String getMessageDigestAlgorithm();", "public java.lang.String getSigAlgName() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgName():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgName():java.lang.String\");\n }", "@Override\n public Algorithm getAlgorithm(String name, Properties properties, Problem problem) {\n if (name.equals(\"NSGAII\")) {\n TypedProperties typed_props = new TypedProperties(properties);\n int pop_size = typed_props.getInt(\"populationSize\", 100);\n Initialization initialization = makeInitializer(problem, pop_size);\n DominanceComparator comparator = new ParetoDominanceComparator();\n NondominatedSortingPopulation population = new NondominatedSortingPopulation(comparator);\n TournamentSelection selection =\n new TournamentSelection(2, new ChainedComparator(new ParetoDominanceComparator(),\n new CrowdingComparator()));\n Variation variation = OperatorFactory.getInstance().getVariation(\"ux+svum+sm\", properties, problem);\n return decorateWithPeriodicActions(\n new NSGAII(problem, population, null, selection, variation, initialization));\n }\n return null;\n }", "int getUnusedAlgorithmId();", "public final static int get(String algorithmName) {\n\t\t\tString strValue = PROPERTIES.getProperty(algorithmName);\n//\t\t\tlog.info(\"GET algorithm id : \"+algorithmName);\n\t\t\ttry {\treturn strValue!=null? Integer.valueOf(strValue): -1;\t}catch(Exception e) {\treturn -1;\t}\n\t\t}", "@Nullable protected String resolveDataEncryptionAlgorithm(@Nullable final Credential dataEncryptionCredential, \n @Nonnull final List<String> dataEncryptionAlgorithms) {\n \n if (log.isTraceEnabled()) {\n final Key key = dataEncryptionCredential != null\n ? CredentialSupport.extractEncryptionKey(dataEncryptionCredential) : null;\n log.trace(\"Evaluating data encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n if (dataEncryptionCredential == null) {\n log.trace(\"Data encryption credential was null, selecting algorithm based on effective algorithms alone\");\n if (!dataEncryptionAlgorithms.isEmpty()) {\n return dataEncryptionAlgorithms.get(0);\n }\n return null;\n }\n \n for (final String algorithm : dataEncryptionAlgorithms) {\n assert algorithm != null;\n log.trace(\"Evaluating data encryption credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(dataEncryptionCredential, algorithm) \n && isDataEncryptionAlgorithm(algorithm)) {\n return algorithm;\n }\n }\n \n return null;\n }", "@Nullable protected String resolveDataEncryptionAlgorithm(@Nullable final Credential dataEncryptionCredential, \n @Nonnull final List<String> dataEncryptionAlgorithms) {\n \n if (log.isTraceEnabled()) {\n final Key key = CredentialSupport.extractEncryptionKey(dataEncryptionCredential);\n log.trace(\"Evaluating data encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n if (dataEncryptionCredential == null) {\n log.trace(\"Data encryption credential was null, selecting algorithm based on effective algorithms alone\");\n if (!dataEncryptionAlgorithms.isEmpty()) {\n return dataEncryptionAlgorithms.get(0);\n } else {\n return null;\n }\n }\n \n for (final String algorithm : dataEncryptionAlgorithms) {\n log.trace(\"Evaluating data encryption credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(dataEncryptionCredential, algorithm) \n && isDataEncryptionAlgorithm(algorithm)) {\n return algorithm;\n }\n }\n \n return null;\n }", "public IAlgo getAlgo();", "String getPreferredName();", "public static String getKeyAlgorithm(final PublicKey publickey) {\n\t\tString keyAlg = null;\n\t\tif ( publickey instanceof RSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_RSA;\n\t\t} else if ( publickey instanceof DSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_DSA;\n\t\t} else if ( publickey instanceof ECPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_ECDSA;\n\t\t}\n\t\treturn keyAlg;\n\t}", "public static String lookup(String baseName, String key)\r\n {\r\n return lookup(baseName, key, null, null, null);\r\n }", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final List<String> keyTransportAlgorithms, @Nullable final String dataEncryptionAlgorithm,\n @Nullable final KeyTransportAlgorithmPredicate keyTransportPredicate) {\n \n if (log.isTraceEnabled()) {\n final Key key = CredentialSupport.extractEncryptionKey(keyTransportCredential);\n log.trace(\"Evaluating key transport encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n for (final String algorithm : keyTransportAlgorithms) {\n log.trace(\"Evaluating key transport credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(keyTransportCredential, algorithm) && isKeyTransportAlgorithm(algorithm)) {\n if (keyTransportPredicate != null) {\n if (keyTransportPredicate.test(new KeyTransportAlgorithmPredicate.SelectionInput(\n algorithm, dataEncryptionAlgorithm, keyTransportCredential))) {\n return algorithm;\n }\n } else {\n return algorithm;\n }\n }\n }\n \n return null;\n }", "long getCryptAlgorithmSid();", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final List<String> keyTransportAlgorithms, @Nullable final String dataEncryptionAlgorithm,\n @Nullable final KeyTransportAlgorithmPredicate keyTransportPredicate) {\n \n if (log.isTraceEnabled()) {\n final Key key = CredentialSupport.extractEncryptionKey(keyTransportCredential);\n log.trace(\"Evaluating key transport encryption credential of type: {}\", \n key != null ? key.getAlgorithm() : \"n/a\");\n }\n \n for (final String algorithm : keyTransportAlgorithms) {\n assert algorithm != null;\n log.trace(\"Evaluating key transport credential against algorithm: {}\", algorithm);\n if (credentialSupportsAlgorithm(keyTransportCredential, algorithm) && isKeyTransportAlgorithm(algorithm)) {\n if (keyTransportPredicate != null) {\n if (keyTransportPredicate.test(new KeyTransportAlgorithmPredicate.SelectionInput(\n algorithm, dataEncryptionAlgorithm, keyTransportCredential))) {\n return algorithm;\n }\n } else {\n return algorithm;\n }\n }\n }\n \n return null;\n }", "public DynamicMethod searchMethod(String name) {\n return searchWithCache(name).method;\n }", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "protected Algorithm getAlgorithm(char type, short degree) {\n\t\tfor (int i = 0; i < algorithms.size(); ++i)\n\t\t\tif (algorithms.get(i).getType() == type\n\t\t\t\t\t&& algorithms.get(i).getDegree() == degree)\n\t\t\t\treturn algorithms.get(i);\n\t\treturn null;\n\t}", "public static SignatureAlgoEnum fromSpki(String spkiName) {\n int pos = spkiName.lastIndexOf(\"-\");\n if (pos==-1) {\n throw new JsdsiRuntimeException(\"Illegal SPKI SignatureAlgo: \"+spkiName);\n }\n String s = spkiName.substring(pos+1);\n DigestAlgoEnum digest = DigestAlgoEnum.fromSpki( s );\n s = spkiName.substring(0, pos);\n KeyEnum key = KeyEnum.fromSpki( s );\n return new SignatureAlgoEnum(digest, key);\n }", "String getScheme();", "public abstract boolean lookup(Key key);", "public void chooseAlgorithm() {\n boolean runloop = true;\n CustomArrayList<Integer>[] graph = null;\n graph = util.initializeCNF(statement);\n while (runloop) {\n io.println(\"Which algorithm do you want to use to solve this?\");\n io.println(\"1: Tarjan algorithm\\n2: Kosaraju algorithm\\n3: Brute force method\\n4: Print the truth distribution that solves the CNF\\n5: return\");\n String selection = io.nextLine();\n switch (selection) {\n case (\"1\"):\n tarjan = new TarjanAlgorithm(graph, numVariables);\n TarjanPrint();\n break;\n case (\"2\"):\n kosaraju = new KosarajuAlgorithm(graph, numVariables);\n KosarajuPrint();\n break;\n case (\"3\"):\n io.println(\"Warning! Brute force method has an exponential time complexity. Using this with CNF with more than 20 variables will take a really long time. \");\n io.println(\"Continue? y/n\");\n String affirmate = io.nextLine();\n switch (affirmate) {\n case (\"y\"):\n bruteForcePrint();\n break;\n case (\"n\"):\n break;\n }\n break;\n case (\"4\"):\n tarjan = new TarjanAlgorithm(graph, numVariables);\n if (tarjan.checkSatisfiability()) {\n printTruthAssesment();\n } else {\n io.println(\"Not satisfiable\");\n }\n break;\n case (\"5\"):\n io.println(\"Returning to main menu...\");\n runloop = false;\n break;\n }\n }\n }", "public String solver(String name){\n name = name.toLowerCase();\n\n boolean b1 = name.startsWith(\"hydro\");\n boolean b2 = name.endsWith(\"ic\");\n String answer = \"\";\n if(b1 && b2){\n answer = \"non-metal acid\";\n }else if(b1==false && b2 ==true){\n answer = \"polyatomic acid\";\n }else if(b1 == false && b2 == false){\n answer = \"not an acid\";\n }\n return answer;\n }", "public Expression determine(String s);", "boolean supportsStrategy(String strategy);", "@Test\n public void determine_what_provider_JRE_selected_for_our_Cipher() throws Exception {\n Cipher cipher = Cipher.getInstance(\"Blowfish/ECB/NoPadding\");\n System.out.println(cipher.getProvider());\n /**\n * Or we can create our Cipher asking the JRE to get a specific implementation\n * of an algorithim from a given provider, e.g. BC\n */\n Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", \"BC\"); //or\n // Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", Security.getProvider(\"BC\")); //or\n System.out.println(bc.getProvider());\n }", "public abstract AbstractFunction getFunction(String name) throws BadAlloc;", "public SecretKey engineLookupAndResolveSecretKey(Element paramElement, String paramString, StorageResolver paramStorageResolver) {\n/* 155 */ return null;\n/* */ }", "public static Algorithm get() {\n \t\treturn currentAlgorithmStack.get().peek();\n \t}", "org.apache.xmlbeans.XmlAnyURI xgetManifestHashAlgorithm();", "@Nullable protected String resolveCanonicalizationAlgorithm(@Nonnull final CriteriaSet criteria) {\n\n final SignatureSigningConfigurationCriterion criterion =\n criteria.get(SignatureSigningConfigurationCriterion.class);\n assert criterion != null;\n\n for (final SignatureSigningConfiguration config : criterion.getConfigurations()) {\n if (config.getSignatureCanonicalizationAlgorithm() != null) {\n return config.getSignatureCanonicalizationAlgorithm();\n }\n }\n \n return null;\n }", "void setMGFAlgorithm(String mgfAlgorithm);", "public static final ULocale getFunctionalEquivalent(String baseName, ClassLoader loader, String resName, String keyword, ULocale locID, boolean[] isAvailable, boolean omitDefault)\n/* */ {\n/* 158 */ String kwVal = locID.getKeywordValue(keyword);\n/* 159 */ String baseLoc = locID.getBaseName();\n/* 160 */ String defStr = null;\n/* 161 */ ULocale parent = new ULocale(baseLoc);\n/* 162 */ ULocale defLoc = null;\n/* 163 */ boolean lookForDefault = false;\n/* 164 */ ULocale fullBase = null;\n/* 165 */ int defDepth = 0;\n/* 166 */ int resDepth = 0;\n/* */ \n/* 168 */ if ((kwVal == null) || (kwVal.length() == 0) || (kwVal.equals(\"default\")))\n/* */ {\n/* 170 */ kwVal = \"\";\n/* 171 */ lookForDefault = true;\n/* */ }\n/* */ \n/* */ \n/* 175 */ ICUResourceBundle r = null;\n/* */ \n/* 177 */ r = (ICUResourceBundle)UResourceBundle.getBundleInstance(baseName, parent);\n/* 178 */ if (isAvailable != null) {\n/* 179 */ isAvailable[0] = false;\n/* 180 */ ULocale[] availableULocales = getAvailEntry(baseName, loader).getULocaleList();\n/* 181 */ for (int i = 0; i < availableULocales.length; i++) {\n/* 182 */ if (parent.equals(availableULocales[i])) {\n/* 183 */ isAvailable[0] = true;\n/* 184 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ do\n/* */ {\n/* */ try {\n/* 191 */ ICUResourceBundle irb = (ICUResourceBundle)r.get(resName);\n/* 192 */ defStr = irb.getString(\"default\");\n/* 193 */ if (lookForDefault == true) {\n/* 194 */ kwVal = defStr;\n/* 195 */ lookForDefault = false;\n/* */ }\n/* 197 */ defLoc = r.getULocale();\n/* */ }\n/* */ catch (MissingResourceException t) {}\n/* */ \n/* 201 */ if (defLoc == null) {\n/* 202 */ r = (ICUResourceBundle)r.getParent();\n/* 203 */ defDepth++;\n/* */ }\n/* 205 */ } while ((r != null) && (defLoc == null));\n/* */ \n/* */ \n/* 208 */ parent = new ULocale(baseLoc);\n/* 209 */ r = (ICUResourceBundle)UResourceBundle.getBundleInstance(baseName, parent);\n/* */ do\n/* */ {\n/* */ try {\n/* 213 */ ICUResourceBundle irb = (ICUResourceBundle)r.get(resName);\n/* 214 */ irb.get(kwVal);\n/* 215 */ fullBase = irb.getULocale();\n/* */ \n/* */ \n/* */ \n/* 219 */ if ((fullBase != null) && (resDepth > defDepth)) {\n/* 220 */ defStr = irb.getString(\"default\");\n/* 221 */ defLoc = r.getULocale();\n/* 222 */ defDepth = resDepth;\n/* */ }\n/* */ }\n/* */ catch (MissingResourceException t) {}\n/* */ \n/* 227 */ if (fullBase == null) {\n/* 228 */ r = (ICUResourceBundle)r.getParent();\n/* 229 */ resDepth++;\n/* */ }\n/* 231 */ } while ((r != null) && (fullBase == null));\n/* */ \n/* 233 */ if ((fullBase == null) && (defStr != null) && (!defStr.equals(kwVal)))\n/* */ {\n/* */ \n/* */ \n/* 237 */ kwVal = defStr;\n/* 238 */ parent = new ULocale(baseLoc);\n/* 239 */ r = (ICUResourceBundle)UResourceBundle.getBundleInstance(baseName, parent);\n/* 240 */ resDepth = 0;\n/* */ do\n/* */ {\n/* */ try {\n/* 244 */ ICUResourceBundle irb = (ICUResourceBundle)r.get(resName);\n/* 245 */ UResourceBundle urb = irb.get(kwVal);\n/* */ \n/* */ \n/* 248 */ fullBase = r.getULocale();\n/* */ \n/* */ \n/* */ \n/* 252 */ if (!fullBase.toString().equals(urb.getLocale().toString())) {\n/* 253 */ fullBase = null;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 258 */ if ((fullBase != null) && (resDepth > defDepth)) {\n/* 259 */ defStr = irb.getString(\"default\");\n/* 260 */ defLoc = r.getULocale();\n/* 261 */ defDepth = resDepth;\n/* */ }\n/* */ }\n/* */ catch (MissingResourceException t) {}\n/* */ \n/* 266 */ if (fullBase == null) {\n/* 267 */ r = (ICUResourceBundle)r.getParent();\n/* 268 */ resDepth++;\n/* */ }\n/* 270 */ } while ((r != null) && (fullBase == null));\n/* */ }\n/* */ \n/* 273 */ if (fullBase == null) {\n/* 274 */ throw new MissingResourceException(\"Could not find locale containing requested or default keyword.\", baseName, keyword + \"=\" + kwVal);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 279 */ if ((omitDefault) && (defStr.equals(kwVal)) && (resDepth <= defDepth))\n/* */ {\n/* */ \n/* 282 */ return fullBase;\n/* */ }\n/* 284 */ return new ULocale(fullBase.toString() + \"@\" + keyword + \"=\" + kwVal);\n/* */ }", "Expertise findByName(String name);", "protected abstract Object doLocalLookup( Name name )\n throws NamingException;", "private static Charset lookup(String enc) {\n try {\n if (enc != null && Charset.isSupported(enc)) {\n return Charset.forName(enc);\n }\n } catch (IllegalArgumentException ex) {\n // illegal charset name\n // unsupport charset\n }\n return null;\n }", "@Nullable protected String resolveKeyTransportAlgorithm(@Nonnull final Credential keyTransportCredential, \n @Nonnull final CriteriaSet criteria, @Nonnull final Predicate<String> whitelistBlacklistPredicate,\n @Nullable final String dataEncryptionAlgorithm) {\n \n return resolveKeyTransportAlgorithm(keyTransportCredential, getEffectiveKeyTransportAlgorithms(criteria, \n whitelistBlacklistPredicate), dataEncryptionAlgorithm, resolveKeyTransportAlgorithmPredicate(criteria));\n }", "Object find(String name);" ]
[ "0.76003146", "0.71668524", "0.66774505", "0.65886325", "0.6285562", "0.62319225", "0.6212724", "0.61775255", "0.61068857", "0.60616624", "0.60375774", "0.6036218", "0.59990895", "0.5923955", "0.590789", "0.58060646", "0.5780211", "0.56583834", "0.56570137", "0.5635107", "0.56114763", "0.561111", "0.55967665", "0.5595229", "0.55906695", "0.5584969", "0.55678755", "0.55554366", "0.5536374", "0.55323595", "0.5501497", "0.5499289", "0.5486359", "0.546997", "0.5465629", "0.54554445", "0.5454534", "0.54540193", "0.5446652", "0.5446547", "0.54436624", "0.5399226", "0.53847146", "0.5383758", "0.5382526", "0.5371307", "0.5356431", "0.53451663", "0.53279066", "0.5315726", "0.5293974", "0.52556753", "0.52504224", "0.52345186", "0.52273", "0.52263993", "0.52259123", "0.5193566", "0.51882106", "0.51778907", "0.5161635", "0.51303387", "0.5127253", "0.51253533", "0.51152796", "0.50992703", "0.5090593", "0.5077764", "0.50769955", "0.506987", "0.5041369", "0.50293744", "0.50238895", "0.5022697", "0.50206023", "0.5019875", "0.50123066", "0.5010798", "0.5010798", "0.5006153", "0.5001864", "0.49935386", "0.49838465", "0.4980172", "0.4966085", "0.49647498", "0.49494874", "0.49287245", "0.4928706", "0.49258208", "0.49227598", "0.49215972", "0.49104962", "0.49050617", "0.48981225", "0.48950762", "0.48871696", "0.4880835", "0.48720795", "0.48692062" ]
0.6440745
4
Convert into an instance of AsymmetricAlgorithm
public AsymmetricAlgorithm toCU() { return this.cu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IDetectionAlgorithm createInstance();", "Algorithm createAlgorithm();", "OpenSSLKey mo134201a();", "protected AsymmetricProcessor() {\n\t}", "public abstract StandaloneAlgorithm createAlgorithm();", "public interface AsymmetricBlockCipher {\n /**\n * initialise the cipher.\n *\n * @param forEncryption if true the cipher is initialised for\n * encryption, if false for decryption.\n * @param param the key and other data required by the cipher.\n */\n public void init(boolean forEncryption, CipherParameters param);\n\n /**\n * returns the largest size an input block can be.\n *\n * @return maximum size for an input block.\n */\n public int getInputBlockSize();\n\n /**\n * returns the maximum size of the block produced by this cipher.\n *\n * @return maximum size of the output block produced by the cipher.\n */\n public int getOutputBlockSize();\n\n /**\n * process the block of len bytes stored in in from offset inOff.\n *\n * @param in the input data\n * @param inOff offset into the in array where the data starts\n * @param len the length of the block to be processed.\n * @return the resulting byte array of the encryption/decryption process.\n * @throws InvalidCipherTextException data decrypts improperly.\n * @throws DataLengthException the input data is too large for the cipher.\n */\n public byte[] processBlock(byte[] in, int inOff, int len)\n throws InvalidCipherTextException;\n}", "public CCA2KPABE(){\n\t\tthis.pairing = PairingFactory.getPairing(ParameterGenerator.PATH_TYPE_A_PARAMETER); \n\t}", "public IAsymetricAlgorithm getAsymetricAlgorithm() throws DirectoryException\n\t{\n\t\treturn (IAsymetricAlgorithm) algorithm.getObject();\n\t}", "public KeyPair generadorAleatori() {\n KeyPair keys = null;\n try {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(2048);\n keys = keyGen.genKeyPair();\n } catch (Exception e) {\n System.err.println(\"Generador no disponible.\");\n }\n return keys;\n }", "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "public ImplicitCertificateGenerator(SignatureAlgorithms algorithm, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n if (algorithm == null) {\n throw new IllegalArgumentException(\"Missing algorithm OID\");\n } else if (!algorithm.isEcqv()) {\n throw new UnsupportedOperationException(\n \"This provider can only be used with ECQV-based signature types\");\n }\n\n X962Parameters x9params = new X962Parameters(new ASN1ObjectIdentifier(algorithm.getSecOid()));\n\n digest = MessageDigest.getInstance(\n algorithm.getDigestAlgorithm().getDigestName(), BouncyCastleProvider.PROVIDER_NAME);\n curveParameters =\n ECNamedCurveTable.getParameterSpec(algorithm.getCryptoAlgorithm().getAlgorithmName());\n algorithmId =\n new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, x9params.toASN1Primitive());\n }", "public KeyEncryptionKeyInfo() {\n }", "public RSAKeyPairGenerator() {\n }", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "public EncodingAlgorithmAttributesImpl() {\n this(null, null);\n }", "public interface ICrypto\n{\n\t/**\n\t *\n\t * @return\ttrue for Public/Private key and false for password style encryption\n\t */\n\tboolean isPublic();\n\n\t/**\n\t * @param clearText\t\tClear text\n\t * @return\t\t\t\tStringized (BasicBase64) version of the cipher for the clear text\n\t */\n\tString encrypt(String clearText);\n\n\t/**\n\t * @param cipherText\tClear text\n\t * @return\t\t\t\tClear text from the stringized (BasicBase64) version of the cipherTetxt\n\t */\n\tString decrypt(String cipherText);\n\n\t/**\n\t * @return\tThe cryptography algorithm\n\t */\n\tString getAlgorithm();\n\n\t/**\n\t *\n\t * @return\tThe name by which this combination algorithm/key are known.\n\t */\n\tString getAliasName();\n}", "public interface EncryptionMethod {\n /**\n * Returns the algorithm applied to the cipher data.\n *\n * @return the encryption algorithm.\n */\n String getAlgorithm();\n\n /**\n * Returns the key size of the key of the algorithm applied to the cipher\n * data.\n *\n * @return the key size.\n */\n int getKeySize();\n\n /**\n * Sets the size of the key of the algorithm applied to the cipher data.\n *\n * @param size the key size.\n */\n void setKeySize(int size);\n\n /**\n * Returns the OAEP parameters of the algorithm applied applied to the\n * cipher data.\n *\n * @return the OAEP parameters.\n */\n byte[] getOAEPparams();\n\n /**\n * Sets the OAEP parameters.\n *\n * @param parameters the OAEP parameters.\n */\n void setOAEPparams(byte[] parameters);\n\n /**\n * Set the Digest Algorithm to use\n * @param digestAlgorithm the Digest Algorithm to use\n */\n void setDigestAlgorithm(String digestAlgorithm);\n\n /**\n * Get the Digest Algorithm to use\n * @return the Digest Algorithm to use\n */\n String getDigestAlgorithm();\n\n /**\n * Set the MGF Algorithm to use\n * @param mgfAlgorithm the MGF Algorithm to use\n */\n void setMGFAlgorithm(String mgfAlgorithm);\n\n /**\n * Get the MGF Algorithm to use\n * @return the MGF Algorithm to use\n */\n String getMGFAlgorithm();\n\n /**\n * Returns an iterator over all the additional elements contained in the\n * <code>EncryptionMethod</code>.\n *\n * @return an <code>Iterator</code> over all the additional information\n * about the <code>EncryptionMethod</code>.\n */\n Iterator<Element> getEncryptionMethodInformation();\n\n /**\n * Adds encryption method information.\n *\n * @param information additional encryption method information.\n */\n void addEncryptionMethodInformation(Element information);\n\n /**\n * Removes encryption method information.\n *\n * @param information the information to remove from the\n * <code>EncryptionMethod</code>.\n */\n void removeEncryptionMethodInformation(Element information);\n}", "public interface EncryptionAlgorithm {\n\n public String encrypt(String plaintext);\n\n}", "String publicKey();", "public DtoIP4MacPair() {}", "@Override\n public byte[] generateKey() throws ProtocolException, IOException {\n BigInteger p, q, n, e, d;\n Polynomial pol;\n do {\n // we want e such that GCD(e, phi(p*q))=1. as e is actually fixed\n // below, then we need to search for suitable p and q\n p = generateCofactor();\n q = generateCofactor();\n n = computeModulus(p, q);\n e = generatePublicExponent(p, q);\n } while (!verifyCofactors(p, q, e));\n d = computePrivateExponent(p, q, e);\n pol = generatePolynomial(p, q, d);\n BigInteger[] shares = ProtocolUtil.generateShares(pol, tparams.getParties());\n RSAPrivateCrtKey[] packedShares = packShares(e, shares, n);\n try {\n storeShares(packedShares);\n } catch (SmartCardException ex) {\n throw new ProtocolException(\n \"Error while communicating with smart card: \" + ex.toString());\n }\n\n RSAPublicKey pk = SignatureUtil.RSA.paramsToRSAPublicKey(e, n);\n return pk.getEncoded();\n }", "static KeyPair generateKeyPair() throws NoSuchAlgorithmException {\n\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);\n\n keyGen.initialize(2048);\n\n //Log.e(TAG, \"generateKeyPair: this is public key encoding \" + Arrays.toString(generateKeyPair.getPrivate().getEncoded()));\n\n return keyGen.generateKeyPair();\n }", "public ECKey() {\n this(secureRandom);\n }", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "private EncryptionKey() {\n }", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "public static KeyPair generateKeyPair(String algorithm, int size)\n\t\t{\t\n\t\t\ttry {\n\t\t\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(algorithm, \"BC\");\n\t\t\t\tkeyPairGenerator.initialize(size, new SecureRandom());\n\t\t\t\tKeyPair keyPair = keyPairGenerator.generateKeyPair();\n\t\t\t\treturn keyPair;\n\t\t\t}\n\t\t\tcatch (Throwable t) {\n\t\t\t\tthrow new RuntimeException(\"Failed to generate key-pair. \", t);\n\t\t\t}\n\t\t}", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "public final java.security.AlgorithmParameters generateParameters() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters\");\n }", "public GenEncryptionParams() {\n }", "@Override\n public OutputStream createEncryptor(OutputStream out, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Write keyLenBytes || encapsulatedKey to stream\n out.write(keyLenBytes);\n out.write(encapsulatedKey);\n\n //Return resulting stream that symmetrically encrypts any input and writes the ciphertext to out\n return symmetricScheme.createEncryptor(out, keyAndCiphertext.key);\n }", "public java.security.KeyPair generateKeyPair() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair\");\n }", "XORGateway createXORGateway();", "public Cipher()\n {\n CodecInterface base64UriCodec = new Base64UriCodec();\n AsymmetricBlockCipher rsaCipher = new OAEPEncoding(\n new RSAEngine(),\n new SHA1Digest()\n );\n BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()),\n new PKCS7Padding()\n );\n Digest sha1Digest = new SHA1Digest();\n SecureRandom random = new SecureRandom();\n\n this.encryptionCipher = new EncryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest,\n random\n );\n this.decryptionCipher = new DecryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest\n );\n }", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption should the engine be initialized for encryption (true) or decryption (false)\n\t * @param key - symmetric encryption key\n\t * \n\t * @throws IllegalStateException - if any initialization parameters are invalid\n\t */\n\tpublic void init(boolean forEncryption, byte[] key) throws IllegalStateException;\n\t\n\t/**\n\t * @return name of the encryption algorithm\n\t */\n\tpublic String getAlgorithmName();\n\t\n\t/**\n\t * @return block size of the encryption algorithm\n\t */\n\tpublic int getBlockSize();\n\t\n\t/**\n\t * Performs an encryption or decryption of a block.\n\t * The amount of processed data depends on the actual algorithm's block size \n\t * \n\t * @param in - buffer with the data to be processed\n\t * @param inOff - starting position of the data at 'in'\n\t * @param out - preallocated buffer to store the processed data\n\t * @param outOff - starting position at 'out'\n\t * \n\t * @return size of processed data (typically algorithm's block size)\n\t * \n\t * @throws IllegalStateException if engine was not initialized or buffers are invalid\n\t */\n\tpublic int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException;\n\t\n\t/**\n\t * Resets the encryption engine (if required by the implementation)\n\t */\n\tpublic void reset();\n}", "public static KeyPair generatePublicKeyPair(){\r\n\t\ttry {\r\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(publicKeyAlgorithm);\r\n\t\t\tkeyGen.initialize(PUBLIC_KEY_LENGTH, new SecureRandom());\r\n\t\t\treturn keyGen.generateKeyPair();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal key generation error - \"+publicKeyAlgorithm+\"[\"+PUBLIC_KEY_LENGTH+\"]\",e);\r\n\t\t}\r\n\t}", "public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }", "public void initialize(java.security.spec.AlgorithmParameterSpec r1, java.security.SecureRandom r2) throws java.security.InvalidAlgorithmParameterException {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom):void, dex: in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.initialize(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom):void\");\n }", "public GenRSAKey() {\n initComponents();\n }", "public KeyPairGeneratorSpi() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.<init>():void\");\n }", "KeyIdPair createKeyIdPair();", "private KeyPair generateKeyPair() {\n try {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n keyGen.initialize(2048, random);\n return keyGen.generateKeyPair();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static SecretKey createSymmetricKey()\n\t{\n\t\tSecretKey secretKey = null;\n\n\t\ttry\n\t\t{\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(inputAlgorithmForFileEncryption);\n\t\t\tkeyGen.init(128);\n\t\t\tsecretKey = keyGen.generateKey();\n\t\t} catch (NoSuchAlgorithmException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn secretKey;\n\t}", "@Override\n\tpublic ECKey toPublicJWK() {\n\n\t\treturn new ECKey(\n\t\t\tgetCurve(), getX(), getY(),\n\t\t\tgetKeyUse(), getKeyOperations(), getAlgorithm(), getKeyID(),\n\t\t\tgetX509CertURL(), getX509CertThumbprint(), getX509CertSHA256Thumbprint(), getX509CertChain(),\n\t\t\tgetKeyStore());\n\t}", "public Encryptor(){\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t}", "private static SignatureAlgorithmSpi getSignatureAlgorithmSpi(String paramString) throws XMLSignatureException {\n/* */ try {\n/* 150 */ Class<SignatureAlgorithmSpi> clazz = (Class)algorithmHash.get(paramString);\n/* 151 */ if (log.isLoggable(Level.FINE)) {\n/* 152 */ log.log(Level.FINE, \"Create URI \\\"\" + paramString + \"\\\" class \\\"\" + clazz + \"\\\"\");\n/* */ }\n/* */ \n/* 155 */ return clazz.newInstance();\n/* 156 */ } catch (IllegalAccessException illegalAccessException) {\n/* 157 */ Object[] arrayOfObject = { paramString, illegalAccessException.getMessage() };\n/* 158 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, illegalAccessException);\n/* 159 */ } catch (InstantiationException instantiationException) {\n/* 160 */ Object[] arrayOfObject = { paramString, instantiationException.getMessage() };\n/* 161 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, instantiationException);\n/* 162 */ } catch (NullPointerException nullPointerException) {\n/* 163 */ Object[] arrayOfObject = { paramString, nullPointerException.getMessage() };\n/* 164 */ throw new XMLSignatureException(\"algorithms.NoSuchAlgorithm\", arrayOfObject, nullPointerException);\n/* */ } \n/* */ }", "public static PKAlgs fromGeneral(AsymmetricAlgorithm cuAlg)\n\t{\n\t\treturn AlgGenericLookupUtil.lookupByCUType(PKAlgs.values(), cuAlg);\n\t}", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "public interface OpenSSLKeyHolder {\n /* renamed from: a */\n OpenSSLKey mo134201a();\n}", "public interface CipherAlgorithm<\n Self extends CipherAlgorithm<Self>\n > extends CryptoAlgorithm {\n\n String name();\n\n Cipher<Self> defaultCipherAlgorithm();\n}", "Encryption encryption();", "private static void init(AsymmetricBlockCipher asymmetricBlockCipher,\n\t\t\tAsymmetricKeyParameter key, boolean mode) {\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\tasymmetricBlockCipher.init(mode, key);\n\t}", "public PublicKey makePublicKey() {\n return new PublicKey(encryptingBigInt, primesMultiplied);\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass xgetCryptAlgorithmClass();", "public ImplicitCertificateGenerator(String algorithmOid, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n this(SignatureAlgorithms.getInstance(algorithmOid), parameters);\n }", "public SignatureAlgorithm(Element paramElement, String paramString, boolean paramBoolean) throws XMLSecurityException {\n/* 124 */ super(paramElement, paramString);\n/* 125 */ this.algorithmURI = getURI();\n/* */ \n/* 127 */ Attr attr = paramElement.getAttributeNodeNS(null, \"Id\");\n/* 128 */ if (attr != null) {\n/* 129 */ paramElement.setIdAttributeNode(attr, true);\n/* */ }\n/* */ \n/* 132 */ if (paramBoolean && (\"http://www.w3.org/2001/04/xmldsig-more#hmac-md5\".equals(this.algorithmURI) || \"http://www.w3.org/2001/04/xmldsig-more#rsa-md5\"\n/* 133 */ .equals(this.algorithmURI))) {\n/* 134 */ Object[] arrayOfObject = { this.algorithmURI };\n/* */ \n/* 136 */ throw new XMLSecurityException(\"signature.signatureAlgorithm\", arrayOfObject);\n/* */ } \n/* */ \n/* 139 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(this.algorithmURI);\n/* 140 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ }", "public Algorithm configure() throws JMException {\n\t\tAlgorithm algorithm;\n\t\tOperator selection;\n\t\tOperator crossover;\n\t\tOperator mutation;\n\n\t\tHashMap parameters; // Operator parameters\n\n\t\t// Creating the problem\n\t\talgorithm = new NSGAII(problem_);\n\n\t\t// Algorithm parameters\n\t\talgorithm.setInputParameter(\"populationSize\", populationSize_);\n\t\talgorithm.setInputParameter(\"maxEvaluations\", maxEvaluations_);\n\n\t\t// Mutation and Crossover Binary codification\n\t\tparameters = new HashMap();\n\t\tparameters.put(\"probability\", crossoverProbability_);\n\t\tcrossover = CrossoverFactory.getCrossoverOperator(\"SinglePointCrossover\", parameters);\n\n\t\tparameters = new HashMap();\n\t\tparameters.put(\"probability\", mutationProbability_);\n\t\tmutation = MutationFactory.getMutationOperator(\"BitFlipMutation\", parameters);\n\n\t\t// Selection Operator\n\t\tparameters = null;\n\t\tselection = SelectionFactory.getSelectionOperator(\"BinaryTournament2\", parameters);\n\n\t\t// Add the operators to the algorithm\n\t\talgorithm.addOperator(\"crossover\", crossover);\n\t\talgorithm.addOperator(\"mutation\", mutation);\n\t\talgorithm.addOperator(\"selection\", selection);\n\n\t\treturn algorithm;\n\t}", "public interface CaptchaAlgorithm {\n\n Captcha generate();\n\n}", "long getCryptAlgorithmSid();", "public SubjectPublicKeyInfo (\n AlgorithmIdentifier algorithm_,\n Asn1BitString subjectPublicKey_\n ) {\n super();\n algorithm = algorithm_;\n subjectPublicKey = subjectPublicKey_;\n }", "public static HydraKey generateKey(String inAlgorithm, int length)\n throws NoSuchAlgorithmException {\n\n if (length == 0) { \n throw new IllegalArgumentException(\"Key length can't be 0\");\n }\n\n String algorithm = inAlgorithm;\n \n if (algorithm == null) {\n algorithm = ALGORITHM_DEFAULT;\n }\n\n KeyGenerator keygen = KeyGenerator.getInstance(algorithm);\n keygen.init(length); // set a keylength of 128 bits\n SecretKey secret_key = keygen.generateKey();\n HydraKey hk = new HydraKey(secret_key.getEncoded(), algorithm);\n return hk;\n }", "@org.junit.Test\n public void testAsymmetricInitiator() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItAsymmetricInitiatorPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n updateAddressPort(samlPort, test.getPort());\n\n if (test.isStreaming()) {\n SecurityTestUtil.enableStreaming(samlPort);\n }\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }", "public KeyPair createKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n keyPairGenerator.initialize(4096);\n return keyPairGenerator.generateKeyPair();\n } catch (RuntimeException | NoSuchAlgorithmException e) {\n throw new RuntimeException(\"Failed to create public/private key pair\", e);\n }\n }", "public Algorithm getAlgorithm(String type)\n\t{\n\t\tif(type.equalsIgnoreCase(\"PCC\"))\n\t\t\treturn new AlgorithmPCC();\n\t\telse if(type.equalsIgnoreCase(\"Cosine\"))\n\t\t\treturn new AlgorithmCosine();\n\t\telse if(type.equalsIgnoreCase(\"DotProduct\"))\n\t\t\treturn new AlgorithmDotProduct();\n\t\t\n\t\telse \n\t\t\treturn null;\n\t}", "private static BigInteger[] getPublicKeyOriginal(BigInteger in) \r\n{\r\n\tECNamedCurveParameterSpec spec = ECNamedCurveTable.getParameterSpec(\"secp256k1\"); \r\n\tbyte[] pubKey = spec.getG().multiply(in).getEncoded(false);\r\n\tbyte[] a = new byte[32];\r\n\tbyte[] b = new byte[32];\r\n\tSystem.arraycopy(pubKey, 1, a, 0, 32);\r\n\tSystem.arraycopy(pubKey, 33, b, 0, 32);\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\terg[0] = new BigInteger(1,a);\r\n\terg[1] = new BigInteger(1,b);\r\n\treturn erg;\r\n}", "public SignatureAlgorithm(Document paramDocument, String paramString, int paramInt) throws XMLSecurityException {\n/* 92 */ super(paramDocument, paramString);\n/* 93 */ this.algorithmURI = paramString;\n/* */ \n/* 95 */ this.signatureAlgorithm = getSignatureAlgorithmSpi(paramString);\n/* 96 */ this.signatureAlgorithm.engineGetContextFromElement(this.constructionElement);\n/* */ \n/* 98 */ this.signatureAlgorithm.engineSetHMACOutputLength(paramInt);\n/* 99 */ ((IntegrityHmac)this.signatureAlgorithm).engineAddContextToElement(this.constructionElement);\n/* */ }", "public interface KeyManager {\n CreateKeyResponse createKey(CreateKeyRequest createKeyRequest);\n RegisterKeyResponse registerKey(RegisterKeyRequest registerKeyRequest);\n RegisterKeyResponse registerAsymmetricKey(RegisterAsymmetricKeyRequest registerKeyRequest);\n DeleteKeyResponse deleteKey(DeleteKeyRequest deleteKeyRequest);\n TransferKeyResponse transferKey(TransferKeyRequest keyRequest);\n GetKeyAttributesResponse getKeyAttributes(GetKeyAttributesRequest keyAttributesRequest);\n SearchKeyAttributesResponse searchKeyAttributes(SearchKeyAttributesRequest searchKeyAttributesRequest);\n}", "public ECKey build() {\n\n\t\t\ttry {\n\t\t\t\tif (d == null && priv == null) {\n\t\t\t\t\t// Public key\n\t\t\t\t\treturn new ECKey(crv, x, y, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (priv != null) {\n\t\t\t\t\t// PKCS#11 reference to private key\n\t\t\t\t\treturn new ECKey(crv, x, y, priv, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\t\t\t\t}\n\n\t\t\t\t// Public / private key pair with 'd'\n\t\t\t\treturn new ECKey(crv, x, y, d, use, ops, alg, kid, x5u, x5t, x5t256, x5c, ks);\n\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tthrow new IllegalStateException(e.getMessage(), e);\n\t\t\t}\n\t\t}", "@Override\n protected S3AEncryptionMethods getSSEAlgorithm() {\n return S3AEncryptionMethods.NONE;\n }", "public void generateKeyPair() {\n\t\ttry {\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"DSA\", \"SUN\");\n\t\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n\t\t\tkeyGen.initialize(1024, random);\n\t\t\tKeyPair pair = keyGen.generateKeyPair();\n\t\t\tprivateKey = pair.getPrivate();\n\t\t\tpublicKey = pair.getPublic();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Object getAlgorithm() {\n return graphConfig.getAlgorithm();\n }", "private static byte[] genKey(String algorithm, int keySize) throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm);\n\n keyGenerator.init(keySize);\n\n SecretKey secretKey = keyGenerator.generateKey();\n\n return secretKey.getEncoded();\n }", "String getAlgorithm();", "public PublicKey reconstructPublicKey(\n byte[] identifyingInfo, byte[] reconstructionPoint, PublicKey qCa) throws IOException {\n // Reconstruct the point Pu from the reconstruction point\n ECPoint rPoint =\n ((BCECPublicKey) BouncyCastleProvider.getPublicKey(\n new SubjectPublicKeyInfo(algorithmId, reconstructionPoint))).getQ();\n BigInteger n = curveParameters.getN(); // curve point order\n ECPoint caPoint = ((BCECPublicKey) qCa).getQ(); // Massage caPublicKey bytes into ECPoint\n\n // Calculate H(Certu)\n for (byte b : identifyingInfo) {\n digest.update(b);\n }\n\n for (byte b : reconstructionPoint) {\n digest.update(b);\n }\n\n // Hash the implicit certificate Certu and compute the integer e from H(Certu)\n BigInteger e = calculateE(n, digest.digest()).mod(n);\n\n // compute the point Qu = ePu + Qca\n SubjectPublicKeyInfo publicKeyInfo =\n new SubjectPublicKeyInfo(algorithmId, rPoint.multiply(e).add(caPoint).getEncoded(false));\n\n return BouncyCastleProvider.getPublicKey(publicKeyInfo);\n }", "@Override\n public void init(boolean forSigning, CipherParameters param) {\n this.forSigning = forSigning;\n PairingKeySerParameter pairingKeySerParameter = (PairingKeySerParameter) param;\n if (forSigning && !pairingKeySerParameter.isPrivate()) {\n throw new IllegalArgumentException(\"Signature Requires Private Key.\");\n }\n if (!forSigning && pairingKeySerParameter.isPrivate()) {\n throw new IllegalArgumentException(\"Verification Requires Public Key.\");\n }\n if (forSigning) {\n this.pairingKeySerParameter = (CL04SignSecretPairingKeySerParameter) param;\n } else {\n this.pairingKeySerParameter = (CL04SignPublicPairingKeySerParameter) param;\n }\n reset();\n }", "public byte[] getEncryptionAlgParams()\n {\n try\n {\n return encodeObj(encryptionAlgorithm.getParameters());\n }\n catch (Exception e)\n {\n throw new RuntimeException(\"exception getting encryption parameters \" + e);\n }\n }", "@org.junit.Test\n public void testAsymmetricSigned() throws Exception {\n\n SpringBusFactory bf = new SpringBusFactory();\n URL busFile = SamlTokenTest.class.getResource(\"client.xml\");\n\n Bus bus = bf.createBus(busFile.toString());\n BusFactory.setDefaultBus(bus);\n BusFactory.setThreadDefaultBus(bus);\n\n URL wsdl = SamlTokenTest.class.getResource(\"DoubleItSaml.wsdl\");\n Service service = Service.create(wsdl, SERVICE_QNAME);\n QName portQName = new QName(NAMESPACE, \"DoubleItAsymmetricSignedPort\");\n DoubleItPortType samlPort =\n service.getPort(portQName, DoubleItPortType.class);\n updateAddressPort(samlPort, test.getPort());\n\n samlPort.doubleIt(25);\n\n ((java.io.Closeable)samlPort).close();\n bus.shutdown(true);\n }", "java.lang.String getPublicEciesKey();", "public interface ExoMediaCrypto {\n}", "public static void main(String[] args) throws ClassNotFoundException, BadPaddingException, IllegalBlockSizeException,\n IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n // Generate the keys — might take sometime on slow computers\n KeyPair myPair = kpg.generateKeyPair();\n\n /*\n * This will give you a KeyPair object, which holds two keys: a private\n * and a public. In order to make use of these keys, you will need to\n * create a Cipher object, which will be used in combination with\n * SealedObject to encrypt the data that you are going to end over the\n * network. Here’s how you do that:\n */\n\n // Get an instance of the Cipher for RSA encryption/decryption\n Cipher c = Cipher.getInstance(\"RSA\");\n // Initiate the Cipher, telling it that it is going to Encrypt, giving it the public key\n c.init(Cipher.ENCRYPT_MODE, myPair.getPublic());\n\n /*\n * After initializing the Cipher, we’re ready to encrypt the data.\n * Since after encryption the resulting data will not make much sense if\n * you see them “naked”, we have to encapsulate them in another\n * Object. Java provides this, by the SealedObject class. SealedObjects\n * are containers for encrypted objects, which encrypt and decrypt their\n * contents with the help of a Cipher object.\n *\n * The following example shows how to create and encrypt the contents of\n * a SealedObject:\n */\n\n // Create a secret message\n String myMessage = new String(\"Secret Message\");\n // Encrypt that message using a new SealedObject and the Cipher we created before\n SealedObject myEncryptedMessage= new SealedObject( myMessage, c);\n\n /*\n * The resulting object can be sent over the network without fear, since\n * it is encrypted. The only one who can decrypt and get the data, is the\n * one who holds the private key. Normally, this should be the server. In\n * order to decrypt the message, we’ll need to re-initialize the Cipher\n * object, but this time with a different mode, decrypt, and use the\n * private key instead of the public key.\n *\n * This is how you do this in Java:\n */\n\n // Get an instance of the Cipher for RSA encryption/decryption\n Cipher dec = Cipher.getInstance(\"RSA\");\n // Initiate the Cipher, telling it that it is going to Decrypt, giving it the private key\n dec.init(Cipher.DECRYPT_MODE, myPair.getPrivate());\n\n /*\n * Now that the Cipher is ready to decrypt, we must tell the SealedObject\n * to decrypt the held data.\n */\n\n // Tell the SealedObject we created before to decrypt the data and return it\n String message = (String) myEncryptedMessage.getObject(dec);\n System.out.println(\"foo = \"+message);\n\n /*\n * Beware when using the getObject method, since it returns an instance\n * of an Object (even if it is actually an instance of String), and not\n * an instance of the Class that it was before encryption, so you’ll\n * have to cast it to its prior form.\n *\n * The above is from: http:andreas.louca.org/2008/03/20/java-rsa-\n * encryption-an-example/\n *\n * [msj121] [so/q/13500368] [cc by-sa 3.0]\n */\n }", "@Override\n public ConcurrentContentSigner newSigner(\n String type, SignerConf conf, X509Cert[] certificateChain)\n throws ObjectCreationException {\n type = type.toLowerCase(Locale.ROOT);\n if (!types.contains(type)) {\n throw new ObjectCreationException(\"unknown signer type \" + type);\n }\n\n String str = conf.getConfValue(\"parallelism\");\n int parallelism = 20;\n if (str != null) {\n try {\n parallelism = Integer.parseInt(str);\n } catch (NumberFormatException ex) {\n throw new ObjectCreationException(\"invalid parallelism \" + str);\n }\n\n if (parallelism < 1) {\n throw new ObjectCreationException(\"invalid parallelism \" + str);\n }\n }\n\n str = conf.getConfValue(\"alias\");\n if (str == null) {\n throw new ObjectCreationException(\"alias is not specified\");\n }\n int keyId = Integer.parseInt(str);\n\n String algoName = conf.getConfValue(\"algo\");\n if (algoName == null) {\n throw new ObjectCreationException(\"algo is not specified\");\n }\n\n try {\n InitStatus initStatus = init(type);\n if (initStatus.status.get() != 1) {\n throw new ObjectCreationException(initStatus.details);\n }\n\n SignAlgo algo = SignAlgo.getInstance(algoName);\n String keyAlgoName;\n String bcKeyAlgoName;\n if (algo.isSM2SigAlgo()) {\n keyAlgoName = \"SM2\";\n bcKeyAlgoName = \"EC\";\n } else if (algo.isRSAPkcs1SigAlgo() || algo.isRSAPSSSigAlgo()) {\n keyAlgoName = \"RSA\";\n bcKeyAlgoName = \"RSA\";\n } else if (algo.isECDSASigAlgo() || algo.isPlainECDSASigAlgo()) {\n keyAlgoName = \"EC\";\n bcKeyAlgoName = \"EC\";\n } else {\n throw new ObjectCreationException(\"unsupported algo \" + algoName);\n }\n\n Provider provider = providerMap.get(type);\n\n // Method to read create PrivateKey and PublicKey object.\n // SANSEC use KeyPairGenerator.generateKeyPair to read the keypair-\n // No new keypair will be generated here.\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(keyAlgoName, provider);\n kpGen.initialize(keyId << 16);\n KeyPair kp = kpGen.generateKeyPair();\n\n PublicKey publicKey = KeyFactory.getInstance(bcKeyAlgoName, \"BC\")\n .generatePublic(new X509EncodedKeySpec(kp.getPublic().getEncoded()));\n\n return new JceSignerBuilder(kp.getPrivate(), publicKey, certificateChain, provider)\n .createSigner(algo, parallelism);\n } catch (GeneralSecurityException | XiSecurityException ex) {\n throw new ObjectCreationException(ex.getMessage(), ex);\n }\n }", "public SingleSignConstants.SignAlgorithm getSignAlgorithm() {\r\n\t\treturn this.algorithm;\r\n\t}", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "public RSAESOAEPparams(com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier r1, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier r2, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.<init>(com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier):void\");\n }", "private PasskeyContract() {}", "private Authenticator mkAuthenticator(final User user, final String seriesId, final Date expiryTime) {\n try {\n final String token = mkToken(user.getKey(), seriesId, expiryTime);\n final String hash = crypto.calculateRFC2104HMAC(token, hashingKey);\n return new Authenticator(token, hash);\n } catch (final SignatureException ex) {\n throw new IllegalStateException(ex);\n }\n }", "public SignatureAlgorithm(Element paramElement, String paramString) throws XMLSecurityException {\n/* 110 */ this(paramElement, paramString, false);\n/* */ }", "public Ed25519PublicKey derivePublicKey() {\r\n\t\tif(this.pubKey==null) {\r\n\t\t\tthis.pubKey = new Ed25519PublicKey(new EdDSAPublicKey(new EdDSAPublicKeySpec(this.key.getA(), this.key.getParams())));\r\n\t\t}\r\n\t\treturn this.pubKey;\r\n\t}", "public PGPPublicKey getEncryptionKey() {\n\t\tIterator iter = base.getPublicKeys();\n\t\tPGPPublicKey encKey = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tPGPPublicKey k = (PGPPublicKey) iter.next();\n\t\t\tif (k.isEncryptionKey())\n\t\t\t\tencKey = k;\n\t\t}\n\n\t\treturn encKey;\n\t}", "AlgorithmIdentifier getAlgorithmIdentifier();", "public String getAlgorithm() {\n return _algorithm;\n }", "public static java.security.AlgorithmParameterGenerator getInstance(java.lang.String r1) throws java.security.NoSuchAlgorithmException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator\");\n }", "public CoinsuperPair() {}", "public PGPPublicKey( \n int algorithm,\n PublicKey pubKey,\n Date time,\n String provider) \n throws PGPException, NoSuchProviderException\n {\n PublicKeyPacket pubPk;\n\n if (pubKey instanceof RSAPublicKey)\n {\n RSAPublicKey rK = (RSAPublicKey)pubKey;\n \n pubPk = new PublicKeyPacket(algorithm, time, new RSAPublicBCPGKey(rK.getModulus(), rK.getPublicExponent()));\n }\n else if (pubKey instanceof DSAPublicKey)\n {\n DSAPublicKey dK = (DSAPublicKey)pubKey;\n DSAParams dP = dK.getParams();\n \n pubPk = new PublicKeyPacket(algorithm, time, new DSAPublicBCPGKey(dP.getP(), dP.getQ(), dP.getG(), dK.getY()));\n }\n else if (pubKey instanceof ElGamalPublicKey)\n {\n ElGamalPublicKey eK = (ElGamalPublicKey)pubKey;\n ElGamalParameterSpec eS = eK.getParameters();\n \n pubPk = new PublicKeyPacket(algorithm, time, new ElGamalPublicBCPGKey(eS.getP(), eS.getG(), eK.getY()));\n }\n else\n {\n throw new PGPException(\"unknown key class\");\n }\n \n this.publicPk = pubPk;\n this.ids = new ArrayList();\n this.idSigs = new ArrayList();\n \n try\n {\n init();\n }\n catch (IOException e)\n {\n throw new PGPException(\"exception calculating keyID\", e);\n }\n }", "public interface IAlgorithm {\n void go();\n}", "AngleEquals createAngleEquals();", "public static Keys generateKeys() throws GeneralSecurityException {\n KeyGenerator gen = KeyGenerator.getInstance(ENC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey encKey = gen.generateKey();\n\n /* XXX: It's probably unnecessary to create a different keygen for the\n * MAC, but JCA's API design suggests we should just in case ... */\n gen = KeyGenerator.getInstance(MAC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey macKey = gen.generateKey();\n\n return new Keys(encKey, macKey);\n }", "public CaesarCipherOne(int key) {this.key=key;}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-08-13 13:14:15.603 -0400\", hash_original_method = \"9CA51125BBD9928A127E75CF99CB1D14\", hash_generated_method = \"10D7CA0C3FC5B5A6A133BC7DAAF5C8C5\")\n \npublic PublicKey getPublicKey() {\n return subjectPublicKey;\n }", "interface ToAlgContext {\n\n AlgOptCluster getCluster();\n\n }" ]
[ "0.6178395", "0.61741656", "0.58881044", "0.5810083", "0.56869596", "0.56185424", "0.54759693", "0.5449757", "0.5431032", "0.539198", "0.53417075", "0.5312357", "0.53105325", "0.52928436", "0.5284829", "0.52701414", "0.5243625", "0.52432775", "0.52113265", "0.5204318", "0.51995397", "0.518104", "0.5177633", "0.51759046", "0.51591015", "0.5157279", "0.51560813", "0.5149063", "0.5143997", "0.51388764", "0.51233", "0.5108618", "0.5100444", "0.5094812", "0.50734854", "0.50472885", "0.50411946", "0.5036222", "0.50261134", "0.5015054", "0.5006689", "0.4993867", "0.49863338", "0.498382", "0.49771008", "0.49695233", "0.49599925", "0.49415222", "0.49390206", "0.49362", "0.49231187", "0.4907909", "0.49033058", "0.4881717", "0.4878003", "0.48772654", "0.4859976", "0.48394835", "0.4837058", "0.482743", "0.48261946", "0.48241132", "0.48174217", "0.48107964", "0.4808637", "0.48075658", "0.48068345", "0.47912705", "0.47841686", "0.47804397", "0.47772425", "0.47638482", "0.47613376", "0.47603393", "0.4752407", "0.47454438", "0.4742534", "0.47348133", "0.47305298", "0.47301263", "0.47282785", "0.4722505", "0.47208065", "0.4718296", "0.4713483", "0.47081006", "0.47071204", "0.47019356", "0.47011533", "0.4699042", "0.46979335", "0.4685145", "0.4683584", "0.46532586", "0.4646707", "0.46467045", "0.4643787", "0.4642649", "0.46382952", "0.46324217" ]
0.64377075
0
Converts an instance of AsymmetricAlgorithm into its "counterpart" of PKAlgs
public static PKAlgs fromGeneral(AsymmetricAlgorithm cuAlg) { return AlgGenericLookupUtil.lookupByCUType(PKAlgs.values(), cuAlg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AsymmetricAlgorithm toCU()\n\t{\n\t\treturn this.cu;\n\t}", "long getCryptAlgorithmSid();", "OpenSSLKey mo134201a();", "public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }", "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "AlgorithmIdentifier getAlgorithmIdentifier();", "public PGPPublicKey getEncryptionKey() {\n\t\tIterator iter = base.getPublicKeys();\n\t\tPGPPublicKey encKey = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tPGPPublicKey k = (PGPPublicKey) iter.next();\n\t\t\tif (k.isEncryptionKey())\n\t\t\t\tencKey = k;\n\t\t}\n\n\t\treturn encKey;\n\t}", "public CCA2KPABE(){\n\t\tthis.pairing = PairingFactory.getPairing(ParameterGenerator.PATH_TYPE_A_PARAMETER); \n\t}", "public static KeyPair generateKeyPair(String algorithm, int size)\n\t\t{\t\n\t\t\ttry {\n\t\t\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(algorithm, \"BC\");\n\t\t\t\tkeyPairGenerator.initialize(size, new SecureRandom());\n\t\t\t\tKeyPair keyPair = keyPairGenerator.generateKeyPair();\n\t\t\t\treturn keyPair;\n\t\t\t}\n\t\t\tcatch (Throwable t) {\n\t\t\t\tthrow new RuntimeException(\"Failed to generate key-pair. \", t);\n\t\t\t}\n\t\t}", "public IAsymetricAlgorithm getAsymetricAlgorithm() throws DirectoryException\n\t{\n\t\treturn (IAsymetricAlgorithm) algorithm.getObject();\n\t}", "public String getEncryptionAlgOID()\n {\n return encryptionAlgorithm.getAlgorithm().getId();\n }", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "public interface OpenSSLKeyHolder {\n /* renamed from: a */\n OpenSSLKey mo134201a();\n}", "public ImplicitCertificateGenerator(SignatureAlgorithms algorithm, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n if (algorithm == null) {\n throw new IllegalArgumentException(\"Missing algorithm OID\");\n } else if (!algorithm.isEcqv()) {\n throw new UnsupportedOperationException(\n \"This provider can only be used with ECQV-based signature types\");\n }\n\n X962Parameters x9params = new X962Parameters(new ASN1ObjectIdentifier(algorithm.getSecOid()));\n\n digest = MessageDigest.getInstance(\n algorithm.getDigestAlgorithm().getDigestName(), BouncyCastleProvider.PROVIDER_NAME);\n curveParameters =\n ECNamedCurveTable.getParameterSpec(algorithm.getCryptoAlgorithm().getAlgorithmName());\n algorithmId =\n new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, x9params.toASN1Primitive());\n }", "Algorithm createAlgorithm();", "public abstract String getSigAlgOID();", "public KeyPair generadorAleatori() {\n KeyPair keys = null;\n try {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(2048);\n keys = keyGen.genKeyPair();\n } catch (Exception e) {\n System.err.println(\"Generador no disponible.\");\n }\n return keys;\n }", "KeyIdPair createKeyIdPair();", "org.apache.xmlbeans.XmlUnsignedInt xgetCryptAlgorithmSid();", "public interface PacketFormatKeyContext {\n\n}", "public IDetectionAlgorithm createInstance();", "public final java.security.AlgorithmParameters generateParameters() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters\");\n }", "public EncodingAlgorithmAttributesImpl() {\n this(null, null);\n }", "protected AsymmetricProcessor() {\n\t}", "public KeyEncryptionKeyInfo() {\n }", "public interface CipherAlgorithm<\n Self extends CipherAlgorithm<Self>\n > extends CryptoAlgorithm {\n\n String name();\n\n Cipher<Self> defaultCipherAlgorithm();\n}", "public interface AsymmetricBlockCipher {\n /**\n * initialise the cipher.\n *\n * @param forEncryption if true the cipher is initialised for\n * encryption, if false for decryption.\n * @param param the key and other data required by the cipher.\n */\n public void init(boolean forEncryption, CipherParameters param);\n\n /**\n * returns the largest size an input block can be.\n *\n * @return maximum size for an input block.\n */\n public int getInputBlockSize();\n\n /**\n * returns the maximum size of the block produced by this cipher.\n *\n * @return maximum size of the output block produced by the cipher.\n */\n public int getOutputBlockSize();\n\n /**\n * process the block of len bytes stored in in from offset inOff.\n *\n * @param in the input data\n * @param inOff offset into the in array where the data starts\n * @param len the length of the block to be processed.\n * @return the resulting byte array of the encryption/decryption process.\n * @throws InvalidCipherTextException data decrypts improperly.\n * @throws DataLengthException the input data is too large for the cipher.\n */\n public byte[] processBlock(byte[] in, int inOff, int len)\n throws InvalidCipherTextException;\n}", "String publicKey();", "static KeyPair generateKeyPair() throws NoSuchAlgorithmException {\n\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);\n\n keyGen.initialize(2048);\n\n //Log.e(TAG, \"generateKeyPair: this is public key encoding \" + Arrays.toString(generateKeyPair.getPrivate().getEncoded()));\n\n return keyGen.generateKeyPair();\n }", "public String getJCEAlgorithmString() {\n/* 187 */ return this.signatureAlgorithm.engineGetJCEAlgorithmString();\n/* */ }", "interface ToAlgContext {\n\n AlgOptCluster getCluster();\n\n }", "public ECP getPublicKGCKey(){return pkS;}", "public interface ICrypto\n{\n\t/**\n\t *\n\t * @return\ttrue for Public/Private key and false for password style encryption\n\t */\n\tboolean isPublic();\n\n\t/**\n\t * @param clearText\t\tClear text\n\t * @return\t\t\t\tStringized (BasicBase64) version of the cipher for the clear text\n\t */\n\tString encrypt(String clearText);\n\n\t/**\n\t * @param cipherText\tClear text\n\t * @return\t\t\t\tClear text from the stringized (BasicBase64) version of the cipherTetxt\n\t */\n\tString decrypt(String cipherText);\n\n\t/**\n\t * @return\tThe cryptography algorithm\n\t */\n\tString getAlgorithm();\n\n\t/**\n\t *\n\t * @return\tThe name by which this combination algorithm/key are known.\n\t */\n\tString getAliasName();\n}", "private static byte[] genKey(String algorithm, int keySize) throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(algorithm);\n\n keyGenerator.init(keySize);\n\n SecretKey secretKey = keyGenerator.generateKey();\n\n return secretKey.getEncoded();\n }", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "long getAlgIdExt();", "public PGPPublicKey( \n int algorithm,\n PublicKey pubKey,\n Date time,\n String provider) \n throws PGPException, NoSuchProviderException\n {\n PublicKeyPacket pubPk;\n\n if (pubKey instanceof RSAPublicKey)\n {\n RSAPublicKey rK = (RSAPublicKey)pubKey;\n \n pubPk = new PublicKeyPacket(algorithm, time, new RSAPublicBCPGKey(rK.getModulus(), rK.getPublicExponent()));\n }\n else if (pubKey instanceof DSAPublicKey)\n {\n DSAPublicKey dK = (DSAPublicKey)pubKey;\n DSAParams dP = dK.getParams();\n \n pubPk = new PublicKeyPacket(algorithm, time, new DSAPublicBCPGKey(dP.getP(), dP.getQ(), dP.getG(), dK.getY()));\n }\n else if (pubKey instanceof ElGamalPublicKey)\n {\n ElGamalPublicKey eK = (ElGamalPublicKey)pubKey;\n ElGamalParameterSpec eS = eK.getParameters();\n \n pubPk = new PublicKeyPacket(algorithm, time, new ElGamalPublicBCPGKey(eS.getP(), eS.getG(), eK.getY()));\n }\n else\n {\n throw new PGPException(\"unknown key class\");\n }\n \n this.publicPk = pubPk;\n this.ids = new ArrayList();\n this.idSigs = new ArrayList();\n \n try\n {\n init();\n }\n catch (IOException e)\n {\n throw new PGPException(\"exception calculating keyID\", e);\n }\n }", "public final KeyPair a() {\n return this.f14146a;\n }", "java.lang.String getPublicEciesKey();", "public CaesarCipherOne(int key) {this.key=key;}", "public static String getKeyAlgorithm(final PublicKey publickey) {\n\t\tString keyAlg = null;\n\t\tif ( publickey instanceof RSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_RSA;\n\t\t} else if ( publickey instanceof DSAPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_DSA;\n\t\t} else if ( publickey instanceof ECPublicKey ) {\n\t\t\tkeyAlg = AlgorithmConstants.KEYALGORITHM_ECDSA;\n\t\t}\n\t\treturn keyAlg;\n\t}", "String getEncryptionKeyId();", "public byte[] getEncryptionAlgParams()\n {\n try\n {\n return encodeObj(encryptionAlgorithm.getParameters());\n }\n catch (Exception e)\n {\n throw new RuntimeException(\"exception getting encryption parameters \" + e);\n }\n }", "private void generateKeyPair(APDU apdu) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, ?theBuffer) &*& array_slice(theBuffer, 0, theBuffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, theBuffer) &*& array_slice(theBuffer, 0, theBuffer.length, _);\r\n\t{\r\n\t\tapdu.setIncomingAndReceive();// If this was removed, function will not\r\n\t\t// work: no data except for command will be read\r\n\t\tbyte[] buffer = apdu.getBuffer();\r\n\t\t// check if access to this method is allowed\r\n\t\tif (GPSystem.getCardContentState() != GPSystem.APPLICATION_SELECTABLE)\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// check P1 and P2\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// check Lc\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif (lc != (short) 11)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\tbyte offset = (ISO7816.OFFSET_CDATA + 0x01);\r\n\t\t//byte offset = (byte)(ISO7816.OFFSET_CDATA + 0x01);\r\n\t\t// create keypair using parameters given:\r\n\t\t// short keyLength = Util.makeShort(buffer[ISO7816.OFFSET_CDATA],\r\n\t\t// buffer[offset]);\r\n\t\tif (buffer[offset] != (byte) 0x80)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// This is commented out as changing exponent makes getting modulus\r\n\t\t// impossible on some java cards\r\n\t\t// ((RSAPublicKey)tempkp.getPublic()).setExponent(buffer, (short)(13),\r\n\t\t// (short)3);\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\tsetPreviousApduType(GENERATE_KEY_PAIR);\r\n\t\tswitch (buffer[ISO7816.OFFSET_P2]) {\r\n\t\tcase BASIC:\r\n\t\t\tbasicKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) (1024));\r\n\t\t\tbasicKeyPair.genKeyPair();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase AUTHENTICATION: // use authentication private key\r\n\t\t\tauthKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) (1024));\r\n\t\t\tauthKeyPair.genKeyPair();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase NON_REPUDIATION: // use non repudiation private key\r\n\t\t\tnonRepKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) (1024));\r\n\t\t\tnonRepKeyPair.genKeyPair();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t\r\n\t\t\tISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\t}\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t}", "private static BigInteger[] getPublicKeyOriginal(BigInteger in) \r\n{\r\n\tECNamedCurveParameterSpec spec = ECNamedCurveTable.getParameterSpec(\"secp256k1\"); \r\n\tbyte[] pubKey = spec.getG().multiply(in).getEncoded(false);\r\n\tbyte[] a = new byte[32];\r\n\tbyte[] b = new byte[32];\r\n\tSystem.arraycopy(pubKey, 1, a, 0, 32);\r\n\tSystem.arraycopy(pubKey, 33, b, 0, 32);\r\n\tBigInteger[] erg = new BigInteger[2];\r\n\terg[0] = new BigInteger(1,a);\r\n\terg[1] = new BigInteger(1,b);\r\n\treturn erg;\r\n}", "public static HydraKey generateKey(String inAlgorithm, int length)\n throws NoSuchAlgorithmException {\n\n if (length == 0) { \n throw new IllegalArgumentException(\"Key length can't be 0\");\n }\n\n String algorithm = inAlgorithm;\n \n if (algorithm == null) {\n algorithm = ALGORITHM_DEFAULT;\n }\n\n KeyGenerator keygen = KeyGenerator.getInstance(algorithm);\n keygen.init(length); // set a keylength of 128 bits\n SecretKey secret_key = keygen.generateKey();\n HydraKey hk = new HydraKey(secret_key.getEncoded(), algorithm);\n return hk;\n }", "public PAES(Problem problem) {\r\n\t\tsuper(problem);\r\n\t}", "public SubjectPublicKeyInfo (\n AlgorithmIdentifier algorithm_,\n Asn1BitString subjectPublicKey_\n ) {\n super();\n algorithm = algorithm_;\n subjectPublicKey = subjectPublicKey_;\n }", "public boolean isEncryptionKey()\n {\n int algorithm = publicPk.getAlgorithm();\n\n return ((algorithm == RSA_GENERAL) || (algorithm == RSA_ENCRYPT)\n || (algorithm == ELGAMAL_ENCRYPT) || (algorithm == ELGAMAL_GENERAL));\n }", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getPSourceAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getPSourceAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "void setCryptAlgorithmSid(long cryptAlgorithmSid);", "public void calculateKeypair() {\n\n BigInteger nTotient = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));\n\n ExtendedEuclideanAlgorithm eea = new ExtendedEuclideanAlgorithm();\n d = eea.calculateEea(nTotient, e);\n\n while(d.signum() == -1) d = d.add(nTotient);\n\n sbPrivate.append(\"(\");\n sbPrivate.append(n.toString());\n sbPrivate.append(\",\");\n sbPrivate.append(d.toString());\n sbPrivate.append(\")\");\n\n sbPublic.append(\"(\");\n sbPublic.append(n.toString());\n sbPublic.append(\",\");\n sbPublic.append(e.toString());\n sbPublic.append(\")\");\n\n }", "public interface EncryptionMethod {\n /**\n * Returns the algorithm applied to the cipher data.\n *\n * @return the encryption algorithm.\n */\n String getAlgorithm();\n\n /**\n * Returns the key size of the key of the algorithm applied to the cipher\n * data.\n *\n * @return the key size.\n */\n int getKeySize();\n\n /**\n * Sets the size of the key of the algorithm applied to the cipher data.\n *\n * @param size the key size.\n */\n void setKeySize(int size);\n\n /**\n * Returns the OAEP parameters of the algorithm applied applied to the\n * cipher data.\n *\n * @return the OAEP parameters.\n */\n byte[] getOAEPparams();\n\n /**\n * Sets the OAEP parameters.\n *\n * @param parameters the OAEP parameters.\n */\n void setOAEPparams(byte[] parameters);\n\n /**\n * Set the Digest Algorithm to use\n * @param digestAlgorithm the Digest Algorithm to use\n */\n void setDigestAlgorithm(String digestAlgorithm);\n\n /**\n * Get the Digest Algorithm to use\n * @return the Digest Algorithm to use\n */\n String getDigestAlgorithm();\n\n /**\n * Set the MGF Algorithm to use\n * @param mgfAlgorithm the MGF Algorithm to use\n */\n void setMGFAlgorithm(String mgfAlgorithm);\n\n /**\n * Get the MGF Algorithm to use\n * @return the MGF Algorithm to use\n */\n String getMGFAlgorithm();\n\n /**\n * Returns an iterator over all the additional elements contained in the\n * <code>EncryptionMethod</code>.\n *\n * @return an <code>Iterator</code> over all the additional information\n * about the <code>EncryptionMethod</code>.\n */\n Iterator<Element> getEncryptionMethodInformation();\n\n /**\n * Adds encryption method information.\n *\n * @param information additional encryption method information.\n */\n void addEncryptionMethodInformation(Element information);\n\n /**\n * Removes encryption method information.\n *\n * @param information the information to remove from the\n * <code>EncryptionMethod</code>.\n */\n void removeEncryptionMethodInformation(Element information);\n}", "public interface EncryptionAlgorithm {\n\n public String encrypt(String plaintext);\n\n}", "public GenRSAKey() {\n initComponents();\n }", "@Override\n\tpublic void startJ48() {\n\t\talgo.algoJ48();\n\t}", "BigInteger getCEP();", "public ImplicitCertificateGenerator(String algorithmOid, byte[] parameters)\n throws IllegalArgumentException, UnsupportedOperationException, NoSuchAlgorithmException,\n NoSuchProviderException {\n this(SignatureAlgorithms.getInstance(algorithmOid), parameters);\n }", "Encryption encryption();", "private EncryptionKey() {\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-08-13 13:14:15.603 -0400\", hash_original_method = \"9CA51125BBD9928A127E75CF99CB1D14\", hash_generated_method = \"10D7CA0C3FC5B5A6A133BC7DAAF5C8C5\")\n \npublic PublicKey getPublicKey() {\n return subjectPublicKey;\n }", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "Iterator<Element> getEncryptionMethodInformation();", "public int\ngetAlgorithm() {\n\treturn alg;\n}", "public int getRsaKeyA(){\n\treturn this.rsaKeyA;\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass xgetCryptAlgorithmClass();", "public java.security.KeyPair generateKeyPair() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair\");\n }", "@Override\n public OutputStream createEncryptor(OutputStream out, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Write keyLenBytes || encapsulatedKey to stream\n out.write(keyLenBytes);\n out.write(encapsulatedKey);\n\n //Return resulting stream that symmetrically encrypts any input and writes the ciphertext to out\n return symmetricScheme.createEncryptor(out, keyAndCiphertext.key);\n }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getMaskGenAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getMaskGenAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getMaskGenAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "@Override\n\tpublic ECKey toPublicJWK() {\n\n\t\treturn new ECKey(\n\t\t\tgetCurve(), getX(), getY(),\n\t\t\tgetKeyUse(), getKeyOperations(), getAlgorithm(), getKeyID(),\n\t\t\tgetX509CertURL(), getX509CertThumbprint(), getX509CertSHA256Thumbprint(), getX509CertChain(),\n\t\t\tgetKeyStore());\n\t}", "@Override\n public byte[] generateKey() throws ProtocolException, IOException {\n BigInteger p, q, n, e, d;\n Polynomial pol;\n do {\n // we want e such that GCD(e, phi(p*q))=1. as e is actually fixed\n // below, then we need to search for suitable p and q\n p = generateCofactor();\n q = generateCofactor();\n n = computeModulus(p, q);\n e = generatePublicExponent(p, q);\n } while (!verifyCofactors(p, q, e));\n d = computePrivateExponent(p, q, e);\n pol = generatePolynomial(p, q, d);\n BigInteger[] shares = ProtocolUtil.generateShares(pol, tparams.getParties());\n RSAPrivateCrtKey[] packedShares = packShares(e, shares, n);\n try {\n storeShares(packedShares);\n } catch (SmartCardException ex) {\n throw new ProtocolException(\n \"Error while communicating with smart card: \" + ex.toString());\n }\n\n RSAPublicKey pk = SignatureUtil.RSA.paramsToRSAPublicKey(e, n);\n return pk.getEncoded();\n }", "public RSAKeyPairGenerator() {\n }", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "public Class<PUB> getPublicKeyClass() {\n return pubKeyType;\n }", "public SingleSignConstants.SignAlgorithm getSignAlgorithm() {\r\n\t\treturn this.algorithm;\r\n\t}", "private void generatePrivacyKeyPair(boolean clientMode) throws IOException, UnsupportedEncodingException, NoSuchAlgorithmException, SaslException {\n byte[] ccmagic = CLIENT_CONF_MAGIC.getBytes(encoding);\n byte[] scmagic = SVR_CONF_MAGIC.getBytes(encoding);\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\n int n;\n if (negotiatedCipher.equals(CIPHER_TOKENS[RC4_40])) {\n n = 5;\n } else if (negotiatedCipher.equals(CIPHER_TOKENS[RC4_56])) {\n n = 7;\n } else {\n n = 16;\n }\n byte[] keyBuffer = new byte[n + ccmagic.length];\n System.arraycopy(H_A1, 0, keyBuffer, 0, n);\n System.arraycopy(ccmagic, 0, keyBuffer, n, ccmagic.length);\n md5.update(keyBuffer);\n byte[] Kcc = md5.digest();\n System.arraycopy(scmagic, 0, keyBuffer, n, scmagic.length);\n md5.update(keyBuffer);\n byte[] Kcs = md5.digest();\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST24:Kcc: \", Kcc);\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST25:Kcs: \", Kcs);\n }\n byte[] myKc;\n byte[] peerKc;\n if (clientMode) {\n myKc = Kcc;\n peerKc = Kcs;\n } else {\n myKc = Kcs;\n peerKc = Kcc;\n }\n try {\n SecretKey encKey;\n SecretKey decKey;\n if (negotiatedCipher.indexOf(CIPHER_TOKENS[RC4]) > -1) {\n encCipher = Cipher.getInstance(\"RC4\");\n decCipher = Cipher.getInstance(\"RC4\");\n encKey = new SecretKeySpec(myKc, \"RC4\");\n decKey = new SecretKeySpec(peerKc, \"RC4\");\n encCipher.init(Cipher.ENCRYPT_MODE, encKey);\n decCipher.init(Cipher.DECRYPT_MODE, decKey);\n } else if ((negotiatedCipher.equals(CIPHER_TOKENS[DES])) || (negotiatedCipher.equals(CIPHER_TOKENS[DES3]))) {\n String cipherFullname, cipherShortname;\n if (negotiatedCipher.equals(CIPHER_TOKENS[DES])) {\n cipherFullname = \"DES/CBC/NoPadding\";\n cipherShortname = \"des\";\n } else {\n cipherFullname = \"DESede/CBC/NoPadding\";\n cipherShortname = \"desede\";\n }\n encCipher = Cipher.getInstance(cipherFullname);\n decCipher = Cipher.getInstance(cipherFullname);\n encKey = makeDesKeys(myKc, cipherShortname);\n decKey = makeDesKeys(peerKc, cipherShortname);\n IvParameterSpec encIv = new IvParameterSpec(myKc, 8, 8);\n IvParameterSpec decIv = new IvParameterSpec(peerKc, 8, 8);\n encCipher.init(Cipher.ENCRYPT_MODE, encKey, encIv);\n decCipher.init(Cipher.DECRYPT_MODE, decKey, decIv);\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST26:\" + negotiatedCipher + \" IVcc: \", encIv.getIV());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST27:\" + negotiatedCipher + \" IVcs: \", decIv.getIV());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST28:\" + negotiatedCipher + \" encryption key: \", encKey.getEncoded());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST29:\" + negotiatedCipher + \" decryption key: \", decKey.getEncoded());\n }\n }\n } catch (InvalidKeySpecException e) {\n throw new SaslException(\"DIGEST-MD5: Unsupported key \" + \"specification used.\", e);\n } catch (InvalidAlgorithmParameterException e) {\n throw new SaslException(\"DIGEST-MD5: Invalid cipher \" + \"algorithem parameter used to create cipher instance\", e);\n } catch (NoSuchPaddingException e) {\n throw new SaslException(\"DIGEST-MD5: Unsupported \" + \"padding used for chosen cipher\", e);\n } catch (InvalidKeyException e) {\n throw new SaslException(\"DIGEST-MD5: Invalid data \" + \"used to initialize keys\", e);\n }\n }", "public Long getImPriceAlgorithmId() {\n return imPriceAlgorithmId;\n }", "public String getAlgorithmName() {\n\t}", "public String getSigAlgOID()\n {\n return c.getSignatureAlgorithm().getAlgorithm().getId();\n }", "public abstract StandaloneAlgorithm createAlgorithm();", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption should the engine be initialized for encryption (true) or decryption (false)\n\t * @param key - symmetric encryption key\n\t * \n\t * @throws IllegalStateException - if any initialization parameters are invalid\n\t */\n\tpublic void init(boolean forEncryption, byte[] key) throws IllegalStateException;\n\t\n\t/**\n\t * @return name of the encryption algorithm\n\t */\n\tpublic String getAlgorithmName();\n\t\n\t/**\n\t * @return block size of the encryption algorithm\n\t */\n\tpublic int getBlockSize();\n\t\n\t/**\n\t * Performs an encryption or decryption of a block.\n\t * The amount of processed data depends on the actual algorithm's block size \n\t * \n\t * @param in - buffer with the data to be processed\n\t * @param inOff - starting position of the data at 'in'\n\t * @param out - preallocated buffer to store the processed data\n\t * @param outOff - starting position at 'out'\n\t * \n\t * @return size of processed data (typically algorithm's block size)\n\t * \n\t * @throws IllegalStateException if engine was not initialized or buffers are invalid\n\t */\n\tpublic int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException;\n\t\n\t/**\n\t * Resets the encryption engine (if required by the implementation)\n\t */\n\tpublic void reset();\n}", "private static void computeKeyPairs() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {\r\n\r\n\t\tfinal KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"EC\");\r\n\t\tkeyPairGenerator.initialize(new ECGenParameterSpec(\"secp256r1\"), SecureRandom.getInstanceStrong());\r\n\t\tkeyPairAlice = keyPairGenerator.generateKeyPair();\r\n\t\tkeyPairBob = keyPairGenerator.generateKeyPair();\r\n\t}", "private String vigenereAlgo(boolean encrypt){\n List<Integer> key = EncryptionUtils.stringToIntList(algo.getKey());\n List<Integer> value = EncryptionUtils.stringToIntList(algo.getValue());\n int keyLength = key.size();\n int valueLength = value.size();\n \n List<Integer> crypt = new ArrayList<>();\n \n for (int i = 0; i < valueLength; i++){\n crypt.add(Math.floorMod(value.get(i)-EncryptionUtils.FIRST+ mult(encrypt)*\n (key.get(i%keyLength)-EncryptionUtils.FIRST),EncryptionUtils.SIZE) +EncryptionUtils.FIRST);\n }\n \n return EncryptionUtils.intListToString(crypt);\n }", "private void initializeKeyPairs() \r\n \t //@ requires nonRepKeyPair |-> _ &*& authKeyPair |-> _ &*& basicKeyPair |-> _;\r\n \t /*@ ensures nonRepKeyPair |-> ?theNonRepKeyPair &*& theNonRepKeyPair != null &*&\r\n\t \t authKeyPair |-> ?theAuthKeyPair &*& theAuthKeyPair != null &*&\r\n\t \t basicKeyPair |-> ?theBasicKeyPair &*& theBasicKeyPair != null;\r\n\t @*/\r\n\t{\r\n\t\t/*\r\n\t\t * basicKeyPair is static (so same for all applets) so only allocate\r\n\t\t * memory once\r\n\t\t */\r\n\t\tif (EidCard.basicKeyPair != null && authKeyPair != null && nonRepKeyPair != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tbasicKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) 1024);\r\n\t\tbasicKeyPair.genKeyPair();\r\n\t\t\r\n\t\tauthKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) (1024));\r\n\t\tauthKeyPair.genKeyPair();\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t//authPrivateKey = (RSAPrivateCrtKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);\r\n\t\t\r\n\r\n\t\tnonRepKeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, (short) (1024));\r\n\t\tnonRepKeyPair.genKeyPair();\r\n\t\r\n\t\t//nonRepPrivateKey = (RSAPrivateCrtKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);\r\n\t}", "int getUnusedAlgorithmId();", "public int hashCode() {\n return this.asn;\n }", "public interface CaptchaAlgorithm {\n\n Captcha generate();\n\n}", "private Aes128Encryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.google.protobuf.ByteString getPublicEciesKeyBytes();", "public interface EncryptionKey extends Representable, UniqueByteRepresentable {\n public static final String RECOVERY_METHOD = \"getEncryptionKey\";\n\n}", "public abstract ArrayList<Key> toArrayList();", "public GenEncryptionParams() {\n }", "public static PKAlgs getAlg(String name) throws SshException\n\t{\n\t\t// For purposes of easier maintainability, apply a generic function,\n\t\t// appropriate for all families of encryption algorithms\n\t\tPKAlgs retVal = LookUpUtil.lookUp(PKAlgs.values(), name);\n\t\t\n\t\tif ( null==retVal )\n\t\t{\n\t\t\tthrow new SshException(\"Name not found\");\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "public String getAlgorithm() {\n return _algorithm;\n }", "public void testPubliKeyField() throws Exception {\r\n // Create new key pair\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\r\n keyGen.initialize(1024, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n\r\n PublicKeyRSA rsa1 = (PublicKeyRSA)KeyFactory.createInstance(keyPair.getPublic(), \"SHA1WITHRSA\", null);\r\n byte[] der = rsa1.getEncoded();\r\n\r\n CVCObject cvcObj = CertificateParser.parseCVCObject(der);\r\n assertTrue(\"Parsed array was not a PublicKeyRSA\", (cvcObj instanceof PublicKeyRSA));\r\n\r\n RSAPublicKey rsaKey = (RSAPublicKey)keyPair.getPublic();\r\n\r\n RSAPublicKey rsa2 = (RSAPublicKey)cvcObj; // This casting should be successful\r\n assertEquals(\"Key modulus\", rsaKey.getModulus(), rsa2.getModulus());\r\n assertEquals(\"Key exponent\", rsaKey.getPublicExponent(), rsa2.getPublicExponent());\r\n assertEquals(\"Key algorithm\", \"RSA\", rsa2.getAlgorithm());\r\n \r\n PublicKeyRSA rsa3 = (PublicKeyRSA)rsa2;\r\n assertEquals(\"OIDs\", rsa1.getObjectIdentifier(), rsa3.getObjectIdentifier());\r\n }", "@Override\n public String getAlgorithm()\n {\n return algorithm;\n }", "private void getPublicKey(APDU apdu) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, ?theBuffer) &*& array_slice(theBuffer, 0, theBuffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, theBuffer) &*& array_slice(theBuffer, 0, theBuffer.length, _);\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tbyte[] buffer = apdu.getBuffer();\r\n\t\t// if this is thrown: problem accesses getPreviousapdu\r\n\t\t// check P1\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tshort le = apdu.setOutgoing();\r\n\t\t// Le = 0 is not allowed\r\n\t\tif (le != (short) (5 + 8 + 128))\r\n\t\t\tISOException.throwIt((short) (SW_WRONG_LENGTH_00 + (5 + 8 + 128)));\r\n\t\tbyte[] tempBuffer = new byte[le];\r\n\t\ttempBuffer[(short) 0] = (byte) 0x02;\r\n\t\ttempBuffer[(short) 1] = (byte) 0x08;\r\n\t\ttempBuffer[(short) 10] = (byte) 0x03;\r\n\t\ttempBuffer[(short) 11] = (byte) 0x81;\r\n\t\ttempBuffer[(short) 12] = (byte) 0x80;\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\tif (buffer[ISO7816.OFFSET_P2] == AUTHENTICATION){\r\n\t\t\tif (getPreviousApduType() != GENERATE_KEY_PAIR) {\r\n\t\t\t\tauthKeyPair.getPublic().clearKey();\r\n\t\t\t ////@ close [1/2]valid(); // auto\r\n\t\t\t\tJCSystem.beginTransaction();\r\n\t\t\t ////@ open valid(); // auto\r\n\t\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\t ////@ close valid(); // auto\r\n\t\t\t\tJCSystem.commitTransaction();\r\n\t\t\t ////@ open [1/2]valid(); // auto\r\n\t\t\t\tISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);\r\n\t\t\t}\r\n\t\t\t((RSAPublicKey) authKeyPair.getPublic()).getExponent(tempBuffer, (short) 7);\r\n\t\t\t((RSAPublicKey) authKeyPair.getPublic()).getModulus(tempBuffer, (short) 13);\r\n\t\t}else if (buffer[ISO7816.OFFSET_P2] == NON_REPUDIATION) { \r\n\t\t\tif (getPreviousApduType() != GENERATE_KEY_PAIR) {\r\n\t\t\t\tnonRepKeyPair.getPublic().clearKey();\r\n\t\t\t ////@ close [1/2]valid(); // auto\r\n\t\t\t\tJCSystem.beginTransaction();\r\n\t\t\t ////@ open valid(); // auto\r\n\t\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\t\t////@ close valid(); // auto\r\n\t\t\t\tJCSystem.commitTransaction();\r\n\t\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\t\tISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);\r\n\t\t\t}\t\t\t\r\n\t\t\t((RSAPublicKey) nonRepKeyPair.getPublic()).getExponent(tempBuffer, (short) 7);\r\n\t\t\t((RSAPublicKey) nonRepKeyPair.getPublic()).getModulus(tempBuffer, (short) 13);\r\n\t\t}else if (buffer[ISO7816.OFFSET_P2] == BASIC) {\t\t\r\n\t\t\tif (basicKeyPair == null)\r\n\t\t\t\tISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);\r\n\t\t\t((RSAPublicKey) basicKeyPair.getPublic()).getExponent(tempBuffer, (short) 7);\r\n\t\t\t((RSAPublicKey) basicKeyPair.getPublic()).getModulus(tempBuffer, (short) 13);\r\n\t\t} else {\r\n\t\t\tISOException.throwIt(SW_REFERENCE_DATA_NOT_FOUND);\r\n\t\t}\r\n\t ////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t ////@ open valid(); // auto\r\n\t\tsetPreviousApduType(OTHER);\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\tauthKeyPair.getPublic().clearKey();\r\n\t\tnonRepKeyPair.getPublic().clearKey();\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength(le);\r\n\t\t// send content of buffer in apdu\r\n\t\tapdu.sendBytesLong(tempBuffer, (short) 0, le);\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}" ]
[ "0.60506076", "0.57011443", "0.5674249", "0.5582371", "0.54360414", "0.5388223", "0.5379604", "0.5353564", "0.5334163", "0.52907485", "0.52666885", "0.5215961", "0.51906383", "0.5189878", "0.5186533", "0.5155857", "0.5144439", "0.5135886", "0.5134981", "0.51186055", "0.5094579", "0.5081604", "0.5059631", "0.504351", "0.5025017", "0.50243866", "0.5020548", "0.5017217", "0.50022006", "0.49954405", "0.4995165", "0.49908188", "0.49903262", "0.4981477", "0.49748018", "0.49536276", "0.49290237", "0.49103084", "0.49090636", "0.49085602", "0.4901568", "0.48972934", "0.4893747", "0.48806858", "0.48710716", "0.48658147", "0.48632503", "0.48619163", "0.48566243", "0.48562205", "0.4855101", "0.48497188", "0.4842335", "0.48400906", "0.48351544", "0.48315006", "0.48267198", "0.48203528", "0.4809784", "0.4800824", "0.47976556", "0.4793873", "0.47847125", "0.47835836", "0.47823584", "0.476336", "0.47632915", "0.47609177", "0.47505245", "0.47477093", "0.47407255", "0.47385684", "0.47363856", "0.47324926", "0.4728474", "0.4719835", "0.4708044", "0.47041044", "0.47011596", "0.47010228", "0.46946815", "0.4692707", "0.46859863", "0.46717322", "0.46685016", "0.46610713", "0.46567538", "0.46401027", "0.463511", "0.4632802", "0.46269336", "0.46178156", "0.46078753", "0.46060792", "0.46033046", "0.4582021", "0.4574963", "0.45744732", "0.4568532", "0.45645964" ]
0.57927203
1
Created by williamxu on 7/14/17.
public interface NativeCardQAContract { interface View extends ViewAdapter { } interface ViewModel extends ViewModelAdapter<View> { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "private void poetries() {\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\tprotected void interr() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public int describeContents() { return 0; }", "public abstract void mo70713b();", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void m50367F() {\n }", "public void mo21877s() {\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 }", "@Override\n public void init() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\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}", "public void skystonePos4() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo21779D() {\n }", "static void feladat9() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "static void feladat4() {\n\t}", "public abstract void mo56925d();", "private Rekenhulp()\n\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}", "public void mo12930a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n void init() {\n }", "@Override\n public void init() {}", "protected void mo6255a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void level7() {\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\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo21825b() {\n }", "public void mo21878t() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}" ]
[ "0.5922958", "0.5882103", "0.5742447", "0.5729838", "0.57249355", "0.5719103", "0.5713169", "0.56644595", "0.56624335", "0.56615365", "0.5651948", "0.5651948", "0.5625638", "0.56097245", "0.5605296", "0.5595846", "0.55931455", "0.55860513", "0.555747", "0.55233794", "0.5515463", "0.5513031", "0.55112034", "0.55063564", "0.54949313", "0.5466102", "0.5466102", "0.5466102", "0.5466102", "0.5466102", "0.5443142", "0.5439019", "0.5433958", "0.54291993", "0.5416016", "0.5414574", "0.5400883", "0.5398129", "0.53949577", "0.5387429", "0.5380479", "0.53637385", "0.5361612", "0.5360167", "0.53559333", "0.5353869", "0.5348614", "0.5348614", "0.5346113", "0.5336065", "0.5331751", "0.53310305", "0.53310305", "0.53310305", "0.53310305", "0.53310305", "0.53310305", "0.53310305", "0.53168327", "0.53076285", "0.53036594", "0.5290818", "0.52885693", "0.52885693", "0.52885693", "0.52839833", "0.5274393", "0.5274393", "0.5274393", "0.52719", "0.52702945", "0.52698344", "0.5268084", "0.5264657", "0.5261123", "0.5254961", "0.5252733", "0.52507895", "0.5250394", "0.5249404", "0.5248893", "0.5248893", "0.5248893", "0.5247896", "0.52450925", "0.52399796", "0.5239525", "0.5238938", "0.5233566", "0.5233566", "0.52305394", "0.5225333", "0.5220885", "0.5219325", "0.5219325", "0.5218565", "0.52168524", "0.521592", "0.52144086", "0.52128893", "0.5212301" ]
0.0
-1
Starts new activity to add entry to database.
public void transferActivity() { Intent intent = new Intent(this, AddInfoActivity.class); this.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }", "public void startAddActivity() {\n Intent addMemberIntent = new Intent(getContext(), MemberAddActivity.class);\n startActivityForResult(addMemberIntent, ADD_MEMBER_REQUEST_CODE);\n }", "@Override\n public void run() {\n if (intent != null && intent.hasExtra(\"id\")) {\n eventData.setId(intent.getIntExtra(\"id\", 0));\n eventDatabase.eventDAO().updateEvent(eventData);\n }\n // the condition when user click plus button from MainActivity.java (Insert a new row)\n else {\n eventDatabase.eventDAO().insertNewEvent(eventData);\n\n }\n finish(); // destroy activity (when u press back key after clicking \"save btn\", this activity won't be called again)\n }", "@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tnew AddInDatabase().execute();\n\t\t\t\t\t}", "private void onClickBtAdd() {\n\t\tDbAdapter db = new DbAdapter(this);\n\t\tdb.open();\n\n\t\tfloat amount = 0;\n\n\t\ttry {\n\t\t\tamount = Float.parseFloat(etAmount.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\tamount = 0;\n\t\t}\n\n\t\t// create a medicine event\n\t\tdb.createMedicineEvent(amount,\n\t\t\t\tnew Functions().getDateAsStringFromCalendar(mCalendar),\n\t\t\t\tspMedicine.getSelectedItemId());\n\n\t\tdb.close();\n\n\t\tActivityGroupTracking.group.restartThisActivity();\n\n\t\t// clear the edittext\n\t\tetAmount.setText(\"\");\n\n\t\t// Go to tracking tab when clicked on add\n\t\tShowHomeTab parentActivity;\n\t\tparentActivity = (ShowHomeTab) this.getParent().getParent();\n\t\tparentActivity.goToTab(DataParser.activityIDTracking);\n\t}", "public void add(){\n dbHandler_card.getcount();\n Intent i = new Intent(this,MyActivity.class);\n startActivity(i);\n }", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}", "public void addNewUserEntry(View v){\n Intent invoer;\n invoer = new Intent(getBaseContext(),InvoerActivity.class);\n startActivity(invoer);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tStoreActivity.getInstance().addActivity(this);\n\t}", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "void addEntry(String course, String dayee, String datee, String timee, String venuee) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues nots = new ContentValues();\n nots.put(UNIT, course);\n nots.put(DAY, dayee);\n nots.put(DATE, datee);\n nots.put(TIME, timee);\n nots.put(VENUE, venuee);\n\n db.insert(TABLE_CLASS, null, nots);\n db.close(); // Closing database connection\n Log.d(\"INSERT\", \"Insert Successfully to Show\");\n }", "public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }", "@Override\n public void addNewActivity(Activity activity) throws SQLException {\n\n String sql = \"INSERT INTO ACTIVITY (routeId, userId, point, duration, distance) VALUES (?, ?, ?, ?, ?)\";\n\n try (Connection connection = dataSource.getConnection()) {\n statement = connection.prepareStatement(sql);\n if (activity.getRouteId() != -1 ) {\n statement.setInt(1, activity.getRouteId());\n }\n else {\n statement.setNull(1, Types.INTEGER);\n }\n statement.setInt(2, activity.getUserId());\n statement.setInt(3, activity.getPoint());\n statement.setLong(4, activity.getDuration());\n statement.setFloat(5, activity.getDistance());\n statement.executeUpdate();\n } catch (SQLException exception) {\n throw exception;\n } finally {\n close(statement, null);\n }\n insertSegments(activity);\n }", "public void add(View view) {\n Intent addIntent = new Intent(this, AddTask.class);\n addIntent.putExtra(\"com.example.joshua.livetogether.aptID\", mAptID);\n startActivity(addIntent);\n }", "private void submit(){\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tMyApp app = new MyApp();\n\t\t\t\tapp.user = mUser.getText().toString();\n\t\t\t\tapp.password = mPassword.getText().toString();\n\t\t\t\tMyDbHelper dbHelper = MyDbHelper.getInstance(getApplicationContext());\n\t\t\t\ttry {\n\t\t\t\t\tdbHelper.insert(MyDbHelper.TABLE_NAME, null, app.toContentValues());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally{\n\t\t\t\t\tdbHelper.close();\n\t\t\t\t\tdbHelper = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t\t//finish self\n\t\tfinish();\n\t}", "public void addTask(View view) {\n // Model of the list data\n ListModel model = ListModel.getInstance();\n\n // String for the date in \"mm/dd/yyyy\" format\n String date;\n\n // Get the name of the task\n EditText text = (EditText) findViewById(R.id.taskInput);\n String taskName = text.getText().toString();\n\n // Add list to model\n model.addTask(listName, taskName);\n\n\n // Return to the single list activity\n Log.i(TAG, \"Creating intent to return to the single list activity\");\n Intent intent = new Intent(this, SingleListActivity.class);\n intent.putExtra(Extra.LIST, listName);\n Log.i(TAG, \"Intent created with extra message (list name).\");\n Log.i(TAG, \"Starting single list activity\");\n startActivity(intent);\n }", "public void insert(JournalEntry entry) {\n SQLiteDatabase db = instance.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"title\", entry.getTitle());\n values.put(\"mood\", entry.getMood());\n values.put(\"content\", entry.getContent());\n db.insert(\"entries\", null, values);\n }", "private void addStartUp() {\n DatabaseReference firebaseDatabase = FirebaseDatabase.getInstance().getReference(STARTUP_FIREBASE_DATABASE_REFERENCE);\n String id = firebaseDatabase.push().getKey();\n StartUpField startUpField = new StartUpField(id, startupName.getText().toString().trim(),\n startupDescription.getText().toString().trim(), startupFounder.getText().toString().trim(),\n startupCoFounder.getText().toString().trim(), startupWebsite.getText().toString().trim(),\n facebookUrl.getText().toString().trim(), twitterUrl.getText().toString().trim(), imageUrl,\n telephone.getText().toString().trim(), email.getText().toString().trim());\n firebaseDatabase.child(id).setValue(startUpField).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n if (getView() != null) {\n Navigation.findNavController(requireView()).navigate(R.id.action_addStartUpFragment_to_navigation_startup);\n }\n showButton(saveStartupButton);\n stopProgressBar(progressBar);\n Toast.makeText(getParentFragment().getContext(), \"Startup added\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getParentFragment().getContext(), \"Unable to add Startup\", Toast.LENGTH_SHORT).show();\n Timber.d(\"database Write Error: %s\", task.getException().getLocalizedMessage());\n showButton(saveStartupButton);\n stopProgressBar(progressBar);\n }\n });\n }", "int insert(QtActivitytype record);", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "int insert(CmsActivity record);", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_INSERT).setData(CalendarContract.Events.CONTENT_URI);\n startActivity(intent);\n }", "boolean addUserActivityToDB(UserActivity userActivity);", "public void AddData(String newEntry) {\n boolean insertData = mDatabaseHelper.addData(newEntry);\n if (insertData) {\n toastMessage(\"Item Added to Shopping List!\");\n } else {\n toastMessage(\"Sorry, Please Try Again\");\n }\n\n }", "public void insertRecords(){\n InsertToDB insertRecords= new InsertToDB(mDbhelper,mRecord);\n Log.i(TAG, \"starting insertion on a new Thread!!\");\n idlingResource.increment();\n new Thread(insertRecords).start();\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String task = String.valueOf(taskEditText.getText());\n\n //a read/write database object will be returned\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n //used to store a set of values\n ContentValues values = new ContentValues();\n\n //add the task to the set\n values.put(TaskContract.TaskEntry.COL_TASK_TITLE, task);\n\n //general method for inserting a row into the database\n db.insertWithOnConflict(TaskContract.TaskEntry.TABLE,\n null,\n values,\n SQLiteDatabase.CONFLICT_REPLACE);\n db.close(); //close the database object\n updateUI(); //update the look of the ListView\n }", "public void AddDataRecordtoDB(View view) {\n\n //get the running distance from textview\n TextView TV_distance = (TextView)findViewById(R.id.data_length);\n Double runningDistance = Double.parseDouble(TV_distance.getText().toString());\n System.out.println(\"distance is :\"+runningDistance);\n\n //get the calories from textview\n TextView TV_calories = (TextView)findViewById(R.id.data_calories);\n Double runningCalories = Double.parseDouble(TV_calories.getText().toString());\n System.out.println(\"calorie is :\"+runningCalories);\n\n // new an running \"entity\"\n Runningdata NewRunningdata = new Runningdata();\n NewRunningdata.setDistance(runningDistance);\n NewRunningdata.setCalorie(runningCalories);\n NewRunningdata.setStarttime(startTime);\n\n // using \"dao\" to manipulate database\n runningdao.insert(NewRunningdata);\n System.out.println(\"I did insertion\");\n }", "@Test\n public void addNewTask_startsActivity() {\n mTasksNavigator.addNewTask();\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResult(eq(AddEditTaskActivity.class),\n eq(AddEditTaskActivity.REQUEST_ADD_TASK));\n }", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "public void insertEntry(String type, String name, String label, String command) {\n try {\n ContentValues newValues = new ContentValues();\n\n // Assign values for each column.\n newValues.put(Constants.MODULE_TYPE, type);\n newValues.put(Constants.MODULE_NAME, name);\n newValues.put(Constants.MODULE_LABEL, label);\n newValues.put(Constants.MODULE_COMMAND, command);\n\n // Insert the row into your table.\n db = dbHelper.getWritableDatabase();\n\n db.insert(Constants.MODULE_TABLE_NAME, null, newValues);\n db.close();\n\n Toast.makeText(context, context.getString(R.string.module_added), Toast.LENGTH_LONG).show();\n }\n catch (Exception e) {\n e.getStackTrace();\n }\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "public void startCreateTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this, CreateTripActivity.class);\r\n startActivityForResult(intent, CREATE_CODE);\r\n\r\n\t}", "int insert(ActActivityRegister record);", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.submitBtn:\n String merchant = retrieveMerchant();\n String description = retrieveDesc();\n String date = retrieveDate();\n String cost = retrieveCost();\n if (merchant.equals(\"\") || description.equals(\"\") || date.equals(\"\") || cost.equals(\"\")) {\n return;\n }\n Date d = Utils.convertToDate(Utils.getYearFromStr(date), Utils.getMonthFromStr(date), Utils.getDayFromStr(date));\n ContentValues values = Utils.insertEntries(merchant, description, date, d, cost);\n long newRowId = _db.insert(Inventory.InventoryEntry.TABLE_NAME, null, values);\n Intent i = new Intent(AddActivity.this, MainActivity.class);\n startActivity(i);\n }\n }", "@Override\n public void onClick(View v) {\n titleTask = txtTitle.getText().toString();\n descriptionTask = txtDescription.getText().toString();\n locationTask = txtLocation.getText().toString();\n\n\n //Also set the code to add the object to the server,\n //It should call getInfo() which will store all of the inputs into strings or ints\n\n\n //This checks to make sure the input is valid, if not will not allow the user to save to database\n if (dayPass == 0 || monthPass == 0 || yearPass == 0 || titleTask == null || descriptionTask == null || startMinute == 0 || startHour == 0)\n Toast.makeText(AddTask.this, \"Incorrect input, please try again\", Toast.LENGTH_SHORT).show();\n else {\n if(MainActivity.groupview)\n MainActivity.dh.writeTask(MainActivity.user.getUserID(), MainActivity.group.getGroupID(), new Task(dayPass, monthPass, yearPass, startHour, startMinute, categoryTask, titleTask, descriptionTask, locationTask, false, MainActivity.user));\n else\n MainActivity.dh.writeTask(MainActivity.user.getUserID(), \"\", new Task(dayPass, monthPass, yearPass, startHour, startMinute, categoryTask, titleTask, descriptionTask, locationTask, false, MainActivity.user));\n //MainActivity.dh.readBlock(MainActivity.user.getUserID(), \"\", \"04202019\");\n Toast.makeText(AddTask.this, \"Task saved to your calendar\", Toast.LENGTH_LONG).show();\n Intent intentHome = new Intent(AddTask.this,\n MainActivity.class);\n startActivity(intentHome);\n }\n\n }", "public void startDemoActionTransaction() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.beginTransaction();\n }", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tdbHelper.InsertCategory(listResult);\r\n\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\tmsg.obj = \"CategorySave\";\r\n\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t}", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "public void onClick_AddRecord(View v, String task, int status) {\n\t\t\n\t\t// insertRow() returns a long which is the id number\n\t\tlong newId = myDb.insertRow(task, status);\n\t\tpopulateListViewFromDB();\n\t\t\n\t\t\n\t}", "public void add(String entry, int priority) {\n\t\tmy_DB = helper.getWritableDatabase();\n\t\tContentValues cv = new ContentValues();\n\t\tcv.put(\"entry\", entry);\n\t\tcv.put(\"priority\", priority);\n\t\tcv.put(\"finished\", 0);\n\t\tmy_DB.insert(\"todo\", null, cv);\n\t}", "@Override\r\n\tpublic boolean onCreate() {\n\t\tnoteBookOpenHepler = new NoteBookDBHepler(getContext());\r\n\t\tinsertHelper = new DatabaseUtils.InsertHelper(noteBookOpenHepler.getWritableDatabase(), table);\r\n\t\treturn true;\r\n\t}", "public void insertActivityDetails(Activity ac){\n //Get the Data Repository in write mode\n SQLiteDatabase db = this.getWritableDatabase();\n //Create a new map of values, where column names are the keys\n ContentValues cValues = new ContentValues();\n cValues.put(KEY_ACT_NO, ac.getAct_no());\n cValues.put(KEY_USERNAME, ac.getUsername());\n cValues.put(KEY_ACT_NAME, ac.getAct_name());\n cValues.put(KEY_TIME_SET, ac.getTime_set());\n cValues.put(KEY_ACT_DESC, ac.getAct_desc());\n cValues.put(KEY_ACT_STATE, ac.isAct_complete());\n // Insert the new row, returning the primary key value of the new row\n long newRowId = db.insert(TABLE_Activitys,null, cValues);\n db.close();\n }", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"espresso\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Espresso Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Espresso Not Inserted\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tif(dbHelper.InsertItem(listResult))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSharedPreferences sharedPrefer = getSharedPreferences(getResources().getString(R.string.information_string), Context.MODE_PRIVATE);\r\n\t\t\t\t\t\t \tSharedPreferences.Editor sharedEditor = sharedPrefer.edit();\r\n\t\t\t\t\t\t \tsharedEditor.putString(getResources().getString(R.string.masterversion), Common.serverTime);\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tsharedEditor.commit();\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\t\tmsg.obj = \"ProductItemSave\";\r\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "@Override\n public void run() {\n addDelay();\n\n AppDatabase appDatabase = AppDatabase.getInstance(appContext, executors);\n\n List<WeatherEntry> weathers = DataGenerator.generateWeathers();\n\n Log.d(TAG, \"Codelab AppDatabase insertAll - begin\");\n\n insertAll(appDatabase, weathers);\n\n // notify that the database was created and it's ready to be used\n appDatabase.setDatabaseCreated();\n }", "@Override\n public void onClick(DialogInterface dialog, int id){\n Toast.makeText(mContext,R.string.uploadRequestOnNoNetwork,Toast.LENGTH_SHORT).show();\n writeSyncPreferences(mContext.getString(R.string.mobiledataString));\n //TODO - call a function that enters records to the SQLite database\n insertRecords();\n\n mContext.startActivity(new Intent(mContext,MainActivity.class));\n ((Activity)mContext).finish();\n\n }", "private void addNewHomework() {\n\t\tIntent myIntent = new Intent(HomeworkActivity.this,\n\t\t\t\tHomeworkDetailActivity.class);\n\n\t\tmyIntent.putExtra(HOMEWORK_EDIT, false);\n\n\t\tHomeworkActivity.this.startActivityForResult(myIntent,\n\t\t\t\tADD_NEW_HOMEWORK_REQUEST);\n\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i = new Intent(MainActivity.this, Add_Record.class);\n\t\t\t\tstartActivity(i);\n\n\t\t\t}", "private void launch() {\n Intent intent = new Intent(getActivity(), ForumAddActivity.class);\n startActivity(intent);\n }", "public void addToDatabaseButtonClicked(View v) {\n byte[] holderString = DBBitmapUtility.getBytes(MainActivityGCV.bitmap);\n databaseHandler.addWordInfo(MainActivityGCV.imageArray.get(0), meaning.getText().toString(), sentence.getText().toString(), holderString);\n Toast.makeText(getApplicationContext(), \"Add to database Successful\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(this, WordsDatabase.class);\n startActivity(i);\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //Initialize the Firebase database reference\n mDatabase = FirebaseDatabase.getInstance().getReference();\n\n //get a reference to the Button and EditText Views using their ID's\n addTaskButton = (Button) findViewById(R.id.addTask_id);\n taskDescription = (EditText) findViewById(R.id.taskDescription_id);\n\n addTaskButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n writeNewTask();\n }\n });\n }", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }", "public NomineeAddActivity() {\r\n\t\tsetContentView(R.layout.activity_nominee_add);\r\n\t}", "int insert(EcsFavourableActivity record);", "public void addRecord();", "void startNewActivity(Intent intent);", "protected void startInsertRunnable() {\n\t}", "protected void activitySaveInDb(CustomApplicationInfo cai) {\n\t\tinitDb();\n\t\tdbAccess.insert(cai);\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "private void addNewEntry(Entry entry) {\n \tboolean showToasts = Settings.getToastsSetting(getApplicationContext());\n \t\n// \tContentResolver cr = getContentResolver();\n// \t\n// \t// Insert the new entry into the provider\n// \tContentValues values = new ContentValues();\n// \t\n// \tvalues.put(WaterProvider.KEY_DATE, _entry.getDate());\n// \tvalues.put(WaterProvider.KEY_AMOUNT, _entry.getMetricAmount());\n// \t\n// \tcr.insert(WaterProvider.CONTENT_URI, values);\n \tmWaterDB.addNewEntry(getContentResolver(), entry);\n \t\n \t// Make a toast displaying add complete\n \tint unitsPref = Settings.getUnitSystem(this);\n \tdouble displayAmount = entry.getNonMetricAmount();\n \tString displayUnits = getString(R.string.unit_fl_oz);\n \tif (unitsPref == Settings.UNITS_METRIC) {\n \t\tdisplayUnits = getString(R.string.unit_mililiters);\n \t\tdisplayAmount = entry.getMetricAmount();\n \t}\n \tString toastMsg = String.format(\"Added %.1f %s\", displayAmount, displayUnits);\n \tToast toast = Toast.makeText(getApplicationContext(), toastMsg, Toast.LENGTH_SHORT);\n \ttoast.setGravity(Gravity.BOTTOM, 0, 0);\n \tif (showToasts)\n \t\ttoast.show();\n \t\n \t// If user wants a reminder when to drink next,\n \t// setup a notification X minutes away from this entry\n \t// where X is also a setting\n \tif (Settings.getReminderEnabled(this) && mIsHistorical == false) {\n \t\t// Get the AlarmManager services\n\t\t\tAlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\t\t\n\t\t\t// create the calendar object\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t// add X minutes to the calendar object\n\t\t\tcal.add(Calendar.MINUTE, Settings.getReminderInterval(this));\n\t\t\t\n\t\t\t// cancel existing alarm if any, this way latest\n\t\t\t// alarm will be the only one to notify user\n\t\t\tIntent cancelIntent = new Intent(this, AlarmReceiver.class);\n\t\t\tPendingIntent cancelSender = PendingIntent.getBroadcast(this, 0, cancelIntent, 0);\n\t\t\tam.cancel(cancelSender);\n\t\t\t\n\t\t\t// set up the new alarm\n\t\t\tIntent intent = new Intent(this, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"entryDate\", entry.getDate());\n\t\t\tPendingIntent sender = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\t\t\tam.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n \t}\n }", "@Override\n public void onClick(View view) {\n Log.d(\"CALL_TEST\", \"SAVE!\");\n DbManager db = DbManager.getInstance(getApplicationContext());\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"NAME\", \"홍길동\");\n contentValues.put(\"PHONE\", \"1234\");\n\n db.insert(contentValues);\n }", "private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }", "public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }", "void addNewEntry(BlogEntry entry) throws DAOException;", "@Override\r\n\tpublic void add() {\n\t\tif(alreadyAdded()) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Member is already added\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\t\ttry(Connection connection= db.getConnection();) {\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString addString=\"INSERT INTO members VALUES(?,?,?,?)\";\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(addString);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t\t\tpreparedStatement.setString(2, super.getNameString());\r\n\t\t\t\tpreparedStatement.setString(3, super.getSurnameString());\r\n\t\t\t\tpreparedStatement.setString(4, super.getEmailString());\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t}", "public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }", "public void onClick(View arg0) {\n Intent nextScreen = new Intent(NewClass.this, ListClass.class);\r\n\r\n String name = inputName.getText().toString();\r\n String num = inputNum.getText().toString();\r\n int newNum = Integer.parseInt(num);\r\n ListClass.items.add(new Class(name,newNum));\r\n Log.i(TAG, \"Before startActivity\");\r\n // starting new activity\r\n startActivity(nextScreen);\r\n Log.i(TAG, \"After startActivity\");\r\n\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tUri insertedUri = context.getContentResolver().insert(uri,\n\t\t\t\t\t\tvalues);\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t// msg.what=INSERT_OPERATION;\n\t\t\t\tif (ContentUris.parseId(insertedUri) > 0) {\n\t\t\t\t\tmsg.what = SUCCESS;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.what = FAIL;\n\t\t\t\t}\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}", "private void onSaveButtonClicked() {\n final String date = dayValue + \".\" + monthValue + \".\" + yearValue;\n final String name = edtEventName.getText().toString();\n final String location = edtEventLocation.getText().toString();\n final String desc = edtEventDesc.getText().toString();\n final EventData eventData = new EventData(name,\n date, location, desc);\n\n // create a new thread to insert or update db\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // the condition when user click the one of the items in recyclerView (Update existing row)\n if (intent != null && intent.hasExtra(\"id\")) {\n eventData.setId(intent.getIntExtra(\"id\", 0));\n eventDatabase.eventDAO().updateEvent(eventData);\n }\n // the condition when user click plus button from MainActivity.java (Insert a new row)\n else {\n eventDatabase.eventDAO().insertNewEvent(eventData);\n\n }\n finish(); // destroy activity (when u press back key after clicking \"save btn\", this activity won't be called again)\n }\n });\n }", "public void addTask(View v) {\n int taskId = Integer.parseInt(txtId.getText().toString());\n String tskName = txtTaskName.getText().toString();\n String taskDesc = txtTaskDescription.getText().toString();\n ContentValues values = new ContentValues();\n values.put(\"taskId\", taskId);\n values.put(\"taskName\", tskName);\n values.put(\"taskDescription\", taskDesc);\n try {\n taskManager.addTask(values);\n Toast.makeText(this, \"Data Inserted\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void RelationshipAdded(boolean ok) {\n final Intent i = new Intent(this,ELFStaff.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n }", "@Override\n public boolean onCreate() {\n myDB = new DBHelperActivity(getContext(), null, null, 1);\n return false;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tRemoteUtil.getInstance().addActivity(this);\n\t}", "public void onSaveButtonClicked() {\n String description = mEditText.getText().toString();\n Date date = new Date();\n\n final DiaryEntry entry = new DiaryEntry(description, date);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n if (mEntryId == DEFAULT_ENTRY_ID) {\n // insert new task\n mDb.entryDao().insertEntry(entry);\n } else {\n //update task\n entry.setId(mEntryId);\n mDb.entryDao().updateEntry(entry);\n }\n finish();\n }\n });\n }", "long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n double time;\n\n ContentValues values = new ContentValues();\n values.put(KEY_INFO, task.getInfo()); // task info\n if (task.calendarExists()) {\n time = task.getCalendar().getTimeInMillis();\n } else {\n time = 0;\n }\n values.put(KEY_CALENDAR, time); // Task calendar\n values.put(KEY_LATITUDE, task.getLatitude());\n values.put(KEY_LONGITUDE, task.getLongitude());\n\n // Inserting Row\n long id;\n id = db.insert(TABLE_TASKS, null, values);\n Log.d(TAG, \"ID: \" + Long.toString(id));\n db.close(); // Closing database connection\n return id;\n }", "private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "private void insertDummy() {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(HabitEntry.COLUMN_HABIT_NAME, \"Learn something New\");\n values.put(HabitEntry.COLUMN_SUNDAY, 3);\n values.put(HabitEntry.COLUMN_MONDAY, 0);\n values.put(HabitEntry.COLUMN_TUESDAY, 2);\n values.put(HabitEntry.COLUMN_WEDNESDAY, 4);\n values.put(HabitEntry.COLUMN_THURSDAY, 0);\n values.put(HabitEntry.COLUMN_FRIDAY, 7);\n values.put(HabitEntry.COLUMN_SATURDAY, 12);\n db.insert(HabitEntry.TABLE_NAME, null, values);\n db.close();\n\n loaderManager.restartLoader(HABITS_LOADER_ID, null, this);\n }", "@Override\n public void run() {\n new AddFcmDetails(SuccessFullActivity.this).execute();\n }", "public void insertValue() {\n\n // boolean isDrop = this.deleteDatabase(DatabaseHelper.DATABASE_NAME);\n Utility t = new Utility();\n\n\t\t/* Insert Database */\n DBHelper db = new DBHelper(this);\n // /db.executeStatement(dropDB);\n\n\t\t/* State Entry */\n int count = db.getTableRowCount(TableContract.Name.TABLE_NAME, null);\n if (count == 0) {\n try {\n\n InputStream im = getAssets().open(\"BabyName.Sqlite\");\n BufferedReader br = new BufferedReader(new InputStreamReader(im, \"UTF-8\"));\n String line = br.readLine();\n List<M_Name> lst = new ArrayList<M_Name>();\n do {\n String temp[] = line.split(\",\");\n String gender_cast = \"\";\n if (temp.length == 4)\n gender_cast = temp[3];\n\n M_Name s1 = new M_Name(temp[1], temp[0], Integer.parseInt(temp[2]), gender_cast);\n lst.add(s1);\n\n count++;\n if (count % 5000 == 0) {\n Log.i(\"Count\", count + \" - \" + t.getTime(t));\n }\n } while ((line = br.readLine()) != null);\n\n db.insertNameInsertHelperLock(lst);\n } catch (IOException e) {\n AppLogger.writeLog(\"state \" + TAG + \" -- \" + e.toString());\n\n if (AppConstants.DEBUG)\n Log.e(\"\", e.toString());\n }\n }\n }", "public void startIntent(View view) {\n Intent addToDoIntent = new Intent(ToDoListActivity.this, AddToDoActivity.class);\n startActivityForResult(addToDoIntent, TODO_ADDED);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n Button addBtn = (Button)findViewById(R.id.add);\n addBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getBaseContext(), AddNewTask.class);\n startActivity(intent);\n }\n });\n\n note_Singleton Notes = note_Singleton.getInstance(this);\n final ListView listView = (ListView) findViewById(R.id.listV_main);\n\n listView.setAdapter(new ItemListBaseAdapter(this, Notes.getItems()));\n ((BaseAdapter) listView.getAdapter()).notifyDataSetChanged();\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(ManageTaskActivity.this, AddTaskActivity.class);\n\n //Storing the task list in this intent\n i.putParcelableArrayListExtra(\"TASK_LIST\", _Task);\n i.putParcelableArrayListExtra(\"ACCOUNT_LIST\", _List);\n\n //starting actvity for result to return the list when a task has been added.\n startActivityForResult(i,2);\n\n }", "public void onClickAddNewItem(View v) {\n Intent intent = new Intent(EditFoodItemActivity.this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String task = String.valueOf(taskEditText.getText());\n SQLiteDatabase db = OpenDB.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(AccessData.ToDoEntry.todo_title, task);\n db.insertWithOnConflict(AccessData.ToDoEntry.table,\n null,\n values,\n SQLiteDatabase.CONFLICT_REPLACE);\n db.close();\n updateUI(); /* Updating the todo list with new changes made to the database, and displaying it on screen. */\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.plans);\n \n dbHelper = new PlanDbAdapter(this);\n dbHelper.open();\n \n // event handlers\n View add_btn = findViewById(R.id.add_btn);\n add_btn.setOnClickListener(this);\n \n fillData();\n }", "@Override\n public void run() {\n Uri uri = getContentResolver().insert(ItemEntry.CREDENTIALS_CONTENT_URI, contentValues);\n try {\n // Put thread to sleep for 2seconds to show user a progress dialog\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n progressDialog.dismiss();\n // If inserting data was successful, finish the activity\n if (uri != null) {\n finish();\n }\n }", "private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }", "public void onClickAddTask(View view) {\n\n // Insert new Movie data via a ContentResolver\n\n\n ContentValues mUpdateValues = new ContentValues();\n // Defines selection criteria for the rows you want to update\n /*\n * Sets the updated value and updates the selected words.\n */\n\n if (fav == 0) {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_on));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 1);\n } else {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_off));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 0);\n }\n int mRowsUpdated = getContentResolver().update(\n MoviesContract.MovieEntry.buildMoviesUri(_id),\n mUpdateValues,\n MoviesContract.MovieEntry._ID+\"=?\",\n new String[] {String.valueOf(_id)});\n\n\n }", "private void addAgendaEventViaIntention(AgendaItem item) {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, item.getStart().getMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, item.getEnd().getMillis());\n intent.putExtra(Events.TITLE, item.getTitle());\n intent.putExtra(Events.DESCRIPTION, getAgendaItemDescription(item));\n intent.putExtra(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n intent.putExtra(Events.EVENT_LOCATION, item.getLocation());\n intent.putExtra(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n intent.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n\n App.getContext().startActivity(intent);\n }", "private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }", "public void addAgenda(AgendaItem agendaItem) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_AGENDA_NAME, agendaItem.getAgendaName()); // Agenda Name\n values.put(KEY_AGENDA_DATE, agendaItem.getAgendaDate()); // Agenda Name\n // Inserting Row\n db.insert(TABLE_AGENDA, null, values);\n\n db.close(); // Closing database connection\n\n\n }", "@Override\n public void onClick(View v) {\n setResult(RESULT_OK);\n\n MainActivity.countList.add(new Counter(textboxName.getText().toString(),\n Integer.parseInt(textboxInitialValue.getText().toString()),\n textboxComment.getText().toString()));\n\n Intent intent = new Intent(AddCounterActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n }", "public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }", "public void onClick(View v) {\n\t\tString name = nameField.getText().toString();\n\t\tString email = emailField.getText().toString();\n\t\tSQLiteHelper sqh = new SQLiteHelper(this);\n\t\tsqh.addFriend(name, email);\n\t\tnew AddMeToHisPF().execute(email);\n\t\tfinish();\n\t}", "public long insertFeedEntry(ActivityFeedEntity activityFeed) throws SQLException;", "private void addNewAssessment() {\n //instantiate converters object for LocalDate conversion\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\n //add new assessment\n addEditAssessmentViewModel.insert(assessment);\n\n //notification\n Long longDue = c.localDateToMilliseconds(dueDate);\n makeAlarm(title+\" is due today.\", longDue);\n\n finish();\n }" ]
[ "0.66570854", "0.6490425", "0.62332684", "0.6180255", "0.6175253", "0.61732036", "0.6151063", "0.61416805", "0.6100801", "0.6085267", "0.60795087", "0.607251", "0.60723686", "0.6063868", "0.59955454", "0.5984403", "0.5949573", "0.5941485", "0.59087634", "0.5900025", "0.5894713", "0.58848643", "0.5862515", "0.5841839", "0.5839163", "0.58082604", "0.58057815", "0.5796949", "0.5795961", "0.5778006", "0.5776023", "0.5769609", "0.57373786", "0.57097244", "0.5678653", "0.5675021", "0.56712925", "0.5651555", "0.5648676", "0.5646053", "0.56452775", "0.5639651", "0.563516", "0.56312156", "0.5610061", "0.55979043", "0.5588644", "0.5588148", "0.5581386", "0.5578377", "0.5563635", "0.55598444", "0.5555179", "0.5539184", "0.553546", "0.5533939", "0.5525613", "0.552374", "0.551211", "0.55079174", "0.5502846", "0.54894733", "0.5475732", "0.5472367", "0.5466103", "0.5463954", "0.54627514", "0.5458991", "0.54533154", "0.54530966", "0.54488415", "0.5444268", "0.5442461", "0.54414743", "0.54413325", "0.5433398", "0.5430409", "0.543036", "0.54291064", "0.54262173", "0.54196113", "0.541841", "0.54156977", "0.54139996", "0.5412771", "0.5405865", "0.54027426", "0.53992546", "0.5398873", "0.5395755", "0.53953516", "0.5389487", "0.5388694", "0.5385963", "0.5382169", "0.5380026", "0.5379322", "0.53783464", "0.53766626", "0.53756267" ]
0.55628526
51
to change the edittext box based on entered key
public GenericKeyEvent(EditText currentView, EditText previousView, EditText nextView) { this.currentView = currentView; this.previousView = previousView; this.nextView = nextView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber1.setText(\"\");\n } else if(edtCodeNumber1.getText().toString().length() == 1) {\n edtCodeNumber2.requestFocus();\n }\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if (edtCodeNumber2.getSelectionStart() <= 0) {\n edtCodeNumber1.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber1.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber2.getText().toString().length() == 1)\n edtCodeNumber3.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber3.getSelectionStart() <= 0) {\n edtCodeNumber2.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber2.requestFocus();\n }\n }, 50);\n }\n } else if (edtCodeNumber3.getText().toString().length() == 1)\n edtCodeNumber4.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber5.getSelectionStart() <= 0) {\n edtCodeNumber4.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber4.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber5.getText().toString().length() == 1)\n edtCodeNumber6.requestFocus();\n return false;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n kw.setText(editText.getText().toString().trim());\n } else {\n kw.setText(\"\");\n }\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber4.getSelectionStart() <= 0) {\n edtCodeNumber3.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber3.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber4.getText().toString().length() == 1)\n edtCodeNumber5.requestFocus();\n return false;\n }", "@Override\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\tLog.d(\"onKey\", \"keyCode=\"+keyCode);\n\t\t\t\t\tif(event.getAction() == KeyEvent.ACTION_UP && keyCode == KeyEvent.KEYCODE_ENTER){\n\t\t\t\t\t\tSearchLaorenbyName(tv_search_edit.getText().toString());\n\t\t InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); \n\t\t if (imm != null) { \n\t\t imm.hideSoftInputFromWindow( \n\t\t \t\ttv_search_edit.getWindowToken(), 0); \n\t\t } \n\t\t tv_search_edit.clearFocus(); \n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber5.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber5.requestFocus();\n }\n }, 50);\n }\n return false;\n }", "@Override\n\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\trefreshData(mAutoEdit.getText().toString().trim());\n\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\n\t\t\t\tInputMethodManager imm = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\n\t\t\t\tif (imm.isActive()) {\n\n\t\t\t\t\timm.hideSoftInputFromWindow(v.getApplicationWindowToken(), 0);\n\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t\treturn false;\n\n\t\t}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n switch (v.getId()) {\n case R.id.merchantET:\n if (_merchantET.getText().length() >= 30)\n Toast.makeText(getApplicationContext(), \"Please only input up to 30 characters.\",\n Toast.LENGTH_SHORT).show();\n return false;\n case R.id.descET:\n if (_descET.getText().length() >= 80)\n Toast.makeText(getApplicationContext(), \"Please only input up to 80 characters.\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n return false;\n }", "public void onKeyPress(Widget sender, char keyCode, int modifiers) {\n }", "public boolean onKey(View v, int keyCode, KeyEvent event) {\n\r\n if (event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {\r\n\r\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(((EditText) v).getWindowToken(), 0);\r\n\r\n if (((EditText) v).getText().toString().equalsIgnoreCase(\"\")) {\r\n MsgBox.Show(\"Warning\", \"Scan item barcode\");\r\n } else {\r\n Cursor BarcodeItem = null;//dbBillScreen.getItem(((EditText) v).getText().toString());\r\n if (BarcodeItem.moveToFirst()) {\r\n btnClear.setEnabled(true);\r\n AddItemToOrderTable(BarcodeItem);\r\n // ((EditText)v).setText(\"\");\r\n return true;\r\n } else {\r\n MsgBox.Show(\"Warning\", \"Item not found for the above barcode\");\r\n }\r\n }\r\n }\r\n // ((EditText)v).setText(\"\");\r\n return false;\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_type.setText(editText.getText().toString().trim());\n } else {\n pump_type.setText(\"\");\n }\n }", "@Override\r\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t if ((event.getAction() == KeyEvent.ACTION_DOWN) &&\r\n\t\t (keyCode == KeyEvent.KEYCODE_ENTER)) {\r\n\t\t \t\r\n\t\t \tInteger position = (Integer)v.getTag();\r\n\t\t \t\r\n\t\t \tlistNumeric.get(position).setValeur(((EditText)v).getText().toString());\r\n\t\t \t\r\n\t\t\t\t\t//On pr�vient les listeners qu'il y a eu un clic sur l'EditText.\r\n\t\t\t\t\tsendListener(listNumeric.get(position), position);\r\n\t\t\t\t\tv.invalidate();\r\n\t\t\t\t\treturn true;\r\n\t\t }\r\n\t\t return false;\r\n\t\t\t}", "public void keyPressed(KeyEvent e) {\n\t\taux1.getUser().setText(aux1.getNombre().getText().toString()+aux1.getApellido1().getText().toString());\n\t\t\n\t}", "void correctKeyPress();", "public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\tAddAccountsUtils.hideSoftInput(mContext, mPswEdit);// 显示键盘\n\t\t\t\tmPswEdit.setSelection(mPswEdit.getText().toString().length());// EditText设置光标在内容的最尾端\n\t\t\t\tdoCommandLogin();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Override\n public boolean onEditorAction(TextView v, int actionId,\n KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n // do here your stuff f\n validateLogin(editUsername.getText().toString(),\n editPassword.getText().toString());\n return true;\n }\n return false;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n remarks.setText(editText.getText().toString().trim());\n } else {\n remarks.setText(\"\");\n }\n }", "public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\tAddAccountsUtils.setViewFocus(mPswEdit);// 获取光标焦点\n\t\t\t\tAddAccountsUtils.displaySoftInput(mContext, mPswEdit);// 显示键盘\n\t\t\t\tmPswEdit.setSelection(mPswEdit.getText().toString().length());// EditText设置光标在内容的最尾端\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n hp.setText(editText.getText().toString().trim());\n } else {\n hp.setText(\"\");\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n motor_no.setText(editText.getText().toString().trim());\n } else {\n motor_no.setText(\"\");\n }\n }", "public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (event.getAction() != KeyEvent.ACTION_DOWN) {\n\t\t\t\t\t// if the pressed key = enter we do the add code\n\t\t\t\t\tif (event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\t\t\tonClickBtAdd();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if we dont return false our text wont get in the\n\t\t\t\t// edittext\n\t\t\t\treturn false;\n\t\t\t}", "private void txtNamaKeyPressed(java.awt.event.KeyEvent evt) {\n\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tpassword = edit.toString();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n rpm.setText(editText.getText().toString().trim());\n } else {\n rpm.setText(\"\");\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n head.setText(editText.getText().toString().trim());\n } else {\n head.setText(\"\");\n }\n }", "@Override\n public void onClick(View v) {\n String inputFieldText = ((TextView) findViewById(R.id.inputField)).getText().toString();\n\n // Set text to custom text, or if custom text is empty set to default hint\n if (inputFieldText.isEmpty()) {\n ((TextView) findViewById(R.id.text)).setText(\"Enter your OWN text!\");\n } else {\n ((TextView) findViewById(R.id.text)).setText(inputFieldText);\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n location.setText(editText.getText().toString().trim());\n } else {\n location.setText(\"\");\n }\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_no.setText(editText.getText().toString().trim());\n } else {\n pump_no.setText(\"\");\n }\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n switch (v.getId())\n {\n case R.id.password_edittext1:\n\n break;\n\n case R.id.tekrar_password_edittext:\n\n break;\n case R.id.name_edittext:\n setappirance(edtxt_name,txt_inplayout_name,hasFocus);\n edittext_filter=new Edittext_Filter(this,txt_inplayout_name.getId(),edtxt_name.getId());\n edtxt_name.setFilters(new InputFilter[]{edittext_filter.getInputFilter()});\n if(!hasFocus && edtxt_name.getText().toString()!=null || edtxt_name.getText().toString()!=\"\")\n {moshakhasat_motehkases.setName(edtxt_name.getText().toString());}\n break;\n case R.id.family_edittext:\n setappirance(edtxt_family,txt_inplayout_family,hasFocus);\n edittext_filter=new Edittext_Filter(this,txt_inplayout_family.getId(),edtxt_family.getId());\n edtxt_family.setFilters(new InputFilter[]{edittext_filter.getInputFilter()});\n\n if(!hasFocus && edtxt_family.getText().toString()!=null || edtxt_family.getText().toString()!=\"\")\n {moshakhasat_motehkases.setFamily(edtxt_family.getText().toString());}\n\n break;\n case R.id.codemeli_edittext:\n set_appirance_for_edittext_typeof_number(edtxt_codemeli,txt_inplayout_codemeli,hasFocus);\n if(!hasFocus && edtxt_codemeli.getText().toString()!=null || edtxt_codemeli.getText().toString()!=\"\")\n {moshakhasat_motehkases.setCodemeli(edtxt_codemeli.getText().toString());}\n if(edtxt_codemeli.getText().length()==10 && !hasFocus)\n {\n valley_api.check_kardan_codemeli(edtxt_codemeli.getText().toString());\n Log.i(\"vally_vazeiat_code_meli\",\"start\");\n }\n break;\n case R.id.shomarehamrah_edittext1:\n set_appirance_for_edittext_typeof_number(edtxt_shomarehamrah,txt_inplayout_shomarehamrah,hasFocus);\n if(!hasFocus && edtxt_shomarehamrah.getText().toString()!=null || edtxt_shomarehamrah.getText().toString()!=\"\")\n {moshakhasat_motehkases.setShomare_hamrah(edtxt_shomarehamrah.getText().toString());}\n if(!hasFocus && edtxt_shomarehamrah.getText().length()==11)\n {\n if (Permision_Utility.check_permision(A_Sabtnam.this,\"recive_sms\"))\n {\n valley_api.sms_security(edtxt_shomarehamrah.getText().toString());\n\n showdialog_codepayamaki();\n\n\n }\n else\n {\n Permision_Utility.requst_permision(A_Sabtnam.this,\"recive_sms\");\n }\n }\n\n break;\n\n case R.id.shomaresabet_edittext:\n set_appirance_for_edittext_typeof_number(edtxt_shomarehsabet,txt_inplayout_shomarehsabet,hasFocus);\n if(!hasFocus && edtxt_shomarehsabet.getText().toString()!=null || edtxt_shomarehsabet.getText().toString()!=\"\")\n {moshakhasat_motehkases.setShomare_sabet(edtxt_shomarehsabet.getText().toString());}\n\n break;\n case R.id.edtxt_addressdaghighskonat:\n setappirance(edtxt_adress_daghigh,txt_inplayout_adress_daghigh,hasFocus);\n edittext_filter=new Edittext_Filter(this,txt_inplayout_adress_daghigh.getId(),edtxt_adress_daghigh.getId());\n edtxt_adress_daghigh.setFilters(new InputFilter[]{edittext_filter.getInputFilter()});\n if((!hasFocus )&& (edtxt_adress_daghigh.getText().toString()!=null || edtxt_adress_daghigh.getText().toString()!=\"\"))\n {moshakhasat_motehkases.setAddress_daghigh(edtxt_adress_daghigh.getText().toString());\n\n }\n\n\n break;\n case R.id.jensiat_switch:\n if(!hasFocus)\n moshakhasat_motehkases.setJensiat(swjensiat.getText().toString());\n break;\n case R.id.vazeiatetahol_switch2:\n if(!hasFocus)\n moshakhasat_motehkases.setVazeyat_tahol(swvazeiattahol.getText().toString());\n\n\n\n }\n }", "public void onKeyUp(Widget sender, char keyCode, int modifiers) {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n client_name.setText(editText.getText().toString().trim());\n } else {\n client_name.setText(\"\");\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(passtog.isChecked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\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\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public boolean onKey(View view, int i, KeyEvent keyEvent) {\n if (getText().toString().trim().equals(m_szTextoDefecto))\n {\n // Establecemos el color del texto por defecto, solo si lo hemos establecido\n if (m_ColorTextoDef != Color.TRANSPARENT)\n setTextColor (m_ColorTextoDef);\n\n // Salimos\n return false;\n }\n\n // Establecemos el color del texto normal, solo si lo hemos establecido\n if (m_ColorTextoNor != Color.TRANSPARENT)\n setTextColor (m_ColorTextoNor);\n\n // Mostramos la sombra\n MostrarSombra();\n\n return false;\n }", "@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }", "public void keyTyped(KeyEvent e) {\n\t\tchar key = (char) e.getKeyChar();\n\t\tif(e.getComponent().getName()!=null)\n if (e.getComponent().getName().equals(\"C\") && !Character.isDigit(key)){ \n \t\te.consume();\n \t} else if(e.getComponent().getName().equals(\"N\") && (Character.isDigit(key) || key==' ')){\n \t\te.consume();\n \t} else if(key==' ' && e.getComponent().getName().equals(\"S\")){\n \t\te.consume();\n \t}\n\t\t\n\t\t\taux1.getUser().setText(aux1.getNombre().getText().toString()+aux1.getApellido1().getText().toString());\n\t\t\tif(aux1.getUser().getText().isEmpty()){\n\t\t\t\taux1.getUser().setText(\" \");\n\t\t\t}\n\t}", "public void keyTyped(KeyEvent e) {\n txtScore.setText(\"\"+game.playersFitness());\n txtScore.requestFocus();\n }", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_DEL) {\n\t\t\t\t\tif (cardnumberthirdTextBox.getText().length() == 0)\n\t\t\t\t\t\tcardnumbersecondTextBox.requestFocus();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n if (!String.valueOf(charSequence).equals(\"\") && all_ingredients.containsKey(charSequence.toString()))\n add_button.setEnabled(true);\n else\n add_button.setEnabled(false);\n }", "protected void keyTyped(char typedChar, int keyCode) throws IOException {\n/* 80 */ if (this.ipEdit.textboxKeyTyped(typedChar, keyCode)) {\n/* */ \n/* 82 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }\n/* 84 */ else if (keyCode == 28 || keyCode == 156) {\n/* */ \n/* 86 */ actionPerformed(this.buttonList.get(0));\n/* */ } \n/* */ }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_ENTER) {\n layout.requestFocus();\n }\n return false;\n }", "private void registerEditChange(){\n this.txtAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\tif(actionId == EditorInfo.IME_ACTION_GO)\n\t\t\t\t{\n\t\t\t\t\tif(passwd.getText().toString().equals(PASSWD))\n\t\t\t\t\t{\n//\t\t\t\t\t\tToast.makeText(getApplicationContext(), \n//\t\t\t\t\t\t\t\t\"进入传送门\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tIntent intent = new Intent(MainActivity.this,TakePhoto.class);\n\t\t\t\t\t\tintent.putExtra(\"\", setting);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse if(passwd.getText().toString().equals(DELETE))\n\t\t\t\t\t{\n\t\t\t\t\t\t//删除记录\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"SD卡挂载失败,即将退出\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"网络错误,请稍后再试\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_DEL) {\n\t\t\t\t\tif (cardnumbersecondTextBox.getText().length() == 0)\n\t\t\t\t\t\tcardnumberfirstTextBox.requestFocus();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP) {\n //enter key has been pressed and we hide the keyboard\n hideKeyboard();\n editPenalty.setCursorVisible(false);\n rootView.requestFocus();\n //return true to let it know we handled the event\n return true;\n }\n return false;\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif(arg0.getKeyCode() == 10)\n\t\t\t\t{\n\t\t\t\t\tString username = UserName.getText();\n\t\t\t\t\tString password = new String(Password.getPassword());\n\t\t\t\t\t\n\t\t\t\t\tif(username.isEmpty() || password.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(card, \"Staff ID and Password has to be filled \");\n\t\t\t\t\t\tUserName.setText(\"\");\n\t\t\t\t\t\tPassword.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(!isInteger(username))\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(card, \"Staff ID is not a number \");\n\t\t\t\t\t\tUserName.setText(\"\");\n\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\t //check if the ID exist\n\t\t\t\t\t\t if(!processLogin(username, password))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t JOptionPane.showMessageDialog(card, \"Wrong Staff ID or Password \");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t //sql to update database for when someone is logged in\n\t\t\t\t\t\t\t String sql = \"UPDATE admin_login SET isLogedin = '1' WHERE staff_id = '\"+username+\"'\";\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\t\t//execute statement\n\t\t\t\t\t\t\t\t \t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t//disable logIn button when someone is logged in\n\t\t\t\t\t\t\t\t\t LogIn.setEnabled(false);\n\t\t\t\t\t\t\t\t\t Logout.setEnabled(true);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //show a message that login was successful\n\t\t\t\t\t\t\t\t\t JOptionPane.showMessageDialog(card, \"Welcome!! \");\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t LoginName.setText(username);\n\t\t\t\t\t\t\t\t\t LoginLabel.setForeground(Color.GREEN);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //Reset staff id and password here\n\t\t\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //Open Navigation tab\n\t\t\t\t\t\t\t\t\t tab.add(\"NAVIGATION PAGE\", c);\n\t\t\t\t\t\t\t\t\t tab.setSelectedComponent(c);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t resetPassword.setEnabled(false);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t } catch (SQLException e1) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \t\t \te1.printStackTrace();\n\t\t\t\t\t\t\t \t }\n\t\t\t\t\t\t\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}", "public void onClick(View planes) {\n \tString editText1=edit1.getText().toString();\n \tString encrypting = StringTranslater.encrpytingString(editText1);\n \tresult.setText(encrypting);\n// \tInputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n// \timm.hideSoftInputFromWindow(edit1.getWindowToken(), 0);\n }", "private void tb_TomasRealizadasKeyPressed(java.awt.event.KeyEvent evt) {\n \n \n }", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber1.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber2.requestFocus();\n }\n }", "@Override\n public boolean onTouch (View v, MotionEvent event){\n switch (event.getAction()){\n case MotionEvent.ACTION_DOWN:\n\n //Pressed. Show password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);\n //new code\n mEditPassw.setTransformationMethod(null);\n break;\n case MotionEvent.ACTION_UP:\n\n //Released. Hide password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);\n //New code\n mEditPassw.setTransformationMethod(new PasswordTransformationMethod());\n break;\n }\n return true; //Not handles action_cancel, cause I on\n }", "public void btnCheckKey(View view){\n Log.v(\"checkKey\", \"Clicked\");\n Intent intent = new Intent();\n intent.setClass(this, AddItemActivity.class);\n intent.putExtra(\"key\", keyView.getText().toString());\n startActivity(intent);\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber2.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber3.requestFocus();\n }\n }", "public void keyPressed(KeyEvent e){\n \n JTextField tec = new JTextField();\n char teclado = e.getKeyChar();\n String tecla = \"\"+teclado;\n tec.setText(tecla);\n tec.setBounds(400, 300, 20, 20);\n add(tec);\n tec.setVisible(true);\n \n System.out.println(teclado +\" \"+tecla);\n \n JLabel teclou = new JLabel(\"EU SEI OQ VC DIGITOU\");\n add(teclou);\n teclou.setVisible(true);\n }", "private void event(KeyEvent e ,JTextField textField) {\n\t\tchar n = e.getKeyChar();\r\n\t\tif (!Character.isDigit(n) && n != 8 && n != 46)\r\n\t\t{\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели не числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(false);\r\n\t\t}else {\r\n\t\t\tlogp(INFO, getClassName(GraphicalUserInterface.class), \"event\", \"Вы ввели числовое значение\".concat(textField.getText()));\r\n\t\t\ttextField.setEditable(true);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\n\t\t}", "public void captureKeyListener() {\n // retrive the edittext component\n mEdit = (EditText) findViewById(R.id.task_input);\n \n // add a keylistener to keep track user input\n mEdit.setOnKeyListener(new OnKeyListener(){\n public boolean onKey(View v, int keyCode, KeyEvent event) { \n if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) \n {\n task = mEdit.getText().toString();\n status = 0;\n onClick_AddRecord(v, task, status);\n mEdit.setText(\"\");\n return true;\n }\n return false;\n }\n });\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (event.getAction() == KeyEvent.ACTION_DOWN) {\n if ((keyCode == KeyEvent.KEYCODE_DPAD_CENTER)\n || (keyCode == KeyEvent.KEYCODE_ENTER)) {\n do_list.add(0, text.getText().toString());\n adapter.notifyDataSetChanged();\n text.setText(\"\");\n return true;\n }\n }\n return false;\n }", "@Override\n public void handle(KeyEvent t) {\n if(!receiver_id.getText().matches(\"[0-9]*\"))\n {\n receiver_id.setText(receiver_id.getText().replaceAll(\"[^\\\\d]\", \"\"));\n receiver_id.selectPositionCaret(receiver_id.getLength());receiver_id.deselect();\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (isEdit) {\r\n\t\t\t\t\tisEdit = false;\r\n\t\t\t\t\tiv_user_img.setEnabled(true);\r\n\t\t\t\t\tivedit.setVisibility(View.GONE);\r\n\t\t\t\t\ttvsave.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t\t\tncet.setFocusable(true);\r\n\t\t\t\t\tncet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tncet.requestFocus();\r\n\t\t\t\t\tncet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\r\n\t\t\t\t\t// zhet.setFocusable(true);\r\n\t\t\t\t\t// zhet.setFocusableInTouchMode(true);\r\n\t\t\t\t\t// zhet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t// R.color.grzlinput));\r\n\t\t\t\t\txbet.setClickable(true);\r\n\t\t\t\t\txbet.setFocusable(true);\r\n\t\t\t\t\txbet.setFocusableInTouchMode(true);\r\n\t\t\t\t\txbet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tshret.setFocusable(true);\r\n\t\t\t\t\tshret.setFocusableInTouchMode(true);\r\n\t\t\t\t\tshret.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tlxdhet.setFocusable(true);\r\n\t\t\t\t\tlxdhet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tlxdhet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tsfdqet.setClickable(true);\r\n\t\t\t\t\tsfdqet.setFocusable(true);\r\n\t\t\t\t\tsfdqet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tsfdqet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\txxdzet.setFocusable(true);\r\n\t\t\t\t\txxdzet.setFocusableInTouchMode(true);\r\n\t\t\t\t\txxdzet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t\tyzbmet.setFocusable(true);\r\n\t\t\t\t\tyzbmet.setFocusableInTouchMode(true);\r\n\t\t\t\t\tyzbmet.setBackgroundColor(getResources().getColor(\r\n\t\t\t\t\t\t\tR.color.grzlinput));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// editMode();\r\n\t\t\t\t}\r\n\t\t\t}", "public void keyPressed(KeyEvent e) {\n txtScore.setText(\"\"+game.playersFitness());\n txtScore.requestFocus();\n }", "public boolean keyInput(int code, int action);", "@Override\r\npublic void keyReleased(KeyEvent e) {\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(true);\r\n\t}\r\n\t\r\n}", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_DEL) {\n\t\t\t\t\tif (cardnumberfourthTextBox.getText().length() == 0)\n\t\t\t\t\t\tcardnumberthirdTextBox.requestFocus();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public void onClick(View view){ // that executes the following code.\n // Take the text input to the EditText field...\n String changeText = editV.getText().toString();\n // and set the TextView to that input.\n textV.setText(changeText);\n }", "private void txtValueModifiedKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtValueModifiedKeyReleased\n this.habilitarBtnActualizar();\n }", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tString get=textField.getText();\r\n\t\t\t\t\t\ttextField_1.setText(get);\r\n\t\t\t\t\t}", "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n //update the text that is in the text filed and the value in the factory\n updateShapeFactory(updateValue(e));\n }\n //show the update\n repaint();\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttx.setText(editText.getText().toString());\r\n\t\t\t\t\t}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_DEL && currentView.getId() != R.id.otp1 && currentView.getText().length() == 0) {\n previousView.setText(null);\n previousView.requestFocus();\n return true;\n }\n else if (currentView.getId() != R.id.otp6 && currentView.getText().length() > 0) {\n nextView.requestFocus();\n }\n return false;\n }", "@Override\r\n public void keyReleased(KeyEvent e) {\n if(e.getKeyCode()==10){ //enter key code is 10\r\n // System.out.println(\"you have pressed enter button\");\r\n String contentToSend=messageInput.getText(); //type kia hua msg nikalna\r\n messageArea.append(\"Me :\"+contentToSend+\"\\n\");\r\n out.println(contentToSend); //msg ko send krna\r\n out.flush();\r\n messageInput.setText(\"\"); //clear hoker isme text ho jayga\r\n messageInput.requestFocus();\r\n }\r\n \r\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n @Override\n public void onKey(int primaryCode, int[] keyCodes) {\n Runnable runnable = new Runnable() {\n public void run() {\n try {\n midWrite();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n };\n thread = new Thread(runnable);\n\n text.setText(text.getText() + String.valueOf((char) primaryCode));\n String keyS;\n keyS = String.valueOf((char) primaryCode);\n KeyVals keyVals = new KeyVals(keyS);\n keyVal.add(keyVals);\n\n\n if (primaryCode == -5) {\n int length = text.getText().length();\n text.getText().delete(length-2,length);\n String s = text.getText().toString();\n text.setText(s);\n\n\n }else if( primaryCode==-3 ) {\n thread.start();\n try {\n stopButtonClick();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else if(primaryCode == 46) {\n\n num++;\n if(num < strings.size()) {\n\n leftNum.setText(Integer.toString(num + 1) + \"/\" + Integer.toString(strings.size()));\n textTo.setText(strings.get(num));\n text.setText(\"\");\n }\n }\n if(num==strings.size()) {\n try {\n stopButtonClick();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcode = et_code.getText().toString().trim();\r\n\t\t\t\tif(BaseUtil.isSpace(code)){\r\n\t\t\t\t\tToast.makeText(mContext, \"验证码不能为空!\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}else{\r\n\t\t\t\t\toneKeyLogin();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n public void afterTextChanged(Editable arg0) {\n if (mVehicleCode.equals(\"苏\") && arg0.length() > 0\r\n && arg0.toString().substring(0, 1).equals(\"E\")) {\r\n mVehicleFrameNumLL.setVisibility(View.VISIBLE);\r\n mVehicleEngineNumLL.setVisibility(View.GONE);\r\n mVehicleFrameNumET.setHint(\"请输入车架号后7位\");\r\n mVehicleFrameNumET\r\n .setFilters(new InputFilter[]{new InputFilter.LengthFilter(\r\n 7)});\r\n } else if (mVehicleCode.equals(\"苏\") && arg0.length() > 0\r\n && !arg0.toString().substring(0, 1).equals(\"E\")) {\r\n mVehicleEngineNumLL.setVisibility(View.VISIBLE);\r\n mVehicleFrameNumLL.setVisibility(View.GONE);\r\n mVehicleEngineNumET.setHint(\"请输入发动机号后6位\");\r\n mVehicleEngineNumET\r\n .setFilters(new InputFilter[]{new InputFilter.LengthFilter(\r\n 6)});\r\n }\r\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP) {\n //enter key has been pressed and we hide the keyboard\n hideKeyboard();\n editFinish.setCursorVisible(false);\n rootView.requestFocus();\n //return true to let it know we handled the event\n return true;\n }\n return false;\n }", "void okButton_actionPerformed(ActionEvent e) {\n setItskey(keyTextField.getText());\n setItsvalue(valueTextField.getText());\n setUserAction(OK);\n setVisible(false);\n }", "public void keyTyped(KeyEvent e){\n\t\t\t\tif (tnombre.getText().length()== 18)e.consume();\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tconfirmPassword = edit.toString();\r\n\t\t\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber5.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber6.requestFocus();\n }\n }", "public void onKeyPress(int key, char c);", "@Override\r\npublic void keyTyped(KeyEvent e) {\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(true);\r\n\t}\r\n}", "public void keyTyped(KeyEvent e)\r\n\t\t\t\t {\n\t\t\t\t\t char caracter = e.getKeyChar();\r\n\t\t\t\t\t if(((caracter < '0') ||\r\n\t\t\t\t\t\t\t (caracter > '9')) &&\r\n\t\t\t\t\t\t\t (caracter != KeyEvent.VK_BACK_SPACE))\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t //Controlar el largo del text\r\n\t\t\t\t String s = jTextField3.getText();\r\n\t\t\t\t int n=s.length();\r\n\t\t\t\t if(n >= 8){\r\n\t\t\t\t \t e.consume(); // ignorar el evento de teclado\r\n\t\t\t\t }\r\n\t\t\t\t }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif (arg0.isActionKey() || arg0.getKeyCode() == KeyEvent.VK_ENTER\n\t\t\t\t\t\t|| arg0.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJTextField txt = (JTextField) arg0.getComponent();\n\t\t\t\tif (txt.getText().length() == 9) {\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Možete uneti maksimalno 9 karaktera!\");\n\t\t\t\t\ttxt.setText(txt.getText().substring(0, 9));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber4.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber5.requestFocus();\n }\n }", "@Override\r\n\t\t\tpublic void onTextChanged(CharSequence arg0, int arg1, int arg2,\r\n\t\t\t\t\tint arg3) {\n\t\t\t\tString edit = keyword.getText().toString();\r\n\t\t\t\tLog.i(\"cheshi\", \"赵信edit:\" + edit);\r\n\t\t\t\tif (edit.length() != 0 && !edit.equals(\"null\")) {\r\n\t\t\t\t\tLog.i(\"cheshi\", \"赵信\");\r\n\t\t\t\t\tdelete.setVisibility(delete.VISIBLE);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void actionPerformed(ActionEvent e){\n Object ob = e.getSource();\n if(ob == Num1){\n display = totalAmount.getText();\n totalAmount.setText(display + \"1\");\n System.out.println(\"Key 1 already press\");\n }else if(ob == Num2){\n display = totalAmount.getText();\n totalAmount.setText(display + \"2\");\n System.out.println(\"Key 2 already press\");\n }else if(ob == Num3){\n display = totalAmount.getText();\n totalAmount.setText(display + \"3\");\n System.out.println(\"Key 3 already press\");\n }else if(ob == Num4){\n display = totalAmount.getText();\n totalAmount.setText(display + \"4\");\n System.out.println(\"Key 4 already press\");\n }else if(ob == Num5){\n display = totalAmount.getText();\n totalAmount.setText(display + \"5\");\n System.out.println(\"Key 5 already press\");\n }else if(ob == Num6){\n display = totalAmount.getText();\n totalAmount.setText(display + \"6\");\n System.out.println(\"Key 6 already press\");\n }else if(ob == Num7){\n display = totalAmount.getText();\n totalAmount.setText(display + \"7\");\n System.out.println(\"Key 7 already press\");\n }else if(ob == Num8){\n display = totalAmount.getText();\n totalAmount.setText(display + \"8\");\n System.out.println(\"Key 8 already press\");\n }else if(ob == Num9){\n display = totalAmount.getText();\n totalAmount.setText(display + \"9\");\n System.out.println(\"Key 9 already press\");\n }else if(ob == Num0){\n display = totalAmount.getText();\n totalAmount.setText(display + \"0\");\n System.out.println(\"Key 0 already press\");\n }else if(ob == Num10){\n display = totalAmount.getText();\n totalAmount.setText(display + \".\");\n System.out.println(\"Key . already press\");\n }else if(ob == Clr){\n totalAmount.setText(null);\n currentBalance.setText(null);\n System.out.println(\"Key clear already press\");\n }else if(ob == Withdraw){\n//Withdraw \n if(totalAmount.getText().equals(\"\")){\n JOptionPane.showMessageDialog(null, \" Please! Enter the totalAmountnt of cash you want\");\n }else{\n calculator ca = new calculator();\n ca.withdraw();\n }\n }else if(ob == Deposit){\n//Deposite \n if(totalAmount.getText().equals(\"\")){\n JOptionPane.showMessageDialog(totalAmount, \"Please put number of cash you want !\");\n }else{\n calculator ca = new calculator();\n ca.deposite();\n }\n System.out.println(\"Key Deposit already press\");\n }else if(ob == Balance){\n if(currentBalance.getText().equals(\"\")){\n currentBalance.setText(\"0\");\n }else{\n calculator ca = new calculator();\n ca.inquiry();\n }\n }else if(ob == Help){\n JOptionPane.showMessageDialog(null, \"You can visit out bank incase of any problems !!!\");\n }else if(ob == Enter){\n System.out.println(\"Key Enter already press\");\n }else if(ob == Cancel){\n PersonalAccount ac = new PersonalAccount();\n System.exit(0);\n }\n }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(ett9.getText().toString().length()==1) //size as per your requirement\n {\n ett10.requestFocus();\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tenterField.setEditable(editable);\t//将文本域置为可编辑的状态\r\n\t\t\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n return super.onKeyDown(keyCode, event);\n }", "public void handleKeyPressed(KeyEvent event) {\n keyInput.set(String.valueOf(event.getCode()));\n }", "private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }", "public void afterTextChanged(Editable s) {\n\n if (s.length() ==1) {\n edit_two.requestFocus();\n }\n\n }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(ett8.getText().toString().length()==1) //size as per your requirement\n {\n ett9.requestFocus();\n }\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif(arg0.getKeyCode() == 10) {\n\t\t\t\t\tController.getInstance().setAge(Integer.parseInt(textField.getText()));\n\t\t\t\t\tSecondWindow second = new SecondWindow();\n\t\t\t\t\tsecond.setVisible(true);\n\t\t\t\t\tframe.setVisible(false);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\t\tString edit = keyword.getText().toString();\r\n\t\t\t\tLog.i(\"cheshi\", \"德玛edit:\" + edit);\r\n\t\t\t\tif (edit.length() == 0) {\r\n\t\t\t\t\tdelete.setVisibility(delete.GONE);\r\n\t\t\t\t\tLog.i(\"cheshi\", \"德玛\");\r\n\t\t\t\t}\r\n\t\t\t}", "public void hilera (javafx.scene.input.KeyEvent keyEvent) {\r\n char car = keyEvent.getCharacter().charAt(0);\r\n \r\n if(j==1){\r\n if ((car < 'a' || car > 'z') && (car < 'A' || car > 'Z') ) {\r\n keyEvent.consume();\r\n }\r\n \r\n if(hilera.getText().length()>=1){ \r\n keyEvent.consume();\r\n } \r\n \r\n }else{\r\n if ((car < '0' || car > '9') ) {\r\n keyEvent.consume();\r\n }\r\n if(hilera.getText().length()>=1){ \r\n keyEvent.consume(); \r\n } \r\n }\r\n \r\n if(hilera.getText().length()==0){ \r\n abreParentesis.setDisable(false); \r\n }\r\n if(hilera.getText().length()>=0){ \r\n abreParentesis.setDisable(true);\r\n System.out.println(\"pee\");\r\n }\r\n if(hilera.getText().length()==0){ \r\n abreParentesis.setDisable(false); \r\n }\r\n \r\n \r\n }", "@Override\r\n public boolean onKeyUp(int keyCode, KeyEvent event) {\r\n long dd = event.getEventTime()-event.getDownTime();\r\n /*long time1= System.currentTimeMillis();\r\n long time= SystemClock.uptimeMillis();*/\r\n //long dd = time - event.getEventTime();\r\n /*Log.d(\"TAG\",String.valueOf(dd));\r\n Log.d(\"TAG1\",String.valueOf(event.getEventTime()-event.getDownTime()));\r\n Log.d(\"TAG\",String.valueOf(event));*/\r\n // System.out.println(\"Richa : \"+event.getKeyCode()+\" SC \"+event.getScanCode());\r\n //Toast.makeText(myContext, \"Richa : \"+event.getKeyCode()+\" keycode = \"+keyCode, Toast.LENGTH_SHORT).show();\r\n if(event.getKeyCode() == KeyEvent.KEYCODE_ENTER)\r\n {\r\n //System.out.println(\"Richa : Enter encountered for barcode\");\r\n addBarCodeItemToOrderTable();\r\n }else if (event.getKeyCode() == KeyEvent.KEYCODE_J ||event.getKeyCode() == KeyEvent.KEYCODE_CTRL_LEFT )\r\n //}else if (event.getKeyCode() == KeyEvent.KEYCODE_J ||event.getKeyCode() == KeyEvent.KEYCODE_CTRL_LEFT ||event.getKeyCode() == KeyEvent.KEYCODE_SHIFT_LEFT )\r\n {\r\n linefeed +=String.valueOf(event.getKeyCode());\r\n if(linefeed.equalsIgnoreCase(\"38113\")|| linefeed.equalsIgnoreCase(\"11338\")) // line feed value\r\n addBarCodeItemToOrderTable();\r\n }else\r\n {\r\n linefeed = \"\";\r\n if (dd<15 && dd >0 && CUSTOMER_FOUND==0) {\r\n View v = getCurrentFocus();\r\n //System.out.println(v);\r\n //EditText etbar = (EditText)findViewById(R.id.etItemBarcode);\r\n //EditText ed = (WepEditText)findViewById(v.getId());\r\n\r\n if (v.getId() != R.id.aCTVSearchItemBarcode) {\r\n switch (v.getId()) {\r\n case R.id.aCTVSearchItem:\r\n aTViewSearchItem.setText(tx);\r\n break;\r\n case R.id.aCTVSearchMenuCode:\r\n aTViewSearchMenuCode.setText(tx);\r\n break;\r\n\r\n case R.id.etCustGSTIN:\r\n case R.id.edtCustName:\r\n case R.id.edtCustPhoneNo:\r\n case R.id.edtCustAddress:\r\n EditText ed = (EditText) findViewById(v.getId());\r\n //String ed_str = ed.getText().toString();\r\n ed.setText(tx);\r\n }\r\n String bar_str = autoCompleteTextViewSearchItemBarcode.getText().toString();\r\n bar_str += (char) event.getUnicodeChar();\r\n autoCompleteTextViewSearchItemBarcode.setText(bar_str.trim());\r\n autoCompleteTextViewSearchItemBarcode.showDropDown();\r\n\r\n } else if (v.getId() == R.id.aCTVSearchItemBarcode) {\r\n /*tx = autoCompleteTextViewSearchMenuCode.getText().toString();\r\n String bar_str = autoCompleteTextViewSearchItemBarcode.getText().toString().trim();*/\r\n tx += (char) event.getUnicodeChar();\r\n autoCompleteTextViewSearchItemBarcode.setText(tx.trim());\r\n autoCompleteTextViewSearchItemBarcode.showDropDown();\r\n /*Toast.makeText(this, \"\"+bar_str+\" : \"+bar_str.length(), Toast.LENGTH_SHORT).show();\r\n if(bar_str.length()>2)\r\n {\r\n String ss = bar_str.substring(1,bar_str.length())+bar_str.substring(0,1);\r\n autoCompleteTextViewSearchItemBarcode.setText(ss.trim());\r\n Toast.makeText(this, \"\"+ss, Toast.LENGTH_SHORT).show();\r\n autoCompleteTextViewSearchItemBarcode.showDropDown();\r\n }*/\r\n\r\n\r\n }\r\n }\r\n }\r\n\r\n\r\n /*Toast.makeText(myContext, \"keyUp:\"+keyCode+\" : \"+dd, Toast.LENGTH_SHORT).show();*/\r\n\r\n\r\n return true;\r\n }", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tif (field.getText().equals(name)) {\r\n\t\t\t\t\tfield.setText(\"\");\r\n\t\t\t\t\tfield.setForeground(Color.black);\r\n\t\t\t\t}\r\n\t\t\t}" ]
[ "0.71547693", "0.67315614", "0.67036533", "0.66889906", "0.6681087", "0.66379756", "0.66364217", "0.66009635", "0.6590811", "0.6585804", "0.65703523", "0.6560092", "0.652448", "0.6489574", "0.6474672", "0.64602697", "0.6435538", "0.6435467", "0.6374752", "0.6352788", "0.63377273", "0.6328007", "0.63207656", "0.6320538", "0.63158303", "0.6303764", "0.62999564", "0.6274233", "0.62633073", "0.62608", "0.62562954", "0.6254608", "0.6251419", "0.62278366", "0.6227168", "0.62158906", "0.62047553", "0.6191528", "0.6190771", "0.61902833", "0.61584795", "0.61514676", "0.61479485", "0.61345726", "0.61325145", "0.61305445", "0.61237675", "0.61190134", "0.6101028", "0.61001503", "0.60908914", "0.60908914", "0.6079966", "0.6078232", "0.60765916", "0.6069519", "0.606768", "0.6063931", "0.6060959", "0.60605574", "0.6057557", "0.60534835", "0.6046836", "0.60397077", "0.60374016", "0.6035065", "0.6030499", "0.602901", "0.60271907", "0.6017322", "0.6014941", "0.60133994", "0.6004059", "0.6003024", "0.6000692", "0.59930754", "0.59822834", "0.5977953", "0.59735894", "0.5972834", "0.5965739", "0.59654176", "0.59640133", "0.59588236", "0.59587026", "0.5957719", "0.5954975", "0.59456366", "0.59447116", "0.5943536", "0.5935246", "0.59290594", "0.59218395", "0.59154034", "0.59017444", "0.5895528", "0.58908135", "0.58845675", "0.5880113", "0.587943", "0.58749366" ]
0.0
-1
to change otp box on entering or deleting number
@Override public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_DEL && currentView.getId() != R.id.otp1 && currentView.getText().length() == 0) { previousView.setText(null); previousView.requestFocus(); return true; } else if (currentView.getId() != R.id.otp6 && currentView.getText().length() > 0) { nextView.requestFocus(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enterOTPActions(String otp){\n\t\tdeviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp);\n\t}", "@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\r\n } catch (Exception e) {\r\n // TODO: handle exception\r\n }\r\n\r\n otp = OTP_ET_1.getText().toString() +\r\n OTP_ET_2.getText().toString() + OTP_ET_3.getText().toString() +\r\n OTP_ET_4.getText().toString();\r\n if (otp.equals(\"null\")||otp.isEmpty()||otp.length()<4){\r\n Toast.makeText(ThirdActivity.this, \"Please enter OTP\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n HashMap<String, String> params = new HashMap<>();\r\n params.put(\"action\", \"verifyOtp\");\r\n params.put(\"center_id\", centreId);\r\n params.put(\"otp\", otp);\r\n params.put(\"mobile\", number);\r\n progressDialog.show();\r\n apiCall.sendData(Request.Method.POST, OTP_VERIFY, params, \"sendOtp\");\r\n\r\n }", "@Override\n public void handle(KeyEvent t) {\n if(!receiver_id.getText().matches(\"[0-9]*\"))\n {\n receiver_id.setText(receiver_id.getText().replaceAll(\"[^\\\\d]\", \"\"));\n receiver_id.selectPositionCaret(receiver_id.getLength());receiver_id.deselect();\n }\n }", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_NUMBER |\n InputType.TYPE_NUMBER_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n }", "@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }", "private void confirmOtp(String OTP) {\n verifyOTP=OTP;\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dailogconfirm, null);\n AppCompatButton buttonConfirm = (AppCompatButton) confirmDialog.findViewById(R.id.buttonConfirm);\n editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n alert = new AlertDialog.Builder(this);\n alert.setView(confirmDialog);\n\n\n alertDialog = alert.create();\n alertDialog.show();\n\n\n }", "private void showOtpDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter OTP:\");\n\n // set the custom layout\n final View customLayout = getLayoutInflater().inflate(R.layout.pno_otp_alert_dialog, null);\n builder.setView(customLayout);\n\n // add a button\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n EditText otp1 = customLayout.findViewById(R.id.et_verificationCode);\n String otp2 = otp1.getText().toString();\n verifyCode(otp2);\n }\n });\n\n // create and show\n // the alert dialog\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "@Override\n public void clickedNumber(int number) {\n Log.d(\"liuwenshuai\", \"clickedNumber:\" + number);\n mDeleteButton.setVisibility(View.VISIBLE);\n mBeforePassword = mBeforePassword + number;\n if (mConfirmPass) {\n if (mBeforePassword.equals(mBuffer.toString())) {\n setPasswordView(mBeforePassword.length());\n\n mLockPasswordUtils.clearLock();\n mLockPasswordUtils.saveLockPassword(mBuffer.toString(),mRequestedQuality);\n mBeforePassword = \"\";\n getActivity().setResult(RESULT_FINISHED);\n getActivity().finish();\n } else {\n if (mBeforePassword.length() == 4) {\n setPasswordView(mBeforePassword\n .length());\n mHandler.removeMessages(MSG_SHOW_CONFIRM);\n mHandler.sendEmptyMessageDelayed(\n MSG_SHOW_CONFIRM,\n ERROR_MESSAGE_TIMEOUT);\n return;\n }\n }\n }\n setPasswordView(mBeforePassword.length());\n if (mBeforePassword.length() == 4) {\n mBuffer.append(mBeforePassword);\n mHandler.removeMessages(MSG_SHOW_NEXT);\n mHandler.sendEmptyMessageDelayed(MSG_SHOW_NEXT,\n ERROR_MESSAGE_TIMEOUT);\n }\n }", "private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }", "public void resendOTP(View view) {\n showSnackbar(\"Resending OTP\");\n\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setForceResendingToken(mToken)\n .setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }", "private void configureOTP() {\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n String totpSecret = testRealmLoginPage.form().totpForm().getTotpSecret();\n testRealmLoginPage.form().totpForm().setTotp(totp.generateTOTP(totpSecret));\n testRealmLoginPage.form().totpForm().submit();\n AccountHelper.logout(testRealmResource(), testUser.getUsername());\n\n //verify that user has OTP configured\n testUser = testRealmResource().users().get(testUser.getId()).toRepresentation();\n Users.setPasswordFor(testUser, PASSWORD);\n assertTrue(testUser.getRequiredActions().isEmpty());\n }", "private void checkAndUpdateUserPrefNumber() {\n if (TextUtils.isEmpty(mUserMobilePhone) && !mUserMobilePhone.equals(mNumberEditText.getText().toString())) {\n mSharedPreferences\n .edit()\n .putString(PREF_USER_MOBILE_PHONE, mNumberEditText.getText().toString())\n .apply();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif(0 != phone_num_edt.getText().length()){\n\t\t\t\t\t// To delete the last character in edittext\n\t\t\t\t\tphone_num_edt.getText().delete(phone_num_edt.getText().length() - 1,\n\t\t\t\t\t\t\tphone_num_edt.getText().length());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void clickReplenishButton(View view){\r\n if (TextUtils.isEmpty(editTextNumber.getText())){\r\n textView.setText(PUT_MONEY);\r\n }else {\r\n superHero.setAccount(Double.parseDouble(editTextNumber.getText().toString()));\r\n editTextNumber.setText(null);\r\n if (checkBox.isChecked()){\r\n clickUpgradeButton(view);\r\n }\r\n textView.setText(REPLENISH_SUCC + superHero.getAccount());\r\n }\r\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRandom ra=new Random();\r\n\t\t\t\tint val=ra.nextInt(999);\r\n\t\t\t\tSmsManager sms=SmsManager.getDefault();\r\n\t\t\t\tsms.sendTextMessage(txt_phone.getText().toString(), null, val+\"\", null, null);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(), OTP_Reg.class);\r\n\t\t\t\ti.putExtra(\"name\", txt_name.getText().toString());\r\n\t\t\t\ti.putExtra(\"phone\", txt_phone.getText().toString());\r\n\t\t\t\ti.putExtra(\"otp\", val+\"\");\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}", "public void setVerificationCode(String OTP) {\n\t\thelper.findElementById(otpFieldId).sendKeys(OTP);\n\t}", "public void sendOTP(String username){\n }", "protected void paceoder() {\n\t\t\n\t\tif(!homepage.isimport){\n\t\t\tJOptionPane.showMessageDialog(null, \"先导入用户数据吧\");\n\t\t}else if((text_num.getText().isEmpty())|(text_price.getText().isEmpty())){\n \t\t\t\n \t\tJOptionPane.showMessageDialog(null, \"先输入数值喔\");\n \t}\n \telse if(!Userinfochange.isNumeric(text_num.getText())\n \t\t\t|!Userinfochange.isNumeric(text_price.getText())){\n \t\t\n \t\tJOptionPane.showMessageDialog(null, \"输入数字喔\");\n \t}\n \telse if( Integer.parseInt(text_num.getText())<0\n \t\t\t||Integer.parseInt(text_num.getText())%100!=0){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"要输入整百股喔\");\n\t\t\t\t\n\t\t\t}\n \t \n \t\telse{\t\n \t\t\tMessageBox messagebox = new MessageBox(shell, SWT.YES | SWT.NO);\n \t\t\tmessagebox.setText(\"下单\");\n \t\t\tmessagebox.setMessage(\" 确认是否下单\");\n \n \t\t\tint val=messagebox.open();\n \t\t\t\n \t\t\tif(val == SWT.YES){\n \n \t\t\t\tString date = Integer.toString(text_dateTime.getYear())+\"/\"+Integer.toString(text_dateTime.getMonth()+1)+\n\t\t\t\t\t\t\t\"/\"+Integer.toString(text_dateTime.getDay());\n \t\t\tPlaceOder placeoder = new PlaceOder(tabitemindex,information[0].substring(21),text_code.getText(),\n\t\t\t\t\t\t\"卖空\",text_price.getText(),text_num.getText(),place,date);\n \t\t\tif(placeoder.update_trade()){\n \t\t\tMessagedialo window = new Messagedialo();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\telse{\n \t\t\t\t\n \t\t\t\thomepage.lbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n \t\t\t\thomepage.lbl_notice.setText(\"*卖空失败\");\n \t\t\t\t\t\n \t\t\t\tMessagedialofail window = new Messagedialofail();\n \t\t\twindow.open(shell);\n \t\t\t}\n \t\t\t}\n \t\t\n \t\n }\n\t\t\n\t}", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(!edittext_mobNo.getText().toString().equals(\"not available\"))\n\t\t\t\tcalltoMobilenumber(edittext_mobNo.getText().toString());\n\t\t\t}", "public void onCLickSendOtp(View view)\n {\n }", "@Override\n public void onCodeSent(@NonNull String s, @NonNull PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n verificationId = s;\n // start showing the pin view and verify button\n Toast.makeText(MainActivity.this, \"Enter OTP to verify\", Toast.LENGTH_SHORT).show();\n OTP.setVisibility(View.VISIBLE);\n verifyButton.setVisibility(View.VISIBLE);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t\t\t\t\t\t\t \t\tContext.INPUT_METHOD_SERVICE); \n\t\t\t\t\t\t\t imm.hideSoftInputFromWindow(((EditText) findViewById(R.id.get_phone_editText))\n\t\t\t\t\t\t\t \t\t \t\t.getWindowToken(),0);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setPassword(\"\");\n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setUserKey(\"\");\n\t\t\t\t\t\t\t Intent intent = new Intent(AccountForgetPSWActivity.this, AccountSettingActivity.class);\n\t\t\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t}", "private void confirmOtp() {\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_confirm, null);\n\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n AppCompatButton buttonConfirm = confirmDialog.findViewById(R.id.buttonConfirm);\n// editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n //Creating an alertdialog builder\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n\n //Adding our dialog box to the view of alert dialog\n alert.setView(confirmDialog);\n alert.setCancelable(false);\n\n //Creating an alert dialog\n final AlertDialog alertDialog = alert.create();\n\n //Displaying the alert dialog\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonConfirm.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n //Hiding the alert dialog\n alertDialog.dismiss();\n\n //Displaying a progressbar\n final ProgressDialog loading = ProgressDialog.show(BusinessRegistration.this, \"Authenticating\",\n \"Please wait while we check the entered code\", false, false);\n\n loading.dismiss();\n\n //Starting a new activity\n startActivity(new Intent(BusinessRegistration.this, BusinessMainActivity.class));\n\n\n// //Getting the user entered otp from edittext\n// final String otp = editTextConfirmOtp.getText().toString().trim();\n//\n// //Creating an string request\n// StringRequest stringRequest = new StringRequest(Request.Method.POST, Config.CONFIRM_URL,\n// new Response.Listener<String>() {\n// @Override\n// public void onResponse(String response) {\n// //if the server response is success\n// if(response.equalsIgnoreCase(\"success\")){\n// //dismissing the progressbar\n// loading.dismiss();\n//\n// //Starting a new activity\n// startActivity(new Intent(MainActivity.this, Success.class));\n// }else{\n// //Displaying a toast if the otp entered is wrong\n// Toast.makeText(MainActivity.this,\"Wrong OTP Please Try Again\",Toast.LENGTH_LONG).show();\n// try {\n// //Asking user to enter otp again\n// confirmOtp();\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n// }\n// }\n// },\n// new Response.ErrorListener() {\n// @Override\n// public void onErrorResponse(VolleyError error) {\n// alertDialog.dismiss();\n// Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n// }\n\n\n }\n\n });\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_no.setText(editText.getText().toString().trim());\n } else {\n pump_no.setText(\"\");\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(passtog.isChecked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\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\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tpasswordET.setText(sp.getString(cardNumAuto.getText()\n\t\t\t\t\t\t.toString(), \"\"));// 自动输入密码\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tconfirmPassword = edit.toString();\r\n\t\t\t}", "@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tphone_num_edt.setText(\"\");\n\t\t\t\treturn true;\n\t\t\t}", "@Override\r\n public void onClick(View v)\r\n {\n if (v.equals(mButtonOk))\r\n {\r\n // 提交手机号修改\r\n HttpConnectionUtils hcu = new HttpConnectionUtils(handler);\r\n hcu.addGetParmeter(\"phone\", \"13488791001\");\r\n hcu.addGetParmeter(\"password\", \"123456\");\r\n hcu.get(Url.ModifyPhonenumber, HttpConnectEvent.HTTP_MODIFY_PHONENUMBER);\r\n }\r\n \r\n }", "public void numberEvent(View view) {\n if (isNewOp)\n input.setText(\"\");\n isNewOp = false;\n String number = input.getText().toString();\n switch (view.getId()) {\n case R.id.oneBTN:\n number += \"1\";\n break;\n case R.id.twoBTN:\n number += \"2\";\n break;\n case R.id.threeBTN:\n number += \"3\";\n break;\n case R.id.fourBTN:\n number += \"4\";\n break;\n case R.id.fiveBTN:\n number += \"5\";\n break;\n case R.id.sixBTN:\n number += \"6\";\n break;\n case R.id.sevenBTN:\n number += \"7\";\n break;\n case R.id.eightBTN:\n number += \"8\";\n break;\n case R.id.nineBTN:\n number += \"9\";\n break;\n case R.id.zeroBTN:\n number += \"0\";\n break;\n case R.id.pointBTN:\n number += \".\";\n break;\n }\n input.setText(number);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int inPin = Integer.parseInt(txtPin.getText());\n\n //Compares the input value with the set pin\n if(inPin == 6942){\n txtPin.setText(\"Pin Accepted\");\n txtPin.enable(false);\n btnPrint.setVisible(true);\n } else {\n txtPin.setText(\"\");\n JOptionPane.showMessageDialog(JOptionPane.getRootFrame(),\n \"Wrong pin number\",\n \"Wrong pin\",\n JOptionPane.WARNING_MESSAGE);\n }\n }", "@Override\n public void afterTextChanged(Editable s) {\n if (s.length() == 0)\n edtCodeNumber5.requestFocus();\n else {\n if (strMobileNumber == null || strMobileNumber.equals(\"\")) return;\n //checkValidationCodeInputs();\n\n confirmYourCode();\n }\n\n }", "@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "public void inputRandomEmailToTextbox() {\r\n\t\twaitElementVisible(driver, RegisterForm.EMAIL_TEXTBOX);\r\n\t\tString emailAddress = \"auto06\" + getTodayString(\"ddMMyyHHmmss\")+\"@lv.com\";\r\n\t\tsendKeyElement(driver,RegisterForm.EMAIL_TEXTBOX, emailAddress);\r\n\t}", "private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }", "@When(\"^Enter OTP details$\")\n public void enter_OTP_details() throws Throwable {\n otp.enterOTP();\n }", "@Override\n public void onClick(View v) {\n if (v == next){\n Log.d(\"\",\"- - - - - - - Triggered Next Button - - - - - - - - -\");\n if (otpInp.getText().toString().length() < 5){\n otpInp.setError(\"Invalid\");\n }else{\n Toast.makeText(getApplication().getBaseContext(),\"Getting OTP\",Toast.LENGTH_LONG);\n Log.d(\"Loader Message \",\"Getting otp for the validation\");\n startActivity(new Intent(getBaseContext(), ShowItems.class));\n }\n }\n if (v == resend){\n Toast.makeText(getApplicationContext(),\"Resend Otp\", Toast.LENGTH_LONG);\n }\n }", "@Override\n public void insertMoney(int value) {\n System.out.println(\"Please make a selection first\");\n }", "void updateOTPRecord(int numofAttempts, int otpId, int otp);", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "private void updateVoiceNumberField() {\n if (mSubMenuVoicemailSettings == null) {\n return;\n }\n \n mOldVmNumber = mPhone.getVoiceMailNumber();\n if (mOldVmNumber == null) {\n mOldVmNumber = \"\";\n }\n mSubMenuVoicemailSettings.setPhoneNumber(mOldVmNumber);\n final String summary = (mOldVmNumber.length() > 0) ? mOldVmNumber :\n getString(R.string.voicemail_number_not_set);\n mSubMenuVoicemailSettings.setSummary(summary);\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber1.setText(\"\");\n } else if(edtCodeNumber1.getText().toString().length() == 1) {\n edtCodeNumber2.requestFocus();\n }\n return false;\n }", "@Override\n\tpublic void keyPressed(KeyEvent eee) {\n\t\tswitch (eee.getKeyCode()) {\n\t\tcase KeyEvent.VK_0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Unexpexted (key presses)\");\n\t\t\teee.consume();\n\t\t}\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(localType == EMAIL_FIELD){\r\n\t\t\tif(!field.getText().contains(\"@\")){\r\n\t\t\t\tif(localFrame != null){\r\n\t\t\t\t\tlocalFrame.getMyPhoneMeStatusBar().setStatus\r\n\t\t\t\t\t(\"email不符合格式,至少包含@\");\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(field.getState() == PhoneMeField.ADD_STATE){\r\n\t\t\tif(field.getText().length() != 0){\r\n\t\t\t\tmanageBox.addItem(field.getText());\r\n\t\t\t\tmanageBox.setSelectedIndex(manageBox.getItemCount()-1);\r\n\t\t\t}\r\n\t\t\tfield.setVisible(false);\r\n\t\t\tfield.setText(\"\");\r\n\t\t}\r\n\t\tif(field.getState() == PhoneMeField.EDIT_STATE){\r\n\t\t\tif(field.getText().length() != 0){\r\n\t\t\t\tmanageBox.setEditable(true);\r\n\t\t\t\tint index = manageBox.getSelectedIndex();\r\n\t\t\t\tmanageBox.removeItem(manageBox.getSelectedItem());\r\n\t\t\t\tmanageBox.insertItemAt(field.getText(), index);\r\n\t\t\t\tmanageBox.setSelectedIndex(index);\r\n\t\t\t//manageBox.addItem(field.getText());\r\n\t\t\t//(String)manageBox.getSelectedItem()\r\n\t\t\t//manageBox.setSelectedItem(field.getText());\r\n\t\t\t//manageBox.updateUI();\r\n\t\t\t\tmanageBox.setEditable(false);\r\n\t\t\t}\r\n\t\t\tfield.setVisible(false);\r\n\t\t\tfield.setText(\"\");\r\n\t\t}\r\n\t}", "@OnClick({R.id.ed_phone, R.id.agin_verification_code, R.id.confirm_btn})\n public void onViewClicked(View view) {\n switch (view.getId()) {\n case R.id.ed_phone:\n edPhone.setCursorVisible(true);//光标显示\n break;\n case R.id.agin_verification_code:\n if (ObjectUtils.isEmpty(phone)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_cell_phone_number_cannot_be_empty));\n return;\n }\n// if (!RegexUtils.isMobileExact(phone)) {\n// ToastUtils.showLongToast(context, getResources().getString(R.string.please_input_the_correct_mobile_phone_number));\n// return;\n// }\n mPresent.getCode(context, phone);// 1 綁定手机号\n break;\n case R.id.confirm_btn:\n String newDealPwd = edConfirmNewPwd.getText().toString().toString().trim();\n String code = edVerificationCode.getText().toString().trim();\n if (ObjectUtils.isEmpty(code)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.the_verification_code_cannot_be_empty));\n return;\n }\n if (ObjectUtils.isEmpty(newDealPwd)) {\n ToastUtils.showLongToast(context, getResources().getString(R.string.please_enter_your_new_deal_password));\n return;\n }\n if(newDealPwd.length()<6){\n ToastUtils.showShortToast(context,getResources().getString(R.string.please_enter_six_digit_trading_password));\n return;\n }\n\n showLoadingDialog();\n mPresent.modifyPwd(context, \"2\", \"\", code, newDealPwd);\n break;\n }\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber5.getSelectionStart() <= 0) {\n edtCodeNumber4.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber4.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber5.getText().toString().length() == 1)\n edtCodeNumber6.requestFocus();\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber3.getSelectionStart() <= 0) {\n edtCodeNumber2.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber2.requestFocus();\n }\n }, 50);\n }\n } else if (edtCodeNumber3.getText().toString().length() == 1)\n edtCodeNumber4.requestFocus();\n return false;\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Re-enter phone number\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n motor_no.setText(editText.getText().toString().trim());\n } else {\n motor_no.setText(\"\");\n }\n }", "@Override\n public void onClick(View view) {\n String phoneNumber = phoneNumberEditText.getText().toString();\n // atata timp cat exista caractere in EditText => ele pot fi sterse\n if (phoneNumber.length() > 0) {\n // se sterge mereu ultima cifra / ultimul caracter\n phoneNumber = phoneNumber.substring(0, phoneNumber.length() - 1);\n phoneNumberEditText.setText(phoneNumber);\n }\n }", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_TEXT |\n InputType.TYPE_TEXT_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber5.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber5.requestFocus();\n }\n }, 50);\n }\n return false;\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if(edtCodeNumber4.getSelectionStart() <= 0) {\n edtCodeNumber3.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber3.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber4.getText().toString().length() == 1)\n edtCodeNumber5.requestFocus();\n return false;\n }", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n if (edtCodeNumber2.getSelectionStart() <= 0) {\n edtCodeNumber1.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber1.requestFocus();\n }\n }, 50);\n }\n } else if(edtCodeNumber2.getText().toString().length() == 1)\n edtCodeNumber3.requestFocus();\n return false;\n }", "@Step\n public void enterPhoneNumberForPurchase(String number){\n actionWithWebElements.enterTextIntoInput(phoneNumberInput, number);\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tpassword = edit.toString();\r\n\t\t\t}", "public void handleNumber(String s){\n\t\tint numPressed = Integer.parseInt(s);\n\t\tif(currentInput.length() < 7){ //prevents overflow exception when parsing input as int\n\t\t\tcurrentInput += numPressed;\n\t\t\tif(state == ATM_State.LOGINPIN){\n\t\t\t\tgui.setDisplay(gui.getDisplay() + \"*\");\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tgui.setDisplay(gui.getDisplay() + numPressed);\n\t\t\t}\n\t\t}\n\t}", "private void scanTicket(){\r\n\t\ttext = numberField.getText();\r\n\t\t//Number field text is converted into char \r\n\t\tstringToChar(text);\r\n\t\tif(executed == false){\r\n\t\t\trandom();\r\n\t\t}\r\n\t}", "private void redFieldNumber(TextField phoneNumTextField, KeyEvent event) {\n\n char firstLetterCheck = 0;\n\n char plusSymbolASCII = 43;\n char backSlashASCII = 8;\n char deleteASCII = 127;\n\n boolean backSlash = (int) event.getCharacter().charAt(firstLetterCheck) != backSlashASCII;\n boolean deleteButton = (int) event.getCharacter().charAt(firstLetterCheck) != deleteASCII;\n\n if (phoneNumTextField.getLength()==0 && event.getCharacter().charAt(firstLetterCheck)!=plusSymbolASCII){\n event.consume();\n }\n\n if (phoneNumTextField.getLength() <= plusSymbolASCII) {\n if (backSlash && deleteButton && !Character.isDigit(event.getCharacter().charAt(firstLetterCheck)) && phoneNumTextField.getLength() > 0) {\n event.consume();\n phoneNumTextField.setStyle(\"-fx-text-box-border:#ff2000;-fx-control-inner-background:red;-fx-faint-focus-color:red;\");\n } else {\n phoneNumTextField.setStyle(\"-fx-text-box-border:#feefff;-fx-control-inner-background:white;-fx-faint-focus-color:white;\");\n }\n }\n }", "public static void saveAdminMobileNo(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_ADMIN_MOBILE_NUMBER, type);\n editor.apply();\n }", "public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }", "@Override\r\n\tpublic void afterTextChanged(Editable e) {\r\n\r\n\t\tString s = e.toString().trim().toLowerCase(Locale.ENGLISH);\r\n\r\n\t\tif (PhoneNumberUtils.isGlobalPhoneNumber(s)) {\r\n\t\t\tvalidCommand = true;\r\n\t\t\ttype = PHONE;\r\n\r\n\t\t\tsend.setText(\"Send phone number\");\r\n\r\n\t\t} else if (s.matches(WR)) {\r\n\t\t\tvalidCommand = true;\r\n\t\t\ttype = URL;\r\n\r\n\t\t\tsend.setText(\"Send as URL\");\r\n\r\n\t\t} else if (s.matches(AR)) {\r\n\t\t\tvalidCommand = true;\r\n\t\t\ttype = ADDRESS;\r\n\r\n\t\t\tsend.setText(\"Send as address\");\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tvalidCommand = false;\r\n\t\t\ttype = null;\r\n\r\n\t\t\tsend.setText(getString(R.string.send));\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic String saveOtp(Otp otp) {\n\t\treturn otpDao.saveOtp(otp);\n\t}", "public void tpoCheck() {\r\n if (tpo.getText().isEmpty()) {\r\n tpo.selectAll();\r\n tpo.requestFocus();\r\n } else System.out.println(\"------------------\\nTPO: \"+tpo.getText());\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n sv_btn = new javax.swing.JButton();\n yes_btn = new javax.swing.JButton();\n otp_txt = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cacl_btn = new javax.swing.JButton();\n otp_number_txt = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n adm_txt = new javax.swing.JTextField();\n nxt_btn = new javax.swing.JButton();\n jPasswordField1 = new javax.swing.JPasswordField();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Send OTP\");\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(22, 108, 158));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(22, 108, 158));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Send OTP\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Trebuchet MS\", 0, 36), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 3, 16)); // NOI18N\n jLabel1.setText(\"New Password\");\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 370, 130, 30));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 0));\n jLabel2.setText(\"Send OTP to this\");\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 160, 30));\n\n sv_btn.setBackground(new java.awt.Color(22, 101, 158));\n sv_btn.setFont(new java.awt.Font(\"Book Antiqua\", 0, 18)); // NOI18N\n sv_btn.setForeground(new java.awt.Color(255, 255, 255));\n sv_btn.setText(\"Save\");\n sv_btn.setToolTipText(\"Submit\");\n sv_btn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n sv_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sv_btnActionPerformed(evt);\n }\n });\n jPanel2.add(sv_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 370, 80, 30));\n\n yes_btn.setBackground(new java.awt.Color(22, 101, 158));\n yes_btn.setFont(new java.awt.Font(\"Book Antiqua\", 0, 24)); // NOI18N\n yes_btn.setForeground(new java.awt.Color(255, 255, 255));\n yes_btn.setText(\"Yes\");\n yes_btn.setToolTipText(\"Submit\");\n yes_btn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n yes_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n yes_btnActionPerformed(evt);\n }\n });\n jPanel2.add(yes_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 160, 110, 30));\n\n otp_txt.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n otp_txt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n otp_txtActionPerformed(evt);\n }\n });\n otp_txt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n otp_txtKeyTyped(evt);\n }\n });\n jPanel2.add(otp_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 240, 170, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 3, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 0));\n jLabel3.setText(\"Number\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 70, 80, 30));\n\n cacl_btn.setBackground(new java.awt.Color(22, 101, 158));\n cacl_btn.setFont(new java.awt.Font(\"Book Antiqua\", 0, 24)); // NOI18N\n cacl_btn.setForeground(new java.awt.Color(255, 255, 255));\n cacl_btn.setText(\"Cancel\");\n cacl_btn.setToolTipText(\"Submit\");\n cacl_btn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n cacl_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cacl_btnActionPerformed(evt);\n }\n });\n jPanel2.add(cacl_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 160, 110, 30));\n\n otp_number_txt.setFont(new java.awt.Font(\"Tahoma\", 3, 16)); // NOI18N\n jPanel2.add(otp_number_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 70, 110, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 3, 16)); // NOI18N\n jLabel5.setText(\"Admin\");\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 320, 70, 30));\n\n adm_txt.setEditable(false);\n adm_txt.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel2.add(adm_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 320, 170, 30));\n\n nxt_btn.setBackground(new java.awt.Color(22, 101, 158));\n nxt_btn.setFont(new java.awt.Font(\"Book Antiqua\", 0, 18)); // NOI18N\n nxt_btn.setForeground(new java.awt.Color(255, 255, 255));\n nxt_btn.setText(\"Next\");\n nxt_btn.setToolTipText(\"Submit\");\n nxt_btn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n nxt_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nxt_btnActionPerformed(evt);\n }\n });\n jPanel2.add(nxt_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 240, 80, 30));\n\n jPasswordField1.setEditable(false);\n jPasswordField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel2.add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 370, 170, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 3, 16)); // NOI18N\n jLabel6.setText(\"Enter OTP\");\n jPanel2.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 240, 100, 30));\n\n jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 30, 460, 460));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 940, 520));\n\n pack();\n setLocationRelativeTo(null);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_type.setText(editText.getText().toString().trim());\n } else {\n pump_type.setText(\"\");\n }\n }", "public void donutTypeChosen()\n {\n changeSubtotalTextField();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(edittext_phone.length()!=11)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"手机号码有误!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(edittext_pas.length()<1)\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getBaseContext(), \"请输入密码!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\ttime=30;\n\t\t\t\trelativeLayoutregist.setVisibility(View.INVISIBLE);\n\t\t\t\trelativeLayouttijiao.setVisibility(View.VISIBLE);\n\t\t\t\t//传电话号码\n\t\t\t\ttextview_phone.setText(edittext_phone.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Todo 发送短信,获取验证码\n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\t\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\t \n\t\t\t}", "public void actionPerformed(ActionEvent e){\n Object ob = e.getSource();\n if(ob == Num1){\n display = totalAmount.getText();\n totalAmount.setText(display + \"1\");\n System.out.println(\"Key 1 already press\");\n }else if(ob == Num2){\n display = totalAmount.getText();\n totalAmount.setText(display + \"2\");\n System.out.println(\"Key 2 already press\");\n }else if(ob == Num3){\n display = totalAmount.getText();\n totalAmount.setText(display + \"3\");\n System.out.println(\"Key 3 already press\");\n }else if(ob == Num4){\n display = totalAmount.getText();\n totalAmount.setText(display + \"4\");\n System.out.println(\"Key 4 already press\");\n }else if(ob == Num5){\n display = totalAmount.getText();\n totalAmount.setText(display + \"5\");\n System.out.println(\"Key 5 already press\");\n }else if(ob == Num6){\n display = totalAmount.getText();\n totalAmount.setText(display + \"6\");\n System.out.println(\"Key 6 already press\");\n }else if(ob == Num7){\n display = totalAmount.getText();\n totalAmount.setText(display + \"7\");\n System.out.println(\"Key 7 already press\");\n }else if(ob == Num8){\n display = totalAmount.getText();\n totalAmount.setText(display + \"8\");\n System.out.println(\"Key 8 already press\");\n }else if(ob == Num9){\n display = totalAmount.getText();\n totalAmount.setText(display + \"9\");\n System.out.println(\"Key 9 already press\");\n }else if(ob == Num0){\n display = totalAmount.getText();\n totalAmount.setText(display + \"0\");\n System.out.println(\"Key 0 already press\");\n }else if(ob == Num10){\n display = totalAmount.getText();\n totalAmount.setText(display + \".\");\n System.out.println(\"Key . already press\");\n }else if(ob == Clr){\n totalAmount.setText(null);\n currentBalance.setText(null);\n System.out.println(\"Key clear already press\");\n }else if(ob == Withdraw){\n//Withdraw \n if(totalAmount.getText().equals(\"\")){\n JOptionPane.showMessageDialog(null, \" Please! Enter the totalAmountnt of cash you want\");\n }else{\n calculator ca = new calculator();\n ca.withdraw();\n }\n }else if(ob == Deposit){\n//Deposite \n if(totalAmount.getText().equals(\"\")){\n JOptionPane.showMessageDialog(totalAmount, \"Please put number of cash you want !\");\n }else{\n calculator ca = new calculator();\n ca.deposite();\n }\n System.out.println(\"Key Deposit already press\");\n }else if(ob == Balance){\n if(currentBalance.getText().equals(\"\")){\n currentBalance.setText(\"0\");\n }else{\n calculator ca = new calculator();\n ca.inquiry();\n }\n }else if(ob == Help){\n JOptionPane.showMessageDialog(null, \"You can visit out bank incase of any problems !!!\");\n }else if(ob == Enter){\n System.out.println(\"Key Enter already press\");\n }else if(ob == Cancel){\n PersonalAccount ac = new PersonalAccount();\n System.exit(0);\n }\n }", "@Override\n\n public void onCodeSent(String verificationId,\n PhoneAuthProvider.ForceResendingToken token) {\n\n Toast.makeText(otpsignin.this, verificationId, Toast.LENGTH_SHORT).show();\n\n Log.d(TAG, \"onCodeSent:\" + verificationId);\n\n Toast.makeText(otpsignin.this,\"On code sent meathod\",Toast.LENGTH_SHORT).show();\n\n // Save verification ID and resending token so we can use them later\n\n btntype=1;\n\n\n mVerificationId = verificationId;\n\n mResendToken = token;\n\n btnOTP.setText(\"Verify code\");\n\n // ...\n }", "private void registerEditChange(){\n this.txtAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal)\n {\n\n\n if(newVal>0)\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.GONE);\n }\n }", "@Override\n\tpublic void teclaConfirmaDigitada() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n tf_user.setText(\"\");\n tf_password.setText(\"\");\n }", "@Test\n public void requireOTPTest() {\n RealmRepresentation realm = testRealmResource().toRepresentation();\n realm.setBrowserFlow(\"browser\");\n testRealmResource().update(realm);\n\n updateRequirement(\"browser\", Requirement.REQUIRED, (authExec) -> authExec.getDisplayName().equals(\"Browser - Conditional OTP\"));\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }", "@Override\r\n\tprotected KDTextField getNumberCtrl() {\n\t\treturn null;\r\n\t}", "private String generateOtp() {\n\t\tString otp = TOTP.getOTP(SECRET);\n\t\treturn otp;\n\t}", "@Override\n public void onClick(View view) {\n\n cardDialog = new Dialog(ChatPageActivity.this, R.style.PauseDialog);\n cardDialog.setContentView(R.layout.group_payment_layout);\n edtAmount = (EditText) cardDialog.findViewById(R.id.payAmount);\n edtAmount.requestFocus();\n edtAmount.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n edtAmount.setHint(\"\");\n edtAmount.setGravity(Gravity.LEFT);\n\n\n } else if (edtAmount.getText().length() == 0) {\n\n edtAmount.setGravity(Gravity.CENTER);\n edtAmount.setHint(\"مبلغ پرداختی\");\n\n\n }\n }\n });\n edtAmount.addTextChangedListener(new TextWatcher() {\n private static final char space = ',';\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n if (edtAmount.getText().length() == 0) {\n\n edtAmount.setGravity(Gravity.CENTER);\n edtAmount.setHint(\"مبلغ پرداختی\");\n\n } else {\n edtAmount.setHint(\"\");\n edtAmount.setGravity(Gravity.LEFT);\n\n\n if (s.length() > 0 && (s.length() % 4) == 0) {\n final char c = s.charAt(s.length() - 3);\n if (space == c) {\n s.delete(s.length() - 3, s.length() - 2);\n }\n }\n// && TextUtils.split(s.toString(), String.valueOf(space)).length <= 5\n\n if (s.length() > 0 && (s.length() % 4) == 0) {\n char c = s.charAt(s.length() - 3);\n // Only if its a digit where there should be a space we insert a space\n Log.e(\"iffffffffff\", \"afterTextChanged: \");\n if (Character.isDigit(c)) {\n s.insert(s.length() - 3, String.valueOf(space));\n }\n }\n }\n\n\n }\n });\n edtAmount.addTextChangedListener(new NumberTextWatcher(edtAmount));\n edtComment = (EditText) cardDialog.findViewById(R.id.comments);\n edtComment.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n edtComment.setGravity(Gravity.RIGHT);\n edtComment.setHint(\"\");\n } else {\n if (edtComment.getText().length() == 0) {\n edtComment.setGravity(Gravity.CENTER);\n edtComment.setHint(\"توضیحات\");\n }\n }\n }\n });\n edtComment.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (edtComment.getText().length() == 0) {\n edtComment.setGravity(Gravity.CENTER);\n edtComment.setHint(\"توضیحات\");\n } else {\n edtComment.setGravity(Gravity.RIGHT);\n edtComment.setHint(\"\");\n }\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n TextView contactDetail = (TextView) cardDialog.findViewById(R.id.texx);\n contactDetail.setText(\"پرداخت وجه به \" + contactName);\n Button btnCancel = (Button) cardDialog.findViewById(R.id.cancel);\n btnCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n cardDialog.dismiss();\n }\n });\n Button btnConfirm = (Button) cardDialog.findViewById(R.id.confirm);\n btnConfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (edtAmount.getText().toString().length() == 0) {\n Toast.makeText(ChatPageActivity.this, \"مبلغ وارد شده نمیتواند خالی باشد!\", Toast.LENGTH_SHORT).show();\n } else if (edtComment.getText().toString().length() == 0) {\n Toast.makeText(ChatPageActivity.this, \"توضیحات نمیتواند خالی باشد!\", Toast.LENGTH_SHORT).show();\n } else if (!validate_number(edtAmount.getText().toString().replace(\",\", \"\"))) {\n Toast.makeText(ChatPageActivity.this, \"مبلغ وارد شده صحیح نمیباشد!\", Toast.LENGTH_SHORT).show();\n } else {\n mAmount = edtAmount.getText().toString().replace(\",\", \"\");\n mComment = edtComment.getText().toString();\n hideKey(edtComment);\n payDialog = new Dialog(ChatPageActivity.this, R.style.PauseDialog);\n payDialog.setContentView(R.layout.group_card_layout);\n edtCardNumber = (EditText) payDialog.findViewById(R.id.payAmount);\n edtCardNumber.requestFocus();\n edtCardNumber.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edtCardNumber.setSelection(edtCardNumber.getText().length());\n }\n });\n\n edtCardPassword = (EditText) payDialog.findViewById(R.id.comments);\n edtCardPassword.setCursorVisible(false);\n edtCardPassword.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n edtCardPassword.setGravity(Gravity.LEFT);\n edtCardPassword.setHint(\"\");\n } else {\n if (edtCardPassword.getText().length() == 0) {\n edtCardPassword.setGravity(Gravity.CENTER);\n edtCardPassword.setHint(\"رمز دوم\");\n }\n }\n }\n });\n\n edtCardPassword.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (s.length() == 0) {\n edtCardPassword.setGravity(Gravity.CENTER);\n edtCardPassword.setHint(\"رمز دوم\");\n } else {\n edtCardPassword.setGravity(Gravity.LEFT);\n edtCardPassword.setHint(\"\");\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n edtCardNumber.addTextChangedListener(new TextWatcher() {\n private static final char space = '-';\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n if (s.length() == 0) {\n\n edtCardNumber.setGravity(Gravity.RIGHT);\n edtCardNumber.setHint(\"شماره کارت\");\n\n } else {\n edtCardNumber.setHint(\"\");\n edtCardNumber.setGravity(Gravity.LEFT);\n if (s.length() == 19) {\n edtCardPassword.requestFocus();\n }\n\n if (s.length() > 0 && (s.length() % 5) == 0) {\n final char c = s.charAt(s.length() - 1);\n if (space == c) {\n s.delete(s.length() - 1, s.length());\n }\n }\n if (s.length() > 0 && (s.length() % 5) == 0) {\n char c = s.charAt(s.length() - 1);\n // Only if its a digit where there should be a space we insert a space\n if (Character.isDigit(c) && TextUtils.split(s.toString(), String.valueOf(space)).length <= 3) {\n s.insert(s.length() - 1, String.valueOf(space));\n }\n }\n }\n }\n });\n Button btnCancel = (Button) payDialog.findViewById(R.id.cancel);\n btnCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n payDialog.dismiss();\n }\n });\n Button btnConfirm = (Button) payDialog.findViewById(R.id.confirm);\n btnConfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n new ChatPageActivity.sendPaymentRequest().execute(phone\n , edtCardNumber.getText().toString().replace(\"-\", \"\") + edtCardPassword.getText().toString()\n , mComment, mAmount);\n payDialog.dismiss();\n }\n });\n payDialog.show();\n cardDialog.dismiss();\n }\n }\n });\n cardDialog.show();\n\n }", "@Override\n\tpublic String sendOTP(String toNumber, String fromNumber, String abc) {\n\t\tredisRepo.getHashOps();\n\t\tString value = redisRepo.getValue(toNumber, toNumber);\n\t\t\n\t\tif (value != null)\n\t\t\treturn value;\n\t\tString otp = generateOtp();\n\t\tSystem.out.println(\"Inside the sendOtp method\");\n\t\t\n\t\tif (value == null) {\n\t\t\tredisRepo.putKey(toNumber, toNumber, otp);\n\t\t\tSystem.out.println(redisRepo.expireKey(toNumber));\n\t\t}\n\t\t\n\t\ttwService.sendMessage(toNumber,fromNumber, otp);\n\t\t\n\t\treturn otp;\n\t}", "@Override\n public void onClick(View view) {\n\n final Dialog dialog = new Dialog(LoginActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.forgot_password_mobile_email_dialog);\n final EditText etForgotPass = (EditText) dialog.findViewById(R.id.et_forgot_pass_email);\n Button btForgotPassSubmit = (Button) dialog.findViewById(R.id.bt_submit_for_forgot_pass);\n startMobileWithOnlyNumber92(etForgotPass);\n btForgotPassSubmit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String textFromEt = etForgotPass.getText().toString();\n if (textFromEt.startsWith(\"03\")){\n if (textFromEt.length()<10){\n Toast.makeText(LoginActivity.this, \"Please enter valid number\", Toast.LENGTH_SHORT).show();\n }\n else {\n if (textFromEt.startsWith(\"03\")){\n textFromEt = textFromEt.substring(1);\n textFromEt = \"+92\"+textFromEt;\n }\n dialog.dismiss();\n Log.e(\"TAG\", \"the use text is \" + textFromEt);\n forgotPassword(textFromEt);\n }\n\n }\n else if (!textFromEt.startsWith(\"03\")){\n if (!emailValidator(textFromEt)){\n Toast.makeText(LoginActivity.this, \"Invalid Email\", Toast.LENGTH_SHORT).show();\n }else {\n dialog.dismiss();\n Log.e(\"TAG\", \"the use text is \" + textFromEt);\n forgotPassword(textFromEt);\n }\n }\n }\n });\n dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimationTooDouen;\n dialog.show();\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t String number = tfNumber.getText();\n\t\t Float a = new Float(number);\n\t\t \n\t\t boolean allRight = new TestJDBC().amend_money(name, a);\n\t\t if(allRight) {\n\t\t \tnew Gui().customer_frame(name);\n\t\t \tJFrame f2 = Judge.showOK(number+\"yuan havd been added in your acount!\");\n\t\t \tf2.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t \tf2.setVisible(true);\n\t\t }else {\n\t\t \tnew Gui().customer_frame(name);\n\t\t \tJFrame f2 = Judge.showNO(\"Fail to add money,there must be something wrong!\");\n\t\t \tf2.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t \tf2.setVisible(true);\n\t\t }\n\t\t f1.dispose();\n\t\t \n\t\t\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_createCurrentAccPIN.getText().contains(\"xxx\")){\n jtxt_createCurrentAccPIN.setText(\"\");\n }\n }", "private void popupTimeoutTrap() {\n\n LayoutInflater inflater = (LayoutInflater)\n getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final View npView = inflater.inflate(R.layout.number_picker_dialog_layout, null);\n\n String[] values = new String[] {\"5\", \"10\", \"15\", \"20\", \"25\", \"30\"};\n NumberPicker np = ((NumberPicker) npView);\n np.setMinValue(0);\n np.setMaxValue(values.length - 1);\n np.setDisplayedValues(values);\n np.setWrapSelectorWheel(true);\n np.setValue(trap.getTimeout()/5 - 1);\n setNumberPickerTextColor(np, R.color.colorPrimaryDark);\n\n new AlertDialog.Builder(this)\n .setTitle(\"Timeout\")\n .setView(npView)\n .setPositiveButton(android.R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n\n MqttClient.getInstance().publish(Topic.TIMEOUT, trap.getId(),\n String.valueOf((((NumberPicker) npView).getValue() + 1)*5));\n }\n })\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.cancel();\n }\n })\n .show();\n }", "public String inputPhoneNumber() {\n String phoneNumber = editTextPhoneNumber.getText().toString();\n return phoneNumber;\n }", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "void txtClear () {\r\n\r\n\t\ttxtNo.setText (\"\");\r\n\t\ttxtName.setText (\"\");\r\n\t\ttxtDeposit.setText (\"\");\r\n\t\ttxtNo.requestFocus ();\r\n\r\n\t}", "public abstract void requestFocusToTernaryPhone();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(checkPhoneNum()){\r\n\t\t\t\t\tet_phone.setVisibility(View.GONE);\r\n\t\t\t\t\tly_two.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tbt_next.setVisibility(View.GONE);\r\n\t\t\t\t\tbt_login.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tsetTextSend();\r\n\t\t\t\t\tsendSmsNew(phoneNum);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(mContext, \"请输入正确的手机号\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}\r\n\t\t\t}", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tif( txt_showresult.getText().equals( \"0\" )){ \n\t\t\t\t\t\t\t\ttxt_showresult.setText(\"9\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if textfield show other value , add number after the value\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttxt_showresult.setText( txt_showresult.getText() + \"9\");\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, pwd);\n }", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_DEL) {\n\t\t\t\t\tif (cardnumberthirdTextBox.getText().length() == 0)\n\t\t\t\t\t\tcardnumbersecondTextBox.requestFocus();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (keyCode == KeyEvent.KEYCODE_DEL) {\n\t\t\t\t\tif (cardnumberfourthTextBox.getText().length() == 0)\n\t\t\t\t\t\tcardnumberthirdTextBox.requestFocus();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jpw_createCurrentAccPw.getPassword().equals(\"xxx\")){\n jpw_createCurrentAccPw.setText(\"\");\n }\n }", "@Override\n\tprotected void initControl() {\n\t\tsuper.initControl();\n mEdtPhoneNumber.requestFocus();\n Utils.setTextViewHtml(mTvNotifi1,getString(R.string.register_phone_text_notifi_1));\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.showSoftInput(mEdtPhoneNumber, InputMethodManager.SHOW_IMPLICIT);\n mEdtPhoneNumber.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) || (actionId == EditorInfo.IME_ACTION_DONE)) {\n registerPhone();\n }\n return false;\n }\n });\n mChkAccept.setOnCheckedChangeListener((buttonView, isChecked) -> {\n if(isChecked)\n Utils.setBackground(mBtnContinue,\n Utils.getDrawable(mContext, R.drawable.corner_red_login));\n else\n Utils.setBackground(mBtnContinue,\n Utils.getDrawable(mContext, R.drawable.corner_red_login_select));\n\n });\n\n\t}", "private void jTextFieldTelefoneActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void SetImportedNumbet(String pNumber) {\r\n if (editTextCounter == txtAddFnFBl.getId()) {\r\n txtAddFnFBl.setText(pNumber);\r\n btnAddFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtAddSFnFBl.getId()) {\r\n txtAddSFnFBl.setText(pNumber);\r\n btnAddSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtDeleteFnfBl.getId()) {\r\n txtDeleteFnfBl.setText(pNumber);\r\n btnDeleteFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfOldBl.getId()) {\r\n txtChangeFnfOldBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfNewBl.getId()) {\r\n txtChangeFnfNewBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfOldBl.getId()) {\r\n txtChangeSFnfOldBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfNewBl.getId()) {\r\n txtChangeSFnfNewBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n }\r\n }", "public void report_number_zone(){\n\n JLabel lbl_num = new JLabel(\"Num\\u00E9ro du Rapport :\");\n lbl_num.setBounds(40, 10, 129, 16);\n add(lbl_num);\n\n num_content = new JTextField();\n num_content.setHorizontalAlignment(SwingConstants.RIGHT);\n num_content.setEditable(false);\n num_content.setBounds(200, 7, 116, 22);\n num_content.setColumns(10);\n num_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[0]);\n add(num_content);\n\n\n\n\n }", "@Override\n public boolean onTouch (View v, MotionEvent event){\n switch (event.getAction()){\n case MotionEvent.ACTION_DOWN:\n\n //Pressed. Show password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);\n //new code\n mEditPassw.setTransformationMethod(null);\n break;\n case MotionEvent.ACTION_UP:\n\n //Released. Hide password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);\n //New code\n mEditPassw.setTransformationMethod(new PasswordTransformationMethod());\n break;\n }\n return true; //Not handles action_cancel, cause I on\n }" ]
[ "0.6467852", "0.635822", "0.6143727", "0.6023686", "0.6004031", "0.5980817", "0.5911559", "0.5875793", "0.5813841", "0.5802064", "0.56863403", "0.56815416", "0.56590205", "0.5654676", "0.56424284", "0.5631616", "0.55930036", "0.55774504", "0.5558573", "0.5557995", "0.5541527", "0.5529295", "0.55124426", "0.55114824", "0.5492115", "0.5489786", "0.5489348", "0.54841906", "0.54633474", "0.5458051", "0.54551136", "0.54547656", "0.5449995", "0.5439283", "0.5438054", "0.54307365", "0.5422631", "0.5420739", "0.54201835", "0.5416892", "0.5413642", "0.54126734", "0.5404898", "0.53899133", "0.53863436", "0.53814757", "0.5353605", "0.53535986", "0.5349191", "0.5342619", "0.5338087", "0.53379476", "0.53355676", "0.532889", "0.5321748", "0.5319649", "0.5314132", "0.5309151", "0.5288311", "0.52829736", "0.52826774", "0.52813864", "0.5258243", "0.5241197", "0.52404845", "0.524024", "0.52399915", "0.5239959", "0.52357286", "0.5234065", "0.5223742", "0.5216044", "0.52157", "0.5201467", "0.5200446", "0.5196311", "0.51942766", "0.5194102", "0.517207", "0.51710534", "0.51664454", "0.5163689", "0.5160653", "0.5149987", "0.5149128", "0.5137933", "0.51359963", "0.512931", "0.5122535", "0.511988", "0.51183826", "0.5117943", "0.51172876", "0.5115996", "0.51144505", "0.51131594", "0.5109963", "0.51082516", "0.510658", "0.5099538" ]
0.5464287
28
final List lores = meta.lore();
public ItemBuilder replaceLore(final Component from, final Component to) { if (lore==null || lore.isEmpty()) return this; for (int i=0; i<lore.size(); i++) { if (TCUtils.compare(lore.get(i), from)) { lore.set(i, to); } } //meta.lore(lores); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> lore()\n\t{\n\t\treturn lore;\n\t}", "public void listar() {\n\t\t\n\t}", "private List<String> getLore(Player p){\n ItemStack is;\n ItemMeta im;\n List<String> lore;\n if(p == null || (is = p.getInventory().getItemInMainHand()) == null || (im = is.getItemMeta()) == null || (is.getType() != Material.DIAMOND_PICKAXE) || (lore = im.getLore()) == null)\n return new ArrayList<>();\n return lore;\n }", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "public List<Robot> getRobots();", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "public List<Mobibus> darMobibus();", "public ListaResponse<G> listar();", "List<Text> info();", "Object getTolist();", "public List<Tailor> read();", "public List<ChatMessage> getLore() {\n return lore;\n }", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public List<Lote> listarLotes() {\n List<Lote> listaLotes;\n listaLotes = jpaLote.findLoteEntities();\n List<Lote> listaFiltrada = new ArrayList<Lote>();\n for (Lote lote : listaLotes) {\n if (lote.getEstado() == true){\n listaFiltrada.add(lote);\n }\n }\n return listaFiltrada;\n }", "public List<Integer> getAllLocos(LocoDataFois unlocos) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tSystem.out.println(\"getuncleasedlocos\");\n\t\t\tList<Integer> locos= new ArrayList<>();\n\t\t\tString shedid = unlocos.getLoco_Owningshed();\n//\t\t\tString traccode= unlocos.getLoco_Tractioncode();\n\t\t\tSystem.out.println(\"service\"+shedid);\n\t\t\tobj_uncleansedrepo.getLocono(shedid).forEach(locos::add);\n\t\t\tif(locos.isEmpty()) {\n\t\t\treturn locos ;\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"data\" +locos);\n\t\t\treturn locos;\n\t\t\n\t\n\t}", "public static ArrayList<String> getLlistaNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"llista\");\n }", "abstract List<T> getReuslt();", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "public List<Loan> getLoan();", "public abstract List<String> getContent( );", "public void harvest(List<IRI> iris);", "public void setLore(List<ChatMessage> lore) {\n this.lore = lore;\n }", "public String[] getletra(){\n return letra;}", "public List<SpotLightOpcion> obtenerSpoltLight(String clave) throws Exception;", "@Override\n\tpublic ArrayList<MODEL.Medicamento> getlista() {\n\t\treturn null;\n\t}", "List<Alimento> getAlimentos();", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista(String rol) {\n\t\treturn tramite.lista(rol);\r\n\t}", "List<String> getArtists();", "public List<LocoDataFois> getdata(LocoDataFois unlocos) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tSystem.out.println(\"getuncleasedlocos\");\n\t\t\tint locono= unlocos.getLoco_No();\n\t\t\tList<LocoDataFois> locos= new ArrayList<>();\n\t\t\tobj_uncleansedrepo.getallLocodata(locono)\n\t\t\t.forEach(locos::add);\t\t\n\t\t\tif(locos.isEmpty()) {\n\t\t\t\treturn locos ;\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.println(\"data\" +locos);\n\t\t\t\treturn locos;\n\t\t\t\n\t\t\n\t\t}", "public List getList();", "public interface IRKatalog {\n public List<Modulkatalog> getAlleKataloge();\n}", "public List<Blog> list();", "public List getInfos() {\n return infos;\n }", "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "public abstract List<ClueItem> getClues();", "public List<Arresto> getArresto(String dni);", "public void ouvrirListe(){\n\t\n}", "public List<New> list();", "public abstract List<UIReader> getReaderList();", "public List<Article> getList() {\n return list;\n }", "@Override\n\tpublic List<PageData> getLou(PageData pd) throws Exception {\n\t\treturn (List<PageData>) dao.findForList(\"SummaryStatMapper.getLou\", pd);\n\t}", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public ItemBuilder setLores(List<String> lores) {\r\n\t\tthis.lores = lores;\r\n\t\treturn this;\r\n\t}", "public interface MetaExtractor {\n List<Meta> extract(String url);\n}", "@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}", "public List<VueMetadataElement> getMetadata() { return dataList; }", "List<Navigation> getNavigationList();", "java.util.List<java.lang.String> getContentsList();", "@Override\n\tpublic List<StudyVO> list(Criteria cri) {\n \n\t\n\t\t \n\tList<StudyVO> list =mapper.list(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.list(cri));\n\t\n\tlogger.info(\"service에서 list값은\"+list);\n\tSystem.out.println(\"service에서 list값은\"+list);\n\t\n\treturn list;\n\t\n\t\n\t}", "public ExploreList getExploreList() {\n return this.exploreList;\n }", "public void loadAllLists(){\n }", "private ArrayList<Slime> getSlimes(){\n\t\treturn slimes;\n\t}", "List<String> data();", "public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }", "int getMeta();", "public String getLists(String name){\n return \"\";\n }", "@Override\n public List getUniverseList() {\n return null;\n }", "stars.StarListDocument.StarList getStarList();", "public final synchronized String list()\r\n { return a_info(true); }", "public List<String> getLinks();", "List<Videogioco> retriveByGenere(String genere);", "public List<Info> getInfos() {\n\treturn mInfos;\n }", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "public LazyDataModel<MotivoLlamadoAtencion> getListaMotivoLlamadoAtencion()\r\n/* 124: */ {\r\n/* 125:131 */ return this.listaMotivoLlamadoAtencion;\r\n/* 126: */ }", "public List<Song> getsong() {\n\t\treturn null;\r\n\t}", "java.util.List<online_info>\n getInfoList();", "private String getOeuvres(HttpServletRequest request) throws Exception {\n List<Oeuvre> lstOeuvresE;\n try {\n lstOeuvresE = oeuvreF.getOeuvres();\n request.setAttribute(\"lstOeuvresR\", lstOeuvresE);\n return (\"/catalogue.jsp\");\n } catch (Exception e) {\n throw e;\n }\n }", "public static ArrayList<Metadata> getMetadata() {\n\t\tmetadata.add(new Metadata(\"id\", \"Numero identificativo del lavoro\", \"long\"));\n\t\tmetadata.add(new Metadata(\"role\", \"Ruolo lavorativo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"cname\", \"Nome dell'azienda\", \"String\"));\n\t\tmetadata.add(new Metadata(\"etype\", \"Tipo di impiego\", \"String\"));\n\t\tmetadata.add(new Metadata(\"location\", \"Luogo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"remote\", \"Lavoro a distanza\", \"Bool\"));\n\t\t\n\n\t\treturn metadata;\n\t}", "public List<Rectangulo> getLista() {\n return (lista);\n }", "List<DocumentationItem> documentation();", "@Override\n\tpublic List<Nature> listNaturess() {\n\t\treturn natureRepository.findAll();\n\t}", "@RequestMapping(value = \"/lotes/lotesDisponiveis\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Lote> getAllLotesDisponiveis() {\n log.debug(\"REST retorna todos os lotes com situacao disponivel\");\n SituacaoLote situacao = situacaoLote.findOne(1L);\n return loteService.findBySituacaoLoteIs(situacao);\n }", "public UserList list();", "private String getAgentLista() {\n return agentLista;\n }", "public interface LifeItem{\n List getTitle();\n List getContent();\n}", "ArrayList<RecipeObject> getRecipes();", "public List<TwitterDataExtract> GetData();", "private void loadLists() {\n }", "public List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);", "public List<Tag> getTagList();", "@Override\n public String getName() {\n return \"list\";\n }", "public String listAllLiteratures() {\n String literatureList = \"\";\n \n for(Literature literature:literatureRegister) {\n literatureList += literature.getTitle() + \"\\n\";\n }\n return literatureList;\n }", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public abstract List<Object> getAll();", "protected abstract String listLearnValues();", "List<ParqueaderoEntidad> listar();", "public List<Arbeitsgang> getArbeitsgang(Arbeitsgang ag);", "public ArrayList<DataRestaurante> listarRestaurantes();", "public List getTrabajadores();", "public String infosPourList(){\n return nom+ \" , \" +promo.getNom();\n }", "public ArrayList<ListArt> PrintWikiArticles()\r\n\t{\r\n\t\t//----- Declare variables----------//\r\n\t\tfinal String Art = \"Article\";\r\n\t\tint NumberCross = 0;\r\n\t\tfinal Label recordClassLabel = DynamicLabel.label(Art); \r\n\t\tListArt aux = null;\r\n\t\t//---------------------------------//\r\n\r\n\t\ttry (Transaction tx = graphDb.beginTx()) {\r\n\t\t\tResourceIterator<Node> it = graphDb.findNodes(recordClassLabel, \"wikiid\", \"1395966\"); // Node representing a component\r\n\t\t\tNode next = null; \r\n\t\t\twhile( it.hasNext() ) { \r\n\t\t\t\tnext = it.next(); \r\n\t\t\t\tString lang = (String)next.getProperty(\"lang\");\r\n\t\t\t\tif ( lang.equals(\"en\") ) // language of the node\r\n\t\t\t\t\tbreak; \r\n\t\t\t} \r\n\r\n\t\t\tvisit(graphDb, next, /*visited,*/ NumberCross, aux, ListNode);\r\n\t\t\ttx.success(); \r\n\r\n\t\t}\r\n\t\treturn ListNode;\r\n\r\n\t}", "List<TipoHuella> listarTipoHuellas();", "public List<Lingua> creaListaLingue() {\n \n List<Lingua> list = linguaFacade.getLingue();\n return list;\n }", "private void getLactanciasMaternas() {\n mLactanciasMaternas = estudioAdapter.getListaLactanciaMaternasSinEnviar();\n //ca.close();\n }", "public List getList() throws HibException;", "public List<ItemLivro> getListaLivros() {\n return itemLivroDAOBD.listar();\n }" ]
[ "0.66228616", "0.6618541", "0.633317", "0.6328021", "0.6328021", "0.6328021", "0.6328021", "0.6328021", "0.6102741", "0.6004379", "0.5970513", "0.59122026", "0.58712095", "0.5868372", "0.5839099", "0.58287203", "0.5822717", "0.5814618", "0.5813329", "0.5813226", "0.5799135", "0.57687455", "0.5762323", "0.5746996", "0.57426625", "0.57054096", "0.5699482", "0.5694924", "0.5689656", "0.5688871", "0.56884146", "0.5665471", "0.5639786", "0.563734", "0.5635046", "0.56311756", "0.5630951", "0.5624621", "0.5624621", "0.5623902", "0.56137234", "0.55976844", "0.55972093", "0.5595045", "0.55836153", "0.55415094", "0.5540772", "0.55339134", "0.5530547", "0.5513807", "0.54983854", "0.549728", "0.548813", "0.54835093", "0.54828954", "0.5478905", "0.5472026", "0.54681695", "0.54656166", "0.546513", "0.5464843", "0.5464387", "0.54573286", "0.54570574", "0.54518986", "0.54509723", "0.54474866", "0.5445194", "0.5440507", "0.54390246", "0.5438413", "0.5431722", "0.5431287", "0.5427487", "0.54191804", "0.5417518", "0.54174453", "0.5411402", "0.54093766", "0.5406735", "0.5392103", "0.539105", "0.53876054", "0.5385495", "0.5385298", "0.5384487", "0.53823537", "0.5377776", "0.5375223", "0.53737694", "0.5371531", "0.5370856", "0.5365919", "0.5363061", "0.53615785", "0.5360666", "0.5359475", "0.5358477", "0.53575623", "0.5348951", "0.5345973" ]
0.0
-1
makes one move in the top direction, i.e., decrements positionX by 1
public boolean moveUp() throws EatableObjectOnPlaceException { if (!treeAbove() && !mouseAbove()) { if (!onTopBorder(positionY)) { positionY = positionY - 1; eatPerformingStep(); return true; } else { return moveDown(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveUp() {\n locY = locY + 1;\n }", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "public void moveUp()\n {\n if (yPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative Y because we are moving UP!\n movementY = -0.5;\n movementX = 0;\n }", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "public void moveDown() {\n locY = locY - 1;\n }", "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "void moveUp();", "void moveUp();", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void PutTopUp()\n\t{\n\t\tif(!isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top up\");\n\t\t\tisStateTop=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already up\");\n\t\t}\n\t}", "public void PutTopDown()\n\t{\n\t\tif(isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top down\");\n\t\t\tisStateTop=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already down\");\n\t\t}\n\t}", "public void moveUp() {\n if (ycoor >= movingSpeed) {\n ycoor = ycoor - movingSpeed;\n }\n }", "@Override\n public boolean move() {\n return this.decrementX();\n }", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void move(){\n\t\t\n\t}", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveDown() {\n\t\tposY -= speed;\n\t}", "public void moveUp(){\n if(currentText != null) {\n //If this is not the very first text\n if (lineIndex > 0) {\n //Move up\n lineIndex--;\n currentText = texts.get(lineIndex);\n\n //Try to use the saved character index as the character index\n if (savedCharacterIndex != -1) {\n characterIndex = savedCharacterIndex;\n }\n\n //Ensure that character index is within the bounds of the text\n if (characterIndex > currentText.getCharacterEdges().length - 1) {\n //Save the character index\n if (characterIndex > savedCharacterIndex) {\n savedCharacterIndex = characterIndex;\n }\n characterIndex = currentText.getCharacterEdges().length - 1;\n }\n\n //Update the position\n updatePosition();\n }\n //If this is the first line then put the cursor at the start of the line instead\n else {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n characterIndex = 0;\n updateXPosition(true);\n }\n }\n }", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "public void resetMove() {\n pointer = 0;\n }", "public void move()\n {\n if(!pause)\n {\n if(up)\n { \n list.remove(0); \n head = new Location(head.getA(),head.getB()-15); \n list.add(head); \n }\n else if(down)\n {\n list.remove(0); \n head = new Location(head.getA(),head.getB()+15); \n list.add(head); \n }\n else if(left)\n {\n list.remove(0); \n head = new Location(head.getA()-15,head.getB()); \n list.add(head);\n }\n else if(right)\n {\n list.remove(0); \n head = new Location(head.getA()+15,head.getB()); \n list.add(head); \n }\n \n repaint();\n }\n }", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "public void updatePositionAgain(boolean moveLeft) {\r\n // move horizontally to one direction\r\n if (moveLeft) {\r\n posx--;\r\n } else {\r\n posx++;\r\n }\r\n }", "public void move() {\n\r\n\t}", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "public void moveUp() {\n Coordinate upCoord = new Coordinate(getX(), getY() - 1);\n handleMove(upCoord, InteractionHandler.UP);\n }", "private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }", "public void moveDown() {\n\t\t\n\t}", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void move();", "public void move();", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "public void moveDown()\n\t{\n\t\ty = Math.min(y + 1, main.HEIGHT-1);\n\t\tsprite.setPosition(x*sprite.getWidth(),y*sprite.getHeight());\n\t}", "public void move(float x, float y) {\n\t\tthis.position.set(this.position.x + x, this.position.y + y, 0);\n\t}", "public void moveDown() {\n\t\tsetPosY(getPosY() + steps);\n\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public void moveLeft() {\n\t\t\n\t}", "void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }", "void moveEast() {\n xpos = xpos + xspeed;\n if (xpos > width){\n xpos = 0; // 30\n }\n }", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "public void undoLastMove()\n {\n if (inProgress() && stackTiles.size() > 1)\n {\n // TAKE THE TOP 2 TILES\n MahjongSolitaireTile topTile = stackTiles.remove(stackTiles.size()-1);\n MahjongSolitaireTile nextToTopTile = stackTiles.remove(stackTiles.size() - 1);\n \n // SET THEIR DESTINATIONS\n float boundaryLeft = miniGame.getBoundaryLeft();\n float boundaryTop = miniGame.getBoundaryTop();\n \n // FIRST TILE 1\n int col = topTile.getGridColumn();\n int row = topTile.getGridRow();\n int z = tileGrid[col][row].size();\n float targetX = this.calculateTileXInGrid(col, z);\n float targetY = this.calculateTileYInGrid(row, z);\n topTile.setTarget(targetX, targetY);\n movingTiles.add(topTile);\n topTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(topTile);\n \n // AND THEN TILE 2\n col = nextToTopTile.getGridColumn();\n row = nextToTopTile.getGridRow();\n z = tileGrid[col][row].size();\n targetX = this.calculateTileXInGrid(col, z);\n targetY = this.calculateTileYInGrid(row, z);\n nextToTopTile.setTarget(targetX, targetY);\n movingTiles.add(nextToTopTile);\n nextToTopTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(nextToTopTile);\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.UNDO_AUDIO_CUE.toString(), false); \n }\n }", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "public void moveUp()\n\t{\n\t\trow++;\n\t}", "public void Move()\n {\n this.x += this.speed;\n\n //Cutoff the position\n if (this.x <= 2)\n {\n this.x = 2;\n }\n else if (this.x >= GameConstants.SCREEN_WIDTH - 2 * this.imageWidth)\n {\n this.x = GameConstants.SCREEN_WIDTH - 2 * this.imageWidth;\n }\n }", "void moveDown();", "void moveDown();", "void moveLeft();", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "private void moveTo(int position) {\n if (position < gapLeft) {\n left(position);\n }\n else {\n right(position);\n }\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveUp() {\n if(!move.moveUp()) {\n \t if(physinteractor(getX(),getY()-1)) {\n \t\t move.moveUp();\n \t\t nonphysinteractor(getX(),getY());\n \t\t updatemove();\n \t }\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "void move();", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\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 }", "void moveForward();", "void move() {\n x -= speed;\n }", "public void move(long timePassed) {\n\t\tif (x < -100) {\r\n\t\t\tthis.destroy();\r\n\t\t}\r\n\r\n\t\tsuper.move(timePassed);\r\n\t}", "public void setTop(int x) {\r\n topSide = x;\r\n }", "@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}", "public void setTop() {\n reset(State.TOP);\n }", "@Override\n\tpublic void move(int xPos, int yPos) {\n\t}", "public void moveUp(float distance)\r\n {\r\n position.y -= distance;\r\n }", "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }", "public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "void remove(final float downX, final float downY, final float upX,\n final float upY) {\n\n final float min = (PlatformUtils.getScreenWidth(getContext())) / 5;\n ValueAnimator translateLeft = ValueAnimator.ofInt(0,\n (int) (PlatformUtils.getScreenWidth(getContext())));\n translateLeft.setInterpolator(new AccelerateInterpolator());\n translateLeft\n .addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n int val = (Integer) valueAnimator.getAnimatedValue();\n if ((Math.abs(upX - downX) < min)\n && (Math.abs(upY - downY) < min)) {\n // 返回原来的位置\n if (upX > downX) {\n if (upY > downY) {\n move((upX - downX - val) > 0 ? (upX - downX - val)\n : 0, (upY - downY - val) > 0 ? (upY\n - downY - val) : 0);\n } else {\n move((upX - downX - val) > 0 ? (upX - downX - val)\n : 0, (upY - downY + val) < 0 ? (upY\n - downY + val) : 0);\n }\n } else {\n if (upY > downY) {\n move((upX - downX + val) < 0 ? (upX - downX + val)\n : 0, (upY - downY - val) > 0 ? (upY\n - downY - val) : 0);\n } else {\n move((upX - downX + val) < 0 ? (upX - downX + val)\n : 0, (upY - downY + val) < 0 ? (upY\n - downY + val) : 0);\n }\n }\n } else if (upX > downX) {\n move((upX - downX + val), upY - downY);\n } else {\n move((upX - downX - val), upY - downY);\n }\n }\n });\n translateLeft.addListener(new Animator.AnimatorListener() {\n\n @Override\n public void onAnimationStart(Animator animation) {\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n // Log.d(TAG, \"remove end\");\n if ((Math.abs(upX - downX) < min)\n && (Math.abs(upY - downY) < min)) {\n resetXY();\n } else {\n resetXY();\n nextPage();\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n }\n });\n if ((Math.abs(upX - downX) < min) && (Math.abs(upY - downY) < min)) {\n translateLeft.setDuration(500);\n } else {\n translateLeft.setDuration(200);\n }\n translateLeft.start();\n }", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "public void resetMoveCtr() {\n\t\t\n\t\t moveCtr=0;\n\t}", "public void stopMoving()\n {\n mouthPosition = 0;\n }", "public void moveUp() {\n\n if (this.row - 1 < 16) {\n return;\n }\n this.row -= 1;\n\n playerImage.translate(0, -Cell.CELLSIZE);\n playerImage.draw();\n }" ]
[ "0.71365935", "0.68828195", "0.6831795", "0.67900777", "0.67735165", "0.6718899", "0.66770226", "0.66282856", "0.6598611", "0.6589332", "0.6589249", "0.6588883", "0.6588883", "0.6564813", "0.65577954", "0.6552136", "0.65410197", "0.65335935", "0.65321356", "0.64920723", "0.648876", "0.6474266", "0.646854", "0.6455526", "0.6444469", "0.64415485", "0.6387964", "0.6377812", "0.6356578", "0.6353221", "0.6342987", "0.63316053", "0.6323409", "0.6312415", "0.6311602", "0.62850684", "0.6272501", "0.626026", "0.626026", "0.6252277", "0.62476593", "0.6246624", "0.62330025", "0.62313396", "0.6226773", "0.6216563", "0.62158954", "0.6203014", "0.62018627", "0.6197196", "0.6195669", "0.619428", "0.6192605", "0.61906993", "0.61906993", "0.61819243", "0.6181735", "0.61816746", "0.6166644", "0.61654294", "0.61652464", "0.6154542", "0.61390966", "0.61389726", "0.6137395", "0.6137012", "0.61336917", "0.6133301", "0.6132537", "0.61257446", "0.61228853", "0.6118558", "0.61166716", "0.61166716", "0.6112418", "0.6110152", "0.60934305", "0.60886973", "0.6088082", "0.6073149", "0.6060589", "0.605872", "0.6054983", "0.60438067", "0.60410225", "0.603244", "0.60252", "0.6021274", "0.6019944", "0.6018342", "0.6008257", "0.5994752", "0.59909534", "0.5990583", "0.59904623", "0.59850514", "0.59849906", "0.5984541", "0.5980833", "0.597695", "0.59759927" ]
0.0
-1
eat an obstacle (leaf or mushroom) being placed on current position; nothing to do if greedy ist set to false (the user is repsonsible himself for eating actions)
private void eatPerformingStep() throws EatableObjectOnPlaceException { if(greedy) { AbstractObject object = eat(); if (object != null) { throw new EatableObjectOnPlaceException(object); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "private static void decisionWhenAttacking() {\n\t\tif (isNewAttackState()) {\n\t\t\tchangeStateTo(STATE_ATTACK_PENDING);\n\n\t\t\t// We will try to define place for our army where to attack. It\n\t\t\t// probably will be center around a crucial building like Command\n\t\t\t// Center. But what we really need is the point where to go, not the\n\t\t\t// unit. As long as the point is defined we can attack the enemy.\n\n\t\t\t// If we don't have defined point where to attack it means we\n\t\t\t// haven't yet decided where to go. So it's the war's very start.\n\t\t\t// Define this assault point now. It would be reasonable to relate\n\t\t\t// it to a particular unit.\n\t\t\t// if (!isPointWhereToAttackDefined()) {\n\t\t\tStrategyManager.defineInitialAttackTarget();\n\t\t\t// }\n\t\t}\n\n\t\t// Attack is pending, it's quite \"regular\" situation.\n\t\tif (isGlobalAttackInProgress()) {\n\n\t\t\t// Now we surely have defined our point where to attack, but it can\n\t\t\t// be so, that the unit which was the target has been destroyed\n\t\t\t// (e.g. just a second ago), so we're standing in the middle of\n\t\t\t// wasteland.\n\t\t\t// In this case define next target.\n\t\t\t// if (!isSomethingToAttackDefined()) {\n\t\t\tdefineNextTarget();\n\t\t\t// }\n\n\t\t\t// Check again if continue attack or to retreat.\n\t\t\tboolean shouldAttack = decideIfWeAreReadyToAttack();\n\t\t\tif (!shouldAttack) {\n\t\t\t\tretreatsCounter++;\n\t\t\t\tchangeStateTo(STATE_RETREAT);\n\t\t\t}\n\t\t}\n\n\t\t// If we should retreat... fly you fools!\n\t\tif (isRetreatNecessary()) {\n\t\t\tretreat();\n\t\t}\n\t}", "public void moveTowards(){\n \n \n \n if(!exploded){\n \n \n move(speed);\n \n if(isTouching(Enemy.class)){\n move(explosionRadius); \n \n inRange = (ArrayList) getObjectsInRange(explosionRadius + 25, Enemy.class);\n for(Enemy e : inRange){\n e.hit(damage);\n }\n \n //explode\n exploded = true;\n \n image = new GreenfootImage(\"50x50 aoe.png\");\n image.scale(explosionRadius*2, explosionRadius*2);\n setImage(image);\n //getWorld().removeObject(this);\n }\n else if (isAtEdge())\n {\n getWorld().removeObject(this);\n }\n else if ( radius < distance) {\n getWorld().removeObject(this); \n }\n }\n else{\n setImage(image);\n image.setTransparency(image.getTransparency() - 5);\n if(image.getTransparency() <= 0) getWorld().removeObject(this);\n }\n }", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "private Pair decideMovement(Entity e) {\n Pair pos = gameMap.getCoordinatesFor(e.getId());\n Movable movable = mm.get(e);\n Array<Pair> reachableCells = gameMap.pathFinder.getReachableCells(pos.x, pos.y, movable);\n ImmutableBag<Integer> enemies = groupAI.getEnemies(e);\n if (enemies.size() == 0) return reachableCells.get(MathUtils.random(reachableCells.size-1));\n\n // The best enemy you are considering chasing and its score\n int targetEnemy = -1;\n float bestScore = 0f;\n\n // The current enemy you are checking out and its score\n int id;\n float score;\n\n // How far away is the enemy? How many enemies are within a small radius of it?\n int distance, count;\n\n for (int i = 0; i < enemies.size(); i++) {\n count = 1;\n Pair target = gameMap.getCoordinatesFor(enemies.get(i));\n distance = MapTools.distance(pos.x, pos.y, target.x, target.y);\n for (Pair cell : MapTools.getNeighbors(target.x, target.y, 6)) {\n id = gameMap.getEntityAt(cell.x, cell.y);\n if (!enemies.contains(id)) continue;\n count++;\n }\n\n score = groupAI.entityScores.get(enemies.get(i)) * count / (1 + distance / 5);\n if (score > bestScore) {\n bestScore = score;\n targetEnemy = enemies.get(i);\n }\n }\n\n if (targetEnemy > -1) {\n Pair target = gameMap.getCoordinatesFor(targetEnemy);\n Path path = gameMap.pathFinder.findPath(pos.x, pos.y, target.x, target.y, movable, true);\n for (int i = 0; i < path.getLength(); i++) {\n Step step = path.getStep(i);\n Pair p = new Pair(step.getX(),step.getY());\n if (reachableCells.contains(p, false)) return p;\n }\n }\n return reachableCells.get(MathUtils.random(reachableCells.size-1));\n }", "public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\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}", "public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }", "public void attack() {\n if (st instanceof RedAlienState.Attacking) {\n \tRedAlienState.Attacking att = (RedAlienState.Attacking)st;\n \ttry{\n \t\tDelta d = att.path.remove();\n \t\tthis.x += d.xd;\n \t\tthis.y += d.yd;\n \t\tif(Math.random() > .99){\n \t\t\tthis.fire();\n \t\t}\n \t}catch(NoSuchElementException e){\n \t\tthis.x = this.column;\n \t\tthis.y = this.row;\n \t\tst = new RedAlienState.Normal();\n \t\tthis.isAttacking = false;\n \t}\n }\n }", "private void enemyMove() {\n\n\t\tboolean goAgain = false;\n\n\t\tint x = (int) (Math.random() * 10);\n\t\tint y = (int) (Math.random() * 10);\n\n\t\t// Make sure the enemy hits in a checkerboard pattern.\n\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\tif (y % 2 == 0) {\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t\t}\n\t\t} else { // if x is odd, y should be even\n\t\t\tif (y % 2 == 1)\n\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\ty++;\n\t\t\t\telse\n\t\t\t\t\ty--;\n\t\t}\n\n\t\tif (enemyLastShotHit && getDifficulty() > 0) { // /if last shot was a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hit, enemy\n\t\t\t// will try to\n\t\t\t// check around it only run if difficulty is\n\t\t\t// normal or above\n\t\t\tx = enemyLastHitX;\n\t\t\ty = enemyLastHitY;\n\n\t\t\tif (getDifficulty() != 2) {\n\n\t\t\t\tif (conflictX == 4) {\n\t\t\t\t\tconflictX = 0;\n\t\t\t\t} else if (conflictY == 4) {\n\t\t\t\t\tconflictY = 0;\n\t\t\t\t\t// System.out.println(\"conflict has been reset \");\n\t\t\t\t}\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\t// System.out.println(\"checking down\");\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\n\t\t\t\t\tif (checkDirection == 0) // checks in each direction\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse if (checkDirection == 1)\n\t\t\t\t\t\tx--;\n\t\t\t\t\telse if (checkDirection == 2)\n\t\t\t\t\t\ty++;\n\t\t\t\t\telse if (checkDirection == 3) {\n\t\t\t\t\t\ty--;\n\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (x < 0) // making sure coordinates stay within bounds\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\telse if (x > 9)\n\t\t\t\t\t\tx = 9;\n\t\t\t\t\tif (y < 0)\n\t\t\t\t\t\ty = 0;\n\t\t\t\t\telse if (y > 9)\n\t\t\t\t\t\ty = 9;\n\t\t\t\t}\n\t\t\t} // medium diff\n\n\t\t\telse if (getDifficulty() == 2) {// hard difficulty\n\t\t\t\t// gives enemy unfair advantage\n\n\t\t\t\tif (conflictX == 4)\n\t\t\t\t\tconflictX = 0;\n\t\t\t\tif (conflictY == 4)\n\t\t\t\t\tconflictY = 0;\n\n\t\t\t\tif (conflictX != 0) {\n\t\t\t\t\tif (conflictX == 1)\n\t\t\t\t\t\tx++;\n\t\t\t\t\telse {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\tconflictX = 4;\n\t\t\t\t} else if (conflictY == 1) {\n\t\t\t\t\tconflictY = 4;\n\t\t\t\t\ty++;\n\t\t\t\t}\n\n\t\t\t\tif (x + 1 < 10 && x - 1 >= 0) {// branch for multiple hits\n\t\t\t\t\tif (egrid[x + 1][y] == 1 && egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tif (x + 2 < 10) {\n\t\t\t\t\t\t\tif (egrid[x + 2][y] == 1) {\n\t\t\t\t\t\t\t\tconflictX = 1;\n\t\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconflictX = 2;\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (y + 1 < 10 && y - 1 >= 0) {// branch for multiple vertical\n\t\t\t\t\t\t\t\t\t\t\t\t// hits\n\t\t\t\t\tif (egrid[x][y + 1] == 1 && egrid[x][y - 1] == 1) {\n\t\t\t\t\t\t// System.out.println(\"conflict at \"+ex+\",\"+ey);\n\t\t\t\t\t\tenemyLastHitX = x;\n\t\t\t\t\t\tenemyLastHitY = y;\n\t\t\t\t\t\tconflictY = 1;\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\t\tif (y + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x][y + 1] == 1)// if y+1 is a hit and it is\n\t\t\t\t\t\t\t\t\t\t\t\t\t// within bounds, it will go\n\t\t\t\t\t\t\t\t\t\t\t\t\t// there\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (y - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x][y - 1] == 1)\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t\tif (x + 1 < 10) {\n\t\t\t\t\t\tif (egrid[x + 1][y] == 1)\n\t\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\tif (x - 1 >= 0) {\n\t\t\t\t\t\tif (egrid[x - 1][y] == 1) {\n\t\t\t\t\t\t\tx--;\n\t\t\t\t\t\t\tenemyLastShotHit = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} // hard diff\n\t\t\tcheckDirection++;\n\t\t} // lasthit\n\n\t\tint tryCount = 0;\n\t\twhile (egrid[x][y] == 3) { // makes sure enemy doesn't hit same spot\n\t\t\t\t\t\t\t\t\t// twice\n\t\t\tx = (int) (Math.random() * 10);\n\t\t\ty = (int) (Math.random() * 10);\n\t\t\tif (tryCount < 20 && getDifficulty() > 0) {\n\t\t\t\tif (x % 2 == 0) { // if x is even, y should be odd\n\t\t\t\t\tif (y % 2 == 0) { // for checkerboard pattern\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t} else { // if x is odd, y should be even\n\t\t\t\t\tif (y % 2 == 1)\n\t\t\t\t\t\tif (y + 1 < 10)\n\t\t\t\t\t\t\ty++;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty--;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttryCount++;\n\t\t}\n\n\t\tif (egrid[x][y] == 1) { // hit branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilehit.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a hit\");\n\t\t\tenemyLastShotHit = true; // starts ai\n\t\t\tcheckDirection = 0;\n\t\t\tif (conflictX == 0 && conflictY == 0) {\n\t\t\t\tenemyLastHitX = x; // stores x and y values\n\t\t\t\tenemyLastHitY = y;\n\t\t\t}\n\t\t\tehits--; // keeps score\n\t\t}\n\n\t\telse if (egrid[x][y] == 2) { // poweup branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilepower.jpg\"));\n\t\t\tstatus.setText(\" Enemy got a PowerUp\");\n\t\t\tgoAgain = true;\n\t\t}\n\n\t\telse\n\t\t\t// miss branch\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tilemiss.jpg\"));\n\n\t\tegrid[x][y] = 3;\n\n\t\tcheckEnemyWin();\n\n\t\tif (goAgain)\n\t\t\tenemyMove();\n\n\t}", "public void eat(){\n if (threshold<=0 && !lapar) revLapar();\n if (lapar && Common.gamemap.get(getX()).get(getY()).showSymbol()=='@'){\n Common.gamemap.get(getX()).get(getY()).ungrowGrass();\n revLapar();\n threshold = 12;\n }\n }", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "@Override\n public void action(){\n\n Position move=this.findWeed();\n if(move.getX()==0 && move.getY()==0){\n super.action();\n }\n else{\n System.out.println(this.getClass().getSimpleName());\n int actualX = this.position.getX();\n int actualY = this.position.getY();\n int xAction = actualX+move.getX();\n int yAction = actualY+move.getY();\n Organism tmpOrganism = this.WORLD.getOrganism(xAction, yAction);\n if(tmpOrganism==null){\n this.move(move.getX(), move.getY());\n this.WORLD.erasePosition(actualX,actualY);\n }\n else{\n tmpOrganism.collision(this, actualX, actualY, move);\n }\n }\n }", "private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void explore() {\n\t\t\tif(getSpeed() < CAR_MAX_SPEED){ // Need speed to turn and progress toward the exit\n\t\t\t\tapplyForwardAcceleration(); // Tough luck if there's a wall in the way\n\t\t\t}\n\t\t\tif (isFollowingWall) {\n\t\t\t\t// if already been to this tile, stop following the wall\n\t\t\t\tif (travelled.contains(new Coordinate(getPosition()))) {\n\t\t\t\t\tisFollowingWall = false;\n\t\t\t\t} else {\n\t\t\t\t\tif(!checkFollowingWall(getOrientation(), map)) {\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If wall on left and wall straight ahead, turn right\n\t\t\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\t\t\tif (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tapplyReverseAcceleration();\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} else {\n\t\t\t\t// Start wall-following (with wall on left) as soon as we see a wall straight ahead\n\t\t\t\tif(checkWallAhead(getOrientation(), map)) {\n\t\t\t\t\tif (!checkWallRight(getOrientation(), map) && !checkWallLeft(getOrientation(), map)) {\n\t\t\t\t\t\t// implementing some randomness so doesn't get stuck in loop\n\t\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\t\tint n = rand.nextInt(2);\n\t\t\t\t\t\tif (n==0) {\n\t\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!checkWallRight(getOrientation(), map))\t{\n\t\t\t\t\t\tturnRight();\n\t\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t\t} else if (!checkWallLeft(getOrientation(), map)){\n\t\t\t\t\t\tturnLeft();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapplyReverseAcceleration();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void decision(Entity[][] map, int y, int x){ \r\n if (!getTired()){\r\n // check if surrounding area is another animal\r\n if ((x > 0) && (y > 0) && (map[y-1][x-1] instanceof Animal )){\r\n destroyArea(map, x, y);\r\n }else if ((x < map.length-1) && (y < map.length -1) && (map[y+1][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if ((y > 0) && map[y-1][x] instanceof Animal){\r\n destroyArea(map, x, y);\r\n }else if ((x < map.length -1) && (y > 0) && (map[y-1][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if(( x < map.length -1) && (map[y][x+1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if(( x > 0) && (map[y][x-1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if( (y < map.length-1) && (map[y+1][x] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if((x > 0) && (y < map.length -1) && (map[y+1][x-1] instanceof Animal)){\r\n destroyArea(map, x, y);\r\n }else if (numOfTurns == 3){\r\n numOfTurns = 0;\r\n moveRandom(map, y, x);\r\n }\r\n }\r\n numOfTurns ++;\r\n }", "private static boolean runAway(Critter foo){\n\t\tif(foo.moved) {\n\t\t\tfoo.energy = foo.getEnergy() - Params.walk_energy_cost;\n\t\t\tif (foo.getEnergy() <= 0) {\n\t\t\t\tfoo.isAlive=false;\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tint dir = getRandomInt(8);\n\t\t\tif(canMove(foo, dir)) {\n\t\t\t\tfoo.walk(dir);\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\tfoo.energy = foo.getEnergy() - Params.walk_energy_cost;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void action() throws Exception {\n if (!can_hit || count > 0)\n count++;\n if (count == 100) {\n can_hit = true;\n }\n else if (count == this.bombCountLimit) {\n bombPlaced--;\n count = 0;\n }\n\n if(Gdx.input.isKeyJustPressed(Input.Keys.SPACE)){\n go_ia=!go_ia;\n }\n if(go_ia){\n ia_count++;\n if(ia_count==11)\n ia_count=0;\n }\n if(go_ia&&ia_count==10) {\n\n int move = -1;\n int mode = 0;\n\n\n\n log.info(\"count bomb: \" + count);\n\n double enemyDist = sqrt(pow((playerX - enemyX), 2)+pow((playerY - enemyY), 2));\n if(powerUpFree) {\n currentGoalX = goalX;\n currentGoalY = goalY;\n if(deepSearch){\n currentGoalX = 1;\n currentGoalY = 1;\n }\n if(enemyDist < 7 && !enemyClean){\n if(enemyDist <= bombRange && sqrt(pow((playerX - goalX), 2)+pow((playerY - goalY), 2)) > 2)\n mode = 2;\n\n }\n }\n\n\n\n if (!can_hit) {\n mode = 1;\n log.info(\"can't hit\");\n }\n else if(doorLocked) {\n mode = 3;\n }\n /*if (count > 0 && count <= this.bombCountLimit && (playerX!=bombGoalX || playerY!=bombGoalY)){\n currentGoalX = bombGoalX;\n currentGoalY = bombGoalY;\n log.info(\"bomb goal\");\n }*/\n\n\n\n\n log.info(\"CURRENT goal x: \" + currentGoalX +\", CURRENT goal y: \" + currentGoalY);\n log.info(\"CURRENT bombgoal x: \" + bombGoalX +\", current bombgoal y: \" + bombGoalY);\n log.info(\"CURRENT player x: \" + playerX +\", current player y: \" + playerY);\n log.info(\"powerup free: \" + powerUpFree);\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\n\n ArrayList<Action> actions = new ArrayList<>();\n ArrayList<Wall> walls = new ArrayList<>();\n ArrayList<EnemyPath> enemyPaths = new ArrayList<>();\n ArrayList<Around> around = new ArrayList<>();\n\n playerX = this.x/40;\n playerY = this.y/40;\n\n for( int i = 0; i < 4; i++ ){\n if (can_move[i]) {\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n walls.add(new Wall(i, 0));\n }\n else if (can_destroy[i]){\n walls.add(new Wall(i, 1));\n if (mode != 1 || checkSafe(i))\n actions.add(new Action(i));\n }\n else\n walls.add(new Wall(i, 3));\n if(freeAround[i])\n around.add(new Around(i, 0));\n else\n around.add(new Around(i, 2));\n\n if ( !enemyFree[i] && enemyDist > bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n if( !enemyFree[i] && enemyDist <= bombRange || (bombRange == 1 && enemyDist <= 2))\n enemyPaths.add(new EnemyPath(i, 2));\n else if (enemyDist <= bombRange)\n enemyPaths.add(new EnemyPath(i, 1));\n else if(enemyFree[i])\n enemyPaths.add(new EnemyPath(i, 0));\n }\n if(sqrt(pow((playerX - bombGoalX), 2)+pow((playerY - bombGoalY), 2)) > bombRange ||\n mode != 1 || (playerX != bombGoalX && playerY != bombGoalY))\n actions.add(new Action(4));\n\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n\n AnswerSets answers = ai.getAnswerSets();\n while(answers.getAnswersets().get(0).getAnswerSet().isEmpty()){\n ai.load_fact( new Position(playerX, playerY),\n actions,\n makeDistances(buildDistances(currentGoalX, currentGoalY)),\n makeBombDistances(buildDistances(bombX, bombY)),\n makeEnemyDistances(buildDistances(enemyX, enemyY)),\n walls,\n around,\n enemyPaths,\n new Mode(mode)\n );\n answers = ai.getAnswerSets();\n }\n\n for (AnswerSet an : answers.getAnswersets()) {\n Pattern pattern = Pattern.compile(\"^choice\\\\((\\\\d+)\\\\)\");\n Matcher matcher;\n for (String atom : an.getAnswerSet()) {\n //System.out.println(atom);\n matcher = pattern.matcher(atom);\n\n if (matcher.find()) {\n log.info(\"DLV output: \" + matcher.group(1));\n move = Integer.parseInt(matcher.group(1));\n }\n }\n }\n if (move == 1) {\n set_allCan_move(0, true);\n this.x += 40;\n }\n else if (move == 2) {\n set_allCan_move(0, true);\n this.y += 40;\n }\n else if (move == 3) {\n set_allCan_move(0, true);\n this.y -= 40;\n }\n else if (move == 0) {\n set_allCan_move(0, true);\n this.x -= 40;\n }\n else if (move == 4 && can_hit && (playerX != goalX || playerY != goalY)) {\n ai_hit = true;\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n moves.add(move);\n ai.clear();\n }\n else{\n playerX = this.x/40;\n playerY = this.y/40;\n }\n\n\n if (Gdx.input.isKeyPressed(Input.Keys.A)&&can_move[0]) {\n set_allCan_move(0, true);\n this.x -= 5;\n }\n if (Gdx.input.isKeyPressed(Input.Keys.D)&&can_move[1]) {\n set_allCan_move(0, true);\n this.x += 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.W))&&can_move[2]) {\n this.y += 5;\n set_allCan_move(0, true);\n }\n if (Gdx.input.isKeyPressed((Input.Keys.S))&&can_move[3]){\n set_allCan_move(0, true);\n this.y -= 5;\n }\n if (Gdx.input.isKeyPressed((Input.Keys.Z)) && can_hit) {\n can_hit = false;\n this.bombX=playerX;\n this.bombY=playerY;\n this.bombGoalX=playerX;\n this.bombGoalY=playerY;\n bombPlaced++;\n }\n\n if (Gdx.input.isKeyPressed((Input.Keys.N)))\n log.info(\"CURRENT ENEMY: [\" + enemyX + \", \" + enemyY + \"] \");\n }", "@Override\n\tpublic boolean updatePos(Physical_passive map) {\n\t\tupdate_animSpeed();\n\t\t// if (!map.getPhysicalRectangle().contains(getPhysicalShape()))\n\t\t// return false;\n\t\tif (!isDead()) {\n\t\t\tResolveUnreleasedMovements();\n\t\t\tgetWeapon().update();\n\t\t\tupdatePush();\n\t\t\t/*\n\t\t\t * if (!isBlock_down()) { // Por lo visto esto controla el salto if\n\t\t\t * (getJumpTTL() != 0) { moveJump(); } else // Y este 3 es la\n\t\t\t * gravedad., lo paso a un metodo de actor // para decirle q empiece\n\t\t\t * a caer fall(); // ; }\n\t\t\t */\n\t\t\t// Aqui es donde realmente cambiamos la posicion una vez calculado\n\t\t\t// donde va a ir.\n\t\t\t// updateLegsRotation(getSpeed().add(getPosition()));\n\t\t\tgetLegs().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\tsetPosition(getPosition().add(getSpeed().add(getPush())));\n\t\t\tgetTorax().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\t// setPosition(getPosition().add(getSpeed().add(getPush()))); //\n\t\t\t// CAmbiado;\n\t\t\tLine2D line = new Line2D.Float((float) getKillTracer().getTrace().getLine().getX1(),\n\t\t\t\t\t(float) getKillTracer().getTrace().getLine().getY1(), (float) getSpeed().x(),\n\t\t\t\t\t(float) getSpeed().y());\n\t\t\tgetKillTracer().getTrace().setLine(line);\n\t\t\tArrayList<Entity> hits = getKillTracer().getCollision(getMap());\n\t\t\tfor (Entity ent : hits) {\n\t\t\t\tif (ent instanceof Player && ent != this) {\n\t\t\t\t\tPlayer plent = (Player) ent;\n\t\t\t\t\tplent.die();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Override\n\tpublic void act(float delta) {\n\t\tsuper.act(delta);\n\t\t\n\t\tif(PWM.instance().pointIsInObstacle(this.getX(), this.getY())){\n\t\t\tif(!PWM.instance().pointIsInObstacle(this.getX(), lastPos.y)){\n\t\t\t\tthis.setPosition(this.getX(), lastPos.y);\n\t\t\t}else if(!PWM.instance().pointIsInObstacle(lastPos.x, this.getY())){\n\t\t\t\tthis.setPosition(lastPos.x, this.getY());\n\t\t\t}else{\n\t\t\t\tthis.setPosition(lastPos.x, lastPos.y);\n\t\t\t}\n\t\t\t\n\t\t\tthis.lastPos.x = this.getX();\n\t\t\tthis.lastPos.y = this.getY();\n\t\t\t\n\t\t}\t\t\t\t\n\t\t\n\t\tmainCameraFollowHero();\n\t\t\n\t\t\n\t}", "public void onScannedRobot(ScannedRobotEvent e)\n {\n BadBoy en = (BadBoy)enemies.get(e.getName());\n \n if(en == null){\n en = new BadBoy();\n enemies.put(e.getName(), en);\n }\n \n \n en.hp = true;\n en.energy = e.getEnergy();\n en.pos = hallarPunto(myPos, e.getDistance(), getHeadingRadians() + e.getBearingRadians());\n \n // normal target selection: the one closer to you is the most dangerous so attack him\n //si no le queda vida al objetivo actual CHANGE TARGET m8\n \n if(!objetivo.hp || e.getDistance() < myPos.distance(objetivo.pos)) {\n objetivo = en;\n }\n \n \n }", "public void act(){\n food = theWorld.getCloseFood(this);\n queenAnt = theWorld.getCloseQueen(this);\n if(getF){\n if(start){\n if(getLocation().isSameLocation(food.getLocation())){\n start = false;\n hunger += 50;\n hasFood = false;\n //eat the food\n }else{\n if(getLocation().getY() > food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n System.out.println(\"moving up\");\n setDirection(Location.NORTH);\n //go up\n move(new Location(this.getLocation().getX(), this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() > food.getLocation().getY()){\n System.out.println(\"moving up left\");\n setDirection(Location.NORTH_WEST);\n //go up left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() == food.getLocation().getY()){\n System.out.println(\"moving left\");\n setDirection(Location.WEST);\n //go left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY()));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n System.out.println(\"moving down left\");\n setDirection(Location.SOUTH_WEST);\n //go down left\n move(new Location(this.getLocation().getX() - 1, this.getLocation().getY() + 1));\n }else if(getLocation().getY() < food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n System.out.println(\"moving down\");\n setDirection(Location.SOUTH);\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n System.out.println(\"moving down right\");\n setDirection(Location.SOUTH_EAST);\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() == food.getLocation().getY()){\n System.out.println(\"moving right\");\n setDirection(Location.EAST);\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n System.out.println(\"moving up right\");\n setDirection(Location.NORTH_EAST);\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }else{\n //get the food\n start = false;\n getF = false;\n food.giveFood(this);\n }\n }else if(getQ){\n if(start){\n if(getLocation().isSameLocation(food.getLocation())){\n food.giveFood(this);\n start = false;\n //get the food\n }else{\n if(getLocation().getY() > food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n //go up\n move(new Location(this.getLocation().getX(), this.getLocation().getY() - 1));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() > food.getLocation().getY()){\n //go up left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()-1));\n }else if(getLocation().getX() > food.getLocation().getX() && food.getLocation().getY() == getLocation().getY()){\n //go left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()));\n }else if(getLocation().getX() > food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n //go down left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()+1));\n }else if(getLocation().getY() < food.getLocation().getY() && getLocation().getX() == food.getLocation().getX()){\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && getLocation().getY() < food.getLocation().getY()){\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < food.getLocation().getX() && food.getLocation().getY() == getLocation().getY()){\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }else{\n if(getLocation().isSameLocation(queenAnt.getLocation())){\n giveQueenFood(queenAnt);\n //give the queen the food\n }else{\n if(getLocation().getY() > queenAnt.getLocation().getY() && getLocation().getX() == queenAnt.getLocation().getX()){\n //go up\n move(new Location(this.getLocation().getX(),this.getLocation().getY()-1));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() > queenAnt.getLocation().getY()){\n //go up left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()-1));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() == queenAnt.getLocation().getY()){\n //go left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()));\n }else if(getLocation().getX() > queenAnt.getLocation().getX() && getLocation().getY() < queenAnt.getLocation().getY()){\n //go down left\n move(new Location(this.getLocation().getX()-1,this.getLocation().getY()+1));\n }else if(getLocation().getY() < queenAnt.getLocation().getY() && getLocation().getX() == queenAnt.getLocation().getX()){\n //go down\n move(new Location(this.getLocation().getX(),this.getLocation().getY()+1));\n }else if(getLocation().getX() < queenAnt.getLocation().getX() && getLocation().getY() < queenAnt.getLocation().getY()){\n //go down right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()+1));\n }else if(getLocation().getX() < queenAnt.getLocation().getX() && getLocation().getY() == queenAnt.getLocation().getY()){\n //go right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()));\n }else{\n //go up right\n move(new Location(this.getLocation().getX()+1,this.getLocation().getY()-1));\n }\n }\n }\n }else{\n if(hunger > 30){\n getQ = true;\n start = true;\n //assign closest queen location\n }else{\n getF = true;\n start = true;\n //assign closest food location\n }\n }\n }", "public void gaze() {\n float lifeline = map(leftToLive, 0, lifespan, 1, 255);\n stroke(255,255,255,lifeline);\n \n Iterator<Boid> it = nbs.iterator();\n while (it.hasNext()) {\n Boid other = it.next();\n if (other.isDead()) {\n it.remove();\n }\n else {\n line(location.x, location.y, other.location.x, other.location.y);\n }\n }\n \n // draw gaze circle\n noStroke();\n fill(204,17, 17, 40);\n float mouseDist = PVector.dist(location, new PVector(mouseX,mouseY));\n if(mouseDist < gazeRad) {\n// ellipse(location.x, location.y, 2*gazeRad, 2*gazeRad);\n } \n }", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "@Override\n public void poll() {\n if( state == State.attacking ) {\n if( !ctx.movement.running() && ctx.movement.energyLevel() >= 75) {\n stateText = \"Setting running\";\n ctx.movement.running(true);\n }\n stateText = \"\";\n if( isAttacking() ) {\n stateText = \"Attacking\";\n Item ammo = inventory.getFirst(ammoUsed);\n if( ammo != null && ammo.valid() ){\n inventory.clickItem(ammo);\n sleep(100);\n }\n } else {//TODO find out why it stops picking up arrows after some time\n if (!inventory.full() && (targetBone == null || !targetBone.valid() || !misc.pointOnScreen(targetBone.centerPoint())) ) {\n targetBone = getNextGroundBone();\n clickedGroundItem = false;\n }\n if (!inventory.full() && targetBone != null && targetBone.valid() && misc.pointOnScreen(targetBone.centerPoint())) {\n stateText = \"Picking up bones\";\n if( !ctx.players.local().inMotion() )\n clickedGroundItem = false;\n if (!clickedGroundItem ) {\n clickedGroundItem = groundItems.pickup(targetBone);\n }\n } else if( inventory.full() && inventory.contains(bones) ) {\n state = State.burying;\n } else {\n if( !clickedMonster || !target.valid() || target.health() <= 0 || target.interacting() != ctx.players.local() ) {\n target = getNextTarget();\n clickedMonster = false;\n }\n if (!misc.pointOnScreen(target.centerPoint())) {\n if (target.tile().matrix(ctx).onMap()) {\n stateText = \"Walking to monster\";\n movement.walkTile(target.tile());\n }\n } else {\n stateText = \"Attacking monster\";\n if( !clickedMonster ) {\n clickedMonster = npcs.attackMonster(target);\n }\n }\n }\n }\n }else if( state == State.burying){\n Item invBones = inventory.getFirst(bones);\n if( invBones!= null && invBones.valid()) {\n stateText = \"Clicking bones\";\n inventory.clickItem(invBones);\n }else {\n state = State.attacking;\n }\n }\n checkIfBeingAttacked();\n }", "protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }", "public void enemyAttack() {\n Log.i(\"enemyAttack\", \"Begins\");\n AIisAttacking = true;\n setHit(false);\n\n // Loop until A.I. selects a cell it has not chosen before.\n int counter = 0;\n int myRow = 0, myCol = 0;\n boolean selectionFound = false;\n String aiSelectedHit = \"Empty\";\n Random newRow, newCol;\n\n while (selectionFound || counter < aiAttacks.size()) {\n selectionFound = false;\n // Select random row and col\n newRow = new Random();\n myRow = newRow.nextInt(maxN);\n newCol = new Random();\n myCol = newCol.nextInt(maxN);\n\n aiSelectedHit = myRow + \", \" + myCol;\n\n while (counter < aiAttacks.size()) {\n // Check if grid has been selected before\n if (aiAttacks.get(counter).equals(aiSelectedHit)) {\n selectionFound = true;\n counter = 0;\n break;\n }\n counter++;\n }\n }\n aiAttacks.add(aiSelectedHit);\n\n checkIfOccupied(myRow, myCol);\n\n if (getHit()) {\n ivCell[myRow][myCol].setImageResource(R.drawable.mushroom);\n Log.i(\"AI getHit\", \"\" + getHit() + \", (\" + myRow + \", \" + myCol + \")\");\n } else {\n ivCell[myRow][myCol].setImageResource(R.drawable.crater);\n Log.i(\"AI getHit\", \"\" + getHit() + \", (\" + myRow + \", \" + myCol + \")\");\n }\n AIisAttacking = false;\n Log.i(\"enemyAttack\", \"Ends\");\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public void draw() {\n\t\tif (doge.getLife()>0) {\r\n\t\t\tthis.background(WHITE);\r\n\t\t\tif (keyPressed) {\r\n\t\t\t\tif (key == 'a') {\r\n\t\t\t\t\tdoge.goLeft();\r\n\t\t\t\t\tif (doge.getX()<=0) {\r\n\t\t\t\t\t\tdoge.setX(PlayGame.WIDTH);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 's') {\r\n\t\t\t\t\tdoge.goDown();\r\n\t\t\t\t\tif (doge.getY()>=PlayGame.HEIGHT) {\r\n\t\t\t\t\t\tdoge.setY(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'd') {\r\n\t\t\t\t\tdoge.goRight();\r\n\t\t\t\t\tif (doge.getX()>=PlayGame.WIDTH) {\r\n\t\t\t\t\t\tdoge.setX(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'w') {\r\n\t\t\t\t\tdoge.goUp();\r\n\t\t\t\t\tif (doge.getY()<=0) {\r\n\t\t\t\t\t\tdoge.setY(PlayGame.HEIGHT);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tdoge.draw();\r\n\t\t\t\r\n\t\t\tif (!bones.get(0).getIsEaten()) {\r\n\t\t\t\t//Move and draw bone, if it has not been eaten.\r\n\t\t\t\tbones.get(0).move();\r\n\t\t\t\tbones.get(0).draw();\r\n\t\t\t\t//if it get eaten, score + 1, get a new bone, and get one more obstacle\r\n\t\t\t\tif (Math.pow((bones.get(0).getY() - doge.getY()), 2) + Math.pow(bones.get(0).getX() - doge.getX(),2) <= 2*(Math.pow(Bone.getHeight()/2+doge.getHeight()/2, 2)/10)) {\r\n\t\t\t\t\tbones.get(0).eat();\r\n\t\t\t\t\tthis.setScore(this.score+1);\r\n\t\t\t\t\tBone theBone=new Bone(this);\r\n\t\t\t\t\tthis.bones.add(theBone);\r\n\t\t\t\t\tSmileObstacle newObstacle = new SmileObstacle(this);\r\n\t\t\t\t\tthis.obstacles.add(newObstacle);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfor (int i = 0; i < this.obstacles.size(); i++) {\r\n\t\t\t\t//Keep draw and move obstacle\r\n\t\t\t\tSmileObstacle obstacle = this.obstacles.get(i);\r\n\t\t\t\tobstacle.move();\r\n\t\t\t\tobstacle.draw();\r\n\t\t\t\t//If clashed, eliminate the obstacle and make the background black for a moment.\r\n\t\t\t\tif (Math.pow((obstacle.getY() - doge.getY()), 2) + Math.pow(obstacle.getX() - doge.getX(),2) <= Math.pow(SmileObstacle.getHeight()/2+doge.getHeight()/2, 2)/10) {\r\n\t\t\t\t\tthis.background(BLACK);\r\n\t\t\t\t\tobstacle.eliminate();\r\n\t\t\t\t\tthis.hearts.get(this.hearts.size()-1).loseHeart();\r\n\t\t\t\t\tdoge.setLife(doge.getLife()-1);\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t//draw heart for life numbers.\r\n\t\t\tfor (int j = 0; j < this.hearts.size(); j++) {\r\n\t\t\t\tHeart heart = this.hearts.get(j);\r\n\t\t\t\theart.draw();\r\n\t\t\t}\r\n\t\t\t//Draw smallbone for scores. \r\n\t\t\tfor (int h = 0; h<this.score; h++) {\r\n\t\t\t\tSmallBone smallBone=new SmallBone(this, h*SmallBone.getWidth(), PlayGame.getHeight()-SmallBone.getHeight());\r\n\t\t\t\tthis.smallBones.add(smallBone);\r\n\t\t\t}\r\n\t\t\tfor (int n = 0; n<this.smallBones.size(); n++) {\r\n\t\t\t\tSmallBone theSM = this.smallBones.get(n);\r\n\t\t\t\ttheSM.draw();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Once life is lower than 0, game over. \r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Game Over! Your score is \" + this.score);\r\n\t\t}\r\n\t\t\r\n\t}", "public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }", "public void act()\n {\n setPosition(posX + liftDirection[0] * liftSpeed, posY\n + liftDirection[1] * liftSpeed);\n setLocation(posToLoc(posX, posY));\n\n if (posY < 50)\n removeSelf();\n }", "private void intelligentDecideMove() {\n\t\tMonster target=nearestEnemy();\r\n\t\tif(target!=null){\t\t\t\t//FIRST PRIORITY: pursue the target if it can be seen.\r\n\t\t\tswitchStates(PURSUIT);\r\n\t\t\ttargetTile=new Tile(target.currentTile);\r\n\t\t\t//saveMove();\r\n\t\t\tmonster.moveTowards(target);\r\n\t\t}\r\n\t\t\t\r\n\t\telse{\r\n\t\t\ttargetLostResponse();\r\n\t\t\t}\r\n\t}", "public void move() {\n int direction;\n int energy = maxEnergy;\n while (energy > 0) {\n energy -= speed;\n direction = (int) (4 * Math.random());\n for (int i = 0; i < speed; i++) {\n if (foodDetection()) {\n ArrayList<Creature> creatures = world.getCreatureList();\n //System.out.println(\"Moving to food, My Location: \" + x + \",\" + y);\n for (Creature c : creatures) {\n if (c.isStealth()) break;\n else if (c.getX() - x == - 1) { x--; break; }\n else if (c.getX() - x == 1) { x++; break; }\n else if (c.getY() - y == -1) { y--; break; }\n else if (c.getY() - y == 1) { y++; break; }\n }\n foodLocated();\n } else {\n if (direction == 0 && paths(\"up\")) { y++; }\n else if (direction == 1 && paths(\"down\")) { y--; }\n else if (direction == 2 && paths(\"left\")) { x--; }\n else if (direction == 3 && paths(\"right\")) { x++; }\n else direction = (int) (4 * Math.random());\n }\n }\n }\n }", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "public boolean isGoal() {\n if (blocks[dimension()-1][dimension()-1] != 0) return false;\n return hamming() == 0;\n }", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }", "public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }", "public void move(Maze here) {\n\n\t\tCoordinates target = here.getPlayer().find(); // where the player is\n\n\t\tArrayList<Coordinates> canMove = freeMoves(here); // the ways that aren't\n\t\t\t\t\t\t\t\t\t\t\t\t\t// blocked\n\n\t\tif (!canMove.isEmpty()) { // you can move\n\n\t\t\tCoordinates go = find(); // go is the new coordinates\n\n\t\t\tif (here.getMCell(target).dark()) {\n\t\t\t\tthis.sleep = true;\n\t\t\t\tCollections.shuffle(canMove);\n\t\t\t\tgo = charge(canMove.get(0), here);\n\t\t\t}\n\n\t\t\t// only one option\n\t\t\telse if (canMove.size() == 1)\n\t\t\t\tgo = charge(canMove.get(0), here);\n\n\t\t\telse { // select the best\n\n\t\t\t\t// not too dissimilar to the search method in wargames\n\t\t\t\tPair<Coordinates, Double> best = new Pair<>(target, Double.MAX_VALUE);\n\n\t\t\t\tfor (Coordinates options : canMove) {\n\t\t\t\t\tCoordinates guess = go.add(options);\n\n\t\t\t\t\tdouble gDist = guess.dist(target);\n\n\t\t\t\t\tif (gDist < best.second()) {\n\t\t\t\t\t\tbest.first(options);\n\t\t\t\t\t\tbest.second(gDist);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgo = charge(best.first(), here);\n\t\t\t}\n\t\t\tmove(go, here);\n\t\t}\n\t}", "protected void moveTowards()\r\n {\r\n if(planet != null)\r\n turnTowards(planet.getX(), planet.getY());\r\n\r\n //If the invader touches a planet, it will go into the planet\r\n TargetPlanet t = (TargetPlanet)getOneIntersectingObject (TargetPlanet.class);\r\n //if t exists and looking for nearest planet OR looking for unconquered planet and reached it or no set planet\r\n if (t != null && ((findNearestPlanet || (!findNearestPlanet && t.equals(planet))) || planet == null))\r\n {\r\n t.hitByFighter(isHuman); //planet's stats will change\r\n removeMe = true;\r\n }\r\n }", "protected void attackEnemy(Path toOp) {\n int opX = toOp.getStep(toOp.getLength() - 1).getX();\n int opY = toOp.getStep(toOp.getLength() - 1).getY();\n if (this.player.getX() == opX || this.player.getY() == opY) {\n // in the same row or column\n if (toOp.getLength() <= this.player.getFirePower() + 1) {\n // and is reachable\n this.player.placeBomb(map);\n// System.out.println(\"Player #\"+player.getPID()+\" will attack block [\"+opX+\", \"+opY+\"]\");\n }\n }\n }", "public void battleEnemyAttack() {\n if(battleEnemy != null){ // If all enemies have attacked, they cannot attack anymore for this round\n\n MovingEntity target = battleEnemy.getAttackPreference(targetAllies);\n if(target == null){\n target = targetAlly;\n }\n\n battleEnemy.attack(target, targetEnemies, targetAllies);\n //System.out.println(battleEnemy.getID() + \" is attacking \" + target.getID() + \" remaining hp: \" + target.getCurrHP());\n if (updateTarget(target) == false) {\n // if target still alive, check if its still friendly incase of zombify\n targetAlly = checkSideSwap(targetAlly, false, battleEnemies, targetEnemies, battleAllies, targetAllies);\n }\n\n battleEnemy = nextAttacker(battleEnemy, battleEnemies);\n\n }\n }", "public void dropItLikeItsHot(){\n\t\tint score_increment = 0;\n\t\tPoint test_location = new Point(pieceOrigin);\n\t\twhile(true){\n\t\t\ttest_location.y += 1;\n\t\t\tif(!collides(test_location, currentPiece)){\n\t\t\t\tpieceOrigin.y += 1;\n\t\t\t\tscore_increment += 1;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscore += score_increment*100;\n\t\tgossipGirl();\n\t\trepaint();\n\t}", "public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }", "public void AI()\r\n\t{\r\n\t\tRandom random = new Random();\r\n\t\tspeed = random.nextInt(2) + 1;\r\n\t\tif (canMove)\r\n\t\t{\r\n\t\t\tif (randomAxis == 1)\r\n\t\t\t{\r\n\t\t\t\tif (xDestination < this.x)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.x -= this.speed;\r\n\t\t\t\t\tthis.hitBox.addX(-(this.speed));\r\n\t\t\t\t\tdirection = KeysDefiner.LEFT;\r\n\t\t\t\t}\r\n\t\t\t\telse if (xDestination > this.x)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.x += this.speed;\r\n\t\t\t\t\tthis.hitBox.addX(this.speed);\r\n\t\t\t\t\tdirection = KeysDefiner.RIGHT;\r\n\t\t\t\t}\r\n\t\t\t\telse if (xDestination == this.x)\r\n\t\t\t\t\trandomAxis = 2;\r\n\t\t\t}\r\n\t\t\telse if (randomAxis == 2)\r\n\t\t\t{\r\n\t\t\t\tif (yDestination < this.y)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.y -= this.speed;\r\n\t\t\t\t\tthis.hitBox.addY(-(this.speed));\r\n\t\t\t\t\tdirection = KeysDefiner.UP;\r\n\t\t\t\t}\r\n\t\t\t\telse if (yDestination > this.y)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.y += this.speed;\r\n\t\t\t\t\tthis.hitBox.addY(this.speed);\r\n\t\t\t\t\tdirection = KeysDefiner.DOWN;\r\n\t\t\t\t}\r\n\t\t\t\telse if (yDestination == this.y)\r\n\t\t\t\t\trandomAxis = 1;\r\n\t\t\t}\r\n\t\t\tif (yDestination == this.y && xDestination == this.x)\r\n\t\t\t{\r\n\t\t\t\tif (spotsNumber == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\txDestination = random.nextInt(SCREEN_W / 2) * 2;\r\n\t\t\t\t\tyDestination = random.nextInt(SCREEN_H / 2) * 2;\r\n\t\t\t\t\tspotsNumber++;\r\n\t\t\t\t}\r\n\t\t\t\telse if (spotsNumber == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\txDestination = -(SCREEN_W / 21);\r\n\t\t\t\t\tyDestination = -(SCREEN_H / 12);\r\n\t\t\t\t\tspotsNumber++;\r\n\t\t\t\t}\r\n\t\t\t\telse lastDestinationReached = true;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void moveNoFormationTo(double xGoal, double yGoal, double angleGoal) {\n\n // Set the goals\n goalX = xGoal;\n goalY = yGoal;\n goalAngle = angleGoal;\n\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (angleGoal + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (angleGoal + Math.PI / 2));\n\n // Sort distances of each soldier to the final point\n for (BaseSingle single : troops) {\n single.setTempSquaredDistanceFromGoal((single.getX() - xGoal) * (single.getX() - xGoal) +\n (single.getY() - yGoal) * (single.getY() - yGoal));\n }\n\n // Sort the troops by distance to the goal\n Collections.sort(troops, new Comparator<BaseSingle>() {\n @Override\n public int compare(BaseSingle o1, BaseSingle o2) {\n return Double.compare(o1.getTempSquaredDistanceFromGoal(), o2.getTempSquaredDistanceFromGoal());\n }\n });\n\n // Calculate final positions\n for (int i = 0; i < troops.size(); i++) {\n double xGoalSingle = goalX + (i % width) * unitStats.spacing * sideUnitX + (i / width) * unitStats.spacing * downUnitX;\n double yGoalSingle = goalY + (i % width) * unitStats.spacing * sideUnitY + (i / width) * unitStats.spacing * downUnitY;\n\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.switchState(SingleState.MOVING);\n troop.setSpeedGoal(troops.get(i).getSpeedStat());\n troop.setAngleGoal(angleGoal);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n\n // Reset the flankers\n resetFlanker();\n }", "public void act()\n {\n if (getGrid() == null)\n return;\n if (caughtPokemon.size() <= 0)\n {\n removeSelfFromGrid();\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n return;\n }\n ArrayList<Location> moveLocs = getMoveLocations();\n Location loc = selectMoveLocation(moveLocs);\n makeMove(loc);\n }", "public void startAttack() {\n if(toSpot == 0) {\n \tst = new RedAlienState.Attacking(this.x, this.y);\n toSpot++;\n this.column = this.x;\n this.row = this.y;\n isAttacking = true;\n }\n }", "private static void soldierCode() throws GameActionException {\n\t\tRobotInfo[] visibleEnemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tfor(Signal s:incomingSignals){\n\t\t\tint[] message = s.getMessage();\n\t\t\tif(s.getTeam()==rc.getTeam()){\n\t\t\t\tif(message!=null){\n\t\t\t\t\tif(message[0]%10==0){\n\t\t\t\t\t\tint x = message[1]/100000;\n\t\t\t\t\t\tint y = message[1]%100000;\n\t\t\t\t\t\tcenter= new MapLocation(x,y);\n\t\t\t\t\t\tint r = message[0]/10;\n\t\t\t\t\t\tradius=r;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint dist = rc.getLocation().distanceSquaredTo(center);\n\t\tif (visibleEnemyArray.length==0) {\n\t\t\tif (goal!=null&&(rc.senseRubble(goal)<100 || rc.senseRobotAtLocation(goal)!=null)) {\n\t\t\t\tgoal = null;\n\t\t\t\trc.setIndicatorString(0, \"done clearing\");\n\t\t\t}\t\n\t\t\tif(goal==null) {\n\t\t\t\tMapLocation[] locs = MapLocation.getAllMapLocationsWithinRadiusSq(rc.getLocation(), 8);\n\t\t\t\tArrayList<MapLocation> inside = new ArrayList<MapLocation>();\n\t\t\t\tfor(MapLocation loc: locs) {\n\t\t\t\t\tif (loc.distanceSquaredTo(center)<=1.5*radius) {\n\t\t\t\t\t\tinside.add(loc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(MapLocation l: inside) {\n\t\t\t\t\tif (rc.senseRubble(l)>99 && rc.senseRobotAtLocation(l)==null) {\n\t\t\t\t\t\tgoal = l;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tUtility.tryToMove(goal);\n\t\t\t}\n\t\t\t\n\t\t\tif (dist>radius && dist< 4*radius) { //Explore\n\t\t\t\tMapLocation travel = soldierFind();\n\t\t\t\tUtility.tryToMove(travel);\n\t\t\t}else{ //Move back\n\t\t\t\tMapLocation loc = center.add(center.directionTo(rc.getLocation()), (int)Math.pow(radius, 0.5)+1);\n\t\t\t\tUtility.tryToMove(loc);\n\t\t\t}\n\t\t} else { //Kite\n\t\t\tkite(visibleEnemyArray);\n\t\t}\n\t}", "@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }", "@Override\n public void updateAI(Entity entity, ServerGameModel model, double seconds) {\n BuildingSpawnerStratAIData data = entity.<BuildingSpawnerStratAIData>get(AI_DATA);\n data.elapsedTime += seconds;\n while (data.elapsedTime > timeBetweenSpawns(entity)) {\n data.elapsedTime -= timeBetweenSpawns(entity);\n if (data.spawnCounter < maxActive(entity)) {\n if (!canAttack()) {\n // Find possible spawn points: cells not blocked by hard entities.\n Set<GridCell> neighbors = model.getNeighbors(model.getCell((int) (double) entity.getX(),\n (int) (double) entity.getY()));\n Set<GridCell> passable = neighbors.stream().filter(GridCell::isPassable).collect(Collectors.toSet());\n\n // If cell directly below it is clear, spawn it there. Otherwise, find another\n // open neighboring cell to spawn the entity.\n if (passable.contains(model.getCell((int) (double) entity.getX(), (int) (double) entity.getY() + 1))) {\n Entity newEntity = makeEntity(entity.getX(), entity.getY() + 1, entity.getTeam(), entity, model);\n model.processMessage(new MakeEntityRequest(newEntity));\n newEntity.onDeath((e, serverGameModel) -> {\n data.spawnCounter--;\n data.spawned.remove(e);\n });\n data.spawnCounter++;\n data.spawned.add(newEntity);\n } else if (!passable.isEmpty()) {\n Entity newEntity = makeEntity(passable.iterator().next().getCenterX(),\n passable.iterator().next().getCenterY(), entity.getTeam(), entity, model);\n model.processMessage(new MakeEntityRequest(newEntity));\n newEntity.onDeath((e, serverGameModel) -> {\n data.spawnCounter--;\n data.spawned.remove(e);\n });\n data.spawnCounter++;\n data.spawned.add(newEntity);\n }\n } else {\n Collection<Entity> attackable = attackableEnemies(entity, model);\n if (!attackable.isEmpty()) {\n Entity closest = getClosestEnemy(attackable, entity, model);\n Entity newEntity = makeEntity(closest.getX(), closest.getY(), entity.getTeam(), entity, model);\n model.processMessage(new MakeEntityRequest(newEntity));\n newEntity.onDeath((e, serverGameModel) -> {\n data.spawnCounter--;\n data.spawned.remove(e);\n });\n data.spawnCounter++;\n data.spawned.add(newEntity);\n }\n }\n }\n if (entity.getUpgraded()) {\n for (Entity e : data.spawned) {\n e.setUpgraded(false);\n e.set(LEVEL, entity.get(LEVEL));\n // TODO UP grade other stuff\n }\n }\n }\n }", "@Override\n\tpublic boolean eat(Item item,GameMap map) {\n\t\ttry {\n\t\t\tif (hitPoints<maxHitPoints){\n\t\t\t\theal(item.effect());\n\t\t\t\tmap.locationOf(this).removeItem(item);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (NullPointerException nullPointer) {\n\t\t\tnullPointer.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "public void go(){\r\n\t\t\r\n\t\tif(position.go(b.getN())){\r\n\t\t\tElement e =b.getSection(position).giveMePitOrWumpus();\t\t\r\n\t\t\tif(e instanceof Wumpus){\r\n\t\t\t\tWumpus w = (Wumpus)e;\r\n\t\t\t\tif (w.isAlive()){\r\n\t\t\t\t\talive = false;\r\n\t\t\t\t\tSystem.out.println(\"Wumpus kills you without mercy.END.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(e instanceof Pit){\r\n\t\t\t\talive = false;\r\n\t\t\t\tSystem.out.println(\"You have fallen into an endless pit.END.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Ooops, there is a wall on your way.\");\r\n\t}", "private void huntMode() {\n if (!alreadyHit(hitLocationX+1, hitLocationY)){ // tests to see if they're already shot at\n if (hitLocationX < 9) { // doesn't add if they're on a border\n huntList.add(new Point(hitLocationX + 1, hitLocationY));\n huntCount++;\n huntModeActive++;\n }\n }\n if (!alreadyHit(hitLocationX, hitLocationY+1)){\n if (hitLocationY < 9) {\n huntList.add(new Point(hitLocationX, hitLocationY + 1));\n huntCount++;\n huntModeActive++;\n }\n }\n if (!alreadyHit(hitLocationX-1, hitLocationY)){\n if (hitLocationX > 0) {\n huntList.add(new Point(hitLocationX - 1, hitLocationY));\n huntCount++;\n huntModeActive++;\n }\n }\n if (!alreadyHit(hitLocationX, hitLocationY-1)){\n if (hitLocationY > 0) {\n huntList.add(new Point(hitLocationX, hitLocationY - 1));\n huntCount++;\n huntModeActive++;\n }\n }\n }", "public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }", "private static void attack(RobotInfo target) throws GameActionException {\n if (SOLDIER_DEBUG) {\n System.out.println(\"attacking\");\n }\n BulletInfo[] bullets = rc.senseNearbyBullets(EvasiveSoldier.BULLET_DETECT_RADIUS);\n RobotInfo[] robots = rc.senseNearbyRobots(EvasiveSoldier.ENEMY_DETECT_RADIUS);\n MapLocation targetLocation = target.getLocation();\n move(bullets, robots, targetLocation);\n //RobotUtils.tryMoveDestination(targetLocation);\n if (TargetingUtils.clearShot(here, target) || (rc.getType() == RobotType.GARDENER && rc.getOpponentVictoryPoints() > 10)) {\n if (SOLDIER_DEBUG) {\n System.out.println(\"clearShot to target\");\n }\n Direction towardsEnemy = here.directionTo(targetLocation);\n float distanceEnemy = here.distanceTo(targetLocation);\n if (distanceEnemy <= 3.5 && rc.canFirePentadShot() && rc.getTeamBullets() > 200) {\n rc.firePentadShot(towardsEnemy);\n }\n else {\n if (rc.canFireTriadShot() && rc.getTeamBullets() > 50) {\n rc.fireTriadShot(towardsEnemy);\n }\n else if (rc.canFireSingleShot()) {\n rc.fireSingleShot(towardsEnemy);\n }\n }\n }\n }", "public void act() \r\n {\r\n move(speed); //move at set speed\r\n \r\n if(actCounter < 2) //increases act counter if only 1 act has passed\r\n actCounter++;\r\n\r\n if(actCounter == 1) //if on the first act\r\n {\r\n targetClosestPlanet(); //will target closest planet depending on if it wants to find an unconquered planet, or just the closest one\r\n if(planet == null && findNearestPlanet)\r\n findNearestPlanet = false;\r\n }\r\n \r\n if(health > 0) //if alive\r\n {\r\n if(findNearestPlanet)\r\n targetClosestPlanet();\r\n if(planet != null && planet.getWorld() != null) //if planet exists\r\n moveTowards(); //move toward it\r\n else\r\n moveRandomly(); //move randomly\r\n }\r\n \r\n if(removeMe || atWorldEdge())\r\n getWorld().removeObject(this);\r\n }", "public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\treturn ( currentCol < 0 || currentRow < 0 || \r\n\t\t\t\t currentCol >= size || currentRow >= size );\r\n\t}", "void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }", "public boolean move() {\n\t double[] movePre = movePreProcessing();\n\n double dxbak=movePre[0], dybak=movePre[1], dthetabak=movePre[2];\n boolean collision = false;\n\t\t\n\t\tif (hasGrown!=0 || dx!=0 || dy!=0 || dtheta!=0) {\n\t\t\thasMoved = true;\n\t\t\t// Check it is inside the world\n\t\t\tcollision = !isInsideWorld();\n\t\t\t// Collision detection with biological corridors\n\t\t\tif (alive) {\n\t\t\t\tOutCorridor c = _world.checkHitCorridor(this);\n\t\t\t\tif (c != null && c.canSendOrganism()) {\n\t\t\t\t\tif (c.sendOrganism(this))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Collision detection with other organisms.\n Organism otherOrganism = _world.checkHit(this);\n\t\t\tif (otherOrganism != null) {\n\t\t\t if (this.contact(otherOrganism)) {\n collision = true;\n }\n }\n\n\n\t\t\t// If there is a collision, undo movement.\n\t\t\tif (collision) {\n\t\t\t\thasMoved = false;\n\t\t\t\toffset(-dxbak,-dybak,-dthetabak);\n\t\t\t\tif (hasGrown!=0) {\n\t\t\t\t\t_growthRatio+=hasGrown;\n\t\t\t\t\tsymmetric();\n\t\t\t\t}\n\t\t\t\tcalculateBounds(hasGrown!=0);\n\t\t\t}\n\t\t}\n\t\t// Substract one to the time needed to reproduce\n\t\tif (_timeToReproduce > 0)\n\t\t\t_timeToReproduce--;\n\t\t// Check if it can reproduce: it needs enough energy and to be adult\n\t\tif (_energy > _geneticCode.getReproduceEnergy() + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)\n\t\t\t\t&& _growthRatio==1 && _timeToReproduce==0 && alive)\n\t\t\treproduce();\n\t\t// Check that it don't exceed the maximum chemical energy\n\t\tif (_energy > _geneticCode.getReproduceEnergy()) {\n\t\t\tif (_energy > 2*_geneticCode.getReproduceEnergy()) {\n\t\t\t\tuseEnergy(_energy - 2*_geneticCode.getReproduceEnergy());\n\t\t\t} else {\n\t\t\t useEnergy((_energy - _geneticCode.getReproduceEnergy()) / 300);\n\t\t\t}\n\t\t}\n\t\t// Maintenance\n\t\tbreath();\n\t\t// Check that the organism has energy after this frame\n\t\treturn _energy > Utils.tol;\n\t}", "public void chase() throws GameActionException {\n\t\tRobotInfo closestEnemy = dc.getClosestEnemy();\n\t\tif (closestEnemy == null) {\n\t\t\tcurrState = RobotState.RUSH;\n\t\t\treturn;\n\t\t}\n\t\t// attack closest enemy\n\t\tmi.setObjective(closestEnemy.location);\n\t\tmi.setChargeMode();\n\t\tmi.attackMove();\n\t\t// send dead enemy archon IDs\n\t\tsendDeadEnemyArchonIDs();\n\t}", "public void duelmode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n if(e.getEnergy() <= 20) {\r\n //shoot things\r\n engage(e);\r\n } runaway(e);\r\n }", "@Override\r\n public boolean dye() {\r\n if (getX() > 3100 || getX() < 10 || getY() < 10 || getY() > 3100) {\r\n return true;\r\n }\r\n// int pixel = mapRGB.getRGB((int) getX(), (int) getY());\r\n// int red = (pixel >> 16) & 0xff;\r\n// if(red==255){this.handler.getWaves().removeEnemy(); return true;}\r\n int k = collision(velX, velY, this.getX(), this.getY());\r\n if(k!=0) {\r\n this.handler.getWaves().removeEnemy(); \r\n return true;\r\n }\r\n else{\r\n zombie_x = getX(); \r\n zombie_y = getY();\r\n }\r\n //I proiettili hanno una portata limitata o se ha colpito il player o se è uscito dalla mappa o se è andato contro un muro\r\n if ((this.getHealth() == 0) || (handler.getPlayer().getBounds().contains(getX(), getY()))) {\r\n int n = (int) (Math.random() * 10);\r\n if(n>1) n=2;\r\n switch (n) {\r\n case 2:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 3, 200, 25, handler.getPlayer(), this.handler, 30, 60, 60, 5, new Animation(Assets.zombie, 20), new Animation(Assets.zombieAttack, 35), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 0:\r\n this.handler.addSprite(new StandardZombie(zombie_x, zombie_y, 4, 70, 50, handler.getPlayer(), this.handler, 0, 60, 60, 20, new Animation(Assets.zombie2, 15), new Animation(Assets.zombie2Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n case 1:\r\n this.handler.addSprite(new SpittleZombie(zombie_x, zombie_y, 3, 500, 40, handler.getPlayer(), this.handler, 0, 60, 60, 45, new Animation(Assets.zombie3, 15), new Animation(Assets.zombie3Attack, 15), new Sound(Assets.zombieBite), new Sound(Assets.zombieHit)));\r\n break;\r\n }\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public void doAction()\n {\n \n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n \n //Basic action:\n //Grab Gold if we can.\n if (w.hasGlitter(cX, cY))\n {\n w.doAction(World.A_GRAB);\n return;\n }\n \n //Basic action:\n //We are in a pit. Climb up.\n if (w.isInPit())\n {\n w.doAction(World.A_CLIMB);\n return;\n }\n //Test the environment\n /*if (w.hasBreeze(cX, cY))\n {\n System.out.println(\"I am in a Breeze\");\n }\n if (w.hasStench(cX, cY))\n {\n System.out.println(\"I am in a Stench\");\n }\n if (w.hasPit(cX, cY))\n {\n System.out.println(\"I am in a Pit\");\n }\n if (w.getDirection() == World.DIR_RIGHT)\n {\n System.out.println(\"I am facing Right\");\n }\n if (w.getDirection() == World.DIR_LEFT)\n {\n System.out.println(\"I am facing Left\");\n }\n if (w.getDirection() == World.DIR_UP)\n {\n System.out.println(\"I am facing Up\");\n }\n if (w.getDirection() == World.DIR_DOWN)\n {\n System.out.println(\"I am facing Down\");\n }\n */\n \n //decide next move\n if(w.hasStench(cX, cY)&&w.hasArrow())//Wumpus can be shot if located\n {\n if((w.hasStench(cX, cY+2))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX+2, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX, cY-1))||(w.hasStench(cX+1, cY+1)&&w.isVisited(cX, cY+1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX, cY-2))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX-1, cY))||(w.hasStench(cX+1, cY-1)&&w.isVisited(cX+1, cY)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n else if((w.hasStench(cX-2, cY))||(w.hasStench(cX-1, cY+1)&&w.isVisited(cX, cY+1))||(w.hasStench(cX-1, cY-1)&&w.isVisited(cX, cY-1)))//Condition for checking wumpus location\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n else if(cX==1&&cY==1) //First tile. Shoot North. If wumpus still alive, store its location as (2,1) to avoid it\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n if(w.hasStench(cX, cY))\n {\n wumpusLoc[0] = 2;\n wumpusLoc[1] = 1;\n }\n }\n else if(cX==1&&cY==4) //Condition for corner\n {\n if(w.isVisited(1, 3))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(2, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==1) //Condition for corner\n {\n if(w.isVisited(3, 1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 2))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if(cX==4&&cY==4) //Condition for corner\n {\n if(w.isVisited(3, 4))\n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_SHOOT);\n }\n if(w.isVisited(4, 3))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_SHOOT);\n }\n \n }\n else if((cX==1)&&(w.isVisited(cX+1, cY-1))) //Condition for edge\n {\n \n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cX==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==1)&&(w.isVisited(cX-1, cY+1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else if((cY==4)&&(w.isVisited(cX-1, cY-1))) //Condition for edge\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_SHOOT);\n }\n else //Can't locate wumpus, go back to safe location\n {\n turnTo((w.getDirection()+2)%4);\n w.doAction(World.A_MOVE);\n }\n }\n else // No stench. Explore \n {\n if(w.isValidPosition(cX, cY-1)&&!w.isVisited(cX, cY-1)&&isSafe(cX, cY-1)) \n {\n turnTo(World.DIR_DOWN);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY)&&!w.isVisited(cX+1, cY)&&isSafe(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY)&&!w.isVisited(cX-1, cY)&&isSafe(cX-1,cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n else\n {\n if(w.isValidPosition(cX, cY+1))\n {\n turnTo(World.DIR_UP);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX+1, cY))\n {\n turnTo(World.DIR_RIGHT);\n w.doAction(World.A_MOVE);\n }\n else if(w.isValidPosition(cX-1, cY))\n {\n turnTo(World.DIR_LEFT);\n w.doAction(World.A_MOVE);\n }\n }\n }\n \n }", "public void setAsObstacle() {\n\t\tnodeStatus = Status.obstacle;\n\t}", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "public void eat() {\n int index;\n Cell selectedCell;\n if (getFoodArray() != null) {\n \n if (getFoodCount() > 0) {\n dayCountDown = getMaxHunger();\n index = RandomGenerator.nextNumber(getFoodCount());\n selectedCell = getFoodArray().get(index);\n \n if (getLocation().hasNotMove()) {\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n getLocation().setMoved(false);\n }\n } else if (getLocation().getEmptyCount() != 0) {\n index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n selectedCell = getLocation().getEmptyArray().get(index);\n \n if (getLocation().hasNotMove()) {\n dayCountDown--;\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n \n getLocation().setMoved(false);\n }\n } else {\n dayCountDown--;\n getLocation().setMoved(false);\n }\n }\n \n }", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }", "@Override\r\n\tpublic boolean gameOver() {\r\n\t\t// the game might be over only if the freecells is zero\r\n\t\tif(freeCells == 0) {\r\n\t\t\t// checks if there is any possible move\r\n\t\t\treturn !((new Board2048model(this)).moveUP() || (new Board2048model(this)).moveDOWN()\r\n\t\t\t\t\t|| (new Board2048model(this)).moveLEFT() || (new Board2048model(this)).moveRIGHT());\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}", "private void checkIfOccupied(int row, int col) {\n if (status == MotionStatus.DOWN || AIisAttacking) {\n\n// if (player && playerAttacks != null) {\n// // Ignore touch if player has previously committed an attack on that cell.\n// for (int i = 0; i < playerAttacks.size(); i++) {\n// if (playerAttacks.get(i).equals(row,col)) {\n// Log.i(\"for\", \"You Hit this Previously!\");\n// }\n// }\n// }\n\n for (int i = 0; i < occupiedCells.size(); i++) {\n if (occupiedCells.get(i).x == row && occupiedCells.get(i).y == col) {\n Point p = new Point(row, col);\n selectedShip = findWhichShip(p); //Touching View Updated\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n setHit(true);\n break;\n }\n }\n\n if (selectedShip == null) {\n setHit(false);\n Log.i(\"checkIfOccupied getHit\", \"\" + getHit() + \", (\" + row + \", \" + col + \")\");\n }\n\n } else if (status == MotionStatus.MOVE) {//MotionStatus.MOVE\n if (selectedShip != null) {//Need to make sure none of the current ship parts will overlap another.\n int rowHolder = selectedShip.getHeadCoordinatePoint().x;\n int colHolder = selectedShip.getHeadCoordinatePoint().y;\n int tempRow, tempCol;\n selectedShip.moveShipTo(row, col);\n for (Ship s : ships) {\n if (s != selectedShip) {\n\n for (int i = 0; i < selectedShip.getShipSize(); i++) {\n tempRow = selectedShip.getBodyLocationPoints()[i].x;\n tempCol = selectedShip.getBodyLocationPoints()[i].y;\n\n for (int j = 0; j < s.getShipSize(); j++) {\n if (tempRow == s.getBodyLocationPoints()[j].x && tempCol == s.getBodyLocationPoints()[j].y) {\n selectedShip.moveShipTo(rowHolder, colHolder);\n }\n }//for\n }//for\n }\n }//for\n }\n }//Move\n }", "public void runaway(ScannedRobotEvent e){\r\n if(didenemyshoot(e)){\r\n //moves away from the enemy\r\n setTurnRight(5 * turndir);\r\n setAhead(e.getVelocity() * movedir);\r\n //tell where it is heading\r\n movedir *= -1;\r\n }\r\n }", "public void Update() {\r\n\t\t//if player is near and haven't fired in a while, fire a projectile\r\n\t\tif(!playerNear().equals(\"n\") && j > 250){\r\n\t\t\tfireProjectile(playerNear());\r\n\t\t\tj = 0;\r\n\t\t}\r\n\t\tj++;\r\n\r\n\t\t//COLLISION\r\n\t\tfor(int i = 0; i < AdventureManager.currentRoom.projectiles.size(); i++){ //Checks for collision with player projectiles\r\n\t\t\tif(((AdventureManager.currentRoom.projectiles.get(i).x + 50 > x) && (AdventureManager.currentRoom.projectiles.get(i).x + 50 < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\t\t\t\t\t|| ((AdventureManager.currentRoom.projectiles.get(i).x > x) && (AdventureManager.currentRoom.projectiles.get(i).x < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\r\n\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\tswitch(AdventureManager.currentRoom.projectiles.get(i).type) {\r\n\t\t\t\t\tcase \"fireball\": health -= AdventureManager.toon.intelligence; break;\r\n\t\t\t\t\tcase \"sword\": health -= AdventureManager.toon.strength;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tAdventureManager.currentRoom.projectiles.get(i).kill();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif((AdventureManager.toon.y < y+50) && (AdventureManager.toon.y > y+40) && //Checks for collision with player\r\n\t\t\t\t(((AdventureManager.toon.x > x) && (AdventureManager.toon.x < x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 > x) && AdventureManager.toon.x+50 < x+50))) {\r\n\t\t\tAdventureManager.toon.y = y+55; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((AdventureManager.toon.y+100 < y) && (AdventureManager.toon.y+100 > y-5) && (((AdventureManager.toon.x >= x) && (AdventureManager.toon.x <= x+50)) //Checks for collision with player\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 >= x) && (AdventureManager.toon.x+50 <= x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+25 >= x) && AdventureManager.toon.x+25 <= x+50))) {\r\n\t\t AdventureManager.toon.y = y-105; AdventureManager.toon.repaint();\r\n\t\t AdventureManager.toon.jumpCount = 25;\r\n\t\t if(contact <= 0){\r\n\t\t\t AdventureManager.toon.damage(1);\r\n\t\t\t contact = 50;\r\n\t\t }\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x + 50) > x) && ((AdventureManager.toon.x+50)<x+20) && ( //Left Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+45))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x-51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x) > x+40) && ((AdventureManager.toon.x)<x+50) && ( //Right Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+50))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x+51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontact--;\r\n\t\tif(health<=0){\r\n\t\t\tsetVisible(false);\r\n\t\t\talive = false;\r\n\t\t\tAdventureManager.currentRoom.enemies.remove(this);\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\tif((y+100)>=AdventureManager.floorHeight) {\r\n\t\t\t\ty= AdventureManager.floorHeight -100;\r\n\t\t\t\tgravity *= 0;\r\n\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tgravity = 3;}\r\n\r\n\t\t\ty += gravity; setLocation(x,y);\r\n\r\n\t\t\tswitch(movetype) {\r\n\t\t\tcase 0: chasePlayer(); break;\r\n\t\t\tcase 1: randomMove(); break;\r\n\t\t\tcase 2: dontMove(); break;\r\n\t\t\t}\r\n\r\n\t\t\t}", "void worldGo(int speed) {\n\t\tif (Hit != true) {\n\t\t\tfloat vo = 7;\n\t\t\tint x = 0;\n\t\t\tfloat y = vo;\n\t\t\tif (EZInteraction.isKeyDown(KeyEvent.VK_SPACE)) {\n\t\t\t\ty = (float) (-vo * 1.4);\n\t\t\t}\n\t\t\tif (turtle.image.getXCenter() < 250 || reachEnd == true) {\n\t\t\t\tx = speed;\n\t\t\t} else if (turtle.image.getXCenter() >= 250 && reachEnd == false) {\n\t\t\t\tmove(-speed);\n\t\t\t\tbackground.translateBy(-0.4, 0);\n\t\t\t}\n\t\t\tif (turtle.image.getYCenter() >= 700) {\n\t\t\t\tturtle.move(0, -vo);\n\t\t\t}\n\t\t\tturtle.move(x, y);\n\t\t\tif (turtle.image.getYCenter() <= 0) {\n\t\t\t\tturtle.move(0, -y);\n\t\t\t}\n\t\t\tfor (int a = 0; a < height; a++) {\n\n\t\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\t\tif (turtle.image.isPointInElement(FWorld[a][b].getXCenter(), FWorld[a][b].getYCenter())) {\n\t\t\t\t\t\t\tHit = true;\n\t\t\t\t\t\t\tint iX = FWorld[a][b].getXCenter();\n\t\t\t\t\t\t\tint iY = FWorld[a][b].getYCenter();\n\t\t\t\t\t\t\texplosion = EZ.addImage(\"boom.png\", iX, iY);\n\t\t\t\t\t\t\tGameOver.play();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (turtle.image.getXCenter() >= 1030) {\n\t\t\t\tPlayerreachEnd = true;\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testIfForbriddenSelfKillAdvanced(){\n\t\tboard.commitMove(new Point(2,1), 1);\n\t\tboard.commitMove(new Point(3,1), 1);\n\t\tboard.commitMove(new Point(4,2), 1);\n\t\tboard.commitMove(new Point(3,3), 1);\n\t\tboard.commitMove(new Point(3,4), 1);\n\t\tboard.commitMove(new Point(2,5), 1);\n\t\tboard.commitMove(new Point(1,4), 1);\n\t\tboard.commitMove(new Point(1,3), 1);\n\t\tboard.commitMove(new Point(1,2), 1);\n\t\t\n\t\tboard.commitMove(new Point(2,4), 0);\n\t\tboard.commitMove(new Point(2,3), 0);\n\t\tassertEquals(0, board.commitMove(new Point(2,2), 0));\n\t\tassertNotEquals(0,board.commitMove(new Point(3,2), 0));\n//\t\tboard.printBoard();\n\t}", "@Override\n\tpublic void update() {\n\t\tif(!shortestPath.isEmpty())\n\t\t\tnextPoint = shortestPath.peek();\n\t\telse\n\t\t{\n\t\t\tgameManager.killEnemy(this, false);\n\t\t\tGameStateManager.getInstance().getPlayState().removeEnemy(this);\n\t\t\treturn;\n\t\t}\n\t\tnextVector = new Vector2d(nextPoint.x * PlayState.INGAMETILESIZE, nextPoint.y * PlayState.INGAMETILESIZE);\n\t\tdirection = Vector2d.sub(nextVector, position);\n\t\tif(direction.mag() < tolerance)\n\t\t{\n\t\t\tposition = nextVector;\n\t\t\tshortestPath.pop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdirection.normalize();\n\t\t\tposition.add(direction);\n\t\t}\n\t}", "public void act(){\n\t\tTile[] possibleMoves = game.getAllNeighbours(currentPosition);\r\n\t\tTile targetTile = possibleMoves[rng.nextInt(4)];\r\n\t\tmove(targetTile);\r\n\t}", "public void animalDontEat()\n {\n if(animalHungry)\n {\n map.deadAnimalOnMap(this);\n }\n }", "public void actionPerformed(ActionEvent e) {\n timer.stop();\n //get all the available moves\n ArrayList<Point> possibleMoves = getCurrentlyValidMoves();\n canLastPlayerMove = false;\n try {\n //check if we can move\n if( possibleMoves.size() == 0 ){\n return;\n }\n //make an array to store the best moves available\n ArrayList<Point> bestMoves = new ArrayList<Point>();\n //the lower the level, the higher priority is assigned to the move\n //a move of level 10 is the absolute lowest\n //this heuristic follows the strategy I use, omitting situation-specific content\n int level = 10;\n for (Point p : possibleMoves) {\n int x = (int) p.getX();\n int y = (int) p.getY();\n if ((x == 0 || x == 7) && (y == 0 || y == 7)) {\n if (level > 0) {\n bestMoves.clear();\n level = 0;\n }\n bestMoves.add( p );\n } else if (level >= 1 && (x == 0 || y == 0 || x == 7 || y == 7)) {\n if (level > 1) {\n bestMoves.clear();\n level = 1;\n }\n bestMoves.add( p );\n } else if (level >= 2 && (x > 2 && x < 6 && y > 2 && y < 6)) {\n if ( level > 2) {\n bestMoves.clear();\n level = 2;\n }\n bestMoves.add( p );\n } else if (level >= 3 && x != 1 && x != 6 && y != 1 && y != 6) {\n if (level > 3) {\n bestMoves.clear();\n level = 3;\n }\n bestMoves.add(p);\n } else if (level >= 4) {\n bestMoves.add(p);\n }\n }\n //for debugging purposes, output the level of move chosen by the ai\n System.out.println(level);\n //select a random move from the pool of best moves\n Point move = bestMoves.get((int) (Math.random() * bestMoves.size()));\n int aix = (int) move.getX();\n int aiy = (int) move.getY();\n //move there\n attemptMove(aix, aiy);\n gamepieces[aix][aiy] = currentPlayer;\n //the ai moved, so this is true\n canLastPlayerMove = true;\n } finally { //if the ai moved or if it didn't\n //change the player\n currentPlayer = Color.WHITE;\n gameFrame.repaint();\n //if the human player has no moves left\n if( getCurrentlyValidMoves().size() == 0 ){\n if( canLastPlayerMove ){ //... and the ai could move\n //switch players, enable the ai to move again in 1 second\n currentPlayer = Color.BLACK;\n timer.start();\n }else{ //... and the ai couldn't move\n gameOver();\n }\n }\n }\n }", "public void move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }", "public boolean isGoal() {\n return hamming() == 0; // Board is solved if hamming distance is 0\n }", "@Test\n public void testWithObstacle() {\n Grid g = new Grid(3, 3, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(2, 2);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(4, path.getMoves().size());\n assertEquals(Move.DOWN, path.getMoves().get(0).direction);\n assertEquals(Move.DOWN, path.getMoves().get(1).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(2).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(3).direction);\n }", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "@Override\r\n\t\tpublic Action BestMove(AI_Domain game) {\r\n\t\t\t return new Action(minimax(game,true,depth,true,null).getPath());\r\n\t\t}", "public static void playHitObst()\n {\n playHitObst(0);\n }", "private boolean handleCollisionWithAntOrNest()\n {\n ArrayList<GameObject> collisions = this.getCollisions();\n if(!collisions.isEmpty() && (collisions.get(0) instanceof Ant || collisions.get(0) instanceof Nest))\n {\n this.opponent = collisions.get(0);\n return true;\n }\n\n return false;\n }", "public void moveFormationKeptTo(double xGoal, double yGoal, double angleGoal) {\n\n // Do not do anything if the intended goal bounding box overlaps with the current unit position. It does not\n // make sense.\n // TODO: Extremely ugly boundingBox code that currently only uses for drawing. This bounding box array should\n // currently is used for both drawing and collision checking. Separate these two bounding box for different\n // purpose.\n double[][] aliveBoundingBox = new double[][] {\n {boundingBox[0][0], boundingBox[0][1]},\n {boundingBox[1][0], boundingBox[1][1]},\n {boundingBox[2][0], boundingBox[2][1]},\n {boundingBox[3][0], boundingBox[3][1]},\n };\n if (PhysicUtils.checkPolygonPolygonCollision(aliveBoundingBox, getBoundingBoxAtPos(xGoal, yGoal, angleGoal))) return;\n\n // Set the shortest path\n Path shortestPath = env.getGraph().getShortestPath(\n anchorX, anchorY, xGoal, yGoal, env.getConstructs());\n path = shortestPath;\n path.getNodes().pollFirst();\n\n //TODO: fix the case when the path is empty\n if(path.getNodes().isEmpty()){\n return;\n }\n node = path.getNodes().get(0);\n\n // Set the goals\n goalX = node.getX();\n goalY = node.getY();\n goalAngle = angleGoal;\n\n // Find the furthest distance troops from the average position, according to angle goal\n ArrayList<BaseSingle> aliveArray = new ArrayList<>(aliveTroopsMap.keySet());\n double mostForwardDist = MathUtils.mostForwardDistance(aliveArray, -angleGoal);\n\n // Change unit state to moving, reset patience and ignore unit fought against\n state = UnitState.MOVING;\n currUnitPatience = unitStats.patience; // Reset patience.\n unitFoughtAgainst = null;\n\n // Reorder the troops if the turn is bigger than 90 degree\n // Essentially the last row of the block will become the new front row.\n double moveAngle = Math.atan2(goalY - anchorY, goalX - anchorX);\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) > UniversalConstants.NON_UTURN_ANGLE) {\n uTurnFormation();\n // Shift the anchorX,Y to the last row\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n anchorX += depth * unitStats.spacing * downUnitX;\n anchorY += depth * unitStats.spacing * downUnitY;\n // Flip the angle\n anchorAngle += Math.PI;\n }\n\n // TODO: This is not well-designed code, since everytime we add a new unit with positional variation, we will\n // have to change this part of the code.\n if (this instanceof ArcherUnit) {\n ((ArcherUnit) this).generatePositionalVariation(troops.size());\n } else if (this instanceof SkirmisherUnit) {\n ((SkirmisherUnit) this).generatePositionalVariation(troops.size());\n }\n\n // Reset anchor angles\n if (Math.abs(MathUtils.signedAngleDifference(anchorAngle, moveAngle)) < UniversalConstants.NON_REGROUP_ANGLE) {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n // If the turn angle is not too sharp, we will not perform a reorder to keep the formation more consistent.\n // In this case, don't change the anchor angle and simply move the anchor position slightly forward.\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n } else {\n double forwardedAnchorDist = (depth * unitStats.spacing / 2 + GameplayConstants.FORWARD_DISTANCE) *\n (1 - UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER) +\n mostForwardDist * UniversalConstants.TENDENCY_TOWARD_FURTHEST_TROOP_DURING_REORDER;\n anchorAngle = MathUtils.atan2(yGoal - averageY, xGoal - averageX);\n anchorX = averageX + MathUtils.quickCos((float) anchorAngle) * forwardedAnchorDist;\n anchorY = averageY + MathUtils.quickSin((float) anchorAngle) * forwardedAnchorDist;\n reorderTroops(anchorX, anchorY, anchorAngle);\n }\n\n // Decision has a random delay until it reaches the soldiers ear.\n for (int i = 0; i < troops.size(); i++) {\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n }", "public void defensive_act()\r\n\t{\r\n\t\tBullet closestBullet = IMAGINARY_BULLET;\r\n\t//\tBullet secondClosestBullet = IMAGINARY_BULLET;\r\n\t\t\r\n\t\tActor machines;\r\n\t\tEnumeration<Actor> opponent = ((MachineInfo)data.get(TankFrame.PLAYER_1)).getHashtable().elements();\r\n\t\twhile(opponent.hasMoreElements())\r\n\t\t{\r\n\t\t\tmachines = (Actor) opponent.nextElement();\r\n\t\t\tif(machines instanceof Bullet)\r\n\t\t\t{\r\n\t\t\t\tif(machines.getPoint().distance(getPoint()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t{\r\n\t\t\t\t\tclosestBullet = (Bullet)machines;\r\n\t\t\t\t\tLine2D aim = new Line2D.Double(getCenterX(), getCenterY(), closestBullet.getPosX(), closestBullet.getPosY() );\r\n\t\t\t\t\tSystem.out.println(aim.getP1().distance(aim.getP2()));\r\n\t\t\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\t\t\taimAndShoot(aim);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t/*\tif(machines.getPoint().distance(getPoint()) > secondClosestBullet.getPoint().distance(getPoint()) \r\n\t\t\t\t\t&& machines.getPoint().distance(getPoint()) < closestBullet.getPoint().distance(getPoint()))\r\n\t\t\t\t\tsecondClosestBullet = (Bullet)machines;*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Find the line\r\n\t\t */\r\n\t\t/*if(!closestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), closestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(getCenterX(), getCenterY(), (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim) && aim.getP1().distance(aim.getP2()) < MIN_SHOOT_DISTANCE)\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\t/*bulletPath = new Line2D(getRightPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t\tbulletPath = new Line2D(getPoint(), closestBullet.getPoint());\r\n\t\t\taim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);*/\r\n\t\t\t\r\n\t\t//}\r\n\t/*\tif(!secondClosestBullet.equals(IMAGINARY_BULLET))\r\n\t\t{\r\n\t\t\tLine2D bulletPath = new Line2D(getLeftPoint(), secondClosestBullet.getPoint());\r\n\t\t\tLine2D aim = new Line2D(posX, posY, (bulletPath.getX2()+bulletPath.getX1())/2,(bulletPath.getY2()+bulletPath.getY1())/2 );\r\n\t\t\tif(hasClearPath(aim))\r\n\t\t\t\taimAndShoot(aim);\r\n\t\t}*/\r\n\r\n\t}", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (850 < distanceX && distanceX < 950 && 400 < distanceY && distanceY < 500) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(5).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 5;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (200 < distanceX && distanceX < 280 && 600 < distanceY && distanceY < 680) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(6).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 6;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else if (310 < distanceX && distanceX < 450 && 200 < distanceY && distanceY < 340) {\n\t\t\t\t\tif (AllCharacter.getCharacters().get(7).isAlive()) {\n\t\t\t\t\t\tgc.drawImage(exclamation, x + 22, y - 60, 62, 62);\n\t\t\t\t\t\tisEnemyFound = true;\n\t\t\t\t\t\tGameScene.enermyID = 7;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tisEnemyFound = false;\n\t\t\t\t\tGameScene.enermyID = 0;\n\t\t\t\t\tanimate.stop();\n\t\t\t\t}\n\t\t\t}", "private boolean processMovingObject()\n {\n MovingObject[] ap_objects = p_gsb.ap_MovingObjects;\n for (int li = 0;li < ap_objects.length;li++)\n {\n MovingObject p_obj = ap_objects[li];\n\n if (!p_obj.lg_Active) continue;\n\n if (p_obj.process())\n {\n if (p_obj.i_State == MovingObject.STATE_EXPLODE)\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n\n if (p_obj.i_State == MovingObject.STATE_EXPLODE) continue;\n\n switch (p_obj.i_Type)\n {\n case MovingObject.TYPE_ARROW:\n {\n p_obj.i_scry -= ARROWSPEED;\n if (p_obj.i_scry <= (0 - p_obj.i_height))\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n ;\n break;\n case MovingObject.TYPE_ASSAULTER:\n {\n if (getRandomInt(1000) <= p_gsb.i_shotfreq)\n {\n MovingObject p_arrow = p_gsb.getInactiveMovingObject();\n if (p_arrow != null)\n {\n p_arrow.activate(MovingObject.TYPE_ARROW,MovingObject.STATE_UP);\n p_arrow.i_scrx = p_obj.i_scrx;\n p_arrow.i_scry = p_obj.i_scry - p_arrow.i_height;\n }\n }\n\n if (p_obj.i_State != MovingObject.STATE_DOWN) generateLadderAndDamForAssaulter(p_obj);\n\n switch (p_obj.i_State)\n {\n case MovingObject.STATE_LEFT:\n {\n if (p_obj.i_scrx - ASSAULTER_HORZSPEED < 0)\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n else\n {\n p_obj.i_scrx -= ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_RIGHT:\n {\n if (p_obj.i_scrx + p_obj.i_width + ASSAULTER_HORZSPEED >= i_screenWidth)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.i_scrx += ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_UP:\n {\n p_obj.i_scry -= ASSAULTER_VERTSPEED;\n if ((p_obj.i_scry + (p_obj.i_height >> 1)) / VIRTUALCELL_HEIGHT == 0/*p_gsb.i_playeralt*/) return true;\n }\n ;\n break;\n case MovingObject.STATE_DOWN:\n {\n p_obj.i_scry += ASSAULTER_VERTSPEED;\n int i_cellx = p_obj.i_scrx / VIRTUALCELL_WIDTH;\n int i_celly = (p_obj.i_scry + p_obj.i_height - 1) / VIRTUALCELL_HEIGHT;\n boolean lg_stop = false;\n if (i_celly < FIELD_HEIGHT-p_gsb.i_playeralt)\n {\n if (Assault_GSB.getElement(i_cellx,i_celly) != Assault_GSB.CELL_NONE) lg_stop = true;\n }\n else\n {\n lg_stop = true;\n i_celly--;\n }\n\n if (lg_stop)\n {\n p_obj.i_scry = i_celly * VIRTUALCELL_HEIGHT;\n if (getRandomInt(40) >= 20)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n }\n }\n ;\n break;\n }\n }\n ;\n break;\n case MovingObject.TYPE_STONE:\n {\n if (p_obj.i_State == MovingObject.STATE_DOWN)\n {\n p_obj.i_scry += STONESPEED;\n if ((p_obj.i_scry + p_obj.i_height) >= FIELD_HEIGHT * VIRTUALCELL_HEIGHT)\n {\n p_obj.i_scry = (FIELD_HEIGHT * VIRTUALCELL_HEIGHT) - p_obj.i_height - 1;\n p_obj.setState(MovingObject.STATE_EXPLODE,false);\n }\n }\n }\n ;\n break;\n }\n }\n return false;\n }", "@Override\r\n\tpublic void tick(){\n\t\tif(!alert){\r\n\t\t\tif(hostileToPlayer&&closeEnoughToAlert(World.player))\r\n\t\t\t\t{alert=true;target=World.player;}\r\n\t\t}\r\n\t\t\r\n\t\tif(alert&&null!=target){\r\n\t\t\t//For now, advance towards the player\r\n\t\t\tPathfinder.moveTowards(this, target);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//If within attacking range but not yet attacking, and not stunned, do so.\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}", "public abstract void makeBestMove();", "private String easyMove() {\n int randomHole = evaluate();\n while (!isValidMove(randomHole)) {\n randomHole = evaluate();\n }\n\n return super.makeAMove(randomHole);\n }", "@Override\n\tpublic void act(long now) {\n\n\t\tcheckIsFrogAtTheEdge();\n\t\t\tif (getIntersectingObjects(Car.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(Truck.class).size() >= 1 ||\n\t\t\t\tgetIntersectingObjects(LongTruck.class).size() >= 1)\n\t\t\t\t{\n\t\t\t\t\tintersectCar = true;\n\t\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Log.class).size() >= 1 && !death) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 6), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(LongLog.class).size() >= 1 && !death) {\n\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 8), 0);\n\t\t\t}\n\n\t\t\telse if (getIntersectingObjects(Turtle.class).size() >= 1) {\n\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t}\n\t\t\telse if (getIntersectingObjects(WetTurtle.class).size() >= 1){\n\t\t\t\tif (getIntersectingObjects(WetTurtle.class).get(0).isSunk()) {\n\t\t\t\t\tintersectWater = true;\n\t\t\t\t} else {\n\t\t\t\t\tmove(frogSpeed.ObjSpeed(frogLevel, 7), 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t else if (getIntersectingObjects(End.class).size() >= 1) {\n\n\t\t\t\t\tIntersectEnd();\n\t\t\t\t}\n\n\t\t\telse if (getY() < waterPositionY) {\n\t\t\t\tintersectWater = true;\n\t\t\t}\n\t\t\tgetlives();\n\n\t\t\tCheckIntersect(intersectCar, intersectWater, now);\n\t\t}", "@Override\n\tpublic void decide() {\n\t\tif (this.isDead) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(this.age >= this.lifeSpan) {\n\t\t\t// DIE\n\t\t\tthis.environment.removeAgent(this.getPosX(), this.getPosY());\n\t\t\tthis.isDead = true;\n\n\t\t\t// Print if required\n\t\t\tif (this.appConfig.hasTrace()) {\n\t\t\t\tSystem.out.println(\"Agent;Death;Fish;\" + this.getPosX() + \";\" + this.getPosY());\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tthis.age++;\n\t\tthis.color = Color.GREEN;\n\t\tboolean canFuck = this.breedTime == 0;\n\n\t\tint[] coordinates = this.chooseCoordinates();\n\n\t\t// fish cannot move or fuck because there is no place to do so\n\t\tif (coordinates == null) {\n\t\t\tthis.breedTime = this.breedTime > 0 ? this.breedTime - 1 : this.breedTime;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.environment.moveAgent(this, coordinates[0], coordinates[1]);\n\n\t\t// Time to fuck-zer\n\t\tif (canFuck) {\n\t\t\tthis.fuck(this.getPosX(), this.getPosY());\n\t\t}\n\t\t// Update breedtime in order to wait the holy fuck time\n\t\telse {\n\t\t\tthis.breedTime = this.breedTime > 0 ? this.breedTime - 1 : this.breedTime;\n\t\t}\n\t\tthis.posX = coordinates[0];\n\t\tthis.posY = coordinates[1];\n\t}" ]
[ "0.6465034", "0.6299358", "0.6271949", "0.62285763", "0.6200438", "0.6177816", "0.61745316", "0.6151494", "0.6148959", "0.6126259", "0.6124743", "0.6113127", "0.6056837", "0.60565877", "0.60027105", "0.59878874", "0.59068036", "0.5903054", "0.5897807", "0.588901", "0.58883715", "0.5887815", "0.58870125", "0.58845085", "0.5879555", "0.5862294", "0.5862189", "0.5859505", "0.58543336", "0.5854116", "0.58420324", "0.5838503", "0.58315086", "0.58249724", "0.58008814", "0.5799442", "0.57990754", "0.57928824", "0.5764754", "0.57550865", "0.57529646", "0.57396936", "0.57331115", "0.5729367", "0.5724558", "0.57232416", "0.5711291", "0.5685158", "0.5679467", "0.56768507", "0.56707793", "0.56639594", "0.5658471", "0.5646619", "0.5645359", "0.5637991", "0.5630407", "0.56257784", "0.56223166", "0.56222415", "0.56162137", "0.5615904", "0.55954456", "0.55866987", "0.55861497", "0.5577518", "0.55757046", "0.55753046", "0.55739105", "0.55702984", "0.55631816", "0.55538803", "0.5548551", "0.5547792", "0.5547726", "0.5543082", "0.5538384", "0.5536511", "0.55342555", "0.55335313", "0.5531084", "0.55304587", "0.5529957", "0.55236083", "0.55186963", "0.5506128", "0.5505986", "0.5504624", "0.55005044", "0.5497878", "0.5496535", "0.5496522", "0.54956317", "0.5493061", "0.54852366", "0.54776025", "0.54702014", "0.5469056", "0.54554296", "0.5454965" ]
0.5673016
50
makes one move in the bottom direction, i.e., decrements positionX by 1
public boolean moveDown() throws EatableObjectOnPlaceException { if (!treeInBelow() && !mouseBelow()) { if (!onBottomBorder(positionY)) { positionY = positionY + 1; eatPerformingStep(); return true; } else { return moveUp(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "public void moveUp() {\n locY = locY + 1;\n }", "public void moveDown() {\n locY = locY - 1;\n }", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void moveUp()\n\t{\n\t\ty = y - STEP_SIZE;\n\t}", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public void moveBackward(int speed) throws JposException;", "public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }", "public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}", "@Override\n public boolean move() {\n return this.decrementX();\n }", "public void moveUp() {\n\t\tsetPosY(getPosY() - steps);\n\t}", "public void moveDown() {\n\t\tsetPosY(getPosY() + steps);\n\t}", "public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}", "public void moveUp() {\n\t\tposY += speed;\n\t}", "public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\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 }", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public void moveDown()\n\t{\n\t\ty = Math.min(y + 1, main.HEIGHT-1);\n\t\tsprite.setPosition(x*sprite.getWidth(),y*sprite.getHeight());\n\t}", "public void setBottom() {\n reset(State.BOTTOM);\n }", "public void moveUp() {\n if (ycoor >= movingSpeed) {\n ycoor = ycoor - movingSpeed;\n }\n }", "public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }", "public void moveUp()\n {\n if (yPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative Y because we are moving UP!\n movementY = -0.5;\n movementX = 0;\n }", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "public void moveAsteroidUpandDown() {\t\t\t\r\n\t\tsetX(this.getX()+1);\r\n\t}", "public void moveDown() {\n\t\tposY -= speed;\n\t}", "public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }", "public void moveDown() {\n if (ycoor <= Game.heightOfGameBoard - movingSpeed) {\n ycoor = ycoor + movingSpeed;\n }\n\n }", "void moveDown() {\n\t\tsetY(y+1);\r\n\t\tdx=0;\r\n\t\tdy=1;\r\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "public void moveUp(float distance)\r\n {\r\n position.y -= distance;\r\n }", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void moveUp() {\n if (getY() - 25 - getSpeed() >= 0 && !touchMaterial()) setY(getY() - getSpeed());\n }", "public void moveUp()\n\t{\n\t\tthis.grid.moveUp();\n\t}", "public void moveDown() {\n btMoveDown().push();\n }", "public void moveDown() {\n btMoveDown().push();\n }", "public void move(float x, float y) {\n\t\tthis.position.set(this.position.x + x, this.position.y + y, 0);\n\t}", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "@Override\n public void move(double xa, double ya) {\n if (alive) {\n y += ya;\n x += xa;\n }\n }", "public void moveUp() {\n this.accelerateYU();\n this.moveY(this.getySpeed());\n this.setPicX(0);\n this.setPicY(211);\n this.setLoopCells(true);\n }", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "private void moveUpDown(int Height) {\n d = Math.random();\n if (d < 0.1 && getY() + wolfHeight <= Height - Height / 40) setY(getY() + Height / 40);\n else if (d > 0.9 && getY() >= 15) setY(getY() - Height / 40);\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void moveDown()\n\t{\n\t\tthis.grid.moveDown();\n\t}", "public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}", "public void moveDown() {\n\t\t\n\t}", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveUp() {\n btMoveUp().push();\n }", "public void moveDown() {\n Coordinate downCoord = new Coordinate(getX(), getY() + 1);\n handleMove(downCoord, InteractionHandler.DOWN);\n }", "public void moveRight() {\n locX = locX + 1;\n }", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void moveUp() {\n Coordinate upCoord = new Coordinate(getX(), getY() - 1);\n handleMove(upCoord, InteractionHandler.UP);\n }", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public void moveDown(float distance)\r\n {\r\n position.y += distance;\r\n }", "public void up() {dy = -SPEED;}", "private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "void moveUp();", "void moveUp();", "public void updatePositionAgain(boolean moveLeft) {\r\n // move horizontally to one direction\r\n if (moveLeft) {\r\n posx--;\r\n } else {\r\n posx++;\r\n }\r\n }", "void moveDown();", "void moveDown();", "public void move()\n {\n erase();\n \n\n yPosition += ySpeed;\n xPosition += xSpeed;\n\n if(yPosition >= (groundPositionY1 - diameter)){ //450\n yPosition = (int)(groundPositionY1 - diameter);\n ySpeed = -ySpeed;\n }\n\n if(yPosition <= groundPositionY2){ //40\n yPosition = (int)(groundPositionY2);\n ySpeed = -ySpeed;\n } \n\n if(xPosition <= groundPositionX2){ //50\n xPosition = (int)(groundPositionX2);\n xSpeed = -xSpeed;\n }\n\n // check if it has hit the ground\n if(xPosition >= (groundPositionX1 - diameter)) { //550\n xPosition = (int)(groundPositionX1 - diameter);\n xSpeed = -xSpeed; \n }\n\n // draw again at new position\n draw();\n }", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "public void moveUp(){\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.UP;\n\t\tif(animation!=ANIMATION.MOVEUP) {\n\t\t\tanimation=ANIMATION.MOVEUP;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tdirection=\"up\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelY=-1*spd/2;\n\t\tvelX=0;\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 goDown()\r\n\t{\r\n\t\tthis.Y++;\r\n\t}", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}", "public void updateUp() {\n int newY = this.getY() + 1;\n this.setY(newY);\n }", "public void moveDown()\n\t{\n\t\trow--;\n\t}", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void setBottom(int x) {\r\n bottomSide = x;\r\n }", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }", "public void move()\n\t{\n\t\tx = x + logDx;\n\t}", "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }", "public void move()\n\t{\n\t\tx = x + dx;\n\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "public void moveBird() {\n\t\t// your code here\n\t\txBird += xVelo;\n\t\tyBird += yVelo;\n\t\t\n\t\tif(gSwitch) {\n\t\t\tyVelo += G;\n\t\t}\n\t\t\n\t\tif (yI >= W_HEIGHT) {\n\t\t\txI = 200; yI = 300;\n\t\t\tgSwitch = false;\n\t\t\txVelo = 0; yVelo = 0;\n\t\t\t}\n\t\t}", "public void move(){\n\t\t\n\t}", "public MoveAction(float xDir, float yDir) {\n\t\tsuper(Align.bottomLeft);\n\t\tdX = xDir;\n\t\tdY = yDir;\n\t}", "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 left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}", "public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}", "public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }", "public void moveY() {\n\t\tsetY( getY() + getVy() );\n\t}", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "void move() {\n x -= speed;\n }" ]
[ "0.6729871", "0.67296237", "0.66771626", "0.66752446", "0.6662027", "0.66410506", "0.66212595", "0.6614677", "0.6612748", "0.6610651", "0.658203", "0.6569438", "0.6547259", "0.65469486", "0.6538365", "0.65372473", "0.6534456", "0.6515021", "0.6486989", "0.64459157", "0.6441469", "0.6406709", "0.6380694", "0.6369192", "0.6362352", "0.6343998", "0.63326216", "0.6327409", "0.6327399", "0.6306944", "0.62988275", "0.6297436", "0.6287264", "0.62852055", "0.62646675", "0.62619185", "0.62569934", "0.6237526", "0.6215487", "0.62096137", "0.6206426", "0.6206426", "0.6205172", "0.6191178", "0.6184114", "0.6179233", "0.6162803", "0.61603624", "0.6158907", "0.6154248", "0.61481124", "0.6147893", "0.61407727", "0.6133155", "0.6133155", "0.61262006", "0.61231667", "0.6118471", "0.61163944", "0.6103704", "0.6083697", "0.6053515", "0.60464597", "0.60344505", "0.60272056", "0.60272056", "0.60243523", "0.60176796", "0.60176796", "0.60115814", "0.60018766", "0.5996722", "0.5988564", "0.59849024", "0.5981721", "0.5979482", "0.59786487", "0.59781396", "0.59703374", "0.59649694", "0.5962782", "0.5956538", "0.5951251", "0.5947839", "0.5939635", "0.5933187", "0.5931568", "0.5930191", "0.59272635", "0.59254986", "0.59156173", "0.59058094", "0.5904616", "0.59003377", "0.5898656", "0.5893258", "0.58924854", "0.588657", "0.588361", "0.5883046", "0.5878806" ]
0.0
-1
makes one move in the left direction, i.e., decrements positionX by 1
public boolean moveLeft() throws EatableObjectOnPlaceException { if (!treeOnLeft() && !mouseOnLeft()) { if (!onLeftBorder(positionX)) { positionX = positionX - 1; eatPerformingStep(); return true; } else { return moveRight(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n movementY = 0;\n }", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveLeft() {\n\t\tsetPosX(getPosX() - steps);\n\t}", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public void moveLeft() {\n\t\tposX -= speed;\n\t}", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "public void moveLeft(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.LEFT;\n\t\tif(animation!=ANIMATION.MOVELEFT) {\n\t\t\tanimation=ANIMATION.MOVELEFT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.LEFT;\n\t\tdirection=\"left\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=-1*spd/2;\n\t\tvelY=0;\n\t}", "public void moveLeft() {\r\n\t\t\r\n\t\tint leftSteps=10;\r\n\t\t\ttopX-= leftSteps;\r\n\t}", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }", "public void moveLeft()\n\t{\n\t\tx = x - STEP_SIZE;\n\t}", "public void moveLeft()\n\t{\n\t\tmoveLeft = true;\n\t}", "public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }", "public void moveLeft() {\n \tif(!move.moveLeft()) {\n \t\tif(physinteractor(getX()-1,getY())) {\n \t\t\tmove.moveLeft();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }", "public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }", "public void moveLeft() {\n\t\t\n\t}", "public void moveLeft() {\n speedX -= (speedX > 0) ? acceleration * 2 : acceleration;\n if (speedX < -maxSpeed) {\n speedX = -maxSpeed;\n }\n direction = Direction.LEFT;\n }", "public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "public void moveLeft(){\n myRectangle.setX(myRectangle.getX() - PADDLE_SPEED);\n }", "private void turnLeft() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.NORTH;\n break;\n case WEST:\n direction = Position.Direction.SOUTH;\n break;\n case NORTH:\n direction = Position.Direction.WEST;\n break;\n case SOUTH:\n direction = Position.Direction.EAST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "public void moveLeft() {\n this.velocity = this.velocity.add(leftVelocity());\n }", "public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }", "void moveLeft();", "public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void moveLeft(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex -= 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex >= 0) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very first line move to the end of the previous line\n if (lineIndex > 0) {\n lineIndex--;\n currentText = texts.get(lineIndex);\n characterIndex = currentText.getCharacterEdges().length - 1;\n if (characterIndex < 0) {\n characterIndex = 0;\n }\n updatePosition();\n }\n //If this is the first line character index should not change and position does not need to be updated\n else {\n characterIndex = 0;\n }\n }\n }\n }", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "public void updatePositionAgain(boolean moveLeft) {\r\n // move horizontally to one direction\r\n if (moveLeft) {\r\n posx--;\r\n } else {\r\n posx++;\r\n }\r\n }", "public void moveTileLeft(float delta) {\n if (x > destinationX + COMBAT_MOVEMENT_SPEED * delta) speedX = -COMBAT_MOVEMENT_SPEED;\n else {\n speedX = (destinationX - x) / delta;\n isMoving = false;\n isMovingLeft = false;\n }\n direction = Direction.LEFT;\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }", "@Override\r\n\tpublic void moveLeft() {\n\t\tswitch(state) {\r\n\t\tcase 0: case 2:\r\n\t\t\t{\r\n\t\t\t\tboolean ok = true;\r\n\t\t\t\tfor(Case c: cases) {\r\n\t\t\t\t\tif(!grille.isEmpty(c.getX()+x-1, c.getY()+y))\r\n\t\t\t\t\t\tok = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(ok)\r\n\t\t\t\t\t--x;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t{\r\n\t\t\tint x3 = cases.get(3).getX()-1, y3 = cases.get(3).getY();\r\n\t\t\tif(grille.isEmpty(x+x3, y+y3))\r\n\t\t\t\t--x;\r\n\t\t\t\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tint x0 = cases.get(0).getX()-1, y0 = cases.get(0).getY();\r\n\t\t\tif(grille.isEmpty(x+x0, y+y0))\r\n\t\t\t\t--x;\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault : \r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}", "public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}", "public void slideLeft() {\n turnLeft();\n move();\n turnRight();\n }", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "public Vertex moveLeft() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x - 1, e);\n }\n return current;\n }", "public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}", "@Test\n\tpublic final void nextPositionLeftTest() {\n\t\tplayer.setLeft(true);\n\t\tplayer.setMovSpeed(3.0);\n\t\tplayer.setMaxSpeed(2.0);\n\t\tplayer.getNextXPosition();\n\t\tassertEquals(player.getDx(), -2.0, 0.1);\n\t}", "public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "@Override\n\tpublic void moveLeft()\n\t{\n\t\tif (!isAtStart()) right.push(left.pop());\n\n\t}", "private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }", "private boolean moveLeft() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() - rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() - rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}", "public void setMoveLeft(boolean TorF) {\n moveLeft = TorF;\n }", "public void moveLeft(int delta){\n //if the object is not already moving at maximum speed\n if(x_velocity > -maximumSpeed){\n //then the object will accelerate towards maximum speed\n x_velocity -= accelerationSpeed*delta;\n if(x_velocity < -maximumSpeed){\n //and if the object exceeds maximum speed, set it to maximum speed\n x_velocity = -maximumSpeed;\n }\n }\n // if()\n moving = true;\n facing = Facing.LEFT;\n movingLeft = true;\n movingRight = false;\n \n \n }", "public void turnLeft(int ticks){\n\t\tposition = (position + ticks)%40;\n\t\tcount++;\n\t\tcheckTurn(ticks);\n\t}", "@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "public void rotateLeft() {\n\t\tthis.direction = this.direction.rotateLeft();\n\t}", "public void moveLeft(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperLeft().getX() - adjustedSpeed > 0) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() - adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() - adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() - adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() - adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(0, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(0, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(this.width, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(this.width, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n }", "public FallingPiece moveLeft(){\r\n return new FallingPiece(coord.moveLeft(), innerPiece);\r\n }", "public Direction moveLeft() {\n switch(this){\n case EAST :\n return NORTH;\n case SOUTH :\n return EAST;\n case WEST :\n return SOUTH;\n case NORTH :\n return WEST;\n }\n return this;\n }", "public void setXLeft(int left) {\n this.xLeft = left;\n }", "public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }", "private void LeftLeftLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t}", "@Override\r\n\tpublic void setLeft(MoveLeftCommand left) {\n\r\n\t}", "public boolean moveLeft()\n {\n\tboolean update;\n\tboolean action = false;\n\t\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n for (int x=0; x<cases[y].length; x++)\n\t\t{\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n merge = merge(cases[x][y+1],cases[x][y]);\n move = move(cases[x][y+1],cases[x][y]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n }\n }\n } while (update);\n \n return action;\n }", "public void turnLeft() {\n\t\tthis.setSteeringDirection(getSteeringDirection()-5);\n\t\t}", "public void moveSpaceShipLeft() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveLeft();\n\t}", "@Override\r\n\tpublic String moveLeft() {\n\r\n\t\tif((0<x && x<=50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((40<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}", "public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }", "public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }", "private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void setLeft() {\n\t\tstate = State.LEFT;\n\t}", "private static int moveLeft()\n {\n int num_chocolates = choArr[baby.row][baby.column-1];\n // change both the choArr and baby position\n baby.column=baby.column-1;\n choArr[baby.row][baby.column]=0;\n return num_chocolates;\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}", "public void moveCursorLeft();", "@FXML\n\tprivate void moveLeft(ActionEvent event) {\n\t\t\n\t\tRandom rand = new Random();\n\t\t\n\t\tint combatroll = rand.nextInt(101);\n\t\tint itemroll = rand.nextInt(101);\n\t\t\n\t\tif(l.leftValid && combat == false) {\n\t\t\tunsetValidMoves();\n\t\t\tl.moveLeft();\n\t\t\tsetCurrentPos();\n\t\t\tif(combatroll <= 80) { // Roll for combat\n\t\t\t\t\n\t\t\t\tcombat();\t\n\t\t\t}else if(itemroll>=40) {\n\t\t\t\trollCommonDrop();\n\t\t\t}\n\t\t}else {\n\t\t\treturn;\n\t\t}\n\t}", "public boolean isMoveLeft() {\n return moveLeft;\n }", "public void moveLeft(int speed)\n {\n if(getRotation()==0)\n {\n turn(180);\n move(speed);\n }\n else if(getRotation()==90)\n {\n turn(90);\n move(speed);\n }\n else if(getRotation()==180)\n {\n move(speed);\n }\n else if(getRotation()==270)\n {\n turn(-90);\n move(speed);\n }\n }", "public void setLeft(int x) {\r\n leftSide = x;\r\n }", "private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }", "public void rotatePieceLeft(){\r\n if (hasFalling()){\r\n FallingPiece test = falling.rotateLeft();\r\n if (!moveIfNoConflict(test, falling))\r\n Kick(test, falling);\r\n if(isGhostActivated())\r\n \t\t\tgenerateGhost();\r\n }\r\n }", "public void turnLeft ()\n\t{\n\t\t//changeFallSpeed (-1);\n\t\tturnInt = -1;\n\t}", "public void rotLeft()\n\t{\n\t\t//only rotate if a PlayerShip is currently spawned\n\t\tIIterator iter = gameObj.getIterator();\n\t\twhile(iter.hasNext ())\n\t\t{\n\t\t\tGameObject current = (GameObject)iter.getNext();\n\t\t\tif(current instanceof PlayerShip)\n\t\t\t{\n\t\t\t\t((PlayerShip)current).moveLeft();\n\t\t\t\tSystem.out.println(\"Heading -20\");\n\t\t\t\tnotifyObservers();\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(\"There is no playerShip spawned\");\n\t}", "private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void turnLeft(double speed) {\n\t\tRobotMap.frontLeft.set(-speed);\n\t\tRobotMap.backLeft.set(-speed);\n\t\tRobotMap.frontRight.set(-speed);\n\t\tRobotMap.backRight.set(-speed);\n\t}", "public void moveX() {\n\t\tsetX( getX() + getVx() );\n\t}", "private void stateMovingLeft(float dt) {\n setPosition(b2body.getPosition().x - getWidth() / 2, b2body.getPosition().y - getHeight() / 2);\n setRegion(bridgeStand);\n\n // Kinematic bodies do not collide with static ones (we can't use WorldContactListener)\n float velX;\n if (getX() <= 0) {\n velX = b2body.getLinearVelocity().x * -1;\n b2body.setLinearVelocity(velX, VELOCITY_Y);\n currentState = State.MOVING_RIGHT;\n }\n }", "public void moveX(boolean isRight){\n if(isRight){\n this.x += velocity[0];\n } else{\n this.x -= velocity[0];\n }\n }", "private void moveRightLeft(int Width) {\n if (goingRight) {\n if (getX() + wolfWidth >= Width) turnAround();\n else setX(getX() + Width / 40);\n } else {\n if (getX() <= 0) turnAround();\n else setX(getX() - Width / 40);\n }\n }", "public void turnLeft()\r\n\t{\r\n\t\t\r\n\t\theading -= 2; //JW\r\n\t\t//Following the camera:\r\n\t\t\t//heading -= Math.sin(Math.toRadians(15))*distance; \r\n\t\t\t//heading -= Math.cos(Math.toRadians(15))*distance;\r\n\t}", "private void left(int pos) {\n while (pos < gapLeft) {\n gapLeft--;\n gapRight--;\n buffer[gapRight+1] = buffer[gapLeft];\n buffer[gapLeft] = '\\0';\n }\n }", "void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }", "public void left() {\n\t\tstate.left();\n\t}", "public void setLeft(boolean left) {\n\t\tthis.left = left;\n\t}", "public void moveShiftLeft();", "public void setKeyMoveLeft(KeyCode moveLeft) {\n this.moveLeft = moveLeft;\n }", "public void movement() {\n\n\t\t// If the player wants to move left ie presses 'a' key..\n\t\tif (spaceInvadersGame.getKeyManager().left) {\n\n\t\t\t// If the player is on the left bound of the window do not move.\n\t\t\tif (xPosition <= 0) {\n\n\t\t\t\t// Move the player's xPosition left.\n\t\t\t} else {\n\t\t\t\txPosition -= playerSpeed;\n\t\t\t}\n\n\t\t} else if (spaceInvadersGame.getKeyManager().right) {\n\t\t\tif (xPosition >= 500 - width) {\n\n\t\t\t} else {\n\t\t\t\txPosition += playerSpeed;\n\t\t\t}\n\t\t}\n\t}", "private void moveTo(int position) {\n if (position < gapLeft) {\n left(position);\n }\n else {\n right(position);\n }\n }", "void setLeft(boolean left) {\n myLeft = left;\n }", "public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}", "public boolean slideLeft() {\n\t\tif (currentCol > 0) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow][currentCol - 1];\n\t\t\tcurrentCol--;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}" ]
[ "0.8803676", "0.86977845", "0.8654344", "0.8571584", "0.8516289", "0.85117185", "0.8500286", "0.8481255", "0.8470026", "0.84410644", "0.8413143", "0.8379607", "0.8370533", "0.8302101", "0.82775366", "0.82645684", "0.8220134", "0.81312764", "0.80769426", "0.80278426", "0.7993472", "0.7958536", "0.79411495", "0.7922928", "0.7907761", "0.7883747", "0.7812676", "0.77906233", "0.7789504", "0.7720023", "0.7687598", "0.76406837", "0.7626891", "0.75864685", "0.7585891", "0.7529828", "0.74977434", "0.74890727", "0.7476667", "0.74422944", "0.7424495", "0.7389491", "0.7366353", "0.73623556", "0.730317", "0.72801423", "0.7278133", "0.7259072", "0.725684", "0.7251966", "0.7250645", "0.7248192", "0.7176978", "0.71640766", "0.7092265", "0.7088785", "0.7081757", "0.7072423", "0.7065818", "0.7059723", "0.7040486", "0.6998332", "0.69906974", "0.6982803", "0.69779944", "0.69499433", "0.69499207", "0.69347507", "0.69293135", "0.69022006", "0.68942505", "0.68848854", "0.6853101", "0.68518126", "0.685018", "0.6839286", "0.68319714", "0.68243736", "0.6797788", "0.6795708", "0.6789265", "0.67844963", "0.67710847", "0.6756404", "0.6701354", "0.6696613", "0.66841984", "0.6655788", "0.66526276", "0.66503334", "0.6632393", "0.66269916", "0.6626312", "0.6625156", "0.6621045", "0.6619553", "0.6612067", "0.6609219", "0.6591187", "0.659015" ]
0.7095701
54
makes one move in the right direction, i.e., decrements positionX by 1
public boolean moveRight() throws EatableObjectOnPlaceException { if (!treeOnRight() && !mouseOnRight()) { if (!onRightBorder(positionX)) { positionX = positionX + 1; eatPerformingStep(); return true; } else { return moveLeft(); } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "public void moveRight() {\n locX = locX + 1;\n }", "void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}", "public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}", "public void moveRight()\n {\n if (xPos == xBound)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - positive X because we are moving RIGHT! \n movementX = 0.5;\n movementY = 0;\n }", "public void moveRight() {\n\t\tsetPosX(getPosX() + steps);\n\t}", "public void moveRight() {\n\t\tposX += speed;\n\t}", "public void moveRight()\n\t{\n\t\tmoveRight = true;\n\t}", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "public void moveRight()\n\t{\n\t\tx = x + STEP_SIZE;\n\t}", "public void moveRight() {\n Coordinate rightCoord = new Coordinate(getX() + 1, getY());\n handleMove(rightCoord, InteractionHandler.RIGHT);\n }", "public void moveRight() {\n\t\t\n\t}", "public void moveRight(){\n\t\tif(GameSystem.TWO_PLAYER_MODE){\n\t\t\tif(Game.getPlayer2().dying){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif(animation==ANIMATION.DAMAGED||Game.getPlayer().dying||channelling||charging) return;\n\t\tmoving=true;\n\t\tbuttonReleased=false;\n\t\torientation=ORIENTATION.RIGHT;\n\t\tif(animation!=ANIMATION.MOVERIGHT) {\n\t\t\tanimation=ANIMATION.MOVERIGHT;\n\t\t\tif(run!=null) sequence.startSequence(run);\n\t\t}\n\t\tfacing=FACING.RIGHT;\n\t\tdirection=\"right\";\n\t\tsetNextXY();\n\t\tsetDestination(nextX,nextY);\n\t\tvelX=spd/2;\n\t\tvelY=0;\n\t}", "public void moveRight() {\n if (xcoor <= Game.widthOfGameBoard - movingSpeed) {\n xcoor = xcoor + movingSpeed * 2;\n }\n }", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void right() {\n if (x + movementSpeed < 450) {\r\n x = x + movementSpeed;\r\n }\r\n }", "public void moveRight(){\n myRectangle.setX(myRectangle.getX() + PADDLE_SPEED);\n }", "public void moveRight() {\n this.accelerateXR();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(74);\n this.setLoopCells(true);\n }", "void moveRight();", "private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "public void moveRight() {\n speedX += (speedX < 0) ? acceleration * 2 : acceleration;\n if (speedX > maxSpeed) {\n speedX = maxSpeed;\n }\n direction = Direction.RIGHT;\n }", "public void moveRight(int x){\r\n \tbox.translate(x,0);\r\n \tif (selfmove){ //if the frog is moving itself\r\n \t\timg = imgs[1]; //draw a moving animation\r\n \t\tdelay = 10; //for 10 frames\r\n \t}\r\n \t\r\n }", "public void moveRight() {\n if (!this.state.equals(\"onRightWall\")) {\n this.dir = 1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }", "public void moveRight() {\n \t\n \tif(!move.moveRight()) {\n \t\tif(physinteractor(getX()+1,getY())) {\n \t\t\tmove.moveRight();\n \t\t\tnonphysinteractor(getX(),getY());\n \t\t\tupdatemove();\n \t\t}\n }else {\n \t//System.out.print(\"I moved right\" + getX() + getY());\n \tupdatemove();\n \tnonphysinteractor(getX(),getY());\n }\n }", "public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }", "public void moveRight() {\n this.position.addColumn(1);\n }", "private void moveRight(){\n if(getXFromCamera() > -10 && getXFromCamera() < 10){\n getWorld().moveCamera(speed);\n }\n setGlobalLocation(getGlobalX() + speed, getGlobalY());\n animationSpeedRight();\n }", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}", "public void updatePositionAgain(boolean moveLeft) {\r\n // move horizontally to one direction\r\n if (moveLeft) {\r\n posx--;\r\n } else {\r\n posx++;\r\n }\r\n }", "public void goRight() {\n\t\tx += dx;\n\t\tbgBack.setDx(false);\n\t\tbgBack.move();\n\t\tif(x > Game.WIDTH - 200) {\n\t\t\tif(!bgBack.getReachEnd()) {\n\t\t\t\tx = Game.WIDTH - 200;\n\t\t\t\tbgFront.setDx(false);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x > Game.WIDTH - 50) {\n\t\t\t\tx = Game.WIDTH - 50;\n\t\t\t}\n\t\t}\n\t}", "public void goRight()\r\n\t{\r\n\t\tthis.X++;\r\n\t}", "public boolean moveRight() {\r\n\t\tif (this.x >= 1050 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x += 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "private void playerMoveRight()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() + 1);\n if (this.getCurrentX() < 11) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(this.getCurrentX() - 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}", "public void moveRight() {\n this.velocity = this.velocity.add(rightVelocity());\n }", "public void moveLeft() {\n locX = locX - 1;\n }", "public void moveRight(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //Try to move the cursor\n characterIndex += 1;\n //If the cursor did not wrap onto a new line then update it's position\n if (characterIndex < currentText.getCharacterEdges().length) {\n updateXPosition(true);\n }\n //If the cursor wrapped onto a new line\n else {\n //If this was not the very last line move to the beginning of the next line\n if (lineIndex < texts.size() - 1) {\n lineIndex++;\n currentText = texts.get(lineIndex);\n characterIndex = 0;\n updatePosition();\n }\n //If this is the last line character index should not change and position does not need to be updated\n else {\n characterIndex = currentText.getCharacterEdges().length - 1;\n }\n }\n }\n }", "@Override\n public boolean move() {\n return this.decrementX();\n }", "public void moveRight() {\r\n speedX = 6;\r\n Texture r1 = changeImg (\"./graphics/characters/player/rightWalk1.png\");\r\n img = new Sprite (r1);\r\n if (centerX > startScrolling)\r\n bg.setBackX (bg.getBackX () + 6);\r\n bg.update ();\r\n }", "public void reverseX()\r\n {\r\n\t if(moveX < 0)\r\n\t\t moveX = moveX * (-1);\r\n\t else if(moveX > 0)\r\n\t\t moveX = moveX * (-1);\r\n }", "public void slideRight() {\n turnRight();\n move();\n turnLeft();\n }", "public void moveRight()\n\t{\n\t\tcol++;\n\t}", "public void moveRight(int delta){\n if(x_velocity < maximumSpeed){\n x_velocity += accelerationSpeed*delta;\n if(x_velocity > maximumSpeed){\n x_velocity = maximumSpeed;\n }\n }\n moving = true;\n facing = Facing.RIGHT;\n movingRight = true;\n movingLeft = false;\n }", "public void moveX(boolean isRight){\n if(isRight){\n this.x += velocity[0];\n } else{\n this.x -= velocity[0];\n }\n }", "public void turnRight(int ticks){\n\t\tposition = (position - ticks)%40;\n\t\tif (position < 0)\n\t\t\tposition+=40;\n\t\tcount++;\n\t\tcheckTurn(ticks);\n\t}", "@Override\n\tpublic boolean moveRight() {\n\t\tboolean rs = super.moveRight();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}", "public void moveRight() {\n for(int i=0;i<this.body.size();i++){\n// TranslateTransition translate = new TranslateTransition();\n// translate.setNode(this.body.get(i));\n// smoothSnake obj=new smoothSnake();\n// obj.swiftSnake(translate,i,this,1);\n this.body.get(i).setCenterX(this.body.get(i).getCenterX()+10);\n }\n\n \tsetScoreText();\n }", "void moveRight() {\n\t\ttry {\n\t\t\twhile(x + 60 < getWidth()) {\n\t\t\t\tx += 10;\n\t\t\t\twin.repaint();\n\t\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t} catch(InterruptedException e) {\n\t\t}\n\t}", "public Vertex moveRight() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x + 1, e);\n }\n return current;\n }", "public void moveLeft()\n {\n if (this.x >= 2) {\n --x;\n } else {\n System.out.println(\"Move is outside of the field! Try again.\");\n }\n }", "public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}", "protected void down() {\n move(positionX, positionY + 1);\n orientation = BattleGrid.RIGHT_ANGLE;\n }", "public void right () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.EAST);\n if (canMove(next)) {\n moveTo(next);\n }\n }", "public void moveRight() {\n if (rec.getUpperLeft().getX() + rec.getWidth() + 5 > rightBorder) {\n rec.getUpperLeft().setX(rightBorder - rec.getWidth());\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() + 5);\n }\n }", "public void moveTileRight(float delta) {\n if (x < destinationX - COMBAT_MOVEMENT_SPEED * delta) speedX = COMBAT_MOVEMENT_SPEED;\n else {\n speedX = (destinationX - x) / delta;\n isMoving = false;\n isMovingRight = false;\n }\n direction = Direction.RIGHT;\n }", "public void moveRight(double dt) {\r\n double adjustedSpeed = this.mySpeed * dt;\r\n if (this.myPaddle.getUpperRight().getX() + adjustedSpeed < 800) {\r\n myPaddle.getUpperLeft().setPosition(\r\n myPaddle.getUpperLeft().getX() + adjustedSpeed,\r\n myPaddle.getUpperLeft().getY());\r\n myPaddle.getLowerLeft().setPosition(\r\n myPaddle.getLowerLeft().getX() + adjustedSpeed,\r\n myPaddle.getLowerLeft().getY());\r\n myPaddle.getUpperRight().setPosition(\r\n myPaddle.getUpperRight().getX() + adjustedSpeed,\r\n myPaddle.getUpperRight().getY());\r\n myPaddle.getLowerRight().setPosition(\r\n myPaddle.getLowerRight().getX() + adjustedSpeed,\r\n myPaddle.getLowerRight().getY());\r\n this.thisOne.setRect(myPaddle);\r\n } else {\r\n myPaddle.getUpperLeft().setPosition(800 - this.width, getUpperLeftY);\r\n myPaddle.getLowerLeft().setPosition(800 - this.width, getUpperLeftY + 10);\r\n myPaddle.getUpperRight().setPosition(800, getUpperLeftY);\r\n myPaddle.getLowerRight().setPosition(800, getUpperLeftY + 10);\r\n this.thisOne.setRect(myPaddle);\r\n }\r\n\r\n }", "@Override\n\tpublic void moveRight()\n\t{\n\t\tif (!isAtEnd()) left.push(right.pop());\n\t}", "void moveLeft() {\n\t\tsetX(x-1);\r\n\t\tdx=-1;\r\n\t\tdy=0;\r\n\t}", "public void moveLeft() {\n\t\tposX -= speed;\n\t}", "@Test\n\tpublic final void nextPositionRightTest() {\n\t\tplayer.setRight(true);\n\t\tplayer.setMovSpeed(3.0);\n\t\tplayer.setMaxSpeed(2.0);\n\t\tplayer.getNextXPosition();\n\t\tassertEquals(player.getDx(), 2.0, 0.1);\n\t}", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "public void turnRight() {\n\t\tthis.setSteeringDirection(getSteeringDirection()+5);\n\t}", "public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}", "public void moveLeft() {\n if (xcoor >= movingSpeed) {\n xcoor = xcoor - movingSpeed * 2;\n }\n }", "public void animateMovementRight()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (rightMvt.length);\n setImage(rightMvt[imageNumber]);\n }\n }", "public static void turnRight() {\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.backward();\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void moveLeft() {\n\t\t\n\t}", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void setMoveRight(boolean moveRight) {\n\t\tthis.moveRight = moveRight;\n\t}", "private boolean moveRight() {\n\t\tint moduleSpeed = stats.getSPEED();\n\n\t\tgetTorax().setRotationg(getTorax().getRotationg() + rotationRate);\n\t\tgetLegs().setRotationg(getLegs().getRotationg() + rotationRate);\n\n\t\tgetSpeed().setX(Math.cos(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\t\tgetSpeed().setY(Math.sin(Math.toRadians(getTorax().getRotationg() - 90)) * moduleSpeed);\n\n\t\tincreaseInfection();\n\n\t\treturn true;\n\t}", "public void moveShiftRight();", "public void turnRight ()\n\t{\n\t\t//changeFallSpeed (1);\n\t\tturnInt = 1;\n\t}", "public void left() {\n if (x - movementSpeed > -55) {\r\n x = x - movementSpeed;\r\n }\r\n }", "public void moveCursorRight();", "private void moveRightLeft(int Width) {\n if (goingRight) {\n if (getX() + wolfWidth >= Width) turnAround();\n else setX(getX() + Width / 40);\n } else {\n if (getX() <= 0) turnAround();\n else setX(getX() - Width / 40);\n }\n }", "public void moveLeft()\n\t{\n\t\tcol--;\n\t}", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "public void goLeft()\r\n\t{\r\n\t\tthis.X--;\r\n\t}", "@Override\n\tpublic void run() {\n\t\tmoveRight();\n\t}", "public void move() {\r\n\t\tx = x + speed;\r\n\t}", "public void moveSpaceShipRight() {\n\t\tSpaceship sp = getTheSpaceship();\n\t\tsp.moveRight();\n\t}", "public void rotateRight() {\n\t\tthis.direction = this.direction.rotateRight();\n\t}", "@Override\r\n\tpublic String moveRight() {\n\t\tif((0<=x && x<50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((40<=x && x<50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public FallingPiece moveRight(){\r\n return new FallingPiece(coord.moveRight(), innerPiece);\r\n }", "void moveLeft();", "public void move()\n\t{\n\t\tx = x + dx;\n\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}", "public void calRightMove() {\n }", "public void moveLeft() {\n this.x -= 10;\n repaint();\n }", "private boolean movingRight() {\n return this.velocity.sameDirection(Vector2D.X_UNIT);\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "public void reverseDirectionX()\n\t{\n\t\t\n\t\tvx = -vx;\n\t\t\n\t}", "@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}" ]
[ "0.845582", "0.84274983", "0.8267892", "0.81166756", "0.8112357", "0.80741733", "0.8044634", "0.79563946", "0.79021907", "0.78938603", "0.787656", "0.78425235", "0.7778833", "0.77736235", "0.7771624", "0.7737789", "0.77166504", "0.7709744", "0.7678476", "0.76457465", "0.76149946", "0.7613699", "0.7573186", "0.753452", "0.7526181", "0.75196177", "0.7413458", "0.73872745", "0.7338186", "0.7309678", "0.7285539", "0.72825044", "0.72813106", "0.7271379", "0.72324306", "0.72066957", "0.71792644", "0.71593946", "0.7144652", "0.7140711", "0.71200633", "0.7113552", "0.71024555", "0.70404285", "0.7036641", "0.7027134", "0.70013636", "0.69981456", "0.69896024", "0.6955613", "0.694184", "0.69280314", "0.6911848", "0.6906846", "0.6901054", "0.68609333", "0.68555653", "0.684377", "0.6831569", "0.6830882", "0.6818924", "0.68183905", "0.68172044", "0.6805126", "0.680452", "0.68029016", "0.6767975", "0.6764575", "0.6730326", "0.67262626", "0.6712179", "0.66959935", "0.667807", "0.66598284", "0.665618", "0.66433936", "0.6641891", "0.6639631", "0.6637574", "0.66364145", "0.6635893", "0.6615277", "0.6614934", "0.66037", "0.6598855", "0.65956247", "0.6588257", "0.65663594", "0.65632725", "0.65594584", "0.6556812", "0.65518326", "0.6550735", "0.65457857", "0.65341413", "0.6528771", "0.65244824", "0.65182257", "0.6512393", "0.65059817", "0.65056753" ]
0.0
-1
Creates a video using the title and the author. The stream list will be empty.
public YoutubeVideo(String title, String author) { this(title, author, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private VideoMetadata createVideo(String name, String type, String category, String imageName, String imageDir,\n\t\t\tString videoName, String videoDir, String description) {\n\t\tVideoMetadata newVideo = new VideoMetadata();\n\t\tnewVideo.setName(name);\n\t\tnewVideo.setType(type);\n\t\tnewVideo.setCategory(category);\n\t\tnewVideo.setImageName(imageName);\n\t\tnewVideo.setImageDir(imageDir);\n\t\tnewVideo.setVideoName(videoName);\n\t\tnewVideo.setVideoDir(videoDir);\n\t\tnewVideo.setDescription(description);\n\t\tnewVideo.setTimestamp(System.currentTimeMillis());\n\t\treturn newVideo;\n\t}", "public Video(String nombre) {\n super(nombre);\n }", "abstract public VideoDefinition createVideoDefinition(int width, int height);", "public Video(String title,\n long duration,\n String contentType) {\n this.title = title;\n this.duration = duration;\n this.contentType = contentType;\n }", "public Video() {\n\t}", "public Video( ) { \n\t\tsuper( );\n\t}", "public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }", "abstract public VideoDefinition createVideoDefinitionFromName(String name);", "public static Video createEntity(EntityManager em) {\n Video video = new Video()\n .titulo(DEFAULT_TITULO)\n .descricao(DEFAULT_DESCRICAO)\n .gay(DEFAULT_GAY)\n .video(DEFAULT_VIDEO)\n .imagem(DEFAULT_IMAGEM)\n .status(DEFAULT_STATUS)\n .visitado(DEFAULT_VISITADO)\n .datacriado(DEFAULT_DATACRIADO);\n return video;\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.training);\r\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\r\n\t\t\tif (!BuildVars.debug) {\r\n\t\t\t\tgetWindow().setFlags(LayoutParams.FLAG_SECURE,\r\n\t\t\t\t\t\tLayoutParams.FLAG_SECURE);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttitle = (TextView) findViewById(R.id.tvTtitle);\r\n\t\tdetail = (TextView) findViewById(R.id.tvTtime);\r\n\t\tcontent = (TextView) findViewById(R.id.tvTsummary);\r\n\t\tduration = (TextView) findViewById(R.id.tvDuration);\r\n\t\tvid = (VideoView) findViewById(R.id.vvTraining);\r\n\t\t// share = (Button) findViewById(R.id.bVshare);\r\n\t\tonNewIntent(getIntent());\r\n\r\n\t\tString roo1t = Environment.getExternalStorageDirectory().toString()\r\n\t\t\t\t+ \"/.mobcast/mobcast_videos/\" + name;\r\n\t\tBitmap thumbnail = ThumbnailUtils.createVideoThumbnail(roo1t,\r\n\t\t\t\tMediaStore.Images.Thumbnails.MINI_KIND);\r\n\t\tBitmapDrawable bitmapDrawable = new BitmapDrawable(thumbnail);\r\n\t\tvid.setBackgroundDrawable(bitmapDrawable);\r\n\t\tvid.setVideoPath(roo1t);\r\n\t\tvid.setMediaController(new MediaController(this));\r\n\t\tvid.requestFocus();\r\n\t\tvid.setOnTouchListener(this);\r\n\t}", "@Override\n public String toString()\n {\n return \"Video: \" + videoTitle + \"\\nCreated By: \" + videoCreator;\n }", "@SuppressLint(\"SimpleDateFormat\")\n public static File createVideoFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = VIDEO_FILE_PREFIX + timeStamp + MP4_FILE_SUFFIX;\n String nameAlbum = Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\" + nameDir;// getString(R.string.app_name);\n File albumF = new File(nameAlbum);\n if (!albumF.exists()) {\n albumF.mkdirs();\n File noMedia = new File(albumF, \".nomedia\");\n noMedia.createNewFile();\n }\n\n File imageF = new File(albumF, imageFileName);\n imageF.createNewFile();\n return imageF;\n }", "private File createVideoFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n this.time = nameDate.substring(9,13);\n String videoFileName = \"MP4_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n videoFileName, /* prefix */\n \".mp4\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentVideoPath = image.getAbsolutePath();\n return image;\n }", "Builder addVideo(VideoObject value);", "public static VideoPlayers createVideoPlayers(){\n return new VideoPlayers();\n }", "Builder addVideo(String value);", "Call createVideoCall(String uri)\n throws OperationFailedException, ParseException;", "public Video toVideo(VideoParam videoParam) {\r\n Video video = new Video();\r\n if (null == videoParam) return video;\r\n video.setId(videoParam.getId());\r\n video.setTitle(videoParam.getTitle());\r\n video.setShortTitle(videoParam.getShortTitle());\r\n video.setDesc(videoParam.getDesc());\r\n video.setShareDesc(videoParam.getShareDesc());\r\n video.setChannel(videoParam.getChannel());\r\n video.setSubChannel(videoParam.getSubChannel());\r\n video.setCid(videoParam.getCid());\r\n if (null != videoParam.getVideoType()) {\r\n VideoContentType videoContentType = VideoContentType.findByValue(videoParam.getVideoType());\r\n video.setVideoType(null == videoContentType ? VideoContentType.OTHER : videoContentType);\r\n }\r\n video.setDrmFlag(videoParam.getDrmFlag());\r\n video.setIsOverView(videoParam.getIsOverView());\r\n video.setPublishSetting(videoParam.getPublishSetting());\r\n video.setShieldAreaType(videoParam.getShieldAreaType());\r\n video.setShieldCountries(this.getCountrySubdivisionCodeSet(videoParam.getShieldCountries()));\r\n video.setRecommend2Homepage(videoParam.getRecommend2Homepage());\r\n video.setAid(null == videoParam.getAid() ? 0L : videoParam.getAid());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setDeleted(videoParam.getDeleted());\r\n video.setPlayPlatforms(this.getPlatformSet(videoParam.getPlayPlatforms()));\r\n video.setVrsPlayPlatforms(this.getPlatformSet(videoParam.getVrsPlayPlatforms()));\r\n if (!StringUtils.isEmpty(videoParam.getImages())) {\r\n Type type = new TypeReference<Map<String, ImageUrlExt>>() {\r\n }.getType();\r\n Map<String, ImageUrlExt> coverImage = JSONObject.parseObject(videoParam.getImages(), type);\r\n video.setImages(coverImage);\r\n }\r\n video.setIsClone(videoParam.getClone());\r\n video.setDuration(videoParam.getDuration());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setPeriod(videoParam.getPeriod());\r\n if (null != videoParam.getContentRating()) {\r\n ContentRating contentRating = ContentRating.findByValue(videoParam.getContentRating());\r\n video.setContentRating(null == contentRating ? ContentRating.ALL : contentRating);\r\n }\r\n video.setIsPay(videoParam.getIsPay());\r\n video.setPayPlatforms(this.getPlatformSet(videoParam.getPayPlatforms()));\r\n video.setPublishTime(videoParam.getPublishTime());\r\n// video.setMarkCountry(this.getCountrySubdivisionCodeSet(videoParam.getMarkCountry()));\r\n video.setReasonOfExReview(videoParam.getReasonOfExReview());\r\n video.setStarLevel(videoParam.getStarLevel());\r\n video.setSource(videoParam.getSource());\r\n video.setVideoAuthor(videoParam.getVideoAuthor());\r\n video.setStatements(Arrays.asList(new String[]{videoParam.getStatement(), videoParam.getStatement2()}));\r\n video.setCommentFlag(videoParam.isCommentFlag());\r\n video.setDownloadPlatforms(this.getPlatformSet(videoParam.getDownloadPlatforms()));\r\n video.setRecordId(videoParam.getPlaybackId());\r\n video.setHighlightId(videoParam.getHighlightId());\r\n video.setSelfProducedProgramId(videoParam.getSelfProducedProgramId());\r\n video.setCloneAids(new ArrayList<>(this.getLongSet(videoParam.getCloneAids())));\r\n video.setMatchIds(Sets.newHashSet(LeStringUtils.commaString2LongList(videoParam.getMatchIds())));\r\n video.setRelatedContents(LeStringUtils.commaString2LongList(videoParam.getRelatedContents()));\r\n video.setAllImages(LeStringUtils.commaString2StringList(videoParam.getAllImages()));\r\n return video;\r\n }", "public boolean addVideo(Video newVideo)throws NullPointerException;", "public VideoIntroduction() {\n\n }", "public Html5Video(String id, IModel<List<MediaSource>> model)\n\t{\n\t\tsuper(id, model);\n\t}", "private void createVideoFolder() {\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);\n mVideoFolder = new File(movieFile, \"Camera2_Video_Image\");\n //check to see if the folder is already created\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n\n }\n\n }", "public Video( int arg1, int arg2 ) { \n\t\tsuper( );\n\t}", "public void verVideo(View v) {\n ViewVideo.setVideoURI(Uri.parse(getExternalFilesDir(null) + \"/\" + txtNombreArchivo.getText().toString()));\n /*Ejecutamos el video*/\n ViewVideo.start();\n }", "@Override\n public String getDescription() {\n return \"Just Videos\";\n }", "private File createVideoFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"VIDEO_\" + timestamp + \"_\";\n File videoFile = File.createTempFile(prepend, \".mp4\", mVideoFolder);\n mVideoFileName = videoFile.getAbsolutePath();\n return videoFile;\n\n }", "public Video(Integer id,String titulo) {\n\t\tthis(id, titulo, 0.0, 0);\n\t}", "public File createVideoFolder() {\n// File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(\n// Environment.DIRECTORY_MOVIES + File.separator), \"RokidCameraVideo\");\n// mVideoFolder = mediaStorageDir;\n\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n File mVideoFolder = new File(movieFile, \"Camera\");\n\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n }\n\n return mVideoFolder;\n }", "private void createAWSVideoBucket() {\n\t\tLOGGER.info(\"creating aws video bucket\");\n\t\tAmazonS3 amazonS3 = getAmazonS3Client();\n\t\tif (!amazonS3.doesBucketExist(awsVideoBucketName)) {\n\t\t\tamazonS3.createBucket(awsVideoBucketName);\n\t\t}\n\t}", "public VideoFragment() {\n }", "public void crearVideojuego(){\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n Videojuego.PLATAFORMA plataforma = Videojuego.PLATAFORMA.ERROR;\n\n int opcion = -1;\n boolean validado = false;\n\n\n titulo = pedirString(\"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n\n do{\n\n System.out.println(\"Elige la plataforma:\");\n System.out.println(\"1. PLAYSTATION\");\n System.out.println(\"2. XBOX\");\n System.out.println(\"3. NINTENDO\");\n\n try {\n opcion = Integer.parseInt(lector.nextLine());\n validado = true;\n if (opcion > 3 || opcion < 1) {\n validado = false;\n System.out.println(\"Por favor, introduce un numero entre el 1 y el 3\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Introduce un valor numerico entre el 1 y el 3\");\n }\n }while(!validado);\n\n switch (opcion){\n case 1:\n plataforma = Videojuego.PLATAFORMA.PLAYSTATION;\n break;\n case 2:\n plataforma = Videojuego.PLATAFORMA.XBOX;\n break;\n case 3:\n plataforma = Videojuego.PLATAFORMA.NINTENDO;\n break;\n default:\n break;\n }\n\n //Creo el videojuego y lo anyado a la tienda:\n\n tienda.getVideojuegos().add(new Videojuego(titulo,autor,formato,anyo,plataforma));\n System.out.println(\"Videojuego creado con exito\");\n Lib.pausa();\n\n\n\n }", "public ContentCard video(String video) {\n this.video = video;\n return this;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_show);\n\n try\n {\n this.getSupportActionBar().hide();\n }\n catch (NullPointerException e){}\n\n videoView = findViewById(R.id.videoView);\n Bundle extras = getIntent().getExtras();\n Uri videoUri = (Uri) extras.get(\"videoUri\");\n videoView.setVideoURI(videoUri);\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setAnchorView(videoView);\n videoView.start();\n }", "EMBED createEMBED();", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.video_info);\n \t\n \tBundle extras = getIntent().getExtras();\n \tfinal Integer pos = extras.getInt(\"video_pos\", 0);\n \t\n \t\n \tswitch (pos) {\n \t\tcase 0: \n \t\t\ttitle = \"Title\";//(String) getResources().getText(R.string.v1_title);\n \t\t\tdescription = \"Description\";// (String) getResources().getText(R.string.v1_description);\n \t\t\turl = \"URL\";//(String) getResources().getText(R.string.v1_url);\n \t\t\thash = \"\";//(String) getResources().getText(R.string.v1_hash);\n \t\t\ttracker = \"\";//(String) getResources().getText(R.string.v1_tracker);\n \t\t\tdestination = \"\";// (String) getResources().getText(R.string.v1_destination);\n\n \t}\n \t\n \tTextView t = (TextView) findViewById(R.id.title);\n \tt.setText(title);\n \tt = (TextView) findViewById(R.id.description);\n \tt.setText(description);\n\n \tButton b_play = (Button) findViewById(R.id.b_play);\n \t \n \tb_play.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \tIntent intent = new Intent(getBaseContext(), VideoPlayerActivity.class);\n \t \tintent.putExtra(\"hash\", hash);\n \t \tintent.putExtra(\"tracker\", tracker);\n \t \tintent.putExtra(\"destination\", destination);\n \t \tstartActivity(intent);\n \t }\n \t});\n \t\n \tButton b_web_info = (Button) findViewById(R.id.b_web_info);\n \t \t \n \tb_web_info.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \t//Start video\n \t \tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n \t \tstartActivity(intent);\n \t }\n \t});\n }", "public Video( int arg1 ) { \n\t\tsuper( );\n\t}", "public Video(long id,\n String title,\n long duration,\n String contentType,\n String dataUrl) {\n this.id = id;\n this.title = title;\n this.duration = duration;\n this.contentType = contentType;\n this.dataUrl = dataUrl;\n }", "public void grabarVideo(View v) {\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n /*Creamos un archivo que contendra el video, mandanto el path (null es para indicar que no\n va en un directorio interno, solo en la raiz) ---- nombre del video*/\n /*RECORDAR QUE ESTE ARCHIVO QUEDA EN LA CARPETA ANDROID, EN LA CARPETA CON EL NOMBRE DEL\n * PAQUETE DEL PROYECTO, ESA ES LA RAIZ*/\n File video = new File(getExternalFilesDir(null), txtNombreArchivo.getText().toString());\n /*Mandamos el permiso para almacenar, y la ruta del video donde quedara*/\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(video));\n /*Ejecutamos la actividad*/\n startActivity(intent);\n }", "private void createAndLaunchExoPlayer() {\n player = ExoPlayerFactory.newSimpleInstance(this);\n // Bind player to player view\n playerView.setPlayer(player);\n\n // DataSource to load media data\n DataSource.Factory dataSource = new DefaultDataSourceFactory(this,\n Util.getUserAgent(this, getString(R.string.app_name)));\n // Media Source containing tokenized Url\n MediaSource mediaSource = new HlsMediaSource.Factory(dataSource).createMediaSource(tokenizedUri);\n\n // Automatically play video when launched\n player.setPlayWhenReady(true);\n // Listener to load spinner when buffering\n player.addListener(playerListener);\n // Set mediaSource to player\n player.prepare(mediaSource);\n\n }", "void create(int id, int authorId, String title);", "public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "Call createVideoCall(String uri, QualityPreset qualityPreferences)\n throws OperationFailedException, ParseException;", "public Media(String title, String year){\n\t\tthis.title = title;\n\t\tthis.year = year;\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t}", "Call createVideoCall(Contact callee)\n throws OperationFailedException;", "public MultiMedia(String title,\n int year, List<Director> directorsList,\n List<Actors> actorsList) {\n\n this.title = title;\n this.year = year;\n this.directorsList = directorsList;\n this.actorsList = actorsList;\n\n }", "public YouTubeVideo(String videoId, String channelId, String title, String description, String thumbUrl, long published, long grabDate, long comments, long likes, long dislikes, long viewCount, int responseCode) {\n super(videoId, title, thumbUrl);\n setTypeId(YType.VIDEO);\n\n this.channelId = channelId;\n this.description = description;\n this.published = published;\n this.refreshedOn = grabDate;\n this.comments = comments;\n this.likes = likes;\n this.dislikes = dislikes;\n this.viewCount = viewCount;\n this.responseCode = responseCode;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setFormat(PixelFormat.UNKNOWN);\n setContentView(R.layout.activity_game_video_feed);\n\n mp4 = MediaPlayer.create(this,R.raw.videomusic);\n mp4.setLooping(true);\n mp4.start();\n\n\n VideoView videoView = (VideoView) findViewById(R.id.videoView003);\n\n Random rank = new Random();\n int num = rank.nextInt(4) + 1;\n\n videoView.setVideoPath(\"storage/emulated/0/Movies/cat1/eat/eat\" + num + \".mp4\");\n videoView.requestFocus();\n videoView.start();\n videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n mp.setVolume(0, 0);\n }\n });\n\n videoView.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n /*Intent intent = new Intent();\n intent.setClass(Game_video_play.this, MainActivity.class);\n startActivity(intent);*/\n mp4.stop();\n Game_video_feed.this.finish();\n }\n });\n\n /* button.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n VideoView videoView = (VideoView) findViewById(R.id.videoView);\n String uriPath = \"android.resource://example.prgguru.com.myapplication/\"+R.raw.ykzzldx;\n Uri uri = Uri.parse(uriPath);\n videoView.setVideoURI(uri);\n videoView.requestFocus();\n videoView.start();\n\n }\n });*/\n\n\n }", "public VideoPage()\r\n\t{\r\n\t}", "public void addVideo(Video video, User user) throws SQLException {\n\t\tConnection con = DBManager.getInstance().getConnection();\r\n\t\tPreparedStatement st;\r\n\t\t\r\n\t\t\tst = con.prepareStatement(\"INSERT INTO videos (name, path, views,date,description) VALUES (?,?,?,?,?);\");\r\n\t\t\tst.setString(1, video.getName());\r\n\t\t\tst.setString(2, video.getName());\r\n\t\t\tst.setInt(3, video.getViews());\r\n\t\t\t// TODO st.setTimestamp(4, video.getDate());\r\n\t\t\t// st.setPublisher(.....,video.getPublisher());\r\n\t\t\tst.setString(5, video.getDescription());\r\n\t\t\tst.executeUpdate();\r\n\t\t\r\n\r\n\t}", "protected VideoData() {}", "public static VideoDetailsFragment newInstance(Bundle extras) {\n VideoDetailsFragment fragment = new VideoDetailsFragment();\n fragment.setArguments(extras);\n return fragment;\n }", "@Override\n public void run() {\n setupRemoteVideo(uid);\n }", "Call createVideoCall(Contact callee, QualityPreset qualityPreferences)\n throws OperationFailedException;", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tView rootView = inflater.inflate(R.layout.one_video_frag,container,false);\n\t\tvideoView = (VideoView)rootView.findViewById(R.id.videoView);\n\t\t\n\t\tMediaController mc=new MediaController(rootView.getContext());\n\t\tmc.setAnchorView(videoView);\n\t\tmc.setMediaPlayer(videoView);\n\t\t\n\t\t//Toast.makeText(rootView.getContext(),videoFile,Toast.LENGTH_LONG).show();\n\t\tvideoView.setMediaController(mc);\n\t\tvideoView.setVideoURI(Uri.parse(videoFile));\n\t\tvideoView.start();\n\t\tvideoView.setOnErrorListener(new OnErrorListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(\"Error in Video playing\",\"\"+what);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\treturn rootView;\n\t\t\n\t}", "public Video(int holdingId, String title, int loanFee)\n\t{\n\t\tsuper(holdingId, title);\n\t\tthis.loanFee = loanFee;\n\t\tmaxLoanPeriod = 7;\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tnew UploadVideo().execute(videoPath);\n\t\t\t\t\t}", "public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }", "public Video(String title, String director, int playingTime, Format type ) {\n\t\t\n\t\tsuper(title, playingTime);\n\t\tthis.director = director;\n\t\tthis.type = type;\n\t}", "public void setVideo(String video) {\n this.video = video;\n }", "public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }", "@Override\n\tvoid postarVideo() {\n\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }", "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }", "public Single<Uri> video(@NonNull FragmentActivity activity) {\n return requestImage(\n activity,\n false,\n MimeType.VIDEO)\n .map(uris -> uris.get(0)\n );\n }", "public YouTubeVideo(\n String userId,\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.userId = userId;\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }", "private void prepareYoutubeVideo() {\r\n LinearLayout main = findViewById(R.id.eventMainLayout);\r\n\r\n YouTubePlayerView playerView = findViewById(R.id.youtube_player_view);\r\n if (playerView != null) {\r\n main.removeView(findViewById(R.id.textVideoTitle));\r\n main.removeView(playerView);\r\n }\r\n\r\n TextView videoTitle = (TextView) getLayoutInflater().inflate(R.layout.component_videotitle, null);\r\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\r\n LinearLayout.LayoutParams.WRAP_CONTENT,\r\n LinearLayout.LayoutParams.WRAP_CONTENT\r\n );\r\n int marginTitle = (int) ResolutionUtil.convertDpToPixels(this, 16);\r\n params.setMargins(marginTitle, 0,0, marginTitle);\r\n videoTitle.setLayoutParams(params);\r\n\r\n YouTubePlayerView view = (YouTubePlayerView) getLayoutInflater().inflate(R.layout.component_youtubeview, null);\r\n\r\n view.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {\r\n @Override\r\n public void onReady(YouTubePlayer youTubePlayer) {\r\n String videoId = YoutubeUtil.getYoutubeVideoIdFromUrl(event.youtubeUrl);\r\n youTubePlayer.loadVideo(videoId, 0);\r\n youTubePlayer.pause();\r\n }\r\n });\r\n\r\n main.addView(videoTitle);\r\n main.addView(view);\r\n }", "public Video getVideoByName(String name) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t/*\n\t\t * Cursor cursor = db.query(TABLE_CONTACTS, new String[] { KEY_ID,\n\t\t * KEY_NAME, KEY_PH_NO }, KEY_ID + \"=?\", new String[] {\n\t\t * String.valueOf(id) }, null, null, null, null);\n\t\t */\n\t\tCursor cursor = db.query(VivaFrame.TABLE_NAME, new String[] {\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_ID, VivaFrame.COLUMN_NAME_VI_FOLDER,\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME, VivaFrame.COLUMN_NAME_VI_URL },\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(name) }, null, null, null, null);\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\n\t\tVideo video = new Video(Integer.parseInt(cursor.getString(0)),\n\t\t\t\tInteger.parseInt(cursor.getString(1)), cursor.getString(2),\n\t\t\t\tcursor.getString(3));\n\t\t// return contact\n\t\treturn video;\n\t}", "public static void registerVideoEntity(com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager) {\n manager\n .videos()\n .define(\"video1\")\n .withExistingVideoAnalyzer(\"testrg\", \"testaccount2\")\n .withTitle(\"Sample Title 1\")\n .withDescription(\"Sample Description 1\")\n .create();\n }", "public void createVideo(Context context, AugmentedImage image, int augmentedImageIndex) {\n this.image = image;\n\n\n\n CompletableFuture.allOf(AugmentedImageActivity.videoRenderable)\n .handle((notUsed, throwable) -> {\n // When you build a Renderable, Sceneform loads its resources in the background while\n // returning a CompletableFuture. Call handle(), thenAccept(), or check isDone()\n // before calling get().\n\n if (throwable != null) {\n return null;\n }\n\n try {\n // Sets the texture to the texture defined using (new ExternalTexture()) -> the video's surface is on that texture.\n AugmentedImageActivity.videoPlacedRenderable = AugmentedImageActivity.videoRenderable.get();\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setExternalTexture(\"videoTexture\", texture);\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setFloat4(\"keyColor\", CHROMA_KEY_COLOR);\n\n // Everything finished loading successfully.\n } catch (InterruptedException | ExecutionException ex) {\n }\n\n return null;\n });\n\n if (!frame_lr.isDone() || !frame_ll.isDone() || !frame_ur.isDone() || !frame_ul.isDone()) {\n CompletableFuture.allOf(frame_ll, frame_lr, frame_ul, frame_ur)\n .thenAccept((Void aVoid) -> setImage(image, augmentedImageIndex))\n .exceptionally(\n throwable -> {\n Log.e(TAG, \"Exception loading\", throwable);\n return null;\n });\n }\n\n Node fullnode;\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerLeft));\n fullnode.setRenderable(frame_ll.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerRight));\n fullnode.setRenderable(frame_lr.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperLeft));\n fullnode.setRenderable(frame_ul.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperRight));\n fullnode.setRenderable(frame_ur.getNow(null));\n\n // augmentedImageIndex is taken from the arguments of this method - (setImage)\n AugmentedImageActivity.augmentedImageVideoPlayerIndex = augmentedImageIndex;\n // Set the anchor based on the center of the image.\n setAnchor(image.createAnchor(image.getCenterPose()));\n\n\n // videoNode is created and will be placed on the image, directly parallel to the image.\n videoNode = new Node();\n videoNode.setParent(this);\n\n\n float videoWidth = nodeMediaPlayer.getVideoWidth();\n float videoHeight = nodeMediaPlayer.getVideoHeight();\n\n videoNode.setLocalScale(\n new Vector3(\n VIDEO_HEIGHT_METERS * (videoWidth / videoHeight), VIDEO_HEIGHT_METERS, 1.4f));\n\n\n // Sets the video's position from perpendicular to the image to parallel to the detected image.\n Quaternion q1 = videoNode.getLocalRotation();\n Quaternion q2 = Quaternion.axisAngle(new Vector3(1.0f, 0f, 0f), -90f);\n videoNode.setLocalPosition(new Vector3(0.0f, 0.0f, 0.07f)); // x, z, y\n videoNode.setLocalRotation(Quaternion.multiply(q1, q2));\n\n // If the video is not playing, it will be started.\n if (!nodeMediaPlayer.isPlaying()) {\n nodeMediaPlayer.start();\n // Wait to set the renderable until the first frame of the video becomes available.\n // This prevents the renderable from briefly appearing as a black quad before the video\n // plays.\n texture\n .getSurfaceTexture()\n .setOnFrameAvailableListener(\n (SurfaceTexture surfaceTexture) -> {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n texture.getSurfaceTexture().setOnFrameAvailableListener(null);\n\n });\n } else {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n }\n\n Log.d(\"node\", \"creating!!!\");\n\n }", "@Override\n @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_video_dialog);\n\n Bundle bundle = getArguments();\n videos_name = bundle.getStringArrayList(\"name\");\n videos_key = bundle.getStringArrayList(\"key\");\n\n\n CharSequence[] cs = videos_name.toArray(new CharSequence[videos_name.size()]);\n\n builder.setItems(cs, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri video_uri = UtilityMovieData.buildUriForTheVideo(videos_key.get(which));\n Intent intent = new Intent(Intent.ACTION_VIEW, video_uri);\n startActivity(intent);\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "Builder addVideo(VideoObject.Builder value);", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_play);\n\n videoView = findViewById(R.id.video_view);\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\" Path name \";\n// videoView.setVideoPath();\n videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/raw/video_transparent\"));\n\n\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(videoView);\n\n }", "public boolean removeVideo(Video video)throws NullPointerException;", "public void createPlayList(String title, String description) {\n if (!playListPanels.containsKey(title)) {//if this playlist doesn't exist.\n PlayListPanel newPlayListPanel = new PlayListPanel(emptyPlayListImage, title, description, this, this);\n playListPanels.put(title, newPlayListPanel);\n }\n }", "public Video(IplImage[] images) {\n\t\tthis.images = images;\n\t\tthis.window = new WindowInfo();\n\t}", "@AutoGenerated\r\n\tprivate Panel buildVideoPanel() {\n\t\tvideoPanel = new Panel();\r\n\t\tvideoPanel.setWidth(\"100.0%\");\r\n\t\tvideoPanel.setHeight(\"100.0%\");\r\n\t\tvideoPanel.setImmediate(false);\r\n\t\t\r\n\t\t// verticalLayout_3\r\n\t\tverticalLayout_3 = buildVerticalLayout_3();\r\n\t\tvideoPanel.setContent(verticalLayout_3);\r\n\t\t\r\n\t\treturn videoPanel;\r\n\t}", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic Video addVideo(Video v) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\tv = mVideoRepository.save(v);\n\t\t\n\t\tassert(v != null);\n\t\t// TODO Fix filename & path\n\t\tv.setDataUrl(getUrlBaseForLocalServer() \n\t\t\t\t+ VideoSvcApi.VIDEO_DATA_PATH.replace(\n\t\t\t\t\t\t\"{\" + VideoSvcApi.ID_PARAMETER + \"}\",\n\t\t\t\t\t\t\"\" + v.getId()));\n\t\t\n\t\treturn v;\n\t}", "MovieVideo getMovieVideoByVideoid(String videoid);", "public void playVideo() {\n }", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody Video addVideoMetadata(@RequestBody Video v, \n\t\t\tHttpServletResponse response) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\t\n\t\tLong id = initializeVideo(v);\n\t\tif (id == null) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t\t\n\t\treturn videos.get(id);\n\t}", "@Override\n\t\tprotected Object doInBackground(Object... params) {\n\n\t\t\tYouTube youtube = new YouTube.Builder(transport, jsonFactory,\n\t\t\t\t\tcredential).setApplicationName(Constants.APP_NAME).build();\n\t\t\ttry {\n\n\t\t\t\tVideoListResponse videosResponse = youtube.videos()\n\t\t\t\t\t\t.list(\"snippet\").setId(videoId).execute();\n\t\t\t\tvideoDescription = videosResponse.getItems().get(0)\n\t\t\t\t\t\t.getSnippet().getDescription();\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "com.google.ads.googleads.v6.resources.Video getVideo();", "public VideoEncoder(Data data) {\n try {\n startTime = LocalDateTime.now();\n String minute, hour, day, month, year;\n if (startTime.getMinute() < 10) {\n minute = \"0\" + Integer.toString(startTime.getMinute());\n } else {\n minute = Integer.toString(startTime.getMinute());\n }\n if (startTime.getHour() < 10) {\n hour = \"0\" + Integer.toString(startTime.getHour());\n } else {\n hour = Integer.toString(startTime.getHour());\n }\n if (startTime.getDayOfMonth() < 10) {\n day = \"0\" + Integer.toString(startTime.getDayOfMonth());\n } else {\n day = Integer.toString(startTime.getDayOfMonth());\n }\n if (startTime.getMonthValue() < 10) {\n month = \"0\" + Integer.toString(startTime.getMonthValue());\n } else {\n month = Integer.toString(startTime.getMonthValue());\n }\n year = Integer.toString(startTime.getYear());\n\n File dir = null;\n try {\n dir = new File(\"C:\\\\TowedROV\\\\ROV_Video\\\\\");\n if (!dir.exists() || !dir.isDirectory()) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n } catch (Exception e) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n\n String fileName = dir.getPath() + \"\\\\ROV Video\" + hour + minute + \" \" + day + \".\"\n + month + \".\" + year + \".mp4\";\n enc = AWTSequenceEncoder.create24Fps(new File(fileName));\n this.data = data;\n } catch (Exception ex) {\n System.out.println(\"Exception while starting video encoder: \" + ex.getMessage());\n }\n }", "void addVideoCollection(User user, String video_id);", "MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {\n super(name, ItemType.Visual,manufacturer);\n\n this.screen = screen;\n this.monitorType = monitorType;\n }", "@Override\n\tpublic Page createPage(String title, String author) {\n\t\treturn new ListPage(title, author);\n\t}", "@Override\n public void onVideoStarted() {\n }", "public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;", "public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;", "public VideoStream() {\n\t\tthis(CameraInfo.CAMERA_FACING_BACK);\n\t}", "@Override\n public void onServerStart(String videoStreamUrl)\n {\n\n\n\n Log.d(\"Activity\",\"URL: \"+ videoStreamUrl);\n\n\n video = (VideoView)findViewById(R.id.video);\n\n Uri uri = Uri.parse(videoStreamUrl);\n video.setVideoURI(uri);\n video.start();\n\n\n\n }", "public Film(String title, Date releaseDate, int length){\n this.title = title;\n this.releaseDate = releaseDate;\n this.length = length;\n }", "public String getVideo() {\n return video;\n }", "private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }", "public YouTubeVideo(\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }", "public static RecordVideoFragment newInstance(String param1, String param2) {\n RecordVideoFragment fragment = new RecordVideoFragment();\n Bundle args = new Bundle();\n args.putString(Constant.ARG_PARAM1, param1);\n args.putString(Constant.ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_now_playing);\n\n mOnNavigationItemSelectedListener = NavigationListener.getInstance(getApplicationContext());\n\n try{\n mTextMessage = (TextView) findViewById(R.id.message);\n\n hDbHelper = new HistoryDbHelper(getApplicationContext());\n\n\n BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);\n navigation.setSelectedItemId(R.id.navigation_music);\n navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);\n\n playerView = (YouTubePlayerView) findViewById(R.id.player_view);\n\n latestVideo = new VideoItem();\n\n if (getIntent().getStringExtra(\"VIDEO_ID\") != null) {\n\n latestVideo = new VideoItem();\n\n latestVideo.setTitle(getIntent().getStringExtra(\"TITLE\"));\n latestVideo.setDescription(getIntent().getStringExtra(\"DESCRIPTION\"));\n latestVideo.setThumbnailURL(getIntent().getStringExtra(\"THUMBNAILURL\"));\n latestVideo.setId(getIntent().getStringExtra(\"VIDEO_ID\"));\n\n description = getIntent().getStringExtra(\"DESCRIPTION\");\n thumbnailURL = getIntent().getStringExtra(\"THUMBNAILURL\");\n title = getIntent().getStringExtra(\"TITLE\");\n id = getIntent().getStringExtra(\"VIDEO_ID\");\n\n SharedPreferences preferences = getSharedPreferences(\"lastVideoWatched\", MODE_PRIVATE);\n preferences.edit().putString(\"id\", id).apply();\n }else {\n id = getSharedPreferences(\"lastVideoWatched\", MODE_PRIVATE).getString(\"id\", null);\n \n VideoItem latestvideo = getVideoByID(getApplicationContext() , id);\n description = latestvideo.getDescription();\n thumbnailURL = latestvideo.getThumbnailURL();\n title = latestvideo.getTitle();\n }\n\n insertIntoHistory(id, title, thumbnailURL, description);\n\n FrameLayout titelFrame = (FrameLayout) findViewById(R.id.titel);\n View to_add = getLayoutInflater().inflate(R.layout.video_item, titelFrame, false);\n\n ImageView videoThumbnail = (ImageView) to_add.findViewById(R.id.video_thumbnail);\n TextView videoTitle = (TextView) to_add.findViewById(R.id.video_title);\n TextView videoDescription = (TextView) to_add.findViewById(R.id.video_description);\n\n Picasso.with(getApplicationContext()).load(thumbnailURL).into(videoThumbnail);\n videoTitle.setText(title);\n videoDescription.setText(description);\n titelFrame.addView(to_add);\n\n playerView.initialize(YoutubeConnector.KEY, this);\n }catch (Exception e){\n AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext());\n builder.setTitle(\"Fehlermeldung\");\n\n builder\n .setMessage(\"Wähle bitte zuerst einen Titel aus!\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // if this button is clicked, close\n // current activity\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n }" ]
[ "0.61677593", "0.6066357", "0.59610456", "0.59502745", "0.58315295", "0.57782924", "0.57741714", "0.57452375", "0.5610474", "0.5608459", "0.5598194", "0.5565795", "0.5563847", "0.55322665", "0.5526691", "0.55131847", "0.55075026", "0.54774785", "0.5446696", "0.5416556", "0.5388094", "0.5372571", "0.5371531", "0.5370368", "0.5370098", "0.5342453", "0.52922004", "0.5264404", "0.52518827", "0.52477366", "0.52372426", "0.5233101", "0.5194226", "0.5192314", "0.5185421", "0.5162741", "0.51537263", "0.51505643", "0.5142706", "0.51277506", "0.5126311", "0.5122863", "0.51182693", "0.51135784", "0.50935096", "0.5067789", "0.5066353", "0.5065738", "0.5046197", "0.5038702", "0.50243133", "0.5016963", "0.50132996", "0.5009156", "0.500504", "0.4987036", "0.49803954", "0.49749056", "0.49730203", "0.49710038", "0.49625787", "0.4954814", "0.49391156", "0.49390635", "0.49355063", "0.49280727", "0.49239883", "0.49198005", "0.49179608", "0.49166507", "0.4912719", "0.4911688", "0.49105924", "0.49044922", "0.4903484", "0.48994693", "0.48924556", "0.48918432", "0.48901", "0.4885042", "0.48791307", "0.4876685", "0.4876031", "0.48697445", "0.4867908", "0.48639128", "0.4849332", "0.48479384", "0.4831887", "0.48246732", "0.48231465", "0.48231465", "0.4815496", "0.4812476", "0.48115572", "0.4802304", "0.4797081", "0.4795516", "0.47864112", "0.47774675" ]
0.61069494
1
Returns the title of the video.
public String getTitle() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getVideoName() {\n return videoName;\n }", "public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTitle() {\n Object ref = title_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n }\n return s;\n }\n }", "String title();", "String title();", "public String getTitle() {\n Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public String getTitle() {\n return bufTitle;\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\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 title_ = s;\n return s;\n }\n }", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n title_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getMovieTitle() {\n return movieTitle;\n }", "public String title()\n\t{\n\t\treturn title;\n\t}", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "@java.lang.Override\n public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n title_ = s;\n return s;\n }\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public java.lang.String getTitle();", "public String title() {\n\t\treturn title;\n\t}", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "@ObjectSupport public final String title() {\n return title==null\n ? title = createTitle()\n : title;\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle() {\n \t\treturn title;\n \t}", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "@NonNull\n public String getTitle() {\n return this.title;\n }", "public String getTitle()\n {\n return (this.title);\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle()\n {\n return title;\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _esfTournament.getTitle();\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}" ]
[ "0.72937894", "0.7245594", "0.7190564", "0.7190564", "0.7185085", "0.7183605", "0.71763414", "0.7175499", "0.716934", "0.716934", "0.7153576", "0.714628", "0.714327", "0.7122753", "0.7122753", "0.7120987", "0.7120987", "0.7120987", "0.7120987", "0.7120987", "0.7113236", "0.7095471", "0.7071847", "0.70689005", "0.7049233", "0.7039893", "0.7025075", "0.7022482", "0.7022482", "0.7022482", "0.7010282", "0.7010282", "0.7001572", "0.6991989", "0.6986464", "0.69583714", "0.6953917", "0.6953917", "0.693967", "0.6938971", "0.69363767", "0.69363767", "0.69363767", "0.69363767", "0.69363767", "0.69363767", "0.69363767", "0.69315624", "0.6930968", "0.6930968", "0.6930968", "0.6930968", "0.6930968", "0.6930968", "0.6930968", "0.69244856", "0.69220513", "0.6909325", "0.6909325", "0.6904525", "0.69033104", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6903151", "0.6900428" ]
0.0
-1
Adds all stream options of the given YoutubeVideo to this. This method is used by multidecoder extractions.
public void merge(YoutubeVideo video) { streamOptions.addAll(video.streamOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public YoutubeVideo(String title, String author) {\n this(title, author, null);\n }", "private void prepareYoutube() {\r\n if (event.youtubeUrl != null && !event.youtubeUrl.isEmpty())\r\n prepareYoutubeVideo();\r\n }", "private void prepareYoutubeVideo() {\r\n LinearLayout main = findViewById(R.id.eventMainLayout);\r\n\r\n YouTubePlayerView playerView = findViewById(R.id.youtube_player_view);\r\n if (playerView != null) {\r\n main.removeView(findViewById(R.id.textVideoTitle));\r\n main.removeView(playerView);\r\n }\r\n\r\n TextView videoTitle = (TextView) getLayoutInflater().inflate(R.layout.component_videotitle, null);\r\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\r\n LinearLayout.LayoutParams.WRAP_CONTENT,\r\n LinearLayout.LayoutParams.WRAP_CONTENT\r\n );\r\n int marginTitle = (int) ResolutionUtil.convertDpToPixels(this, 16);\r\n params.setMargins(marginTitle, 0,0, marginTitle);\r\n videoTitle.setLayoutParams(params);\r\n\r\n YouTubePlayerView view = (YouTubePlayerView) getLayoutInflater().inflate(R.layout.component_youtubeview, null);\r\n\r\n view.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {\r\n @Override\r\n public void onReady(YouTubePlayer youTubePlayer) {\r\n String videoId = YoutubeUtil.getYoutubeVideoIdFromUrl(event.youtubeUrl);\r\n youTubePlayer.loadVideo(videoId, 0);\r\n youTubePlayer.pause();\r\n }\r\n });\r\n\r\n main.addView(videoTitle);\r\n main.addView(view);\r\n }", "public YoutubeVideo getVideo(YoutubeVideo youtubeVideo){\n\t \t YoutubeVideo returnYoutubeVideo = new YoutubeVideo();\n\t \n\t \n\t List<String> scopes = Lists.newArrayList(\"https://www.googleapis.com/auth/youtube\");\n\t /// Video videoResponse = null;\n\t System.out.println(\"makky1\");\n\t try {\n\t // Authorize the request.\n\t Credential credential = Auth.authorize(scopes, \"updatevideo\");\n\n\t // This object is used to make YouTube Data API requests.\n\t youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, credential)\n\t .setApplicationName(\"youtube-cmdline-updatevideo-sample\").build();\n\n\t // Prompt the user to enter the video ID of the video being updated.\n\t System.out.println(\"makky2\");\n\t String videoId = youtubeVideo.getId();\n\t System.out.println(\"You chose \" + videoId + \" to update.\");\n\n\t // Prompt the user to enter a keyword tag to add to the video.\n\t // String tag = getTagFromUser();\n\t ///System.out.println(\"You chose \" + tag + \" as a tag.\");\n\n\t // Call the YouTube Data API's youtube.videos.list method to\n\t // retrieve the resource that represents the specified video.\n\t YouTube.Videos.List listVideosRequest = youtube.videos().list(\"snippet\").setId(videoId);\n\t VideoListResponse listResponse = listVideosRequest.execute();\n\n\t // Since the API request specified a unique video ID, the API\n\t // response should return exactly one video. If the response does\n\t // not contain a video, then the specified video ID was not found.\n\t List<Video> videoList = listResponse.getItems();\n\t if (videoList.isEmpty()) {\n\t System.out.println(\"Can't find a video with ID: \" + videoId);\n\t return null;\n\t }\n\t else{\n\t \treturnYoutubeVideo.setId(videoList.get(0).getId());\n\t returnYoutubeVideo.setTitle(videoList.get(0).getSnippet().getTitle());\n\t returnYoutubeVideo.setTag(videoList.get(0).getSnippet().getTags());\n\t returnYoutubeVideo.setDescription(videoList.get(0).getSnippet().getDescription());\n\t returnYoutubeVideo.setPrivacyStatus(videoList.get(0).getStatus().getPrivacyStatus());\n\t returnYoutubeVideo.setViewCount(videoList.get(0).getStatistics().getViewCount());\t\n\t return returnYoutubeVideo;\n\t }\n\t \n\t \n\t } catch (GoogleJsonResponseException e) {\n\t System.err.println(\"GoogleJsonResponseException code: \" + e.getDetails().getCode() + \" : \"\n\t + e.getDetails().getMessage());\n\t e.printStackTrace();\n\t return null;\n\t } catch (IOException e) {\n\t System.err.println(\"IOException: \" + e.getMessage());\n\t e.printStackTrace();\n\t return null;\n\t } catch (Throwable t) {\n\t System.err.println(\"Throwable: \" + t.getMessage());\n\t t.printStackTrace();\n\t return null;\n\t }\n\t \n\t }", "Builder addVideo(VideoObject value);", "public DocumentBodyBlock video(DocumentBodyVideo video) {\n this.video = video;\n return this;\n }", "public List<YoutubeVideo> searchFromYoutube(String keyword) {\n Properties properties = new Properties();\n try {\n InputStream in = SearchYoutube.class.getResourceAsStream(\"/weiwei/google/\" + PROPERTIES_FILENAME);\n properties.load(in);\n\n } catch (IOException e) {\n System.err.println(\"There was an error reading \" + PROPERTIES_FILENAME + \": \" + e.getCause()\n + \" : \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n // This object is used to make YouTube Data API requests. The last\n // argument is required, but since we don't need anything\n // initialized when the HttpRequest is initialized, we override\n // the interface and provide a no-op function.\n youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, new HttpRequestInitializer() {\n public void initialize(HttpRequest request) throws IOException {\n }\n }).setApplicationName(\"youtube-cmdline-search-sample\").build();\n\n // Prompt the user to enter a query term.\n String queryTerm = keyword;\n\n // Define the API request for retrieving search results.\n YouTube.Search.List search = youtube.search().list(\"id,snippet\");\n\n // Set your developer key from the {{ Google Cloud Console }} for\n // non-authenticated requests. See:\n // {{ https://cloud.google.com/console }}\n String apiKey = properties.getProperty(\"youtube.apikey\");\n search.setKey(apiKey);\n search.setQ(queryTerm);\n\n // Restrict the search results to only include videos. See:\n // https://developers.google.com/youtube/v3/docs/search/list#type\n search.setType(\"video\");\n\n // To increase efficiency, only retrieve the fields that the\n // application uses.\n search.setFields(\"items(id/kind,id/videoId,snippet/title,snippet/description,snippet/thumbnails/default/url)\");\n search.setMaxResults(NUMBER_OF_VIDEOS_RETURNED);\n\n // Call the API and print results.\n SearchListResponse searchResponse = search.execute();\n List<SearchResult> searchResultList = searchResponse.getItems();\n if (searchResultList != null) {\n //prettyPrint(searchResultList.iterator(), queryTerm);\n List<YoutubeVideo> videoIdList = new ArrayList<>();\n for (SearchResult singleVideo : searchResultList) {\n ResourceId rId = singleVideo.getId();\n \n\n if (rId.getKind().equals(\"youtube#video\")) {\n YoutubeVideo video = new YoutubeVideo();\n Thumbnail thumbnail = singleVideo.getSnippet().getThumbnails().getDefault();\n video.setVideoNum(rId.getVideoId());\n video.setVideoTitle(singleVideo.getSnippet().getTitle());\n video.setDescription(singleVideo.getSnippet().getDescription());\n video.setThumbnail(thumbnail.getUrl());\n \n videoIdList.add(video);\n }\n \n }\n\n return videoIdList;\n }\n } catch (GoogleJsonResponseException e) {\n System.err.println(\"There was a service error: \" + e.getDetails().getCode() + \" : \"\n + e.getDetails().getMessage());\n } catch (IOException e) {\n System.err.println(\"There was an IO error: \" + e.getCause() + \" : \" + e.getMessage());\n } catch (Throwable t) {\n t.printStackTrace();\n }\n\n return null;\n }", "public YouTubeVideo(String videoId, String channelId, String title, String description, String thumbUrl, long published, long grabDate, long comments, long likes, long dislikes, long viewCount, int responseCode) {\n super(videoId, title, thumbUrl);\n setTypeId(YType.VIDEO);\n\n this.channelId = channelId;\n this.description = description;\n this.published = published;\n this.refreshedOn = grabDate;\n this.comments = comments;\n this.likes = likes;\n this.dislikes = dislikes;\n this.viewCount = viewCount;\n this.responseCode = responseCode;\n }", "private void addYoutubePlayerFragment() {\n YouTubePlayerSupportFragment youtubePlayerFragment = new YouTubePlayerSupportFragment();\n //TODO: figure out a better way to store API keys\n String apiKey = ((GlobalApplicationState) this.getApplication()).getYoutubeApiKey();\n youtubePlayerFragment.initialize(apiKey, new YouTubePlayer.OnInitializedListener() {\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n //TODO: peek first and then cue video\n // and find some way to peek every xx seconds if\n // the queue is empty\n mYoutubePlayer = youTubePlayer;\n Log.v(LOG_TAG, \"Successfully initialized Youtube player\");\n\n GetNextMediaTask getNextMediaTask = new GetNextMediaTask();\n getNextMediaTask.execute();\n setPlayerEventListeners();\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider,\n YouTubeInitializationResult youTubeInitializationResult) {\n //TODO: Figure out what to actually do if it fails...\n String toastMessage = \"): Failed to initialize Youtube player.\";\n Toast toast = Toast.makeText(getApplicationContext(),\n toastMessage, Toast.LENGTH_SHORT);\n toast.show();\n }\n });\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fragment_media, youtubePlayerFragment)\n .commit();\n ((LinearLayout) findViewById(R.id.guest_layout)).setVisibility(View.GONE);\n }", "public YouTubeWidget() {\n super();\n }", "Builder addVideo(String value);", "public String getYouTubeUrl() {\n return youTubeUrl;\n }", "public YoutubeResultsAdapter(List<YoutubeVideoModelAdapter> videos) {\n this.videos = videos;\n }", "public ParametersBuilder setMaxVideoBitrate(int maxVideoBitrate) {\n this.maxVideoBitrate = maxVideoBitrate;\n return this;\n }", "public YouTubeVideo(\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }", "private void configurarCodec(){\n\n\t\t// Necessario para utilizar o Processor como um Player.\n\t\tprocessor.setContentDescriptor(null);\n\n\n\t\tfor (int i = 0; i < processor.getTrackControls().length; i++) {\n\n\t\t\tif (processor.getTrackControls()[i].getFormat() instanceof VideoFormat) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Instantiate and set the frame access codec to the data flow path.\n\t\t\t\t\tTrackControl videoTrack = processor.getTrackControls()[i];\n\t\t\t\t\tCodec codec[] = { new CodecVideo() };\n\t\t\t\t\tvideoTrack.setCodecChain(codec);\n\t\t\t\t\tbreak;\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t}\n\n\t\tprocessor.prefetch();\n\n\t}", "@Override\n public void addVideo(String videoId) {\n\t\taddVideo(videoId, -1, -1);\n\t}", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) {\n if (!b) {\n youTubePlayer.setFullscreen(true);\n youTubePlayer.loadVideo(movie.getVideoKey());\n }\n }", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.loadVideo(videoId);\n }", "public YouTubeVideo(\n String userId,\n String channelTitle,\n String title,\n String description,\n String thumbnail,\n String videoId,\n String channelId,\n int currentIndex,\n int videosDisplayedPerPage,\n int currentPage,\n int totalPages) {\n this.userId = userId;\n this.channelTitle = channelTitle;\n this.title = title;\n this.description = description;\n this.thumbnail = thumbnail;\n this.videoId = videoId;\n this.currentIndex = currentIndex;\n this.videosDisplayedPerPage = videosDisplayedPerPage;\n this.currentPage = currentPage;\n this.totalPages = totalPages;\n videoURL += videoId;\n channelURL += channelId;\n }", "public YouTubeRecord(String videoID) {\n\t\tsuper(videoID);\n\t\tif (videoID != null) {\n\t\t\tthis.recordingDate = null;\n\t\t\tthis.recordingLocation = null;\n\t\t\tthis.recordingCountry = null;\n\t\t\tthis.channelList = new Vector<String>();\n\t\t}\n\t}", "private void setUpYoutubePlayer() {\n\n youTubePlayerView.initialize(DeveloperKey.DEVELOPER_KEY,\n new YouTubePlayer.OnInitializedListener() {\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n\n // do any work here to cue video, play video, etc.\n youTubePlayer.cueVideo(dataModel.getYoutube_id());\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider,\n YouTubeInitializationResult youTubeInitializationResult) {\n\n }\n });\n }", "private void setupVideoConfig() {\n // In simple use cases, we only need to enable video capturing\n // and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }", "Builder addVideo(VideoObject.Builder value);", "public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "public void setVideoUrl(String newVideoUrl) {\n this.videoUrl = newVideoUrl;\n }", "public void setVideo(String video) {\n this.video = video;\n }", "public String getVideoUrl() {\n return videoUrl;\n }", "private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }", "public static String buildYouTubeUrl(String movieKey){\n return YOUTUBE_BASE_URL + YOUTUBE_PARAM_QUERY + movieKey;\n }", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.cueVideo(finalUrl);\n }", "public void startYoutubePlayer(Context context, String url) {\n if (url.contains(\"http:\") || url.contains(\"https:\")) {\n\n String pattern = \"(?<=watch\\\\?v=|/videos/|embed\\\\/|youtu.be\\\\/|\\\\/v\\\\/|\\\\/e\\\\/|watch\\\\?v%3D|watch\\\\?feature=player_embedded&v=|%2Fvideos%2F|embed%\\u200C\\u200B2F|youtu.be%2F|%2Fv%2F)[^#\\\\&\\\\?\\\\n]*\";\n\n Pattern compiledPattern = Pattern.compile(pattern);\n Matcher matcher = compiledPattern.matcher(url); //url is youtube url for which you want to extract the id.\n if (matcher.find()) {\n String videoId = matcher.group();\n FavouriteResource favouriteResource = new FavouriteResource();\n favouriteResource.setName(videoId);\n favouriteResource.setUrlThumbnail(ConstantUtil.BLANK);\n context.startActivity(PlayYouTubeFullScreenActivity.getStartIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, favouriteResource));\n }\n\n } else {\n FavouriteResource favouriteResource = new FavouriteResource();\n favouriteResource.setName(url);\n favouriteResource.setUrlThumbnail(ConstantUtil.BLANK);\n context.startActivity(PlayYouTubeFullScreenActivity.getStartIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, favouriteResource));\n }\n }", "public String calculateYouTubeUrl(String pYouTubeFmtQuality, boolean pFallback, String pYouTubeVideoId) throws IOException, UnsupportedEncodingException {\n\n String lUriStr = null;\n HttpClient lClient = new DefaultHttpClient();\n\n HttpGet lGetMethod = new HttpGet(YOUTUBE_VIDEO_INFORMATION_URL +\n pYouTubeVideoId);\n\n HttpResponse lResp = null;\n\n lResp = lClient.execute(lGetMethod);\n\n ByteArrayOutputStream lBOS = new ByteArrayOutputStream();\n String lInfoStr = null;\n\n lResp.getEntity().writeTo(lBOS);\n lInfoStr = new String(lBOS.toString(\"UTF-8\"));\n\n String[] lArgs = lInfoStr.split(\"&\");\n Map<String, String> lArgMap = new HashMap<String, String>();\n for (int i = 0; i < lArgs.length; i++) {\n String[] lArgValStrArr = lArgs[i].split(\"=\");\n if (lArgValStrArr != null) {\n if (lArgValStrArr.length >= 2) {\n lArgMap.put(lArgValStrArr[0], URLDecoder.decode(lArgValStrArr[1]));\n }\n }\n }\n\n //Find out the URI string from the parameters\n\n //Populate the list of formats for the video\n String lFmtList = URLDecoder.decode(lArgMap.get(\"fmt_list\"));\n ArrayList<Format> lFormats = new ArrayList<Format>();\n if (null != lFmtList) {\n String lFormatStrs[] = lFmtList.split(\",\");\n\n for (String lFormatStr : lFormatStrs) {\n Format lFormat = new Format(lFormatStr);\n lFormats.add(lFormat);\n }\n }\n\n //Populate the list of streams for the video\n String lStreamList = lArgMap.get(\"url_encoded_fmt_stream_map\");\n if (null != lStreamList) {\n String lStreamStrs[] = lStreamList.split(\",\");\n ArrayList<VideoStream> lStreams = new ArrayList<VideoStream>();\n for (String lStreamStr : lStreamStrs) {\n VideoStream lStream = new VideoStream(lStreamStr);\n lStreams.add(lStream);\n }\n\n //Search for the given format in the list of video formats\n // if it is there, select the corresponding stream\n // otherwise if fallback is requested, check for next lower format\n int lFormatId = Integer.parseInt(pYouTubeFmtQuality);\n\n Format lSearchFormat = new Format(lFormatId);\n while (!lFormats.contains(lSearchFormat) && pFallback) {\n int lOldId = lSearchFormat.getId();\n int lNewId = getSupportedFallbackId(lOldId);\n\n if (lOldId == lNewId) {\n break;\n }\n lSearchFormat = new Format(lNewId);\n }\n\n int lIndex = lFormats.indexOf(lSearchFormat);\n if (lIndex >= 0) {\n VideoStream lSearchStream = lStreams.get(lIndex);\n lUriStr = lSearchStream.getUrl();\n }\n\n }\n //Return the URI string. It may be null if the format (or a fallback format if enabled)\n // is not found in the list of formats for the video\n return lUriStr;\n }", "public ContentCard video(String video) {\n this.video = video;\n return this;\n }", "@Override\n public void setVideoEndTime(String videoId, long endTime) {\n\t\tJSONObject allVids;\n\t\ttry {\n\t\t\tallVids = super.getJSONObject(VIDEO_LIST);\n\t\t\tJSONObject vidTimes = allVids.getJSONObject(videoId);\n\t\t\tvidTimes.put(END_TIME, endTime);\n\t\t} catch (JSONException e) {\n\t\t\t//All fields are required so this should not happen\n\t\t}\n\t}", "@Override\n public void addVideo(String videoId, long startTime, long endTime) {\n\n\t\ttry {\n\t\t\tJSONObject allVids = super.getJSONObject(VIDEO_LIST);\n\t\t\tJSONObject vidTimes = new JSONObject();\n\t\t\tvidTimes.put(START_TIME, startTime);\n\t\t\tvidTimes.put(END_TIME, endTime);\n\t\t\tallVids.put(videoId, vidTimes);\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@NonNull\n public String getVideoUrl() {\n return videoUrl;\n }", "public UserAwareVideoView(Context context) {\n super(context);\n init(context);\n }", "protected VideoData() {}", "public void setVideoPayloadTypes(PayloadType[] payloadTypes);", "public boolean videoEnabled();", "static public void registerWithVideoIO() { // add FFMPeg video types, if\n\t\t\t\t\t\t\t\t\t\t\t\t// available\n\t\ttry {\n\t\t\tVideoIO.addVideoEngine(new FFMPegVideoType());\n\t\t\t// register all supported audio/video types with ffmpeg\n\t\t\tav_register_all();\n\t\t\t// add common video types shared with QuickTime\n\t\t\tfor (String ext : VideoIO.VIDEO_EXTENSIONS) { // {\"mov\", \"avi\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"mp4\"}\n\t\t\t\tVideoFileFilter filter = new VideoFileFilter(ext,\n\t\t\t\t\t\tnew String[] { ext });\n\t\t\t\tFFMPegVideoType ffmpegType = new FFMPegVideoType(filter);\n\t\t\t\tVideoIO.addVideoType(ffmpegType);\n\t\t\t\tResourceLoader.addExtractExtension(ext);\n\t\t\t}\n\t\t\t// add additional ffmpeg types\n\t\t\t// FLV\n\t\t\tVideoFileFilter filter = new VideoFileFilter(\n\t\t\t\t\t\"flv\", new String[] { \"flv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tVideoIO.addVideoType(new FFMPegVideoType(filter));\n\t\t\tResourceLoader.addExtractExtension(\"flv\"); //$NON-NLS-1$\n\t\t\t// 3GP\n\t\t\tfilter = new VideoFileFilter(\"3gp\", new String[] { \"3gp\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tFFMPegVideoType vidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"3gp\"); //$NON-NLS-1$\n\t\t\t// WMV\n\t\t\tfilter = new VideoFileFilter(\"asf\", new String[] { \"wmv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tVideoIO.addVideoType(new FFMPegVideoType(filter));\n\t\t\tResourceLoader.addExtractExtension(\"wmv\"); //$NON-NLS-1$\n\t\t\t// DV\n\t\t\tfilter = new VideoFileFilter(\"dv\", new String[] { \"dv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"dv\"); //$NON-NLS-1$\n\t\t\t// MTS\n\t\t\tfilter = new VideoFileFilter(\"mts\", new String[] { \"mts\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mts\"); //$NON-NLS-1$\n\t\t\t// M2TS\n\t\t\tfilter = new VideoFileFilter(\"m2ts\", new String[] { \"m2ts\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"m2ts\"); //$NON-NLS-1$\n\t\t\t// MPG\n\t\t\tfilter = new VideoFileFilter(\"mpg\", new String[] { \"mpg\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mpg\"); //$NON-NLS-1$\n\t\t\t// MOD\n\t\t\tfilter = new VideoFileFilter(\"mod\", new String[] { \"mod\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mod\"); //$NON-NLS-1$\n\t\t\t// OGG\n\t\t\tfilter = new VideoFileFilter(\"ogg\", new String[] { \"ogg\", \"ogv\" }); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"mod\"); //$NON-NLS-1$\n\t\t\tfilter = new VideoFileFilter(\"webm\", new String[] {\"webm\"}); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tvidType = new FFMPegVideoType(filter);\n\t\t\tvidType.setRecordable(false);\n\t\t\tVideoIO.addVideoType(vidType);\n\t\t\tResourceLoader.addExtractExtension(\"webm\"); //$NON-NLS-1$\n\t\t} catch (Exception ex) { // ffmpeg not working\n\t\t\tOSPLog.config(\"ffmpeg exception: \" + ex.toString()); //$NON-NLS-1$\n\t\t} catch (Error er) { // ffmpeg not working\n\t\t\tOSPLog.config(\"ffmpeg error: \" + er.toString()); //$NON-NLS-1$\n\t\t}\n\t}", "com.google.ads.googleads.v6.resources.VideoOrBuilder getVideoOrBuilder();", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.loadVideos(videoIdList);\n }", "public void copyAttributes(VideoDetails obj)\n {\n if(obj != null)\n {\n super.copyAttributes(obj);\n setDescription(obj.getDescription());\n setChannelId(obj.getChannelId());\n setChannelTitle(obj.getChannelTitle());\n }\n }", "public ServerOptions( final Frame mainFrame ) {\r\n super( mainFrame );\r\n }", "@Override\r\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\r\n player.setPlayerStateChangeListener(playerStateChangeListener);\r\n player.setPlaybackEventListener(playbackEventListener);\r\n/** Start buffering **/\r\n if (!wasRestored) {\r\n player.cueVideo(VIDEO_ID);\r\n }\r\n }", "public static Options addOptions() {\n Options options = new Options();\n options.addOption(\"f\", true, \"The input file \");\n options.addOption(\"d\", true, \"The output directory\");\n options.addOption(\"u\", true, \"Only uber retrieval value is (1,0) default 0\");\n options.addOption(\"l\",true,\"Only Lyft Retrieval value is (1,0) default 0\");\n return options;\n }", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n youTubePlayer.cueVideo(dataModel.getYoutube_id());\n }", "@Override\n @RequiresApi(21)\n public void init(int width, int height) {\n try {\n mediaCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);\n MediaFormat mediaFormat = MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, width, height);\n mediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, 2 * width *height *framerate);\n mediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, framerate);\n //yuv420p\n mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar);\n mediaFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 2);\n mediaCodec.configure(mediaFormat,null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);\n } catch (IOException e) {\n e.printStackTrace();\n initialized =false;\n }\n initialized = true;\n }", "public ParametersBuilder setMaxVideoSize(int maxVideoWidth, int maxVideoHeight) {\n this.maxVideoWidth = maxVideoWidth;\n this.maxVideoHeight = maxVideoHeight;\n return this;\n }", "public synchronized void activate(ComponentContext cc) {\n config = YoutubeConfiguration.getInstance();\n }", "public void setVideo(File video){\n\t\tthis.video = video;\n\t}", "public void updateSettings(int frameCount, int videoType, int videoResolution){\n\t\tthis.fps = frameCount;\n\t\tthis.videoType = videoType;\n\t\tthis.videoResolution = videoResolution;\n\t}", "public void setVideo(Video video) {\r\n this.video = video;\r\n\r\n nameField.setText(video.getName());\r\n urlField.setText(video.getUrl());\r\n }", "public void enableVideoSourceReuse(boolean enable);", "com.google.ads.googleads.v14.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder();", "VideoAnalyzersClient getVideoAnalyzers();", "public ShowVideoResponse() {\n }", "public void saveVideo() {\n if (this.mVideoFileDescriptor == null) {\n long duration = SystemClock.uptimeMillis() - this.mRecordingStartTime;\n try {\n MediaMetadataRetriever mmr = new MediaMetadataRetriever();\n mmr.setDataSource(this.mCurrentVideoFilename);\n String durationStr = mmr.extractMetadata(9);\n mmr.release();\n duration = (long) Integer.parseInt(durationStr);\n } catch (Exception e) {\n Log.e(TAG, \"MediaMetadataRetriever error, use estimated duration\", e);\n }\n if (duration <= 0) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Video duration <= 0 : \");\n stringBuilder.append(duration);\n Log.w(tag, stringBuilder.toString());\n }\n if (this.mCurrentVideoValues == null) {\n generateVideoFilename(this.mProfile.fileFormat);\n }\n if (this.mCurrentVideoValues != null) {\n this.mCurrentVideoValues.put(\"_size\", Long.valueOf(new File(this.mCurrentVideoFilename).length()));\n this.mCurrentVideoValues.put(InfoTable.DURATION, Long.valueOf(duration));\n if (needAddToMediaSaver()) {\n getServices().getMediaSaver().addVideo(this.mCurrentVideoFilename, this.mCurrentVideoValues, getVideoSavedListener(), this.mContentResolver);\n }\n logVideoCapture(duration);\n } else {\n return;\n }\n }\n this.mCurrentVideoValues = null;\n }", "public String getVideo() {\n return video;\n }", "@Override\n public void onInitializationSuccess(Provider provider, YouTubePlayer player, boolean wasRestored) {\n player.setPlayerStateChangeListener(playerStateChangeListener);\n player.setPlaybackEventListener(playbackEventListener);\n/** Start buffering **/\n if (!wasRestored) {\n player.cueVideo(VIDEO_ID);\n }\n }", "@Override\n\tpublic Boolean esVideo() {\n\t\tBoolean bool = this instanceof Video; \n\t\treturn bool;\n\t}", "@Override\n public void onClick(View view) {\n youTubePlayerFragment.initialize(YoutubeAPI_KEY, new YouTubePlayer.OnInitializedListener() {\n\n @Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\n if (!wasRestored) {\n player.setPlayerStyle(YouTubePlayer.PlayerStyle.DEFAULT);\n player.loadVideo(\"MOJRWYzevLg\");\n player.play();\n }\n }\n\n @Override\n public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInitializationResult error) {\n // YouTube error\n // String errorMessage = error.toString();\n }\n });\n }", "public void playVideo(View view){\n YT_View.initialize(YouTubeConfig.getApiKey(), onInitializedListener);\n }", "boolean hasYoutubeChannel();", "public ParametersBuilder setMaxVideoFrameRate(int maxVideoFrameRate) {\n this.maxVideoFrameRate = maxVideoFrameRate;\n return this;\n }", "@Override\n\t\t\t\tpublic void onPrepared(MediaPlayer mediaPlayer) {\n\t\t\t\t\tmediaPlayer.setPlaybackSpeed(1.0f);\n\t\t\t\t\tmVideoView.addTimedTextSource(subtitle_path);\n\t\t\t\t\tmVideoView.setTimedTextShown(true);\n\t\t\t\t\tmVideoView.setVideoLayout(VideoView.VIDEO_LAYOUT_STRETCH, 0);\n\n\t\t\t\t}", "private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }", "public static void watchYoutubeVideo(Context context, String id){\n Intent appIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(YOUTUBE_APP_BASE + id));\n Intent webIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(YOUTUBE_BASE_URL + id));\n\n // Add the additional flags to the intent\n // if your android version is below Android - 6 then you need to add this line otherwise it will work above Android - 6.\n // Bcs. of error: AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.\n appIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n webIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // If youtube is not installed, plays from web\n try {\n context.startActivity(appIntent);\n } catch (ActivityNotFoundException ex) {\n context.startActivity(webIntent);\n }\n }", "@Override\n public void onVideoStarted() {\n }", "public void preparePlayer() {\n uriParse();\n dataSourceFactory = buildDataSourceFactory(bandwidthMeter);\n\n switch (tipoVideo) {\n case 0:\n videoSource = new DashMediaSource(uri, dataSourceFactory, new DefaultDashChunkSource.Factory(dataSourceFactory), null, null);\n break;\n case 1:\n videoSource = new HlsMediaSource(uri, dataSourceFactory, null, null);\n break;\n case 2:\n videoSource = new ExtractorMediaSource(uri, dataSourceFactory, new DefaultExtractorsFactory(), null, null);\n break;\n }\n\n player.prepare(videoSource);\n\n }", "public String getCourseVideo() {\n return courseVideo;\n }", "@Override\n\tpublic boolean updateCourseVideo(CourseVideo courseVideo) {\n\t\treturn false;\n\t}", "private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }", "public RequestDataBuilder options() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.OPTIONS);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "public Html5Video(String id, IModel<List<MediaSource>> model)\n\t{\n\t\tsuper(id, model);\n\t}", "public ParametersBuilder setAllowVideoNonSeamlessAdaptiveness(\n boolean allowVideoNonSeamlessAdaptiveness) {\n this.allowVideoNonSeamlessAdaptiveness = allowVideoNonSeamlessAdaptiveness;\n return this;\n }", "public Video( ) { \n\t\tsuper( );\n\t}", "public void setVideoIterationTime(double videoIterationLength){\n\t\tthis.videoIterationLength = videoIterationLength;\n\t}", "@Override\n public void onVideoEnd() {\n super.onVideoEnd();\n }", "public Map<String, Properties> getVideoData() {\n return videoData;\n }", "public VideoDetails(VideoTeaser obj)\n {\n super(obj);\n }", "public interface YouTubeService {\n\n\n @GET(\"/youtube/v3/channels?part=snippet,brandingSettings,contentDetails\")\n void getChannel(@Query(\"id\") String id, Callback<ChannelList> cb);\n @GET(\"/youtube/v3/channels?part=snippet,brandingSettings,contentDetails\")\n ChannelList getChannel(@Query(\"id\") String id);\n\n @GET(\"/youtube/v3/search?part=snippet,id&order=date&maxResults=50\")\n void getVideos(@Query(\"channelId\") String channelId, Callback<VideoList> cb);\n @GET(\"/youtube/v3/search?part=snippet,id&order=date&maxResults=50\")\n VideoList getVideos(@Query(\"channelId\") String channelId);\n @GET(\"/youtube/v3/search?part=snippet,id&order=date&maxResults=50\")\n VideoList getVideos(@Query(\"channelId\") String channelId, @Query(\"pageToken\") String nextPageToken);\n @GET(\"/youtube/v3/videos\")\n void getVideo(@Query(\"id\") String id, Callback<VideoList> cb);\n\n\n @GET(\"/youtube/v3/commentThreads?part=id%2Creplies%2Csnippet\")\n void getComments(@Query(\"videoId\") String videoId, @Query(\"pageToken\") String nextPageToken, Callback<CommentList> cb);\n @GET(\"/youtube/v3/commentThreads?part=id%2Creplies%2Csnippet\")\n void getComments(@Query(\"videoId\") String videoId, Callback<CommentList> cb);\n\n\n @GET(\"/youtube/v3/playlists?part=contentDetails%2Cid%2Cplayer%2Csnippet%2Cstatus\")\n void getPlaylists(@Query(\"channelId\") String channelId, Callback<SeriesList> cb);\n @GET(\"/youtube/v3/playlists?part=contentDetails%2Cid%2Cplayer%2Csnippet%2Cstatus\")\n void getPlaylists(@Query(\"channelId\") String channelId, @Query(\"pageToken\") String nextPageToken, Callback<SeriesList> cb);\n\n\n @GET(\"/youtube/v3/playlistItems?part=contentDetails%2Cid%2Csnippet%2Cstatus&maxResults=50\")\n void getPlaylistItems(@Query(\"playlistId\") String playlistId, Callback<VideoList> cb);\n @GET(\"/youtube/v3/playlistItems?part=contentDetails%2Cid%2Csnippet%2Cstatus&maxResults=50\")\n void getPlaylistItems(@Query(\"playlistId\") String playlistId, @Query(\"pageToken\") String nextPageToken, Callback<VideoList> cb);\n @GET(\"/youtube/v3/playlistItems?part=contentDetails%2Cid%2Csnippet%2Cstatus&maxResults=50\")\n VideoList getPlaylistItems(@Query(\"playlistId\") String playlistId);\n @GET(\"/youtube/v3/playlistItems?part=contentDetails%2Cid%2Csnippet%2Cstatus&maxResults=50\")\n VideoList getPlaylistItems(@Query(\"playlistId\") String playlistId, @Query(\"pageToken\") String nextPageToken);\n\n @GET(\"/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics\")\n void getAboutUsInfo(@Query(\"id\") String channelId, Callback<About> cb);\n}", "public double getVideoLength(){\n\t\treturn videoLength;\n\t}", "public int getOverrodeVideoDuration() {\n return this.mMaxVideoDurationInMs;\n }", "com.google.ads.googleads.v14.common.YouTubeChannelInfo getYoutubeChannel();", "public VideoEncoder(Data data) {\n try {\n startTime = LocalDateTime.now();\n String minute, hour, day, month, year;\n if (startTime.getMinute() < 10) {\n minute = \"0\" + Integer.toString(startTime.getMinute());\n } else {\n minute = Integer.toString(startTime.getMinute());\n }\n if (startTime.getHour() < 10) {\n hour = \"0\" + Integer.toString(startTime.getHour());\n } else {\n hour = Integer.toString(startTime.getHour());\n }\n if (startTime.getDayOfMonth() < 10) {\n day = \"0\" + Integer.toString(startTime.getDayOfMonth());\n } else {\n day = Integer.toString(startTime.getDayOfMonth());\n }\n if (startTime.getMonthValue() < 10) {\n month = \"0\" + Integer.toString(startTime.getMonthValue());\n } else {\n month = Integer.toString(startTime.getMonthValue());\n }\n year = Integer.toString(startTime.getYear());\n\n File dir = null;\n try {\n dir = new File(\"C:\\\\TowedROV\\\\ROV_Video\\\\\");\n if (!dir.exists() || !dir.isDirectory()) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n } catch (Exception e) {\n System.out.println(\"No directory found, creating a new one at C://TowedROV/ROV_Video/\");\n dir.mkdir();\n }\n\n String fileName = dir.getPath() + \"\\\\ROV Video\" + hour + minute + \" \" + day + \".\"\n + month + \".\" + year + \".mp4\";\n enc = AWTSequenceEncoder.create24Fps(new File(fileName));\n this.data = data;\n } catch (Exception ex) {\n System.out.println(\"Exception while starting video encoder: \" + ex.getMessage());\n }\n }", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider,\n YouTubePlayer youTubePlayer, boolean b) {\n mYoutubePlayer = youTubePlayer;\n Log.v(LOG_TAG, \"Successfully initialized Youtube player\");\n\n GetNextMediaTask getNextMediaTask = new GetNextMediaTask();\n getNextMediaTask.execute();\n setPlayerEventListeners();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Button pickAcc = (Button) findViewById(R.id.chseAcc);\n uploadVideobtn = (Button) findViewById(R.id.upload_video);\n userNameTxt = (TextView) findViewById(R.id.textView);\n tokenTxt = (TextView) findViewById(R.id.textView2);\n titleEdit = (EditText) findViewById(R.id.titleNme);\n localVideoUrlTxt = (TextView) findViewById(R.id.textView3);\n youtubeUrlTxt = (TextView) findViewById(R.id.textView4);\n localVideoUrlTxt.setText(\"Local video URl:\" + videoFileName);\n pickAcc.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n pickUserAccount();\n\n }\n });\n /* uploadVideobtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (titleEdit.getText().toString().length() < 1) {\n Toast.makeText(YoutubeUpload.this, \"Enter title\", Toast.LENGTH_LONG).show();\n\n } else {\n Toast.makeText(YoutubeUpload.this, \"Initiation Started : please wait\", Toast.LENGTH_LONG).show();\n new YouTubeUploadTask().execute();\n }\n }\n });\n youtubeUrlTxt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n redirectAndPlayVideo();\n }\n });*/\n }", "@Override\n public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n adjustSize(mVideoView, width, height, DisplayType.CENTER_INSIDE);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER_CROP);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER);\n //adjustSize(mVideoView, width, height, DisplayType.FIT_XY);\n }", "public VideoMetadataMediator() {\n // Initialize the VideoServiceProxy.\n mVideoServiceProxy = new RestAdapter\n .Builder()\n .setEndpoint(SERVER_URL)\n .build()\n .create(VideoServiceProxy.class);\n }", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody Video addVideo(@RequestBody Video v){\n\t\tcheckAndSetId(v);\n\t\tv.setDataUrl(getDataUrl(v.getId()));\n\t\tvideos.add(v);\n\t\t\n\t\treturn v;\n\t}", "private void initFFmpegVideoDownloader() {\n if (isQueueEmpty()) return;\n\n videoInfo = videoWorkerQueue.poll(); // get the next Video\n try {\n videoInfo.getDownloadInfo();\n videoInfo.setState(DOWNLOADING);\n\n File destinationVideoFile = getVideoFile(videoInfo, true);\n\n List<String> ffmpegOptions = Utils.getFFmpegParameters(videoInfo.getUrl());\n\n// mainPanel.getDownloadProgressPanel().setMaximum(videoInfo.getLength() * 100);\n// mainPanel.getDownloadProgressPanel().setValue(0);\n mainPanel.getDownloadProgressPanel().setTitle(videoInfo.getTitle());\n\n FFmpegDownloadWorkerOld downloader = new FFmpegDownloadWorkerOld(\n destinationVideoFile,\n videoInfo,\n ffmpegCommand,\n ffmpegOptions\n );\n\n downloader.addPropertyChangeListener(this);\n downloader.addPropertyChangeListener(mainPanel.getDownloadProgressPanel());\n// LinkedBlockingQueue queue = (LinkedBlockingQueue) ffmpegDownloader.getQueue();\n// mainPanel.getDownloadProgressPanel().setQueue(queue);\n// videoInfo.setState(QUEUED_FOR_CONVERT);\n ffmpegDownloader.execute(downloader);\n\n mainPanel.getDownloadProgressPanel().setQueue(videoWorkerQueue);\n mainPanel.getDownloadProgressPanel().setVisible(true);\n } catch (MalformedURLException e) {\n JOptionPane.showMessageDialog(mainPanel, e.getMessage(), \"Error\", ERROR_MESSAGE);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(mainPanel, e.getMessage(), \"Error\", ERROR_MESSAGE);\n }\n\n\n// try {\n// // Select quality based on TwitchToolsPreferences\n// String quality = videoInfo.getDownloadInfo().getPreferredQuality(TwitchLeecherPreferences.getQualityOrder());\n// // get the Parts of a Video\n// videoParts = videoInfo.getDownloadInfo().getTwitchBroadcastParts(quality);\n// } catch (IOException e) {\n// JOptionPane.showMessageDialog(mainPanel, e.getMessage(), \"Error\", ERROR_MESSAGE);\n// }\n//\n// mainPanel.getDownloadProgressPanel().setMaximum(videoParts.size() * 100);\n// mainPanel.getDownloadProgressPanel().setValue(0);\n// mainPanel.getDownloadProgressPanel().setTitle(videoInfo.getTitle());\n//\n// //Add Part numbers for the WorkerThread\n// int i = 0;\n//\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd_HHmm\");\n// String dateTimeStr = sdf.format(videoInfo.getRecordedAt().getTime());\n// String destinationDir = TwitchLeecherPreferences.getInstance().get(KEY_DOWNLOAD_PATH, OsUtils.getUserHome());\n// File destinationFilenameTemplate = new File(destinationDir + \"/\" +\n// OsUtils.getValidFilename(videoInfo.getChannelName()) + \"/\" +\n// OsUtils.getValidFilename(videoInfo.getTitle()) + \"_\" +\n// dateTimeStr\n// );\n//\n// List<File> destinationFiles = new ArrayList<>();\n//\n// for (TwitchVideoPart videoPart : videoParts) {\n// videoPart.getFileExtension();\n// videoPart.setPartNumber(i++);\n// String destinationFilePath = String.format(\n// \"%s_%04d%s\",\n// destinationFilenameTemplate.getAbsolutePath(),\n// videoPart.getPartNumber(),\n// videoPart.getFileExtension()\n// );\n//\n// File destinationFile = new File(destinationFilePath);\n//// File destinationFile = new File(destinationFilenameTemplate.getAbsolutePath() + \"_\" +\n//// String.valueOf(videoPart.getPartNumber() + videoPart.getFileExtension()));\n// destinationFiles.add(destinationFile);\n// TwitchDownloadWorker tdw = new TwitchDownloadWorker(destinationFile, videoPart);\n// tdw.addPropertyChangeListener(this);\n// tdw.addPropertyChangeListener(mainPanel.getDownloadProgressPanel());\n// downloadExecutor.execute(tdw);\n// }\n//\n// createPlaylistsFolder();\n// playlist = new File(playlistFolderPath + videoInfo.getId() + \".m3u\");\n// createM3uPlaylist(playlist, destinationFiles);\n// ffmpegFileListFile = new File(playlistFolderPath + videoInfo.getId() + \".ffmpeglist\");\n// createFFmpegFileList(ffmpegFileListFile, destinationFiles);\n }", "default void setVideoPath(@Nullable String path) {\n setVideoUri(TextUtils.isEmpty(path) ? null : Uri.parse(path));\n }", "public Video(Integer id,String titulo) {\n\t\tthis(id, titulo, 0.0, 0);\n\t}", "protected VideoView(Context context) throws AdException {\n super(context);\n init();\n }", "public Video() {\n\t}" ]
[ "0.5475359", "0.53946424", "0.5310704", "0.5284784", "0.51088333", "0.502612", "0.4979981", "0.4977364", "0.49502364", "0.49118352", "0.49013323", "0.48985407", "0.48709753", "0.48703748", "0.48395678", "0.48057956", "0.47829854", "0.47441918", "0.4743829", "0.47416517", "0.47321296", "0.47320852", "0.47067684", "0.4697363", "0.46877545", "0.4686005", "0.46760637", "0.4661589", "0.46572348", "0.46562812", "0.4638331", "0.46227705", "0.4608028", "0.45875475", "0.4546434", "0.45390713", "0.45339456", "0.45291755", "0.4525576", "0.4501607", "0.44977224", "0.4490875", "0.44853464", "0.44846445", "0.4469217", "0.44684654", "0.4463917", "0.4446561", "0.44432157", "0.44421417", "0.44307068", "0.4430456", "0.44263673", "0.44214883", "0.44185352", "0.43874624", "0.43868893", "0.43808728", "0.43694228", "0.4364367", "0.43622166", "0.435406", "0.43495628", "0.4345671", "0.43435115", "0.43386996", "0.43334717", "0.4331005", "0.43282673", "0.43271357", "0.43214852", "0.43203565", "0.43141064", "0.4310326", "0.4307712", "0.43041682", "0.42974883", "0.42954987", "0.42909393", "0.4288378", "0.42829555", "0.4278547", "0.4268312", "0.42642018", "0.42564335", "0.42430463", "0.42407036", "0.42323947", "0.42252064", "0.42210552", "0.4215353", "0.4208369", "0.4205153", "0.42043188", "0.42037904", "0.42036408", "0.41999158", "0.41972753", "0.41943517", "0.4193513" ]
0.7392512
0
Sets the primary key of this v legal f o rel.
public void setPrimaryKey(VLegalFORelPK primaryKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_paper.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }", "public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }", "public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}", "public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "@Override\n\tpublic void setPrimaryKey(\n\t\torg.kisti.edison.science.service.persistence.ScienceAppPaperPK primaryKey) {\n\t\t_scienceAppPaper.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n _sTransaction.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dictData.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(long primaryKey) {\n _usersCatastropheOrgs.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(long primaryKey) {\n\t\t_forumUser.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_permissionType.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_primarySchoolStudent.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_pnaAlerta.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGTShipPosition.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userSync.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userTracker.setPrimaryKey(primaryKey);\n\t}", "public void set_force_primary (int the_force_primary) {\n\t\tforce_primary = the_force_primary;\n\t\treturn;\n\t}", "public void setPrimaryKey(String key) throws TorqueException\n {\n setPrimaryKey(new ComboKey(key));\n }", "@Override\n\tpublic void setResourcePrimKey(long resourcePrimKey) {\n\t\t_changesetEntry.setResourcePrimKey(resourcePrimKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_news_Blogs.setPrimaryKey(primaryKey);\n\t}", "public Constraint setKey( String theId) {\n\t\tmyKey = new IdDt(theId); \n\t\treturn this; \n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(ObjectKey key)\n \n {\n setNewsletterId(((NumberKey) key).intValue());\n }", "public void setPK(IEntityPK pk) {\r\n\tthis.pk = (DispenserPK) pk;\r\n }", "Key getPrimaryKey();", "public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}", "public void setPrimaryKey(int primaryKey) {\n\t\t_dmHistoryMaritime.setPrimaryKey(primaryKey);\n\t}", "PrimaryKey getPrimarykey();", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "public void setPrimaryKey(\n\t\tcom.agbar.service.service.persistence.PnaNoticiaGrupoLectorPK primaryKey) {\n\t\t_pnaNoticiaGrupoLector.setPrimaryKey(primaryKey);\n\t}", "PrimaryKey createPrimaryKey();", "private void setPrimaryKey(final ResourceAllocation allocation) {\n final Map<String, Object> values = new HashMap<String, Object>();\n values.put(Constants.RES_ID, allocation.getReserveId());\n values.put(Constants.BL_ID_FIELD_NAME, allocation.getBlId());\n values.put(Constants.FL_ID_FIELD_NAME, allocation.getFlId());\n values.put(Constants.RM_ID_FIELD_NAME, allocation.getRmId());\n values.put(Constants.DATE_START_FIELD_NAME, allocation.getStartDate());\n values.put(Constants.TIME_START_FIELD_NAME, allocation.getStartTime());\n values.put(Constants.TIME_END_FIELD_NAME, allocation.getEndTime());\n values.put(Constants.RESOURCE_ID_FIELD, allocation.getResourceId());\n values.put(Constants.QUANTITY_FIELD, allocation.getQuantity());\n\n allocation.setId(getPrimaryKey(values, Constants.RSRES_ID_FIELD_NAME));\n }", "public void setKey(String nkey) {\r\n setAttribute(\"id\", nkey);\r\n }", "private void setPrimaryKey(PSJdbcTableSchema tableSchema) throws PSJdbcTableFactoryException\n {\n List<String> pkcols = new ArrayList<String>();\n pkcols.add(\"col1\");\n PSJdbcPrimaryKey pk = new PSJdbcPrimaryKey(pkcols.iterator(), PSJdbcTableComponent.ACTION_REPLACE);\n tableSchema.setPrimaryKey(pk);\n }", "public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}", "public void setPrimaryKey(String key) \n {\n setNewsletterId(Integer.parseInt(key));\n }", "public void setRfrtHeaderIdPk(Number value) {\r\n setAttributeInternal(RFRTHEADERIDPK, value);\r\n }", "PrimaryKey getPrimaryKey();", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setPk(double pk)\n {\n this.pk = pk;\n }", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }" ]
[ "0.7286688", "0.7060338", "0.7060338", "0.7060338", "0.70223695", "0.6965266", "0.69408655", "0.69339544", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.69198096", "0.6914081", "0.68896186", "0.6888436", "0.6868348", "0.68191177", "0.6813687", "0.681337", "0.6750228", "0.66888034", "0.66640615", "0.6658423", "0.66543436", "0.6654094", "0.6654094", "0.6654094", "0.66400373", "0.663969", "0.66039425", "0.6566254", "0.65470344", "0.65237164", "0.65201014", "0.6493903", "0.6460394", "0.6435656", "0.6431094", "0.64237535", "0.6423261", "0.6409235", "0.6401785", "0.6389684", "0.6384121", "0.6378186", "0.636316", "0.6359963", "0.628808", "0.62739325", "0.6255968", "0.6235811", "0.6233302", "0.6212471", "0.6212471", "0.6212471", "0.62073225", "0.6188221", "0.6176328", "0.6176328", "0.6176328", "0.6143487", "0.6139448", "0.61224526", "0.6065199", "0.60648197", "0.6044622", "0.602308", "0.60115725", "0.600805", "0.59692454", "0.59539896", "0.59534335", "0.59113705", "0.5893934", "0.58328515", "0.5814271", "0.579301", "0.5785762", "0.575966", "0.575655", "0.57503", "0.5715258", "0.5713417", "0.56896853", "0.568223", "0.56579316", "0.5643703" ]
0.7583586
0
Returns the field ID of this v legal f o rel.
@AutoEscape public String getFieldId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getFieldId() {\n return fieldId;\n }", "public java.lang.String getFieldId() {\n return fieldId;\n }", "public String getFieldId() {\n return this.fieldId;\n }", "com.google.privacy.dlp.v2.FieldId getFieldId();", "@JsonValue\n\tpublic final String fieldId() {\n\t \treturn this.name().replace(\"_\", \".\");\n\t}", "com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldIdOrBuilder();", "String getId() {\r\n\t\treturn option.getId() + \".\" + field.getName();\r\n\t}", "public int getId() {\n return fid;\n }", "Integer getFntLID();", "public String fieldIdToString() {\r\n\t\treturn new String(String.format(\"%02d\", getID()));\r\n\t}", "private int getFieldId(VectorAccessible accessible, LogicalExpression expr) {\n return getFieldIds(accessible, expr)[0];\n }", "public Object visitField(GoIRFieldNode node)\n\t{\n\t\treturn node.getType().getIdentifier();\n\t}", "public int getId() {\n\t\treturn gfId;\n\t}", "@Override\r\n\tpublic String getIdFieldName() {\n\t\treturn null;\r\n\t}", "public String getIDFV() {\n return this.IDFV;\n }", "public int getFid() {\n return fid;\n }", "public final int getFileId() {\n\t\treturn m_FID;\n\t}", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public int getFieldIndex() { return _fldIndex; }", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\tFile thiz = this;\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this); // todo\r\n\t}", "public void setFieldId(String fieldId);", "protected Field getPrimaryKeyField() {\n Field returnField = null;\n Field[] fieds = MetaData.class.getDeclaredFields();\n for (Field field : fieds) {\n Id annotation = field.getAnnotation(Id.class);\n EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class);\n if (annotation != null || annotationEmb != null) {\n return field;\n }\n }\n return returnField;\n }", "public Fw getExplicitIdField(List<Fw> fields) {\n\t\tfor (Fw fw : fields) {\n\t\t\tif (!fw.isSpecial() && AnnotationsHelper.hasAnnotation(fw, mda.annotation.jpa.Id.class)) {\n\t\t\t\treturn fw;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public Long getFoilId() {\n return foilId;\n }", "@Schema(required = true, description = \"An identifier that is unique within a NS descriptor. Representation: string of variable length. \")\n public String getVnffgdId() {\n return vnffgdId;\n }", "java.lang.String getFormId();", "java.lang.String getField1610();", "public long getRefId() {\n return refId;\n }", "public Identifier getFluidId() {\n\t\treturn Registry.FLUID.getId(getFluid());\n\t}", "public int getFrcationId() {\n return frcationId;\n }", "public int getLBR_NotaFiscal_ID();", "public Integer getIdNotaFiscal() {\n return idNotaFiscal;\n }", "public EI getHealthDocumentReferenceIdentifier() { \r\n\t\tEI retVal = this.getTypedField(19, 0);\r\n\t\treturn retVal;\r\n }", "java.lang.String getFortId();", "@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}", "public String getFid() {\n return fid;\n }", "public int getId() {\n\t\treturn definition.get().getId();\n\t}", "public long getFlightId() {\n\t\treturn flightId;\n\t}", "public static _Fields findByThriftId(int fieldId) {\n\t\t\tswitch(fieldId) {\n\t\t\t\tcase 1: // REFERENCE_VENDORED_CONST\n\t\t\t\t\treturn REFERENCE_VENDORED_CONST;\n\t\t\t\tcase 2: // REFERENCE_VENDORED_ENUM\n\t\t\t\t\treturn REFERENCE_VENDORED_ENUM;\n\t\t\t\tdefault:\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "public Fw getExplicitIdField(Class<?> aClass) {\n\t\tFwSelect fwSelect = FwSelect.emptyBuilder().withId(true).build();\n\t\tList<Fw> fws = this.getFields(aClass, fwSelect);\n\t\tif (fws.size() > 0) {\n\t\t\treturn fws.get(0);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "String getIdFieldName(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"idField\")) return null;\n String indexField = collection.get(\"idField\").toString();\n if (!collection.containsKey(\"fields\")) return null;\n HashMap<String,Object> fields = (HashMap<String,Object>)collection.get(\"fields\");\n if (!fields.containsKey(indexField)) return null;\n return indexField;\n }", "java.lang.String getField1436();", "public String getFeatureID() {\r\n if (line == null) {\r\n return null;\r\n }\r\n\r\n return fid;\r\n }", "public int getXX_SalesBudgetForm_ID() \r\n {\r\n return get_ValueAsInt(\"XX_SalesBudgetForm_ID\");\r\n \r\n }", "public void setFieldId(String fieldId) {\n this.fieldId = fieldId;\n }", "public Long getVersionedFileId() {\r\n\t\treturn versionedFileId;\r\n\t}", "public static int addIdent(AField f) {\n\t\tif (f.isLocal())\n\t\t\treturn addIdent(\"l_\" + f.getName() + f.getLine(), \"l_\" + f.getName(), f);\n\t\telse\n\t\t\treturn addIdent(\"f_\" + getAbsoluteName(f), \"f_\" + f.getName(), f);\n\t}", "java.lang.String getField1677();", "@Override\n public int getField(int id) {\n return 0;\n }", "Object getRefid();", "public final GF2nField getField()\n {\n return mField;\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "java.lang.String getField1571();", "public String getFID();", "java.lang.String getField1504();", "java.lang.String getField1489();", "public String getId() {\n\t\treturn docid;\n\t}", "public String getId() {\n switch (this.getType()) {\n case BGP:\n /*return this.bgpConfig.getNeighbors().get(\n this.bgpConfig.getNeighbors().firstKey()).getLocalAs().toString();*/\n case OSPF:\n return this.vrf.getName();\n case STATIC:\n return this.staticConfig.getNetwork().getStartIp().toString();\n }\n return this.vrf.getName();\n }", "java.lang.String getField1646();", "public BigDecimal getFid() {\n return fid;\n }", "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "java.lang.String getField1639();", "java.lang.String getField1007();", "java.lang.String getField1324();", "BigInteger getFieldNumber();", "java.lang.String getField1004();", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n default:\n return null;\n }\n }", "java.lang.String getField1236();", "java.lang.String getField1671();", "java.lang.String getField1036();", "java.lang.String getField1531();", "java.lang.String getField1564();", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "public java.lang.String getField1677() {\n java.lang.Object ref = field1677_;\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 field1677_ = s;\n return s;\n }\n }", "java.lang.String getField1078();", "public int getLBR_PartnerDFe_ID();", "java.lang.String getField1678();", "java.lang.String getField1334();", "java.lang.String getField1366();", "public final int getFileId() {\n\t\treturn m_fileId;\n\t}", "java.lang.String getField1466();", "long getCaptureFestivalId();", "public Integer getFileId() {\n\t\treturn fileId;\n\t}", "java.lang.String getField1404();", "public String getFkId() {\r\n return fkId;\r\n }", "public long getVocubalaryId();", "java.lang.String getField1669();", "public Integer getRefId() {\n return refId;\n }", "java.lang.String getField1691();", "java.lang.String getField1578();", "java.lang.String getField1563();", "java.lang.String getField1566();", "java.lang.String getField1136();", "java.lang.String getField1666();", "java.lang.String getField1539();", "java.lang.String getField1631();" ]
[ "0.75130236", "0.73294675", "0.7263126", "0.7170249", "0.6926703", "0.6384399", "0.6322742", "0.6259026", "0.61747646", "0.61704165", "0.616826", "0.6155977", "0.6123313", "0.6073271", "0.60556585", "0.6047852", "0.60115516", "0.6005587", "0.6005587", "0.5977383", "0.5962289", "0.592899", "0.5914432", "0.5901408", "0.58956945", "0.588728", "0.5857782", "0.583832", "0.58269924", "0.5801548", "0.5799919", "0.57917434", "0.57900274", "0.579002", "0.57773393", "0.5775657", "0.5775657", "0.5775657", "0.57659006", "0.57593554", "0.57387906", "0.5737404", "0.57293504", "0.572137", "0.57159525", "0.5715841", "0.5709056", "0.5705693", "0.5705049", "0.56980544", "0.5697362", "0.5692746", "0.5686582", "0.56857955", "0.5677808", "0.56751305", "0.567312", "0.56726426", "0.56682414", "0.5665206", "0.5662582", "0.566214", "0.5658052", "0.5655499", "0.56497866", "0.5640283", "0.56311685", "0.5630329", "0.56287724", "0.56286806", "0.5626356", "0.56217694", "0.56187606", "0.56184596", "0.5613819", "0.5613641", "0.5609133", "0.5608888", "0.56082195", "0.5606481", "0.55929", "0.5592747", "0.55897546", "0.5588366", "0.55874735", "0.55871654", "0.5586691", "0.55845124", "0.5584318", "0.5582629", "0.5581726", "0.55816084", "0.5581589", "0.55783904", "0.5577389", "0.5575697", "0.5575562", "0.55748177", "0.5574337", "0.5573265" ]
0.72390497
3
Sets the field ID of this v legal f o rel.
public void setFieldId(String fieldId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setFieldId(final String fieldId) {\n this.fieldId = fieldId;\n }", "public void setFieldId(String fieldId) {\n this.fieldId = fieldId;\n }", "public void setFieldId(java.lang.String fieldId) {\n this.fieldId = fieldId;\n }", "@Override\n public void setField(int id, int value) {\n \n }", "@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}", "@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}", "public void setFid(int value) {\n this.fid = value;\n }", "public void defId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n this.id = id;\r\n job = acceptFreelancerBean.getJob(id); \r\n if (job!= null){\r\n fid=job.getFid();\r\n }\r\n }", "public final String getFieldId() {\n return fieldId;\n }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }", "protected void setId(long id) {\n\t\tgraphicFrame.getNvGraphicFramePr().getCNvPr().setId(id);\n\t}", "public void setField(DatabaseField field) {\n this.field = field;\n }", "public void setIdubicacionfiscal(int idubicacionfiscal)\r\n\t{\r\n\t\tthis.idubicacionfiscal = idubicacionfiscal;\r\n\t}", "public void setFid(int fid) {\r\n this.fid = fid;\r\n }", "@AutoEscape\n\tpublic String getFieldId();", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "@Override\n\tpublic void setFTId(String arg0) {\n\n\t}", "public String getFieldId() {\n return this.fieldId;\n }", "public void setId(Long id) {\n\t\tsetField(\"id\", id);\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public void setID(long id);", "public void setIdJourFerie(Jour_Ferie idJourFerie) {\r\n\t\tthis.idJourFerie = idJourFerie;\r\n\t}", "public void setId(long id)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6);\n }\n target.setLongValue(id);\n }\n }", "public Builder setCaptureFestivalId(long value) {\n \n captureFestivalId_ = value;\n onChanged();\n return this;\n }", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }", "public java.lang.String getFieldId() {\n return fieldId;\n }", "public void setLBR_PartnerDFe_ID (int LBR_PartnerDFe_ID);", "public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId (String id)\n {\n _id = id;\n }", "public void setId(long id) {\n id_ = id;\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "public void setId(ID id)\n {\n this.id = id;\n }", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setID(int id){\n this.id=id;\n }", "public void setId(long _id)\r\n {\r\n this._id = _id;\r\n this.hashCode = Integer.MIN_VALUE;\r\n }", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setAD_WF_Node_ID (int AD_WF_Node_ID);", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}", "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setId(int id) {\r\n\t\t_id = id;\r\n\t}", "public void setId(int id){\r\n this.id = id;\r\n }", "void setId(int val);", "public void setID(String idIn) {this.id = idIn;}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(int id){\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\tthis.id = id;\n }", "public void setField(int i, Field f) {\n\n\t\tif (i < 0 || i >= fields.size())\n\t\t\treturn;\n\t\tfields.add(i, f);\n\n\t}", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(int id){\n this.ID = id;\n }", "protected void setObjectId(int id) {\n\t\tthis.objectId = id;\n\t\tsetDirty(true);\n\t}", "public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "public void setLBR_NotaFiscal_ID (int LBR_NotaFiscal_ID);", "public void setId(String id) {\r\n\t\tsId = id;\r\n\t}", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(String id) {\n _id = id;\n }", "public void setId(int id) {\n this.id = id;\n\t}", "void setId(int id) {\n this.id = id;\n }", "public void setId(String id) {\n\t\tthis._id = id;\n\t}", "void setID(int generateID) {\n partIDTextField.setText(String.valueOf(generateID));\n }", "public void setId(int id) {\n \t\tthis.id = id;\n \t}", "public void setId(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(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long objectId) {\r\n\t\tthis.objectId = objectId;\r\n\t}" ]
[ "0.7121714", "0.7007021", "0.68478763", "0.66661483", "0.665432", "0.665432", "0.6119576", "0.60257554", "0.598374", "0.5959758", "0.594175", "0.5925284", "0.58852357", "0.58852357", "0.5859995", "0.5848547", "0.58401126", "0.5820144", "0.58191645", "0.5818878", "0.5812652", "0.5808238", "0.5803663", "0.5774496", "0.57574266", "0.5756944", "0.5743442", "0.5733178", "0.57274806", "0.5723578", "0.5719856", "0.5719856", "0.5712018", "0.5708114", "0.5705145", "0.5697591", "0.5687981", "0.56872857", "0.56859815", "0.5685883", "0.56837666", "0.56748253", "0.5666074", "0.56624025", "0.5648824", "0.5648824", "0.5641737", "0.5641476", "0.5641476", "0.56408286", "0.56395376", "0.563732", "0.56331444", "0.5632711", "0.563093", "0.562448", "0.56207865", "0.5616362", "0.5610552", "0.5610279", "0.56081843", "0.56032914", "0.5602828", "0.55979025", "0.55979025", "0.55941314", "0.55933195", "0.5592855", "0.5591068", "0.5586488", "0.5586488", "0.5586488", "0.55841815", "0.55830127", "0.5582692", "0.55807024", "0.5579327", "0.5577982", "0.5573242", "0.5571213", "0.5570528", "0.55694914", "0.55694914", "0.55694914", "0.55694914", "0.55687916", "0.55681145", "0.55680543", "0.55667645", "0.55653495", "0.55643696", "0.5564108", "0.5564108", "0.5564108", "0.5564108", "0.5564108", "0.5561723", "0.5561723", "0.5561723", "0.55609643" ]
0.7403745
0
Returns the org ID of this v legal f o rel.
@AutoEscape public String getOrgId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getOrgId() {\r\n return orgId;\r\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "public BigDecimal getOrgId() {\n return orgId;\n }", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getPersonOrgID() {\n return personOrgID;\n }", "public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public int getHC_Org2_ID();", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "String organizationId();", "@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}", "public OrgDo getOrg(Integer id);", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public long getOrganizationId();", "public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "String getOrganizationPartyId();", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public String getOrgname() {\n return orgname;\n }", "public String getOrgName() {\n return orgName;\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public String getOrgName() {\r\n return orgName;\r\n }", "public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public java.lang.String getOrgName() {\n return OrgName;\n }", "public String getOrgCd() {\r\n return orgCd;\r\n }", "public java.lang.String getOrgName() {\n return orgName;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public String getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public String getOrganId() {\n return organId;\n }", "public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}", "public void setOrgId(String orgId);", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }", "public int getOrg(int newId)\n\t{\n\t\treturn getEntry(newId).org;\n\t}", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public String getOrgNm()\n\t{\n\t\treturn mOrgNm;\n\t}", "public java.lang.String getOA_ID() {\n return OA_ID;\n }", "public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }", "public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }", "@XmlElement\n public String getOrgUnitRefId() {\n return orgUnitRefId;\n }", "public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "public String getOrginid() {\n return orginid;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public String getOrganizationName() {\n return (orgName);\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "public java.lang.String getOrgSsoCode() {\r\n return orgSsoCode;\r\n }", "public final String getOrganisation() {\n return organisation;\n }", "Party getOrganizationParty();", "@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public String getOid() {\n return getProperty(Property.OID);\n }", "public int getOid() {\n return oid;\n }", "public Long getSalesOrgnizationId() {\n return salesOrgnizationId;\n }", "public Number getOridestId() {\n return (Number)getAttributeInternal(ORIDESTID);\n }", "public String organization() {\n return this.organization;\n }", "@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}", "public OrgUnit getOrgUnit() {\n return OrgUnitDao.getOrgUnitByRefId(getOrgUnitRefId());\n }", "java.lang.String getAoisId();", "public int getId() {\n\t\treturn gfId;\n\t}", "public String getIdAeroporto()\n {\n return this.idAeroporto;\n }", "public String getWashEmdPrintInvorg() {\n return (String) getAttributeInternal(WASHEMDPRINTINVORG);\n }", "public Long getOid() {\n return oid;\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }" ]
[ "0.77698296", "0.7761301", "0.7753057", "0.7653152", "0.7653152", "0.7653152", "0.7653152", "0.7653152", "0.76148784", "0.75694287", "0.7423333", "0.73213243", "0.7262181", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.7152219", "0.68702465", "0.6868279", "0.68535346", "0.68535346", "0.67800754", "0.6775842", "0.6729487", "0.6678561", "0.66455853", "0.6624015", "0.6623423", "0.65926373", "0.65708584", "0.6566726", "0.6566726", "0.65130866", "0.6492566", "0.6480909", "0.64775085", "0.6475415", "0.64530545", "0.6450308", "0.6431956", "0.642504", "0.63725847", "0.63393676", "0.63393676", "0.6336947", "0.6330701", "0.6326877", "0.63109165", "0.63030994", "0.62754846", "0.62687653", "0.62294453", "0.62294453", "0.62294453", "0.614755", "0.6124061", "0.61160433", "0.6087085", "0.60688746", "0.60331833", "0.60331833", "0.60294056", "0.59903985", "0.59534836", "0.59285593", "0.58731353", "0.58681864", "0.58513916", "0.58509666", "0.5826749", "0.5823671", "0.581697", "0.57970923", "0.5766422", "0.57626134", "0.57587063", "0.574816", "0.5703129", "0.5677842", "0.56686056", "0.56635994", "0.56592757", "0.5658236", "0.56500137", "0.5649473", "0.5647083", "0.56469667", "0.56437314", "0.56419325", "0.56356126", "0.5628132" ]
0.74808294
10
Sets the org ID of this v legal f o rel.
public void setOrgId(String orgId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public long getOrgId() {\r\n return orgId;\r\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public void setOrgId(String orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public void setOrgId(Integer orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setOrgId(BigDecimal orgId) {\n this.orgId = orgId;\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setHC_Org2_ID (int HC_Org2_ID);", "public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "@AutoEscape\n\tpublic String getOrgId();", "public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }", "public void setOrganizationId(long organizationId);", "public void setAD_Tree_Org_ID(int AD_Tree_Org_ID) {\n\t\tif (AD_Tree_Org_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", new Integer(AD_Tree_Org_ID));\n\t}", "public void setOrganizationId(java.lang.String organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "public void setOrginid(String orginid) {\n this.orginid = orginid == null ? null : orginid.trim();\n }", "public void setAD_OrgTrx_ID(int AD_OrgTrx_ID) {\n\t\tif (AD_OrgTrx_ID <= 0)\n\t\t\tset_Value(\"AD_OrgTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_OrgTrx_ID\", new Integer(AD_OrgTrx_ID));\n\t}", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public void setOrgName(String orgName) {\n this.orgName = orgName == null ? null : orgName.trim();\n }", "public OrgDo getOrg(Integer id);", "public int getPersonOrgID() {\n return personOrgID;\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgName(String orgName) {\r\n this.orgName = orgName;\r\n }", "public void setOrgname(String orgname) {\n this.orgname = orgname == null ? null : orgname.trim();\n }", "@Override\n\tpublic void setEsfOrganizationId(long esfOrganizationId) {\n\t\t_esfTournament.setEsfOrganizationId(esfOrganizationId);\n\t}", "public void setCalendarId(final String val) {\n if (Util.checkNull(val) != null) {\n calendarId.setA(val);\n }\n }", "public void setKdOrg(java.lang.CharSequence value) {\n this.kd_org = value;\n }", "public void setOrgName(java.lang.String orgName) {\n this.orgName = orgName;\n }", "public void setOrgCode(Integer orgCode) {\n\t\tthis.orgCode = orgCode;\n\t}", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public void setOrganization(String organization);", "public void setAllContactId(final String val) {\n if (Util.checkNull(val) != null) {\n ctctId.setA(val);\n }\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public String getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}", "@Override\n\tpublic void setEsfOrganization(java.lang.String esfOrganization) {\n\t\t_esfShooterAffiliationChrono.setEsfOrganization(esfOrganization);\n\t}", "public String getOrgname() {\n return orgname;\n }", "public void setOrgName(java.lang.String OrgName) {\n this.OrgName = OrgName;\n }", "public void unsetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONID$4, 0);\r\n }\r\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();" ]
[ "0.7596801", "0.7596801", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.73117757", "0.7122544", "0.69886297", "0.6859716", "0.6859716", "0.6859716", "0.6859716", "0.6859716", "0.6699885", "0.6678282", "0.6656498", "0.66180426", "0.6602342", "0.6602342", "0.6602342", "0.6602342", "0.6602342", "0.6539586", "0.65273833", "0.65195394", "0.65017706", "0.64972186", "0.6493663", "0.6493663", "0.6455072", "0.6382388", "0.62654966", "0.61907077", "0.6161382", "0.6127949", "0.6114605", "0.6077742", "0.6074743", "0.60010135", "0.5985668", "0.5974934", "0.5955123", "0.586286", "0.58584595", "0.5855261", "0.5826877", "0.58213454", "0.5819421", "0.5805716", "0.5766681", "0.57598907", "0.57219136", "0.57098776", "0.5660221", "0.5657747", "0.56178385", "0.56131846", "0.56131846", "0.55765116", "0.55704963", "0.55521077", "0.55448353", "0.5511073", "0.5470288", "0.54504746", "0.5444693", "0.54443777", "0.5406029", "0.5397313", "0.5388723", "0.5383613", "0.5381659", "0.5353509", "0.5353509", "0.534031", "0.5334692", "0.5333484", "0.53311837", "0.5321495", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006", "0.53160006" ]
0.75513923
2
TODO We need to reverseengineer all these values
public boolean isCaseSensitive() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "private void initValues() {\n \n }", "@Override\n\tpublic void initializeValues() {\n\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "private Value() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "java.lang.String getField1489();", "public final void mo51373a() {\n }", "public Map method_6439() {\r\n return this.field_6226;\r\n }", "java.lang.String getField1078();", "protected abstract Set method_1559();", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "public int getOldValues_descriptionType(){\n return localOldValues_descriptionType;\n }", "public Map method_1884() {\r\n return this.field_1677;\r\n }", "@Override\n public int value() {\n return 0;\n }", "java.lang.String getField1873();", "java.lang.String getField1762();", "public void mo38117a() {\n }", "java.lang.String getField1784();", "private Values(){}", "java.lang.String getField1884();", "java.lang.String getField1048();", "java.lang.String getField1773();", "java.lang.String getField1875();", "java.lang.String getField1772();", "java.lang.String getField1887();", "java.lang.String getField1152();", "java.lang.String getField1738();", "java.lang.String getField1763();", "java.lang.String getField1752();", "java.lang.String getField1853();", "java.lang.String getField1863();", "java.lang.String getField1673();", "java.lang.String getField1837();", "java.lang.String getField1687();", "java.lang.String getField1838();", "java.lang.String getField1881();", "java.lang.String getField1843();", "java.lang.String getField1781();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "java.lang.String getField1737();", "java.lang.String getField1764();", "java.lang.String getField1028();", "public void mo12628c() {\n }", "java.lang.String getField1829();", "java.lang.String getField1787();", "java.lang.String getField1774();", "java.lang.String getField1839();", "java.lang.String getField1761();", "java.lang.String getField1729();", "java.lang.String getField1750();", "java.lang.String getField1727();", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "public int getNotaFinal()\r\n {\n return 4;\r\n }", "java.lang.String getField1637();", "java.lang.String getField1872();", "java.lang.String getField1783();", "java.lang.String getField1372();", "java.lang.String getField1874();", "java.lang.String getField1879();", "java.lang.String getField1857();", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "java.lang.String getField1869();", "java.lang.String getField1681();", "java.lang.String getField1646();", "java.lang.String getField1273();", "java.lang.String getField1885();", "java.lang.String getField1861();", "java.lang.String getField1862();", "java.lang.String getField1782();", "java.lang.String getField1753();", "java.lang.String getField1743();", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "java.lang.String getField1662();", "java.lang.String getField1848();", "java.lang.String getField1757();", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "java.lang.String getField1643();", "java.lang.String getField1771();", "java.lang.String getField1638();", "java.lang.String getField1728();", "java.lang.String getField1792();", "java.lang.String getField1878();", "java.lang.String getField1748();", "java.lang.String getField1056();", "java.lang.String getField1776();", "public int getNewValues_descriptionType(){\n return localNewValues_descriptionType;\n }", "private stendhal() {\n\t}", "java.lang.String getField1847();", "java.lang.String getField1741();", "@Override\n public int getAltura(){\n return(super.getAltura());\n }", "@Override\n public List<RlpType> rlpValues() {\n List<RlpType> result = super.rlpValues();\n result.add(RlpString.create(Numeric.hexStringToByteArray(getTo())));\n result.add(RlpString.create(getValue()));\n result.add(RlpString.create(Numeric.hexStringToByteArray(getFrom())));\n return result;\n }", "protected class_496 method_1608() {\n return this.field_936;\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.5951477", "0.5678456", "0.5649929", "0.56158936", "0.55750215", "0.5552945", "0.555161", "0.55096036", "0.5439069", "0.54302996", "0.5400878", "0.53954655", "0.5395125", "0.5392456", "0.5392118", "0.5389431", "0.5383075", "0.5348236", "0.5340325", "0.53371835", "0.5319618", "0.5314735", "0.53014565", "0.5298687", "0.5290657", "0.52892977", "0.5282686", "0.52757376", "0.5275285", "0.5267291", "0.5266743", "0.5263964", "0.52631575", "0.52610576", "0.5258988", "0.52580297", "0.52564013", "0.5254154", "0.52539235", "0.52495944", "0.5248936", "0.5246916", "0.52438056", "0.52435935", "0.5238236", "0.52369946", "0.5235177", "0.523515", "0.5233427", "0.52290964", "0.52273667", "0.5226635", "0.5226166", "0.52235734", "0.5221082", "0.52193975", "0.52193975", "0.5216077", "0.5215508", "0.5214667", "0.52137995", "0.5213712", "0.52129084", "0.52098304", "0.52086115", "0.5207609", "0.5206245", "0.52012074", "0.5200772", "0.5199621", "0.5199511", "0.5197129", "0.5196872", "0.5195631", "0.5193505", "0.51934826", "0.5193023", "0.5192871", "0.51924723", "0.51916814", "0.5188851", "0.5188474", "0.51876867", "0.51852727", "0.5185045", "0.5184754", "0.5183672", "0.51829165", "0.51808536", "0.5179039", "0.5177768", "0.5177276", "0.51767164", "0.5176193", "0.517457", "0.5173952", "0.5173081", "0.5172746", "0.5172746", "0.5172746", "0.5172746" ]
0.0
-1
Operations that allow to configure a view of the properties of a entity from the app model.
public interface PropsViewsContainer { /** * Adds a new properties view configuration. The id must be unique. The * configuration must be an string with the namespace of the entity to be * loaded at a minimum. */ void addPropsView(String id, String className); /** * Sets the configuration for the properties view. Each value of the map * can be an string (full name of an entity) or a map with options to be * passed to the builder.<br/> * See <b>addPropsView</b> method for details. * @param configuration */ void setPropsViews(Map<String, String> propertiesView); /** * Gets the configuration for the properties view * @return the map with the configuration */ Map<String, String> getPropsViews(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EntityViewManager {\n\n /**\n * Returns the metamodel for this entity view manager.\n *\n * @return The metamodel for this entity view manager\n */\n public ViewMetamodel getMetamodel();\n\n /**\n * Applies the entity view setting to the given criteria builder.\n *\n * @param setting The setting that should be applied\n * @param criteriaBuilder The criteria builder on which the setting should be applied\n * @param <T> The type of the entity view\n * @param <Q> {@linkplain PaginatedCriteriaBuilder} if paginated, {@linkplain CriteriaBuilder} otherwise\n * @return {@linkplain PaginatedCriteriaBuilder} if paginated,\n * {@linkplain CriteriaBuilder} otherwise\n */\n public <T, Q extends QueryBuilder<T, Q>> Q applySetting(EntityViewSetting<T, Q> setting, CriteriaBuilder<?> criteriaBuilder);\n\n /**\n * Applies an object builder for the given entity view class to the given {@link PaginatedCriteriaBuilder}\n *\n * @param <T> The type of the entity view class\n * @param clazz The entity view class\n * @param criteriaBuilder The criteria build on which the object build should be applied to\n * @return A paginated criteria builder with an object builder applied\n */\n public <T> PaginatedCriteriaBuilder<T> applyObjectBuilder(Class<T> clazz, PaginatedCriteriaBuilder<?> criteriaBuilder);\n\n /**\n * Applies an object builder for the given entity view class to the given {@link CriteriaBuilder}\n *\n * @param <T> The type of the entity view class\n * @param clazz The entity view class\n * @param criteriaBuilder The criteria build on which the object build should be applied to\n * @return A paginated criteria builder with an object builder applied\n */\n public <T> CriteriaBuilder<T> applyObjectBuilder(Class<T> clazz, CriteriaBuilder<?> criteriaBuilder);\n\n /**\n * Applies an object builder for the given entity view class and the given mapping constructor name to the given {@link PaginatedCriteriaBuilder}\n *\n * @param <T> The type of the entity view class\n * @param clazz The entity view class\n * @param mappingConstructorName The name of the constructor that should be used in the object builder\n * @param criteriaBuilder The criteria build on which the object build should be applied to\n * @return A paginated criteria builder with an object builder applied\n */\n public <T> PaginatedCriteriaBuilder<T> applyObjectBuilder(Class<T> clazz, String mappingConstructorName, PaginatedCriteriaBuilder<?> criteriaBuilder);\n\n /**\n * Applies an object builder for the given entity view class and the given mapping constructor name to the given {@link CriteriaBuilder}\n *\n * @param <T> The type of the entity view class\n * @param clazz The entity view class\n * @param mappingConstructorName The name of the constructor that should be used in the object builder\n * @param criteriaBuilder The criteria build on which the object build should be applied to\n * @return A paginated criteria builder with an object builder applied\n */\n public <T> CriteriaBuilder<T> applyObjectBuilder(Class<T> clazz, String mappingConstructorName, CriteriaBuilder<?> criteriaBuilder);\n}", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }", "List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);", "void setPropsViews(Map<String, String> propertiesView);", "Form getPropertyEditionForm(ProjectEntity entity, String propertyTypeName);", "public PropertySet getViewProperties() {\r\n return prefs;\r\n }", "PropertyRealization createPropertyRealization();", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "public void configure(T aView) { }", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "public TogglePropertiesPanelAction(Application app, @Nullable View view) {\r\n super(app, view);\r\n setPropertyName(\"propertiesPanelVisible\");\r\n ResourceBundleUtil labels = ODGLabels.getLabels();\r\n putValue(AbstractAction.NAME, labels.getString(\"propertiesPanel\"));\r\n }", "@Override\n\tprotected void configure() {\n\t\tmapping(UserEntity.class, User.class).fields(\"userId\", \"id\")\n\t\t\t\t.fields(\"username\", \"name\").fields(\"password\", \"password\");\n\t\tmapping(RoleEntity.class, Role.class).fields(\"roleId\", \"id\")\n\t\t\t\t.fields(\"roleName\", \"name\").fields(\"roleCode\", \"code\");\n\t\tmapping(ProjectEntity.class, Project.class).fields(\"projectId\", \"id\")\n\t\t\t\t.fields(\"projectName\", \"name\")\n\t\t\t\t.fields(\"projectDescription\", \"description\");\n\t\tmapping(DocumentDataEntity.class, DocumentData.class)\n\t\t\t\t.fields(\"documentDataId\", \"id\")\n\t\t\t\t.fields(\"documentTitle\", \"title\")\n\t\t\t\t.fields(\"documentCreationTs\", \"createDate\")\n\t\t\t\t.fields(\"docDataDescription\", \"description\")\n\t\t\t\t.fields(\"documentModTs\", \"lastModDate\")\n\t\t\t\t.fields(\"rootElementType\", \"rootElement\");\n\t\tmapping(CategoryEntity.class, Category.class)\n\t\t\t\t.fields(\"categoryId\", \"id\").fields(\"categoryName\", \"name\")\n\t\t\t\t.fields(\"categoryDescription\", \"description\");\n\t\tmapping(DocumentPartEntity.class, DocumentPart.class)\n\t\t\t\t.fields(\"documentPartId\", \"id\")\n\t\t\t\t.fields(\"documentPartOrder\", \"order\")\n\t\t\t\t.fields(\"documentPartContent\", \"content\")\n\t\t\t\t.fields(\"docPartRootElemType\", \"rootElementType\");\n\t\tmapping(CommentEntity.class, Comment.class).fields(\"commentId\", \"id\")\n\t\t\t\t.fields(\"commentSubmitTs\", \"submitDate\")\n\t\t\t\t.fields(\"commentContent\", \"comment\");\n\t}", "<T> Ack editProperty(ProjectEntity entity, Class<? extends PropertyType<T>> propertyType, T data);", "public void configure(Entity entity, boolean canChangePermission);", "public HasDisplayableProperties getProperties();", "public EntityOverviewPanel(SectionNodeView sectionNodeView, final Entity entity, final EntityHelper entityHelper) {\n super(sectionNodeView);\n this.entityHelper = entityHelper;\n synchronizer = ((EjbJarMultiViewDataObject) sectionNodeView.getDataObject()).getModelSynchronizer();\n\n JTextField ejbNameTextField = getEjbNameTextField();\n JTextField persistenceTypeTextField = getPersistenceTypeTextField();\n JTextField abstractSchemaNameTextField = getAbstractSchemaNameTextField();\n JLabel primaryKeyFieldLabel = getPrimaryKeyFieldLabel();\n final JComboBox primaryKeyFieldComboBox = getPrimaryKeyFieldComboBox();\n final JComboBox primaryKeyClassComboBox = getPrimaryKeyClassComboBox();\n final JTextField primaryKeyClassTextField = getPrimaryKeyClassTextField();\n\n addRefreshable(new ItemEditorHelper(ejbNameTextField, new TextItemEditorModel(synchronizer, false) {\n protected String getValue() {\n return entity.getEjbName();\n }\n\n protected void setValue(String value) {\n entity.setEjbName(value);\n }\n }));\n ejbNameTextField.setEditable(false);\n\n persistenceTypeTextField.setEditable(false);\n this.entity = entity;\n String persistenceType = this.entity.getPersistenceType();\n boolean isCmp = Entity.PERSISTENCE_TYPE_CONTAINER.equals(persistenceType);\n persistenceTypeTextField.setText(persistenceType + ((isCmp ? \" (CMP)\" : \" (BMP)\"))); //NOI18N\n\n addRefreshable(new ItemEditorHelper(abstractSchemaNameTextField, new TextItemEditorModel(synchronizer, true) {\n protected String getValue() {\n return entity.getAbstractSchemaName();\n }\n\n protected void setValue(String value) {\n entity.setAbstractSchemaName(value);\n }\n }));\n abstractSchemaNameTextField.setEditable(false);\n\n if (isCmp) {\n primaryKeyFieldLabel.setVisible(true);\n primaryKeyFieldComboBox.setVisible(true);\n primaryKeyClassComboBox.setVisible(true);\n primaryKeyClassTextField.setVisible(false);\n\n initPrimaryKeyFieldComboBox();\n final ItemComboBoxHelper primaryKeyComboBoxHelper = new ItemComboBoxHelper(synchronizer,\n primaryKeyFieldComboBox) {\n public String getItemValue() {\n String value = entity.getPrimkeyField();\n return value == null ? PK_COMPOUND : value;\n }\n\n public void setItemValue(String value) {\n try {\n entityHelper.setPrimkeyField(value == PK_COMPOUND ? null : value);\n } catch (ClassNotFoundException e) {\n Utils.notifyError(e);\n }\n }\n };\n addRefreshable(primaryKeyComboBoxHelper);\n primaryKeyFieldComboBox.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n int selectedIndex = primaryKeyFieldComboBox.getSelectedIndex();\n if (selectedIndex == 0) {\n primaryKeyClassComboBox.setEnabled(true);\n primaryKeyClassComboBox.setSelectedItem(entity.getPrimKeyClass());\n } else {\n primaryKeyClassComboBox.setEnabled(false);\n }\n primaryKeyClassComboBox.setSelectedItem(entity.getPrimKeyClass());\n }\n });\n primaryKeyClassComboBox.setEnabled(primaryKeyFieldComboBox.getSelectedIndex() == 0);\n\n primaryKeyClassComboBox.addItem(\"boolean\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"byte\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"char\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"double\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"float\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"int\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"long\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Boolean\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Byte\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Character\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Double\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Float\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Integer\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Long\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.Object\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.lang.String\"); //NOI18N\n primaryKeyClassComboBox.addItem(\"java.math.BigDecimal\");//NOI18N\n\n addRefreshable(new ItemComboBoxHelper(synchronizer, primaryKeyClassComboBox) {\n public String getItemValue() {\n return entity.getPrimKeyClass();\n }\n\n public void setItemValue(String value) {\n if (!Utils.isValidPackageName(value)) {\n primaryKeyComboBoxHelper.refresh();\n }\n }\n });\n\n } else {\n primaryKeyFieldLabel.setVisible(false);\n primaryKeyFieldComboBox.setVisible(false);\n primaryKeyClassComboBox.setVisible(false);\n primaryKeyClassTextField.setVisible(true);\n\n addRefreshable(new ItemEditorHelper(primaryKeyClassTextField, new TextItemEditorModel(synchronizer, false) {\n protected String getValue() {\n return entity.getPrimKeyClass();\n }\n\n protected void setValue(String value) {\n entity.setPrimKeyClass(value);\n }\n }));\n }\n addRefreshable(new ItemCheckBoxHelper(synchronizer, getReentrantCheckBox()) {\n public boolean getItemValue() {\n return entity.isReentrant();\n }\n\n public void setItemValue(boolean value) {\n entity.setReentrant(value);\n }\n });\n }", "public com.microsoft.schemas.sharepoint.soap.UpdateViewViewProperties getViewProperties() {\r\n return viewProperties;\r\n }", "public void showProperties() {\n if ( _project != null ) {\n AntelopeProperties ap = new AntelopeProperties( this );\n ap.showProperties( _project );\n }\n }", "protected abstract void apply(Property prop, View view, Object newValue);", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public interface ProjectPropertiesView extends View<ProjectPropertiesView.ActionDelegate> {\n \n public interface ActionDelegate {\n /** Performs any actions appropriate in response to the user having pressed the Add button. */\n void onAddClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Edit button. */\n void onEditClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Delete button. */\n void onDeleteClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Save button. */\n void onSaveClicked();\n\n /** Performs any actions appropriate in response to the user having pressed the Cancel button. */\n void onCancelClicked();\n \n /** Returns selected property. */\n void selectedProperty(Property property);\n }\n \n /**\n * Sets whether Edit button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setEditButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Delete button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setDeleteButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Save button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setSaveButtonEnabled(boolean isEnabled);\n\n /**\n * Sets properties.\n *\n * @param projects\n */\n void setProperties(Array<Property> properties);\n \n /** Close dialog. */\n void close();\n\n /** Show dialog. */\n void showDialog();\n}", "private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }", "public interface CreateEntityView<E extends SerializableEntity> extends EntityView {\r\n\r\n\t/**\r\n\t * Make save handler enabled\r\n\t * \r\n\t * @param enabled\r\n\t */\r\n\tvoid setSaveHandlerEnabled(boolean enabled);\r\n\t\r\n}", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "public interface AllergyModelProperties extends PropertyAccess<AllergyModel> {\n ModelKeyProvider<AllergyModel> id();\n}", "public <T> EntityViewSetting<T, CriteriaBuilder<T>> createSetting(Class<T> entityViewClass, DataFetchingEnvironment dataFetchingEnvironment, String elementRoot) {\n KeysetPage keysetPage = extractKeysetPage(dataFetchingEnvironment);\n Integer pageSize = null;\n Integer offset = null;\n Integer last = null;\n if (keysetPage != null) {\n pageSize = dataFetchingEnvironment.getArgument(pageSizeName);\n offset = dataFetchingEnvironment.getArgument(offsetName);\n last = dataFetchingEnvironment.getArgument(RELAY_LAST_NAME);\n }\n return createSetting(entityViewClass, dataFetchingEnvironment, elementRoot, keysetPage, pageSize, last, offset);\n }", "private void loadModelProperties(ModelProperties modelProperties, Element parent) {\n final Element element = getElement(parent, \"model_properties\");\n assistLogic.loadLocation(modelProperties, element);\n assistLogic.loadColor(modelProperties, element);\n modelProperties.setDisplay(getBooleanValue(element, \"display\"));\n final NodeList nodeList = element.getElementsByTagName(\"model_property\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n final Element propertyElement = (Element) nodeList.item(i);\n final String name = getStringValue(propertyElement, \"name\");\n final String migratedName = defaultModelPropertyMigrationMap.get(name);\n final String realName = migratedName != null ? migratedName : name;\n final String value = getStringValue(propertyElement, \"value\");\n final NameValue nameValue = new NameValue(realName, value);\n modelProperties.addProperty(nameValue);\n }\n }", "public int getPropertyShowMode()\n {\n return propertyShowMode;\n }", "public ViewProperty() {\n initComponents();\n }", "@ApiModelProperty(value = \"The custom properties of this entity\")\n public Map<String, String> getProperties() {\n return properties;\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "public <T> EntityViewSetting<T, CriteriaBuilder<T>> createSetting(Class<T> entityViewClass, DataFetchingEnvironment dataFetchingEnvironment, String elementRoot, KeysetPage keysetPage, Integer first, Integer last, Integer offset) {\n EntityViewSetting<T, CriteriaBuilder<T>> setting;\n boolean forceUseKeyset = false;\n if (keysetPage == null) {\n int pageSize;\n if (first == null) {\n pageSize = Integer.MAX_VALUE;\n } else if (first < 0) {\n throw new RuntimeException(\"Illegal negative \" + pageSizeName + \" parameter: \" + first);\n } else {\n pageSize = first;\n }\n if (pageSize == Integer.MAX_VALUE && offset == null) {\n setting = EntityViewSetting.create(entityViewClass);\n } else {\n setting = (EntityViewSetting<T, CriteriaBuilder<T>>) (EntityViewSetting<?, ?>) EntityViewSetting.create(entityViewClass, offset == null ? 0 : (int) offset, pageSize);\n }\n } else {\n int pageSize;\n if (first == null) {\n pageSize = Integer.MAX_VALUE;\n } else if (first < 0) {\n throw new RuntimeException(\"Illegal negative \" + pageSizeName + \" parameter: \" + first);\n } else {\n pageSize = first;\n }\n if (last != null) {\n if (last < 0) {\n throw new RuntimeException(\"Illegal negative \" + RELAY_LAST_NAME + \" parameter: \" + last);\n }\n if (Integer.MAX_VALUE == pageSize) {\n pageSize = last;\n if (offset == null) {\n forceUseKeyset = true;\n }\n } else {\n if (offset == null) {\n offset = first - last;\n pageSize = last;\n } else {\n offset += first - last;\n pageSize = last;\n }\n if (offset < 0) {\n offset = 0;\n }\n if (keysetPage.getLowest() != null || keysetPage.getHighest() != null) {\n forceUseKeyset = true;\n }\n }\n } else if (offset == null) {\n forceUseKeyset = true;\n } else if (offset < 0) {\n throw new RuntimeException(\"Illegal negative \" + offsetName + \" parameter: \" + offset);\n }\n setting = (EntityViewSetting<T, CriteriaBuilder<T>>) (EntityViewSetting<?, ?>) EntityViewSetting.create(entityViewClass, offset == null ? 0 : (int) offset, pageSize);\n setting.withKeysetPage(keysetPage);\n }\n\n if (forceUseKeyset) {\n setting.setProperty(ConfigurationProperties.PAGINATION_FORCE_USE_KEYSET, true);\n }\n applyFetches(dataFetchingEnvironment, setting, elementRoot);\n return setting;\n }", "private int singleUpdateView(GenericEntity entity, ModelViewEntity modelViewEntity, List<ModelField> fieldsToSave, Connection connection) throws GenericEntityException {\n GenericDelegator delegator = entity.getDelegator();\n\n int retVal = 0;\n ModelEntity memberModelEntity = null;\n\n // Construct insert/update for each model entity\n Iterator<? extends Map.Entry<?, ModelViewEntity.ModelMemberEntity>> meIter = modelViewEntity.getMemberModelMemberEntities().entrySet().iterator();\n\n while (meIter != null && meIter.hasNext()) {\n Map.Entry<?, ModelViewEntity.ModelMemberEntity> meMapEntry = meIter.next();\n ModelViewEntity.ModelMemberEntity modelMemberEntity = meMapEntry.getValue();\n String meName = modelMemberEntity.getEntityName();\n String meAlias = modelMemberEntity.getEntityAlias();\n\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: Processing MemberEntity \" + meName + \" with Alias \" + meAlias);\n try {\n memberModelEntity = delegator.getModelReader().getModelEntity(meName);\n } catch (GenericEntityException e) {\n throw new GenericEntityException(\"Failed to get model entity for \" + meName, e);\n }\n\n Map<String, Object> findByMap = new Hashtable<String, Object>();\n\n // Now iterate the ModelViewLinks to construct the \"WHERE\" part for update/insert\n Iterator<ModelViewEntity.ModelViewLink> linkIter = modelViewEntity.getViewLinksIterator();\n\n while (linkIter != null && linkIter.hasNext()) {\n ModelViewEntity.ModelViewLink modelViewLink = linkIter.next();\n\n if (modelViewLink.getEntityAlias().equals(meAlias) || modelViewLink.getRelEntityAlias().equals(meAlias)) {\n\n Iterator<ModelKeyMap> kmIter = modelViewLink.getKeyMapsIterator();\n\n while (kmIter != null && kmIter.hasNext()) {\n ModelKeyMap keyMap = kmIter.next();\n\n String fieldName = \"\";\n\n if (modelViewLink.getEntityAlias().equals(meAlias)) {\n fieldName = keyMap.getFieldName();\n } else {\n fieldName = keyMap.getRelFieldName();\n }\n\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found field to set: \" + meAlias + \".\" + fieldName);\n Object value = null;\n\n if (modelViewEntity.isField(keyMap.getFieldName())) {\n value = entity.get(keyMap.getFieldName());\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found map value: \" + value.toString());\n } else if (modelViewEntity.isField(keyMap.getRelFieldName())) {\n value = entity.get(keyMap.getRelFieldName());\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found map value: \" + value.toString());\n } else {\n throw new GenericNotImplementedException(\"Update on view entities: no direct link found, unable to update\");\n }\n\n findByMap.put(fieldName, value);\n }\n }\n }\n\n // Look what there already is in the database\n List<GenericValue> meResult = null;\n\n try {\n meResult = delegator.findByAnd(meName, findByMap);\n } catch (GenericEntityException e) {\n throw new GenericEntityException(\"Error while retrieving partial results for entity member: \" + meName, e);\n }\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found \" + meResult.size() + \" results for entity member \" + meName);\n\n // Got results 0 -> INSERT, 1 -> UPDATE, >1 -> View is nor updatable\n GenericValue meGenericValue = null;\n\n if (meResult.size() == 0) {\n // Create new value to insert\n try {\n // Create new value to store\n meGenericValue = delegator.makeValue(meName, findByMap);\n } catch (Exception e) {\n throw new GenericEntityException(\"Could not create new value for member entity\" + meName + \" of view \" + modelViewEntity.getEntityName(), e);\n }\n } else if (meResult.size() == 1) {\n // Update existing value\n meGenericValue = meResult.iterator().next();\n } else {\n throw new GenericEntityException(\"Found more than one result for member entity \" + meName + \" in view \" + modelViewEntity.getEntityName() + \" - this is no updatable view\");\n }\n\n // Construct fieldsToSave list for this member entity\n List<ModelField> meFieldsToSave = new Vector<ModelField>();\n Iterator<ModelField> fieldIter = fieldsToSave.iterator();\n\n while (fieldIter != null && fieldIter.hasNext()) {\n ModelField modelField = fieldIter.next();\n\n if (memberModelEntity.isField(modelField.getName())) {\n ModelField meModelField = memberModelEntity.getField(modelField.getName());\n\n if (meModelField != null) {\n meGenericValue.set(meModelField.getName(), entity.get(modelField.getName()));\n meFieldsToSave.add(meModelField);\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Added field to save: \" + meModelField.getName() + \" with value \" + meGenericValue.get(meModelField.getName()));\n } else {\n throw new GenericEntityException(\"Could not get field \" + modelField.getName() + \" from model entity \" + memberModelEntity.getEntityName());\n }\n }\n }\n\n /*\n * Finally, do the insert/update\n * TODO:\n * Do the real inserts/updates outside the memberEntity-loop,\n * only if all of the found member entities are updatable.\n * This avoids partial creation of member entities, which would mean data inconsistency:\n * If not all member entities can be updated, then none should be updated\n */\n if (meResult.size() == 0) {\n retVal += singleInsert(meGenericValue, memberModelEntity, memberModelEntity.getFieldsCopy(), connection);\n } else {\n if (meFieldsToSave.size() > 0) {\n retVal += singleUpdate(meGenericValue, memberModelEntity, meFieldsToSave, connection, null);\n } else {\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: No update on member entity \" + memberModelEntity.getEntityName() + \" needed\");\n }\n }\n }\n\n return retVal;\n }", "private void setFields(EditConfigurationVTwo editConfiguration, VitroRequest vreq, String predicateUri) {\n \tsetConceptNodeField(editConfiguration, vreq);\n \tsetConceptLabelField(editConfiguration, vreq);\n }", "public <E extends Entity> RenderedServiceEntityView(EntityModel model, Entity entity) {\n super(model, entity);\n// RenderedServiceEntityModel renderedServiceEntityModel = (RenderedServiceEntityModel) model;\n// FormField labelFieldInput = new EntityFormField(new EntityField(\"tariff\", EntityFieldTypes.Tariff, Tariff::getId, Tariff::setId), null );\n\n// tariffFormFields = new ArrayList<>();\n// for (EntityField entityField : ((RenderedServiceEntityModel) model).getTariffFields()) {\n// if (!entityField.isEditable()) {\n// continue;\n// }\n// tariffFormFields.add(createFormField(entityField, null));\n// }\n\n// for (int i = 0; i < this.tariffFormFields.size(); i++) {\n// addLabelFieldInput(this.tariffFormFields.get(i));\n// }\n revalidate();\n }", "protected void setEditUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new EditObjPropStmt(ops);\n if ( ! policyHelper.isAuthorizedAction(action) ) {\n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n editUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"edit\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri);\n \n if ( deleteUrl.isEmpty() ) {\n params.put(\"deleteProhibited\", \"prohibited\");\n }\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n editUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }", "public interface JPAEdmComplexTypeView extends JPAEdmBaseView {\n\n /**\n * The method returns an EDM complex type that is currently being processed.\n * \n * @return an instance of type {@link org.apache.olingo.odata2.api.edm.provider.ComplexType}\n */\n public ComplexType getEdmComplexType();\n\n /**\n * The method returns an JPA embeddable type that is currently being\n * processed.\n * \n * @return an instance of type {@link javax.persistence.metamodel.EmbeddableType}\n */\n public javax.persistence.metamodel.EmbeddableType<?> getJPAEmbeddableType();\n\n /**\n * The method returns a consistent list of EDM complex types.\n * \n * @return a list of {@link org.apache.olingo.odata2.api.edm.provider.ComplexType}\n */\n public List<ComplexType> getConsistentEdmComplexTypes();\n\n /**\n * The method searches for the EDM complex type with in the container for\n * the given JPA embeddable type name.\n * \n * @param embeddableTypeName\n * is the name of JPA embeddable type\n * @return a reference to EDM complex type if found else null\n */\n public ComplexType searchEdmComplexType(String embeddableTypeName);\n\n /**\n * The method add a JPA EDM complex type view to the container.\n * \n * @param view\n * @param isReferencedInKey\n * is the complex type referenced in an Entity as a key property\n * is an instance of type {@link org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmComplexTypeView}\n */\n public void addJPAEdmCompleTypeView(JPAEdmComplexTypeView view);\n\n /**\n * The method searches for the EDM complex type with in the container for\n * the given EDM complex type's fully qualified name.\n * \n * @param type\n * is the fully qualified name of EDM complex type\n * @return a reference to EDM complex type if found else null\n */\n public ComplexType searchEdmComplexType(FullQualifiedName type);\n\n /**\n * The method expands the given EDM complex type into a list of EDM simple\n * properties.\n * \n * @param complexType\n * is the EDM complex type to expand\n * @param expandedPropertyList\n * is the list to be populated with expanded EDM simple\n * properties\n * @param embeddablePropertyName\n * is the name of the complex property. The name is used as the\n * qualifier for the expanded simple property names.\n */\n public void expandEdmComplexType(ComplexType complexType, List<Property> expandedPropertyList,\n String embeddablePropertyName);\n\n /**\n * The method checks if the given EDM complex type is referenced as a Key property in any Entity\n * @param complexTypeName\n * EDM complex type name\n * @return\n * <ul><li><b>true</b> : if the complex type is referenced as an entity's key property</li>\n * <li><b>false</b> : if the complex type is not referenced as an entity's key property</li>\n * </ul>\n * \n */\n public boolean isReferencedInKey(String complexTypeName);\n\n /**\n * The method sets the given EDM complex type as referenced in an Entity as a key property\n * @param complexTypeName\n * EDM complex Type name\n */\n public void setReferencedInKey(String complexTypeName);\n\n}", "public interface ExpensesRecordView extends BaseView {\n void showData(List entityList);\n}", "EntityConfiguration getConfiguration();", "@Override\r\n protected void updateView() {\r\n putValue(ActionUtil.SELECTED_KEY,\r\n getActiveView() != null &&\r\n ! getActiveView().isPropertiesPanelVisible()\r\n );\r\n }", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }", "public void setViewProperties(com.microsoft.schemas.sharepoint.soap.UpdateViewViewProperties viewProperties) {\r\n this.viewProperties = viewProperties;\r\n }", "ProductProperties productProperties();", "Map<String, String> getPropsViews();", "void setPropertiedGraphView(final PropertiedGraphView<O> propertiedGraphView);", "@Override\n protected void initViewSetup() {\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public ViewMetamodel getMetamodel();", "interface ModelToPresenter {\n\n Context getManagedContext();\n }", "List<PropertySpecification> propertySpecifications(ModelContext context);", "void updateViewFromModel();", "@RequestMapping(\"/edit/{key}\")\n public String edit(@PathVariable(\"key\") String key, Model model) {\n List<CompanyVo> autogenCompanyList = autogenMgr.getAllCompany();\n \n model.addAttribute(\"autogenCompanyList\", autogenCompanyList);\n \n String[] keys = StringUtils.split(key, \"|\");\n \n Autogen autogen = autogenMgr.getAutogen(keys[0], keys[1]);\n \n model.addAttribute(\"autogen\", autogen);\n \n return \"/management/autogen/edit\";\n }", "Object getViewDetails();", "@Override\n\tpublic ProductBean view(String pname) {\n\t\treturn session.selectOne(namespace+\".view\", pname);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic ResponseEntity<JsonResponse<PropertyModel>> modelForProperty(Integer id) {\n\t\tList<PropertyModel> form = new ArrayList<PropertyModel>();\n\n\t\ttry {\n\n\t\t\tString value = \"SET @p_propertyType=\" + id + \";\";\n\n\t\t\tList<Object[]> x = em.createNamedStoredProcedureQuery(\"userRoutines\")\n\t\t\t\t\t.setParameter(\"actionType\", \"viewPropertyInModel\").setParameter(\"actionValue\", value)\n\t\t\t\t\t.getResultList();\n\t\t\tif (!x.isEmpty()) {\n\t\t\t\tfor (Object[] m : x) {\n\t\t\t\t\tPropertyModel user = new PropertyModel(m[0], m[1], m[2], m[3], m[4], m[5], m[6]);\n\t\t\t\t\tform.add(user);\n\t\t\t\t}\n\t\t\t}\n\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\t\tJsonResponse<PropertyModel> resp = new JsonResponse<PropertyModel>();\n\t\tresp.setBody(form.get(0));\n\n\t\tResponseEntity<JsonResponse<PropertyModel>> response = new ResponseEntity<JsonResponse<PropertyModel>>(resp,\n\t\t\t\tHttpStatus.CREATED);\n\t\tSystem.out.println(\"response edit : \" + response);\n\t\treturn response;\n\t}", "@Override\n\tpublic void refresh(Object entity, Map<String, Object> properties) {\n\t\t\n\t}", "@Path(\"property\")\n@Tag(name = \"Property\", description = \"This endpoint is used for sharing properties between different data\")\npublic interface PropertyControllerDefinition extends IPropertyControllerJaxRS {\n\n @Override\n @Operation(summary = \"Get JSON\", description = \"GET a JSON document.\")\n String getJsonConfiguration(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Save JSON\", description = \"Saves a JSON document.\")\n void setJsonConfiguration(String name, String json) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Property\", description = \"Gets property's value\")\n String getProperty(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Property\", description = \"Updates the property's value\")\n void setProperty(String name, String value) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets all properties as key / value pairs.\")\n Map<String, String> getProperties() throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets properties as key / value pairs of specified properties.\")\n Map<String, String> getProperties(String[] names) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Properties\", description = \"Updates the values of multiple properties.\")\n void setProperties(Map<String, String> values) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Principal\", description = \"Returns user's principal used by front-ends for queries or to determine what to display.\")\n ICoalescePrincipal whoami();\n}", "@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }", "protected void initView(Point3f kEye, SoftwareVertexProperty kVertexProperty) {\r\n m_kView.sub(kVertexProperty.getPosition(), kEye);\r\n normalize(m_kView);\r\n\r\n // invert backfacing normals\r\n Vector3f kNormal = kVertexProperty.getNormal();\r\n if (m_kView.dot(kNormal) <= 0.0f) {\r\n m_kNormal.set(kNormal);\r\n }\r\n else {\r\n m_kNormal.negate(kNormal);\r\n }\r\n }", "private String renderEditPage(Model model, VMDTO vmdto) {\n\t\tmodel.addAttribute(\"vmDto\", vmdto);\n\t\tmodel.addAttribute(\"availableProviders\", providerService.getAllProviders());\n\t\treturn \"vm/edit\";\n\t}", "public ModelAndView populateAndGetFormView(Game entity, Model model) {\n // Populate the form with all the necessary elements\n populateForm(model);\n // Add concurrency attribute to the model to show the concurrency form\n // in the current edit view\n model.addAttribute(\"concurrency\", true);\n // Add the new version value to the model.\n model.addAttribute(\"newVersion\", getLastVersion(entity));\n // Add the current pet values to maintain the values introduced by the user\n model.addAttribute(getModelName(), entity);\n // Return the edit view path\n return new org.springframework.web.servlet.ModelAndView(getEditViewPath(), model.asMap());\n }", "@Override\n\tpublic void setModel(TenantsEntity model) {\n\t\t\n\t}", "List<Property<?>> getProperties(ProjectEntity entity);", "public PacienteModel() {\r\n this.codigo = new SimpleIntegerProperty();\r\n this.nome = new SimpleStringProperty();\r\n this.nascimento = new SimpleStringProperty();\r\n this.endereco = new SimpleStringProperty();\r\n this.telefone = new SimpleStringProperty();\r\n this.cep = new SimpleStringProperty();\r\n this.documento = new SimpleStringProperty();\r\n this.sexo = new SimpleStringProperty();\r\n this.data_cliente = new SimpleStringProperty();\r\n this.tipo = new SimpleStringProperty();\r\n this.email = new SimpleStringProperty();\r\n this.obs = new SimpleStringProperty();\r\n this.status = new SimpleBooleanProperty();\r\n }", "public <T> EntityViewSetting<T, PaginatedCriteriaBuilder<T>> createPaginatedSetting(DataFetchingEnvironment dataFetchingEnvironment, String elementRoot) {\n String objectRoot;\n if (pageElementObjectName == null || pageElementObjectName.isEmpty()) {\n objectRoot = elementRoot;\n } else if (elementRoot == null || elementRoot.isEmpty()) {\n objectRoot = pageElementObjectName;\n } else {\n objectRoot = elementRoot + \"/\" + pageElementObjectName;\n }\n String typeName = getElementTypeName(dataFetchingEnvironment, objectRoot);\n Class<?> entityViewClass = typeNameToViewType.get(typeName).getJavaType();\n if (entityViewClass == null) {\n throw new IllegalArgumentException(\"No entity view type is registered for the name: \" + typeName);\n }\n return createPaginatedSetting((Class<T>) entityViewClass, dataFetchingEnvironment, elementRoot);\n }", "public interface ElPropertyValue extends ElPropertyDeploy {\r\n\r\n /**\r\n * Return the Id values for the given bean value.\r\n */\r\n public Object[] getAssocOneIdValues(Object bean);\r\n\r\n /**\r\n * Return the Id expression string.\r\n * <p>\r\n * Typically used to produce id = ? expression strings.\r\n * </p>\r\n */\r\n public String getAssocOneIdExpr(String prefix, String operator);\r\n\r\n /**\r\n * Return the logical id value expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInValueExpr(int size);\r\n \r\n /**\r\n * Return the logical id in expression taking into account embedded id's.\r\n */\r\n public String getAssocIdInExpr(String prefix);\r\n \r\n /**\r\n * Return true if this is an ManyToOne or OneToOne associated bean property.\r\n */\r\n public boolean isAssocId();\r\n\r\n /**\r\n * Return true if any path of this path contains a Associated One or Many.\r\n */\r\n public boolean isAssocProperty();\r\n\r\n /**\r\n * Return true if the property is encrypted via Java.\r\n */\r\n public boolean isLocalEncrypted();\r\n \r\n /**\r\n * Return true if the property is encrypted in the DB.\r\n */\r\n public boolean isDbEncrypted();\r\n\r\n /**\r\n * Return the deploy order for the property.\r\n */\r\n public int getDeployOrder();\r\n \r\n /**\r\n * Return the default StringParser for the scalar property.\r\n */\r\n public StringParser getStringParser();\r\n\r\n /**\r\n * Return the default StringFormatter for the scalar property.\r\n */\r\n public StringFormatter getStringFormatter();\r\n\r\n /**\r\n * Return true if the last type is \"DateTime capable\" - can support\r\n * {@link #parseDateTime(long)}.\r\n */\r\n public boolean isDateTimeCapable();\r\n\r\n /**\r\n * Return the underlying JDBC type or 0 if this is not a scalar type.\r\n */\r\n public int getJdbcType();\r\n \r\n /**\r\n * For DateTime capable scalar types convert the long systemTimeMillis into\r\n * an appropriate java time (Date,Timestamp,Time,Calendar, JODA type etc).\r\n */\r\n public Object parseDateTime(long systemTimeMillis);\r\n\r\n /**\r\n * Return the value from a given entity bean.\r\n */\r\n public Object elGetValue(Object bean);\r\n\r\n /**\r\n * Return the value ensuring objects prior to the top scalar property are\r\n * automatically populated.\r\n */\r\n public Object elGetReference(Object bean);\r\n\r\n /**\r\n * Set a value given a root level bean.\r\n * <p>\r\n * If populate then\r\n * </p>\r\n */\r\n public void elSetValue(Object bean, Object value, boolean populate, boolean reference);\r\n\r\n /**\r\n * Make the owning bean of this property a reference (as in not new/dirty).\r\n */\r\n public void elSetReference(Object bean);\r\n\r\n /**\r\n * Convert the value to the expected type.\r\n * <p>\r\n * Typically useful for converting strings to the appropriate number type\r\n * etc.\r\n * </p>\r\n */\r\n public Object elConvertType(Object value);\r\n}", "public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}", "public Home3DAttributesController(Home home,\n UserPreferences preferences,\n ViewFactory viewFactory, \n ContentManager contentManager,\n UndoableEditSupport undoSupport) {\n this.home = home;\n this.preferences = preferences;\n this.viewFactory = viewFactory;\n this.contentManager = contentManager;\n this.undoSupport = undoSupport; \n this.propertyChangeSupport = new PropertyChangeSupport(this);\n \n updateProperties();\n }", "UserProperty getUserProperty(BaseUser u);", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public interface ConfigurationView {\n\n void onUpdateConfiguration(Configuration configuration);\n}", "public <T> EntityViewSetting<T, PaginatedCriteriaBuilder<T>> createPaginatedSetting(DataFetchingEnvironment dataFetchingEnvironment, String elementRoot, Integer first, Integer last, Integer offset, String beforeCursor, String afterCursor) {\n String objectRoot;\n if (pageElementObjectName == null || pageElementObjectName.isEmpty()) {\n objectRoot = elementRoot;\n } else if (elementRoot == null || elementRoot.isEmpty()) {\n objectRoot = pageElementObjectName;\n } else {\n objectRoot = elementRoot + \"/\" + pageElementObjectName;\n }\n String typeName = getElementTypeName(dataFetchingEnvironment, objectRoot);\n Class<?> entityViewClass = typeNameToViewType.get(typeName).getJavaType();\n if (entityViewClass == null) {\n throw new IllegalArgumentException(\"No entity view type is registered for the name: \" + typeName);\n }\n return createPaginatedSetting((Class<T>) entityViewClass, dataFetchingEnvironment, elementRoot, extractKeysetPage(first, last, beforeCursor, afterCursor), first, last, offset);\n }", "public interface IDashboardParamsGetter {\n\n /**\n * Returns current global parameters.\n * \n * @return\n */\n List<QueryProperty> getCustomParams(final Class<? extends AbstractEntity<?>> type);\n\n JComponent getUI();\n}", "@RequestMapping(\"/edit/{id}\")\n public String editConfiguration(@PathVariable(\"id\") int id, Model model) {\n model.addAttribute(\"configuration\", this.configurationService.getConfigurationById(id));\n model.addAttribute(\"listConfigurations\", this.configurationService.listConfigurations());\n return \"configuration\";\n }", "@Override\n public EntitiesResponse getNavProperty(String entitySetName, OEntityKey entityKey, String navProp, QueryInfo queryInfo) {\n ExtendedPropertyModel.setQueryInfo(queryInfo);\n try {\n final List<OEntity> entities = Lists.newArrayList();\n \n // work-around for a OData4J bug whereby URLs like this: http://win7-32:8080/ovodata/Ovodata.svc/&query=Sources('674dd7f3-6a1f-4f5a-a88f-86711b725921')/EpochGroups\n // product calls like this: getNavProperty(set:&query=Sources, key:('674dd7f3-6a1f-4f5a-a88f-86711b725921'), nav:EpochGroups, \n // query:{{inlineCnt:null, top:null, skip:null, filter:null, orderBy:null, skipToken:null, customOptions:{}, expand:[], select:[]}}), model:null\n if (entitySetName != null && entitySetName.startsWith(\"&query=\")) {\n entitySetName = entitySetName.substring(\"&query=\".length());\n }\n \n // find the property-model associated with this entity set name\n ExtendedPropertyModel<?> model = ExtendedPropertyModel.getPropertyModel(entitySetName);\n \n if (_log.isInfoEnabled()) {\n _log.info(\"getNavProperty(set:\" + entitySetName + \", key:\" + entityKey + \", nav:\" + navProp \n + \", query:{\" + OData4JServerUtils.toString(queryInfo) + \"}), model:\" + model);\n }\n \n if (model == null) {\n _log.warn(\"Unable to find model for entitySetName '\" + entitySetName + \"'\");\n throw new NotFoundException(entitySetName + \" type is not found\");\n }\n \n // find root entity \n Object entity = model.getEntityByKey(entityKey);\n if (entity == null) {\n if (_log.isInfoEnabled()) {\n _log.info(\"Unable to find entity in \" + model + \" with key \" + entityKey);\n }\n throw new NotFoundException(entitySetName + \"(\" + entityKey + \") was not found\");\n }\n \n // navProp is the NAME of the entity within the element in entitySetName - need to resolve it to a TYPE\n // not ALWAYS a collection, tho, so we also have to check properties (tho it can't be both)\n Class<?> navPropType = model.getCollectionElementType(navProp);\n boolean isCollection = true;\n if (navPropType == null) {\n navPropType = model.getPropertyType(navProp);\n isCollection = false;\n if (navPropType == null) {\n _log.warn(\"Unrecognized collection/property '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection not found in '\" + entitySetName + \"'\");\n }\n }\n ExtendedPropertyModel<?> subModel = ExtendedPropertyModel.getPropertyModel(navPropType);\n if (subModel == null) {\n _log.warn(\"Unrecognized type '\" + navPropType + \"' of '\" + navProp + \"' within '\" + entitySetName + \"'\");\n throw new NotFoundException(navProp + \" collection type '\" + navPropType + \"' is not known\");\n }\n\n final EdmEntitySet subEntitySet = getMetadata().getEdmEntitySet(subModel.entityName());\n // iterate over each sub-entity of entity which matches the navProp - they will all be of the same type\n Iterable<?> iterable = isCollection ? model.getCollectionValue(entity, navProp) : CollectionUtils.makeIterable(model.getPropertyValue(entity, navProp));\n Iterator<?> iter = iterable != null ? iterable.iterator() : null;\n if (iter != null) {\n if (queryInfo.skip != null) {\n for (int numToSkip = queryInfo.skip.intValue(); numToSkip > 0 && iter.hasNext(); --numToSkip) {\n iter.next(); // skip\n }\n }\n \n // TODO - this should influence how data is returned\n//TODO List<EntitySimpleProperty> expand = queryInfo.expand; - whether or not to expand out sub-elements or leave them as references\n// BoolCommonExpression filter = queryInfo.filter; - should be used by model\n// List<OrderByExpression> orderBy = queryInfo.orderBy; - should be used by model?\n\n for (int numToReturn = queryInfo.top != null ? queryInfo.top.intValue() : Integer.MAX_VALUE; numToReturn > 0 && iter.hasNext(); --numToReturn) {\n Object o = iter.next();\n /* \n List<OProperty<?>> properties = Lists.newArrayList();\n for (String propName : subModel.getPropertyNames()) {\n Class<?> propType = subModel.getPropertyType(propName);\n EdmSimpleType edmType = EdmSimpleType.forJavaType(propType);\n String propValue = String.valueOf(subModel.getPropertyValue(o, propName));\n // FIXME - seems weird to dumb this down to a string...\n properties.add(OProperties.parse(propName, edmType.getFullyQualifiedTypeName(), propValue));\n }\n \n List<OLink> links = Lists.newArrayList();\n for (String linkName : subModel.getCollectionNames()) {\n // Class<?> linkType = subModel.getCollectionElementType(linkName);\n // Iterable<?> linkValue = subModel.getCollectionValue(o, linkName);\n String relation = \"unknown\"; // FIXME - need values for relation\n String title = linkName;\n String href = \"/\" + linkName; // FIXME absolute or relative to current URL?\n links.add(OLinks.relatedEntities(relation, title, href));\n //FIXME OLinks.relatedEntitiesInline(relation, title, href, relatedEntities); // controlled via queryInfo $inline/$expand\n //FIXME - how to select this one? OLinks.relatedEntity(relation, title, href);\n //FIXME OLinks.relatedEntityInline(relation, title, href, relatedEntity); // controlled via queryInfo $inline/$expand\n }\n */\n if (o != null) {\n entities.add(toOEntity(subEntitySet, o, queryInfo.expand));\n }\n }\n \n } else {\n // FIXME no elments found to iterate the navProp is invalid?\n _log.info(\"no elments found to iterate the navProp is invalid?\");\n }\n \n return Responses.entities(entities, subEntitySet, Integer.valueOf(entities.size()), queryInfo.skipToken);\n } finally {\n // make sure to detach the QueryInfo from the thread when we're done\n ExtendedPropertyModel.setQueryInfo(null);\n }\n }", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "private boolean checkPropertyUpdateView() {\n \t\treturn Boolean.getBoolean(PROPERTY_RIENA_LNF_UPDATE_VIEW);\n \t}", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n }", "protected abstract void showEditedEntity(Entity e);", "public interface PropertiesModel {\n\n /**\n * Clears all defined properties from this model, but does not modify the set of observers.\n */\n void clear();\n\n /**\n * Adds a new {@link Property} to this model.\n * <p>\n * All properties must have case insensitive unique names and aliases. If a property with the same name (or names)\n * exists, it will be replaced by this property.\n *\n * @param property The property to be added.\n */\n void add(Property property);\n\n /**\n * Sets the value bound to the identified property without notifying observers that the value has been changed. This\n * method is intended to handle cases where setting a value could cause a cycle in the notification chain or\n * otherwise produce unintended side effects.\n * <p>\n * In most situations, {@link #set(ExecutionContext, String, Value)} is more appropriate.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void setQuietly(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Sets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property\n * @param propertyValue The value to set the property to.\n * @throws HtUncheckedSemanticException Thrown if no such property exists.\n */\n void set(ExecutionContext context, String propertyName, Value propertyValue);\n\n /**\n * Attempts to set the value bound to the identified property, throwing an {@link HtException} when the value cannot\n * by set, either because it doesn't exist, it isn't writable, or an error occurred writing it. This method is\n * intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property to be set\n * @param propertyValue The value to be written into the property\n * @throws HtException Thrown if the property doesn't exist, cannot be written, or an error occurs writing to it.\n */\n void trySet(ExecutionContext context, String propertyName, Value propertyValue) throws HtException;\n\n /**\n * Gets the value bound to the identified property. This method is intended for WyldCard-internal (i.e., not\n * scripted) access to properties.\n *\n * @param context The execution context\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to the property\n * @throws IllegalStateException Thrown if an error occurs while evaluating the property.\n * @throws IllegalArgumentException Thrown if the property does not exist.\n */\n Value get(ExecutionContext context, String propertyName);\n\n /**\n * Attempts to get the value bound to the identified property, throwing an {@link HtException} when the value\n * cannot be retrieved. This method is intended for use by script/programmatic-access to property values.\n *\n * @param context The execution context.\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The value bound to this property.\n * @throws HtException Thrown if the property cannot be retreived, perhaps because it doesn't exist or an error\n * occurred while trying to evaluate it.\n */\n Value tryGet(ExecutionContext context, String propertyName) throws HtException;\n\n /**\n * Returns the property identified by the given name, or null, if no such property exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return The identified property, or null if it doesn't exist.\n */\n Property findProperty(String propertyName);\n\n /**\n * Determines if a property identified by a given name exists.\n *\n * @param propertyName The case insensitive name of the property (or one of its aliases).\n * @return True if the property exists, false otherwise.\n */\n boolean hasProperty(String propertyName);\n\n /**\n * Adds an observer of property value changes. Note that observers are always notified of property changes on the\n * Swing dispatch thread.\n *\n * @param observer The observer\n */\n void addPropertyChangedObserver(PropertyChangeObserver observer);\n\n /**\n * Adds an observer of property value changes and immediately fires the\n * {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method\n * for each property defined in the model.\n * <p>\n * This is a convenience method to use instead of {@link #addPropertyChangedObserver(PropertyChangeObserver)}\n * followed immediately by {@link #notifyPropertyChangedObserver(ExecutionContext, PropertyChangeObserver, boolean)}.\n *\n * @param context The execution context\n * @param observer The property change observer.\n */\n void addPropertyChangedObserverAndNotify(ExecutionContext context, PropertyChangeObserver observer);\n\n /**\n * Invokes the {@link PropertyChangeObserver#onPropertyChanged(ExecutionContext, PropertiesModel, String, Value, Value)} method for\n * all properties on the provided observer. Useful for listeners that wish to initialize themselves with the current\n * state of the model.\n *\n * @param context The execution context.\n * @param observer This listener to be notified; does not have to be an active listener of this model.\n * @param includeComputedGetters When false, do not notify computed/synthesized properties\n */\n void notifyPropertyChangedObserver(ExecutionContext context, PropertyChangeObserver observer, boolean includeComputedGetters);\n\n /**\n * Removes an observer of property value changes; this listener will not be notified of future changes.\n *\n * @param observer The property change observer\n */\n void removePropertyChangedObserver(PropertyChangeObserver observer);\n}", "@Override\n public void buildView(IModelForm form) {\n FormSection general = form.addSection(\"SEG-Y Volume Properties\");\n\n // Add an editor for each of the model properties.\n LabelField directory = general.addLabelField(VolumeMapperModel.DIRECTORY);\n directory.setTooltip(\"The storage directory for the SEG-Y volume file\");\n\n LabelField fileName = general.addLabelField(VolumeMapperModel.FILE_NAME);\n fileName.setTooltip(\"The SEG-Y volume file name\");\n //fileName.setRequired(true);\n\n LabelField fileExtn = general.addLabelField(VolumeMapperModel.FILE_EXTN);\n fileExtn.setTooltip(\"The SEG-Y volume file extension\");\n\n general.addCommentField(\"The SEG-Y format contains no information as to \"\n + \"what type of volume is represented (PostStack3d, PreStack3d, etc), so this must \"\n + \"be specified upon loading. \");\n\n IndexType[] volumeTypes = { IndexType.POSTSTACK_3D };\n ComboField volumeType = general.addComboField(VolumeMapperModel.VOLUME_TYPE, volumeTypes);\n volumeType.setTooltip(\"The type of SEG-Y volume.\");\n\n LabelField storageOrder = general.addLabelField(VolumeMapperModel.STORAGE_ORDER);\n storageOrder.setTooltip(\"The storage order of the SEG-Y volume\");\n\n general.addCommentField(\"Due to the inherent restrictions of the format, which limits the maximum sample rate, \"\n + \"the sample rate field has been made editable to allow for arbitrary values.\");\n\n TextField sampleRate = general.addTextField(VolumeMapperModel.SAMPLE_RATE);\n sampleRate.setTooltip(\"The sample rate of the SEG-Y volume.\");\n\n general.addCommentField(\"Unit information for z, x/y, and the data is also editable, as the SEG-Y format is \"\n + \"often not properly defined when files are written.\");\n\n Unit[] zUnits = { Unit.MILLISECONDS, Unit.US_SURVEY_FOOT, Unit.FOOT, Unit.METER };\n ComboField zUnit = general.addComboField(VolumeMapperModel.UNIT_OF_Z, zUnits);\n zUnit.setTooltip(\"The unit of measurement for z values in SEG-Y volume file\");\n\n Unit[] xyUnits = { Unit.METER, Unit.FOOT, Unit.US_SURVEY_FOOT };\n ComboField xyUnit = general.addComboField(VolumeMapperModel.UNIT_OF_XY, xyUnits);\n xyUnit.setTooltip(\"The unit of measurement for x,y values in SEG-Y volume file\");\n\n Unit[] someUnits = Unit.getCommonUnitsByDomain(new Domain[] { Domain.VELOCITY, Domain.DIMENSIONLESS,\n Domain.VELOCITY_GRADIENT, Domain.DISTANCE, Domain.TIME });\n Unit[] allUnits = Unit.getUnitsByDomain(null);\n EnhancedComboField dataUnit = general.addEnhancedComboField(VolumeMapperModel.DATA_UNIT, someUnits, allUnits);\n dataUnit.setTooltip(\"The unit of measurement for data values values in SEG-Y volume file\");\n\n LabelField sampleFormat = general.addLabelField(VolumeMapperModel.SAMPLE_FORMAT);\n sampleFormat.setTooltip(\"The sample format of the SEG-Y volume file\");\n\n FormSection traceHeaders = form.addSection(\"SEG-Y Volume Trace Headers\");\n\n traceHeaders\n .addCommentField(\"An option has been supplied below to allow for previewing the EBCDIC, binary and trace headers, so that these \"\n + \"byte locations can be determined, if not already known.\");\n\n Button button = new Button(traceHeaders.getComposite(), SWT.PUSH);\n button.setText(\"Preview...\");\n button.setLayoutData(TableWrapLayoutHelper.createLayoutData(false, false, SWT.FILL, SWT.FILL, 4, 1));\n button.addListener(SWT.Selection, new Listener() {\n\n @Override\n public void handleEvent(Event event) {\n Shell shell = Display.getDefault().getActiveShell();\n SegyPreviewDialog dialog = new SegyPreviewDialog(shell);\n dialog.create();\n dialog.getShell().setSize(500, 500);\n dialog.setBlockOnOpen(true);\n VolumeMapperModel model = (VolumeMapperModel) getModel();\n dialog.getShell().setText(\"SEG-Y Preview: \" + model.getFileName() + model.getFileExtension());\n dialog.setFile(model);\n dialog.open();\n }\n\n });\n\n traceHeaders\n .addCommentField(\"The SEG-Y format does not provide definite trace header locations for storing the inline and crossline numbers. \"\n + \"These locations must be specified upon loading.\\nFor SEG-Y rev1, the inline,xline coordinates are stored \"\n + \"at following bytes # locations:\\nInline = 189\\nX-line = 193\");\n\n TextField inlineByteLoc = traceHeaders.addTextField(VolumeMapperModel.INLINE_BYTE_LOC);\n inlineByteLoc.setTooltip(\"The byte location of the inline # in the SEG-Y trace headers.\");\n\n TextField xlineByteLoc = traceHeaders.addTextField(VolumeMapperModel.XLINE_BYTE_LOC);\n xlineByteLoc.setTooltip(\"The byte location of the xline # in the SEG-Y trace headers.\");\n\n traceHeaders.addCommentField(\"For SEG-Y rev1, the x,y coordinates are stored \"\n + \" at the following byte # locations:\\nX-Coordinate = 181\\nY-Coordinate = 185\");\n\n TextField xcoordByteLoc = traceHeaders.addTextField(VolumeMapperModel.X_COORD_BYTE_LOC);\n xcoordByteLoc.setTooltip(\"The byte location of the x-coordinate in the SEG-Y trace headers.\");\n\n TextField ycoordByteLoc = traceHeaders.addTextField(VolumeMapperModel.Y_COORD_BYTE_LOC);\n ycoordByteLoc.setTooltip(\"The byte location of the y-coordinate in the SEG-Y trace headers.\");\n\n traceHeaders\n .addCommentField(\"If the volume being loaded is prestack, then the field for specifying the offset is enabled. \"\n + \"This is defined in the SEG-Y header as being at byte 37, but has been made editable to allow for flexibility. \");\n\n TextField offsetByteLoc = traceHeaders.addTextField(VolumeMapperModel.OFFSET_BYTE_LOC);\n offsetByteLoc.setTooltip(\"The byte location of the offset # in the SEG-Y trace headers.\");\n\n FormSection geometry3d = form.addSection(\"SEG-Y Volume 3D Geometry\");\n\n String comment = \"The geometry of a 3D SEG-Y volume can be automatically determined by scanning \";\n comment += \"the x/y coordinates of the trace headers. This approach requires that the 4 corner traces \";\n comment += \"exist in the file. If this is not the case, then the auto-calculate option should be turned off \";\n comment += \"and the corner coordinates can then be entered manually.\";\n geometry3d.addCommentField(comment);\n\n CheckboxField autoGeometry = geometry3d.addCheckboxField(VolumeMapperModel.AUTO_CALCULATE_GEOMETRY);\n autoGeometry.setTooltip(\"Calculates the geometry from the x,y coordinates of the 4 corner traces.\");\n\n TextField inlineStart = geometry3d.addTextField(VolumeMapperModel.INLINE_START);\n inlineStart.setTooltip(\"The starting inline number\");\n\n TextField inlineEnd = geometry3d.addTextField(VolumeMapperModel.INLINE_END);\n inlineEnd.setTooltip(\"The ending inline number\");\n\n TextField inlineDelta = geometry3d.addTextField(VolumeMapperModel.INLINE_DELTA);\n inlineDelta.setTooltip(\"The increment of the inline numbers\");\n\n TextField xlineStart = geometry3d.addTextField(VolumeMapperModel.XLINE_START);\n xlineStart.setTooltip(\"The starting xline number\");\n\n TextField xlineEnd = geometry3d.addTextField(VolumeMapperModel.XLINE_END);\n xlineEnd.setTooltip(\"The ending xline number\");\n\n TextField xlineDelta = geometry3d.addTextField(VolumeMapperModel.XLINE_DELTA);\n xlineDelta.setTooltip(\"The increment of the xline numbers\");\n\n TextField x0 = geometry3d.addTextField(Volume3dMapperModel.X0);\n x0.setTooltip(\"The x-coordinate @ inline start, xline start\");\n\n TextField y0 = geometry3d.addTextField(Volume3dMapperModel.Y0);\n y0.setTooltip(\"The y-coordinate @ inline start, xline start\");\n\n TextField x1 = geometry3d.addTextField(Volume3dMapperModel.X1);\n x1.setTooltip(\"The x-coordinate @ inline end, xline start\");\n\n TextField y1 = geometry3d.addTextField(Volume3dMapperModel.Y1);\n y1.setTooltip(\"The y-coordinate @ inline end, xline start\");\n\n TextField x2 = geometry3d.addTextField(Volume3dMapperModel.X2);\n x2.setTooltip(\"The x-coordinate @ inline start, xline end\");\n\n TextField y2 = geometry3d.addTextField(Volume3dMapperModel.Y2);\n y2.setTooltip(\"The y-coordinate @ inline start, xline end\");\n\n TextField x3 = geometry3d.addTextField(Volume3dMapperModel.X3);\n x3.setTooltip(\"The x-coordinate @ inline end, xline end\");\n\n TextField y3 = geometry3d.addTextField(Volume3dMapperModel.Y3);\n y3.setTooltip(\"The y-coordinate @ inline end, xline end\");\n }", "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n years = adminService.getYears();\n// List<Aktivnost> activities = adminService.getActivities(1, 2015);\n }", "public interface UnitTestPropertiesEditionPart {\n\n\t/**\n\t * @return the locs\n\t * \n\t */\n\tpublic String getLocs();\n\n\t/**\n\t * Defines a new locs\n\t * @param newValue the new locs to set\n\t * \n\t */\n\tpublic void setLocs(String newValue);\n\n\n\t/**\n\t * @return the comments\n\t * \n\t */\n\tpublic String getComments();\n\n\t/**\n\t * Defines a new comments\n\t * @param newValue the new comments to set\n\t * \n\t */\n\tpublic void setComments(String newValue);\n\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the weight\n\t * \n\t */\n\tpublic String getWeight();\n\n\t/**\n\t * Defines a new weight\n\t * @param newValue the new weight to set\n\t * \n\t */\n\tpublic void setWeight(String newValue);\n\n\n\t/**\n\t * @return the name\n\t * \n\t */\n\tpublic String getName();\n\n\t/**\n\t * Defines a new name\n\t * @param newValue the new name to set\n\t * \n\t */\n\tpublic void setName(String newValue);\n\n\n\t/**\n\t * @return the maxWeight\n\t * \n\t */\n\tpublic String getMaxWeight();\n\n\t/**\n\t * Defines a new maxWeight\n\t * @param newValue the new maxWeight to set\n\t * \n\t */\n\tpublic void setMaxWeight(String newValue);\n\n\n\n\n\t/**\n\t * Init the migRelations\n\t * @param settings settings for the migRelations ReferencesTable \n\t */\n\tpublic void initMigRelations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the migRelations\n\t * @param newValue the migRelations to update\n\t * \n\t */\n\tpublic void updateMigRelations();\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the migRelations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMigRelations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the migRelations table\n\t * \n\t */\n\tpublic boolean isContainedInMigRelationsTable(EObject element);\n\n\n\t/**\n\t * @return the parentLayer\n\t * \n\t */\n\tpublic EObject getParentLayer();\n\n\t/**\n\t * Init the parentLayer\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentLayer(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentLayer\n\t * @param newValue the new parentLayer to set\n\t * \n\t */\n\tpublic void setParentLayer(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentLayerButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentLayer(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentLayer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentLayer(ViewerFilter filter);\n\n\n\t/**\n\t * @return the parentModule\n\t * \n\t */\n\tpublic EObject getParentModule();\n\n\t/**\n\t * Init the parentModule\n\t * @param settings the combo setting\n\t */\n\tpublic void initParentModule(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new parentModule\n\t * @param newValue the new parentModule to set\n\t * \n\t */\n\tpublic void setParentModule(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setParentModuleButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToParentModule(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the parentModule edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToParentModule(ViewerFilter filter);\n\n\n\t/**\n\t * @return the originalFilePath\n\t * \n\t */\n\tpublic String getOriginalFilePath();\n\n\t/**\n\t * Defines a new originalFilePath\n\t * @param newValue the new originalFilePath to set\n\t * \n\t */\n\tpublic void setOriginalFilePath(String newValue);\n\n\n\t/**\n\t * @return the newFilePath\n\t * \n\t */\n\tpublic String getNewFilePath();\n\n\t/**\n\t * Defines a new newFilePath\n\t * @param newValue the new newFilePath to set\n\t * \n\t */\n\tpublic void setNewFilePath(String newValue);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the attributes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAttributes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the attributes\n\t * @param newValue the attributes to update\n\t * \n\t */\n\tpublic void updateAttributes();\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the attributes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAttributes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the attributes table\n\t * \n\t */\n\tpublic boolean isContainedInAttributesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the methods\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMethods(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the methods\n\t * @param newValue the methods to update\n\t * \n\t */\n\tpublic void updateMethods();\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the methods edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMethods(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the methods table\n\t * \n\t */\n\tpublic boolean isContainedInMethodsTable(EObject element);\n\n\n\t/**\n\t * @return the inhertance\n\t * \n\t */\n\tpublic Enumerator getInhertance();\n\n\t/**\n\t * Init the inhertance\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initInhertance(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new inhertance\n\t * @param newValue the new inhertance to set\n\t * \n\t */\n\tpublic void setInhertance(Enumerator newValue);\n\n\n\n\n\t/**\n\t * Init the implements\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initImplements_(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the implements\n\t * @param newValue the implements to update\n\t * \n\t */\n\tpublic void updateImplements_();\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the implements edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToImplements_(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the implements table\n\t * \n\t */\n\tpublic boolean isContainedInImplements_Table(EObject element);\n\n\n\t/**\n\t * @return the originalFileName\n\t * \n\t */\n\tpublic String getOriginalFileName();\n\n\t/**\n\t * Defines a new originalFileName\n\t * @param newValue the new originalFileName to set\n\t * \n\t */\n\tpublic void setOriginalFileName(String newValue);\n\n\n\t/**\n\t * @return the type\n\t * \n\t */\n\tpublic String getType();\n\n\t/**\n\t * Defines a new type\n\t * @param newValue the new type to set\n\t * \n\t */\n\tpublic void setType(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}", "DescribeProductViewResult describeProductView(DescribeProductViewRequest describeProductViewRequest);", "@Override\n protected void updateProperties() {\n }", "List<IViewEntity> getEntities();", "@RequestMapping\n\tprotected String defaultView(RenderRequest renderRequest) {\n\t\tString tipoReplicador;\n\t\ttipoReplicador = renderRequest.getPreferences().getValue(\"tipoReplicador\", \"\");\n\n\t\trenderRequest.setAttribute(\"tipoReplicador\", tipoReplicador);\n\t\t// JSonUtil.LogAuditoria(renderRequest, indicadorPortlet, indicadorController);\n\n\t\treturn \"edit\";\n\t}", "IViewParserConfiguration getViewParserConfiguration();", "public CoPView(CoP model) {\r\n super(ShoeView.shoeToViewX(model.xProperty().getValue(), model.getSide()), ShoeView.shoeToViewY(model.yProperty().getValue(), model.getSide()), 4, Color.color(0, 0, 1));\r\n this.model = model;\r\n initialize();\r\n }", "public abstract void setProperties(Properties uprop);", "protected void setEditUrls(EditingPolicyHelper policyHelper) {\n if (policyHelper != null) {\n ObjectPropertyStatement ops = new ObjectPropertyStatementImpl(subjectUri, propertyUri, objectUri);\n \n // Do delete url first, since used in building edit url\n setDeleteUrl(policyHelper, ops);\n setEditUrl(policyHelper, ops);\n } \n }", "public ModelBean provideModel();", "EProperties getProperties();", "private List<LdapSettingModel> getLdapSettingForView() {\n List<LdapSettingModel> settingModelList = new ArrayList<>();\n List<LdapSetting> ldapSettings =\n centralConfigService.getMutableDescriptor().getSecurity().getLdapSettings();\n ldapSettings.forEach(ldapSetting -> settingModelList.add(new LdapSettingModel(ldapSetting, true)));\n return settingModelList;\n }", "public ObjectProperty<Color> colorProperty() { return color; }", "public ListProperty<Author> titlesProperty(){return authors;}", "@RequestMapping(\"/admin/viewClientUserSites\")\r\n\tpublic String viewClientUserSite(Model model){\n\t\tmodel.addAttribute(\"formObject\",new ClientUserSite());\r\n\t\tmakeUIData(entityManager,model,\"ClientUserSite\");\r\n\t\treturn DefaultService.ADMIN+\"viewClientUserSites\";\r\n\t}" ]
[ "0.5791592", "0.5740267", "0.56415874", "0.56182647", "0.5602379", "0.5456233", "0.54006636", "0.53727424", "0.5341283", "0.53194106", "0.5314018", "0.526571", "0.52423716", "0.5219974", "0.5204539", "0.5183594", "0.5168099", "0.5145629", "0.5140725", "0.51276785", "0.5125227", "0.5110965", "0.51026964", "0.5071645", "0.50691897", "0.5037572", "0.50169736", "0.5003609", "0.49498394", "0.49472728", "0.49074304", "0.49044666", "0.49019343", "0.48922414", "0.4892099", "0.4882577", "0.48764324", "0.48556298", "0.48519397", "0.48514605", "0.48436427", "0.48399952", "0.48381177", "0.48352545", "0.4832156", "0.48267138", "0.48011148", "0.4787009", "0.47810045", "0.47729725", "0.4771452", "0.47689304", "0.4766048", "0.4763261", "0.47603154", "0.47472343", "0.47468978", "0.4728546", "0.47255918", "0.472481", "0.47176874", "0.47117388", "0.47098666", "0.47056606", "0.4697909", "0.46962526", "0.46891648", "0.46857372", "0.46820915", "0.4676843", "0.46725523", "0.467165", "0.46687996", "0.46638748", "0.46593842", "0.46447816", "0.46395707", "0.4637944", "0.4634578", "0.46318054", "0.46311283", "0.46302903", "0.46170738", "0.4614447", "0.4607501", "0.46072954", "0.4601016", "0.4597933", "0.459294", "0.45915857", "0.45899272", "0.4584817", "0.45799664", "0.4578007", "0.45758078", "0.4575476", "0.45721588", "0.4569615", "0.4567582", "0.4560677" ]
0.59584624
0
Adds a new properties view configuration. The id must be unique. The configuration must be an string with the namespace of the entity to be loaded at a minimum.
void addPropsView(String id, String className);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n * Sets the configuration for the properties view. Each value of the map\n * can be an string (full name of an entity) or a map with options to be\n * passed to the builder.<br/>\n * See <b>addPropsView</b> method for details.\n * @param configuration\n */\n void setPropsViews(Map<String, String> propertiesView);\n\n /**\n * Gets the configuration for the properties view\n * @return the map with the configuration\n */\n Map<String, String> getPropsViews();\n}", "@CanIgnoreReturnValue\n @NonNull\n public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) {\n Preconditions.checkNotNull(propertyConfig);\n resetIfBuilt();\n String name = propertyConfig.getName();\n if (!mPropertyNames.add(name)) {\n throw new IllegalSchemaException(\"Property defined more than once: \" + name);\n }\n mPropertyBundles.add(propertyConfig.mBundle);\n return this;\n }", "void setPropsViews(Map<String, String> propertiesView);", "public void setConfiguration(Properties props);", "private void showConfiguration(ConfigurationTemplateDTO configurationTemplate, String componentId) {\n\t\tOverrideConfigurationWindow configurationDetailPanel = PmsFactory.getInstance()\n\t\t\t.getOverrideConfigurationWindow();\n\t\tconfigurationDetailPanel.init(configurationTemplate, portalNameDto.getId(), componentId);\n\t\tconfigurationDetailPanel.show();\n\t}", "@Override\n public void storeProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n }\n final EditableDocument document = Schematic.newDocument();\n for (final Property property : properties.values()) {\n if (property == null) {\n continue;\n }\n translator.setProperty(document, property, null, null);\n }\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "void configure(Properties properties);", "public Configuration addPropertiesEntry(String key, String value) {\n if (null == this.properties) {\n this.properties = new java.util.HashMap<String,String>();\n }\n if (this.properties.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.properties.put(key, value);\n return this;\n }", "public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }", "private void initializePhaseConfigView() {\n resetViews();\n phaseConfigView.initialize(phasesUI, skin);\n }", "public void addProperty(String key, String value);", "Builder addProperty(String name, String value);", "@Override\n public void updateProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n final EditableDocument document;\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n document = Schematic.newDocument();\n } else {\n try (final FileInputStream sidecarStream = new FileInputStream(sidecarFile)) {\n final Document existing = Json.read(sidecarStream, false);\n document = Schematic.newDocument(existing);\n }\n }\n properties.forEach((key, property) -> {\n if (property == null) {\n translator.removeProperty(document, key, null, null);\n } else {\n translator.setProperty(document, property, null, null);\n }\n });\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "public final void initializePhasePropertiesView() {\n resetViews();\n propertiesSettingsView.initialize(phasesUI, skin);\n }", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "@Override\n public void addConfigurationProperties(Properties properties) {\n }", "public void add(final ConfigProperty resolved) {\n ArgumentChecker.notNull(resolved, \"resolved\");\n _properties.put(resolved.getKey(), resolved);\n }", "@Contribute(Neo4JEmbeddedService.class)\n\t@DataGraph\n\tpublic static void contributeTestDataGraph(\n\t\t\tMappedConfiguration<String, String> configuration) {\n\t\tconfiguration.add(\"propertiesFileLocation\", \"TestDataGraph.properties\");\n\t}", "@RequestMapping(\"/edit/{id}\")\n public String editConfiguration(@PathVariable(\"id\") int id, Model model) {\n model.addAttribute(\"configuration\", this.configurationService.getConfigurationById(id));\n model.addAttribute(\"listConfigurations\", this.configurationService.listConfigurations());\n return \"configuration\";\n }", "@Contribute(Neo4JEmbeddedService.class)\n\t@UserGraph\n\tpublic static void contributeTestUserGraph(\n\t\t\tMappedConfiguration<String, String> configuration) {\n\t\tconfiguration.add(\"propertiesFileLocation\", \"TestUserGraph.properties\");\n\t}", "public PensionParametersDAO(Configuration properties) {\n this.properties = properties;\n\n }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "public void init(ViewConfigData config) {\n\r\n this.viewConfig = config;\r\n\r\n /* fill the ontologyMap\r\n String ontologyMapFile = viewConfig.getOntologyMap(); */\r\n\r\n /* try {\r\n ontologyMapStore.parse(ontologyMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"IOException while trying to parse the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } */\r\n\r\n //fill the schemaMap\r\n String schemaMapFile = viewConfig.getSchemaMap();\r\n try {\r\n schemaMapStore.parse(schemaMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the schema map file: \"\r\n + schemaMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"ConfigurationException for the schema map file: \"\r\n + schemaMapFile, e);\r\n }\r\n\r\n //build the DTree. It also fills the ontologyStore\r\n dTree = buildDTree();\r\n \r\n //build the hash table for ont map properites\r\n String ontMappropertiesFilePath = viewConfig.getOntMapProperties();\r\n ReadPropFile.loadToHashTableFromOntmapPropertiesFile(ontMappropertiesFilePath); \r\n \r\n }", "void addProperty(String index, Object value) {\n if (getProperty(index) == null) {\n properties.addProperty(index, value);\n }\n }", "@Test(enabled = false)\n public void addPropertyInCompositionScreenTest() throws Exception {\n ResourceReqDetails vfMetaData = ElementFactory.getDefaultResourceByType(ResourceTypeEnum.VF, getUser());\n ResourceUIUtils.createVF(vfMetaData, getUser());\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showPropertiesAndAttributesTab();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = CompositionPage.getProperties().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n AssertJUnit.assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> CompositionPage.getProperties()));\n }", "public void storeConfiguration(Configuration configProperties) throws ApplicationException, DepositorException,\r\n ConnectionException, InfrastructureException {\r\n throw new UnsupportedOperationException(\"everything moved\");\r\n }", "public void addElement(TLProperty element);", "public void addProperty(final IConfigDTO property) {\n \t\tAssert.paramNotNull(property, \"property\"); //$NON-NLS-1$\n \t\tif (property instanceof ComplexConfigDTO) {\n \t\t\taddComplexProperty((ComplexConfigDTO) property);\n \t\t} else if (property instanceof ConfigSetDTO) {\n \t\t\taddSetProperty((ConfigSetDTO) property);\n \t\t} else if (property instanceof ConfigListDTO) {\n \t\t\taddListProperty((ConfigListDTO) property);\n \t\t} else if (property instanceof ConfigMapDTO) {\n \t\t\taddMapProperty((ConfigMapDTO) property);\n \t\t} else if (property instanceof ConfigSimpleValueDTO) {\n \t\t\taddSimpleValueProperty((ConfigSimpleValueDTO) property);\n \t\t} else {\n \t\t\tthrow new IllegalArgumentException(\"Got unknown property: \" + property); //$NON-NLS-1$\n \t\t}\n \t}", "public void configureGallery(T aView)\n {\n aView.setPadding(8,30,8,30); aView.setBorder(Color.LIGHTGRAY, 1);\n Label label = new Label(\"RowView\"); label.setTextFill(Color.GRAY); label.setFont(Font.Arial11);\n aView.addChild(label);\n }", "public void add(final Configuration configuration) {\n\t\tadd(configuration, ConfigurationButton.NORMAL);\n\t}", "private void newConfiguration() {\n checkSave();\n config = new Configuration();\n\n // create a ConfigurationDialog\n ConfigurationDialog cdialog = new ConfigurationDialog(frame, NEW, config, getConfigurations());\n cdialog.pack();\n cdialog.setLocationRelativeTo(frame);\n cdialog.setVisible(true);\n\n // if the data is valid, create an ImageDialog to allow registration of the image\n if (cdialog.isDataValid()) {\n System.out.println(\"config name: \"+config.getName());\n if (config.useBlankImage()) {\n System.out.println(\"blank image: \"+config.getImageHeight()+\" x \"+config.getImageWidth());\n }\n else {\n System.out.println(\"image name: \"+addSlashes(config.getImageName()));\n config.setImageName(addSlashes(config.getImageName()));\n }\n\n ImageDialog idialog = new ImageDialog(frame, NEW, config);\n idialog.pack();\n idialog.setLocationRelativeTo(frame);\n idialog.setVisible(true); \n\n // if the ImageDialog data is valid, create a blank motes object and calls viewConfiguration\n if (idialog.isDataValid()) {\n System.out.println(\"minPixelX: \"+config.getMinimumPixelX());\n System.out.println(\"minPixelY: \"+config.getMinimumPixelY());\n System.out.println(\"maxPixelX: \"+config.getMaximumPixelX());\n System.out.println(\"maxPixelY: \"+config.getMaximumPixelY());\n System.out.println(\"minRealX: \"+config.getMinimumRealX());\n System.out.println(\"minRealY: \"+config.getMinimumRealY());\n System.out.println(\"maxRealX: \"+config.getMaximumRealX());\n System.out.println(\"maxRealY: \"+config.getMaximumRealY());\n config.notSaved();\n configSave.setEnabled(true);\n configClose.setEnabled(true);\n motes = new Motes();\n viewConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n else {\n config = new Configuration();\n }\n }\n }", "void configure(String name, Map<String, Object> configuration);", "protected void setProperties(XMLConfiguration config)\n {\n properties = getPropertiesFromConfig(config, root);\n }", "public void addPropertyConfigMenuItem(String name, BasicPropertyList pl) {\n _addPropertyConfigMenuItem(getViewMenu(), name, pl);\n _addPropertyConfigMenuItem(_popupMenu, name, pl);\n }", "public void setPropertyId(int propertyId) {\n\t\tthis.propertyId = propertyId;\n\t}", "public void setPropertyId(int propertyId) {\n\t\tthis.propertyId = propertyId;\n\t}", "public void configure(T aView) { }", "protected void newNode (ManagedConfig config)\n {\n // presently we must clear the filter\n _filterPanel.clearFilter();\n\n // find the parent under which we want to add the node\n ConfigTreeNode snode = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)(snode == null ?\n _tree.getModel().getRoot() : snode.getParent());\n\n // create a node with a unique name and start editing it\n String name = parent.findNameForChild(\n _msgs.get(config == null ? \"m.new_folder\" : \"m.new_config\"));\n ConfigTreeNode child = new ConfigTreeNode(name, config);\n ((DefaultTreeModel)_tree.getModel()).insertNodeInto(\n child, parent, parent.getInsertionIndex(child));\n _tree.startEditingAtPath(new TreePath(child.getPath()));\n DirtyGroupManager.setDirty(group, true);\n }", "DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );", "public AddItemViewParameters(String viewID, Long id) {\n\t\tthis.id = id;\n\t\tthis.viewID = viewID;\n\t}", "public Configuration withProperties(java.util.Map<String,String> properties) {\n setProperties(properties);\n return this;\n }", "public void configureGallery(T aView)\n {\n aView.setPadding(8,30,8,30); aView.setBorder(Color.LIGHTGRAY, 1);\n Label label = new Label(\"ColView\"); label.setTextFill(Color.GRAY); label.setFont(Font.Arial11);\n aView.addChild(label);\n }", "@Inject\n public PhasesUILeftPanel(EngineEventManager eventManager, FullEditorDodleOverlayRegistry fedoRegistry, ModifyPhaseSettingsView modifyPhaseSettingsView, NewPhaseSettingsView newPhaseSettingsView, PhaseConfigView phaseConfigView, PropertiesSettingsView propertiesSettingsView) {\n this.eventManager = eventManager;\n this.modifyPhaseSettingsView = modifyPhaseSettingsView;\n this.newPhaseSettingsView = newPhaseSettingsView;\n this.phaseConfigView = phaseConfigView;\n this.propertiesSettingsView = propertiesSettingsView;\n\n fedoRegistry.registerOverlay(this);\n }", "public ClassParametersPanel(Annotated propertiesClass) {\n initComponents();\n this.propertiesClass = propertiesClass;\n loadTableProperties(this.propertiesClass);\n\n }", "@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowHeight(true);\n }", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowHeight(true);\n }", "@Override\n public void addConfigurationProperties(Properties properties) {\n this.properties.putAll(properties);\n\n suppressDate = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));\n\n suppressAllComments = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));\n\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "private void updateViewConfig() {\n boolean newView = false;\n\n // Check if our view is right for the current mode\n int mode = getMode();\n boolean isCurrentViewShortcut = mCurrentView instanceof ShortcutView;\n Set<SliceItem> loadingActions = mCurrentView.getLoadingActions();\n if (mode == MODE_SHORTCUT && !isCurrentViewShortcut) {\n removeView(mCurrentView);\n mCurrentView = new ShortcutView(getContext());\n addView(mCurrentView, getChildLp(mCurrentView));\n newView = true;\n } else if (mode != MODE_SHORTCUT && isCurrentViewShortcut) {\n removeView(mCurrentView);\n mCurrentView = new TemplateView(getContext());\n addView(mCurrentView, getChildLp(mCurrentView));\n newView = true;\n }\n\n // If the view changes we should apply any configurations to it\n if (newView) {\n mCurrentView.setPolicy(mViewPolicy);\n applyConfigurations();\n if (mListContent != null && mListContent.isValid()) {\n mCurrentView.setSliceContent(mListContent);\n }\n mCurrentView.setLoadingActions(loadingActions);\n }\n updateActions();\n }", "public interface ProjectPropertiesView extends View<ProjectPropertiesView.ActionDelegate> {\n \n public interface ActionDelegate {\n /** Performs any actions appropriate in response to the user having pressed the Add button. */\n void onAddClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Edit button. */\n void onEditClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Delete button. */\n void onDeleteClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Save button. */\n void onSaveClicked();\n\n /** Performs any actions appropriate in response to the user having pressed the Cancel button. */\n void onCancelClicked();\n \n /** Returns selected property. */\n void selectedProperty(Property property);\n }\n \n /**\n * Sets whether Edit button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setEditButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Delete button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setDeleteButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Save button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setSaveButtonEnabled(boolean isEnabled);\n\n /**\n * Sets properties.\n *\n * @param projects\n */\n void setProperties(Array<Property> properties);\n \n /** Close dialog. */\n void close();\n\n /** Show dialog. */\n void showDialog();\n}", "private void createAndAddViews() {\n \t\t// Create the layout parameters for each field\n \t\tfinal LinearLayout.LayoutParams labelParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.3f);\n \t\tlabelParams.gravity = Gravity.RIGHT;\n \t\tlabelParams.setMargins(0, 25, 0, 0);\n \t\tfinal LinearLayout.LayoutParams valueParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.7f);\n \t\tvalueParams.gravity = Gravity.LEFT;\n \t\tvalueParams.setMargins(0, 25, 0, 0);\n \n \t\t// Add a layout and text views for each property\n \t\tfor (final StockProperty property : m_propertyList) {\n \t\t\tLog.d(TAG, \"Adding row for property: \" + property.getPropertyName());\n \n \t\t\t// Create a horizontal layout for the label and value\n \t\t\tfinal LinearLayout layout = new LinearLayout(this);\n \t\t\tlayout.setLayoutParams(new LinearLayout.LayoutParams(\n \t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n \n \t\t\t// Create a TextView for the label\n \t\t\tfinal TextView label = new TextView(this);\n \t\t\tlabel.setLayoutParams(labelParams);\n \t\t\tlabel.setText(property.getLabelText());\n \t\t\tlabel.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tlayout.addView(label);\n \n \t\t\t// Configure and add the value TextView (created when the property\n \t\t\t// was constructed)\n \t\t\tfinal TextView value = property.getView();\n \t\t\tvalue.setLayoutParams(valueParams);\n \t\t\tvalue.setHint(\"None\");\n \t\t\tvalue.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tvalue.setTypeface(null, Typeface.BOLD);\n \t\t\tlayout.addView(value);\n \n \t\t\t// Add the row to the main layout\n \t\t\tm_resultsLayout.addView(layout);\n \t\t}\n \t}", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);", "public void injectConfiguration(ComponentConfiguration conf);", "@Test\n @Transactional\n void createPropertiesWithExistingId() throws Exception {\n properties.setId(1L);\n PropertiesDTO propertiesDTO = propertiesMapper.toDto(properties);\n\n int databaseSizeBeforeCreate = propertiesRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restPropertiesMockMvc\n .perform(\n post(ENTITY_API_URL)\n .with(csrf())\n .contentType(MediaType.APPLICATION_JSON)\n .content(TestUtil.convertObjectToJsonBytes(propertiesDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the Properties in the database\n List<Properties> propertiesList = propertiesRepository.findAll();\n assertThat(propertiesList).hasSize(databaseSizeBeforeCreate);\n\n // Validate the Properties in Elasticsearch\n verify(mockPropertiesSearchRepository, times(0)).save(properties);\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setRowHeight(15); aView.setPrefWidth(120);\n \n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"TreeView\");\n aView.setResolver(new TR());\n aView.setCellConfigure(c -> configureCell(c));\n aView.expandAll();\n }", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowWidth(true);\n }", "public abstract void Configure( DataMap<String, Serializable> configuration);", "public void createTaskProperties(View view) {\n \t\n \tIntent intent = new Intent(this, TaskProperties.class);\n \t\n \t//dont have any task properties at this point\n \tif(!propertiesGrabbed){\n \n \t\tintent.putExtra(EDIT, \"no\");\n \t\tstartActivityForResult(intent, 3);\n \t\t \t\t\n \t//we have properties so need to populate the next page\t\n \t}else{\n \t\t\n \t\t//creating the values to pass\n\t\t\t//0 -> where to send the notification\n\t \t//1 -> visibility\n\t \t//2 -> description\n\t \t//3 -> type\n \t\tString[] send = new String[TaskProperties.propertyCount];\n \t\tsend[0] = taskResponseString;\n \t\tsend[1] = taskVisibility;\n \t\tsend[3] = taskResponseType;\n \t\tsend [2] = taskDescription; \n \t\t\n \t\tintent.putExtra(EDIT, \"yes\");\n \t\tintent.putExtra(PROPERTIES, send);\n \t\tstartActivityForResult(intent, 3); \t\t\t\n \t} \t\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic ResponseEntity<JsonResponse<PropertyModel>> modelForProperty(Integer id) {\n\t\tList<PropertyModel> form = new ArrayList<PropertyModel>();\n\n\t\ttry {\n\n\t\t\tString value = \"SET @p_propertyType=\" + id + \";\";\n\n\t\t\tList<Object[]> x = em.createNamedStoredProcedureQuery(\"userRoutines\")\n\t\t\t\t\t.setParameter(\"actionType\", \"viewPropertyInModel\").setParameter(\"actionValue\", value)\n\t\t\t\t\t.getResultList();\n\t\t\tif (!x.isEmpty()) {\n\t\t\t\tfor (Object[] m : x) {\n\t\t\t\t\tPropertyModel user = new PropertyModel(m[0], m[1], m[2], m[3], m[4], m[5], m[6]);\n\t\t\t\t\tform.add(user);\n\t\t\t\t}\n\t\t\t}\n\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\t\tJsonResponse<PropertyModel> resp = new JsonResponse<PropertyModel>();\n\t\tresp.setBody(form.get(0));\n\n\t\tResponseEntity<JsonResponse<PropertyModel>> response = new ResponseEntity<JsonResponse<PropertyModel>>(resp,\n\t\t\t\tHttpStatus.CREATED);\n\t\tSystem.out.println(\"response edit : \" + response);\n\t\treturn response;\n\t}", "private void initializePropertySubstitution() {\n log.debug(\"Initializing property substitution\");\r\n String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName();\r\n DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class);\r\n\r\n // initialize discovery; may start a local discovery server and/or query existing servers\r\n Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration);\r\n\r\n // register the properties learned from discovery (if any) under the \"discovery\" namespace\r\n this.addSubstitutionProperties(\"discovery\", discoveryProperties);\r\n }", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "public void displayConfigurationPanel(){\n\t\tthis.panelConfiguration = new PanelConfiguration(this.mainFrame);\n\t\tthis.add(this.panelConfiguration,BorderLayout.CENTER);\n\t}", "public void addProperty(String name, PropertyObject data) {\n this.properties.put(name, data);\n }", "DefinedProperty graphAddProperty( int propertyKey, Object value );", "ObjectBuilder<T> addProperty(final String name, final String value) {\n properties.put(name, value);\n return this;\n }", "void addOrReplaceProperty(Property prop, Collection<Property> properties);", "public void set(String propertyId, Object value)\n {\n properties.put(propertyId, value);\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setRowHeight(17); aView.setPrefWidth(120);\n \n TableCol col = new TableCol();\n aView.addCol(col); col.setGrowWidth(true);\n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"TableView\", \"Item two\", \"Item three\");\n aView.setCellConfigure(c -> configureCell(c));\n }", "public void configure(Configuration config) throws ConfigurationException {\n super.configure(config);\n\n if (null == JCRSourceFactory.configuredMappings) {\n // load namespace mappings\n JCRSourceFactory.configuredMappings = new HashMap<String, String>();\n\n Configuration mappings = config.getChild(\"mappings\"); //$NON-NLS-1$\n for (Configuration mapping : mappings.getChildren(\"mapping\")) { //$NON-NLS-1$\n String namespace = mapping.getAttribute(\"namespace\"); //$NON-NLS-1$\n String prefix = mapping.getAttribute(\"prefix\"); //$NON-NLS-1$\n JCRSourceFactory.configuredMappings.put(namespace, prefix);\n }\n // load index excludes\n JCRSourceFactory.iExcludes = new ArrayList<String>();\n\n Configuration index = config.getChild(\"index\"); //$NON-NLS-1$\n Configuration excludes = index.getChild(\"excludes\"); //$NON-NLS-1$\n for (Configuration exclude : excludes.getChildren(\"exclude\")) { //$NON-NLS-1$\n JCRSourceFactory.iExcludes.add(exclude.getValue());\n }\n }\n }", "public void addElement(int index, TLProperty element);", "private static FileBasedConfigurationBuilder<PropertiesConfiguration> propertiesFileBuilder(final String config) {\n final var propertiesParams = new Parameters()//\r\n .fileBased() //\r\n .setFile(new File(config + PROPERTIES_FILE_EXTENSION)) //\r\n .setListDelimiterHandler(new DefaultListDelimiterHandler(LIST_DELIMITER));\r\n return new FileBasedConfigurationBuilder<>(DEFAULT_CONFIGURATION_FILE_TYPE).configure(propertiesParams);\r\n }", "public NodePropertiesInternalFrame(Map<String, String> _info, String _nodeName, IConfigurerPrx _config) {\n initComponents();\n this.setClosable(true);\n this.setTitle(_nodeName + \" - properties\");\n initInfo(_info);\n config = _config;\n }", "@Override\n\t\tpublic void configureRegistry(IConfigRegistry configRegistry) {\n\t\t\tconfigRegistry.unregisterConfigAttribute(EditConfigAttributes.OPEN_IN_DIALOG);\n\t\t\tconfigRegistry.registerConfigAttribute(EditConfigAttributes.OPEN_IN_DIALOG, popupEdit, DisplayMode.EDIT);\n\t\t}", "public interface ConfigurationView {\n\n void onUpdateConfiguration(Configuration configuration);\n}", "public void registerProperty(File propertiesFile, String key, String value) {\n\t\tSystem.out.println(\"enter method registerProperty(\" + \"File propertiesFile, String key, String value)\");\n\t\tPropertiesConfiguration propertiesConfiguration = null;\n\t\ttry {\n\t\t\tpropertiesConfiguration = new PropertiesConfiguration(propertiesFile);\n\t\t\tpropertiesConfiguration.setProperty(key, value);\n\t\t\tpropertiesConfiguration.save();\n\n\t\t} catch (ConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public int createConfiguration(Configuration configuration) {\n\t\treturn this.jdbcTemplate.update(\"insert into configurationCrawlers (idProject) values (?)\",\n\t\t\t\tconfiguration.getIdProject());\n\n\t}", "public ConfigProperties() {\n initComponents();\n Properties propertie = MainControl.getDBProperties();\n txtServidor.setText(propertie.getProperty(\"servidor\"));\n txtDataBase.setText(propertie.getProperty(\"dbName\"));\n txtPort.setText(propertie.getProperty(\"port\"));\n txtUser.setText(propertie.getProperty(\"user\"));\n txtPass.setText(propertie.getProperty(\"pass\"));\n this.setLocationRelativeTo(null);\n }", "public Builder addProps(\n int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {\n if (propsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePropsIsMutable();\n props_.add(index, value);\n onChanged();\n } else {\n propsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public ConfigureEvent(ReplicatorProperties props) {\n super(props);\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setMinWidth(120);\n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"ListView\", \"Item two\", \"Item three\");\n aView.setCellConfigure(c -> configureCell(c));\n }", "public void addProperty( String key, String value )\n {\n Props.Entry entry = new Props.Entry();\n entry.setKey( key );\n entry.setValue( value );\n this.props.getEntry().add( entry );\n }", "public void setConfigurationId(String configurationId) {\n\t\tthis.configurationId = configurationId;\n\t\tsetRowMapper(getInitalWorkerMapper());\n\t\tmetaData = this.exportToTextFileMetadataProvider.getMetaData(this.configurationId); \n\t\tsetSql(metaData.getSelectStatement()); \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n\t\t\n\t}", "public void configure(HashMap<String,Object> config) {\n this.name = config.getOrDefault(\"name\",\"\").toString();\n this.collections = (HashMap<String,Object>)config.getOrDefault(\"collections\",new HashMap<>());\n try {\n this.syslogConfig = (HashMap<String,Object>)config.getOrDefault(\"syslog\",\n LoggerApplication.getInstance().getSyslogConfig());\n } catch (Exception e) {e.printStackTrace();}\n this.syslog = new Syslog(this);\n }", "@Override\n public void setConfig(Map<String, String> config) {\n if (parentDir != null) throw RaptureExceptionFactory.create(\"Calling setConfig twice is currently not supported\");\n\n String prefix = config.get(FileRepoUtils.PREFIX);\n if (StringUtils.trimToNull(prefix) == null) throw RaptureExceptionFactory.create(\"prefix must be specified\");\n parentDir = FileRepoUtils.ensureDirectory(prefix + \"_idgen\");\n\n init();\n }", "public void setConfiguration(Configuration config) {\n this.config = config;\n documentNumber = config.getDocumentNumberAllocator().allocateDocumentNumber();\n }", "public Config(Properties props) {\n entries = (Properties)props.clone();\n }", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "@Override\r\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\r\n\t\tandroid.view.ViewGroup.LayoutParams layoutParams = mContentLayout.getLayoutParams();\r\n\t\tlayoutParams.height = (int) getResources().getDimension(R.dimen.folder_edit_view_height);\r\n\t\tlayoutParams.width = (int) getResources().getDimension(R.dimen.folder_edit_view_width);\r\n\t\tmContentLayout.setLayoutParams(layoutParams);\r\n\t\tif (mGridView != null) {\r\n\t\t\tmGridView.changeOrientation();\r\n\t\t\tmGridView.removeAllViews();\r\n\t\t\tif (mList == null) {\r\n\t\t\t\tinitList();\r\n\t\t\t} else {\r\n\t\t\t\tmGridView.initLayoutData(mList.size());\r\n\t\t\t\tsetAdapter();\r\n\t\t\t\tmIndicator.setTotal(mGridView.getScreenCount());\r\n\t\t\t\tmIndicator.setCurrent(0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ResourceConfiguration(String name, String namespace, Map properties) {\n this.name = name;\n this.namespace = namespace;\n \n if (properties == null) {\n this.properties = new HashMap();\n } else {\n this.properties = properties;\n }\n }", "public ViewPropertyDetails(Property property) {\n initComponents();\n this.setTitle(\"Property Details\");\n this.property = property;\n customer = property.getCustomer();\n block = property.getBlock();\n type = property.getType();\n filter = property.getFilter();\n images = property.getImages();\n services = property.getServices();\n characteristics = property.getCharacteristics();\n lblBlock.setText(block.getBlockName());\n lblCustomerName.setText(customer.getName());\n SimpleDateFormat sdfDate = new SimpleDateFormat(\"yyyy-MM-dd\");//dd/MM/yyyy\n lblDateOfArrival.setText(sdfDate.format(property.getDateOfEntry()));\n lblDateOfOwnership.setText(sdfDate.format(property.getDateOfOwnerShip()));\n lblDemand.setText(\"\" + property.getDemand());\n lblLoadShed.setText(\"\" + block.getNoOfHourOfLoadShed());\n lblNoOfRooms.setText(\"\" + property.getNoOfRooms());\n lblPropertyFor.setText(filter.getFilterName());\n lblSize.setText(\"\" + property.getSize());\n lblType.setText(type.getTypeName());\n txtAddress.setText(property.getAddress());\n txtAgreement.setText(property.getAgreement());\n String str = \"\";\n for (int i = 0; i < services.size(); i++) {\n str += services.get(i).getServiceName() + \"\\n\";\n }\n txtServices.setText(str);\n DefaultTableModel model = (DefaultTableModel) tblCharacteristics.getModel();\n PropertyCharacteristic characteristic;\n for (int i = 0; i < characteristics.size(); i++) {\n characteristic = characteristics.get(i);\n model.insertRow(tblCharacteristics.getRowCount(), new Object[]{characteristic.getCharacteristicName(), characteristic.getQuantity()});\n }\n tblCharacteristics.setModel(model);\n model = (DefaultTableModel) tblImages.getModel();\n for (int i = 0; i < images.size(); i++) {\n model.insertRow(tblImages.getRowCount(), new Object[]{images.get(i)});\n }\n tblImages.setModel(model);\n }", "public Object setProperty( Property propertyId,\n Object value ) {\n if (value == null) {\n // Removing this property ...\n return nodeProperties != null ? nodeProperties.remove(propertyId) : null;\n }\n // Otherwise, we're adding the property\n if (nodeProperties == null) nodeProperties = new TreeMap<Property, Object>();\n return nodeProperties.put(propertyId, value);\n }", "void addPropertyListener(PropertyListener listener);", "public String getPropertyId() {\n return propertyId;\n }", "public void configure(T aView)\n {\n aView.setMinSize(120,60);\n aView.addTab(\"One\", new BoxView());\n }", "public List<String> loadPLNConfiguration(Integer plnID, String name, String configUrl) throws SQLException {\n\t\tConnection dbConnection = null;\n\t\tPreparedStatement preparedStatement=null;\n\n\t\ttry {\n\n\t\t\tString insertTableSQL = \n\t\t\t\t\t\"WITH upsert AS \" +\n\t\t\t\t\t\t\t\"(UPDATE plnmonitor.pln \" +\n\t\t\t\t\t\t\t\"SET name = ? \" +\n\t\t\t\t\t\t\t\"WHERE config_url=? and id=? RETURNING *), \" +\n\n\t\t\t\t\t\"inserted AS (\"+\n\t\t\t\t\t\"INSERT INTO plnmonitor.pln \" +\n\t\t\t\t\t\"(name,config_url,id) \"+\n\t\t\t\t\t\"SELECT ?,?,? WHERE NOT EXISTS \"+\n\t\t\t\t\t\"(SELECT * FROM upsert) \"+\n\t\t\t\t\t\"RETURNING *) \"+\n\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\"FROM upsert \" +\n\t\t\t\t\t\"union all \" +\n\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\"FROM inserted\";\n\n\t\t\tdbConnection = getDBConnection();\n\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL, Statement.KEEP_CURRENT_RESULT);\n\t\t\tpreparedStatement.setString(1, name);\n\t\t\tpreparedStatement.setString(2, configUrl);\n\t\t\tpreparedStatement.setInt(3, plnID);\n\t\t\tpreparedStatement.setString(4, name);\n\t\t\tpreparedStatement.setString(5, configUrl);\n\t\t\tpreparedStatement.setInt(6, plnID);\n\n\t\t\tResultSet rs=preparedStatement.executeQuery();\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\tif (preparedStatement != null) {\n\t\t\t\tpreparedStatement.close();\n\t\t\t}\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\t\t}\t\n\n\t\tList<String> plnMembers=new ArrayList<String>();\n\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\ttry{\n\t\t\tDocumentBuilder db = factory.newDocumentBuilder();\n\n\t\t\tDocument doc = db.parse(new URL(configUrl).openStream());\n\t\t\tdoc.getDocumentElement().normalize();\n\t\t\tNodeList propertyList = doc.getElementsByTagName(\"property\");\n\t\t\tfor (int temp = 0; temp < propertyList.getLength(); temp++) {\n\t\t\t\tNode propertyNode = propertyList.item(temp);\n\t\t\t\tif (propertyNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tElement eElement = (Element) propertyNode;\n\n\t\t\t\t\tif (eElement.getAttribute(\"name\").contains(\"id.initialV3PeerList\")) {\n\t\t\t\t\t\tNodeList valuesList = eElement.getElementsByTagName(\"value\");\n\t\t\t\t\t\tfor (int i=0; i<valuesList.getLength(); i++) {\n\t\t\t\t\t\t\tLOGGER.info(\"Value : \" + valuesList.item(i).getTextContent());\n\t\t\t\t\t\t\tPattern p = Pattern.compile(IPV4_PATTERN);\n\t\t\t\t\t\t\tMatcher m = p.matcher(valuesList.item(i).getTextContent());\n\t\t\t\t\t\t\twhile (m.find()) {\n\t\t\t\t\t\t\t\tplnMembers.add(m.group()) ;\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\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tLOGGER.error(e.toString());\n\t\t}\n\t\treturn (plnMembers);\n\t}", "public synchronized static void writeConfiguration(PhotoConfiguration config) throws IOException {\r\n\t\t\r\n\t\tlog.info(\"Updating config\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tFile internalConfigFile = getInternalConfigurationFile(config.pathToApplication);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tPropertiesConfiguration configurationFile = new PropertiesConfiguration(internalConfigFile);\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PATH_TO_IMAGES_KEY , config.getPathToImages() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PHOTO_FILE_FACTORY_CLASS_NAME_KEY , config.getPhotoFactoryClass() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PHOTO_USER_FACTORY_CLASS_NAME_KEY , config.getPhotoUserFactoryClass() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.JDBC_DRIVER_KEY , config.getJDBCDriverName() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.JDBC_CONNECTION_URL_KEY , config.getJDBCConnectionUrl() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.DATABASE_LOGIN_KEY , config.getJDBCLogin() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.DATABASE_PASSWORD_KEY , config.getJDBCPassword() );\r\n\t\t\tconfigurationFile.save();\r\n\t\t\t\r\n\t\t\tFile configFile = getConfigurationFile(config);\r\n\t\t\tconfigurationFile = new PropertiesConfiguration(configFile);\r\n\t\t\tif ( !configFile.exists()) {\r\n\t\t\t\tlog.info(\"Properties file not found; creating\"); //$NON-NLS-1$\r\n\t\t\t} \r\n\t \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_THEME_KEY, config.getDefaultTheme());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_COLUMNS_KEY, config.getDefaultColumns());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_GROUP_KEY, config.getDefaultGroup()); \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.USER_TIMEOUT_KEY, config.getUserTimeout());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SUPPORTED_LOCALES_KEY, config.getSupportedLocales()); \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.IMAGE_TIMEOUT_KEY, config.getImageTimeout());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SMTP_SERVER_KEY, config.getSMTPServer());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.ADMINISTRATOR_EMAIL_NAME_KEY, config.getAdminEMailName());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.ADMINISTRATOR_EMAIL_KEY, config.getAdminEMailAdress());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SECURITY_MODE_KEY, config.isSecurityMode());\r\n\t configurationFile.save();\r\n\t \r\n\t\t} catch (ConfigurationException e) {\r\n\t\t\tthrow new IOException(PhotoConstants.CONFIG_IO_ERROR);\r\n\t\t}\r\n\t}" ]
[ "0.51928747", "0.49841514", "0.4916959", "0.47923252", "0.47124064", "0.47058055", "0.46640852", "0.46235383", "0.46090627", "0.45825917", "0.45586652", "0.45409867", "0.45306897", "0.45285168", "0.45279902", "0.45264205", "0.45129666", "0.4505841", "0.44968075", "0.4490637", "0.44674164", "0.4446376", "0.44336385", "0.44118083", "0.4404237", "0.43646884", "0.43534705", "0.43502378", "0.43382213", "0.43142083", "0.4290593", "0.4269235", "0.42683482", "0.42521587", "0.4247096", "0.4247096", "0.42447546", "0.4230105", "0.42275155", "0.42125753", "0.4209917", "0.42024064", "0.41934496", "0.41796324", "0.4178303", "0.4177875", "0.4177875", "0.4171022", "0.4159715", "0.41567224", "0.4154445", "0.41491705", "0.41472352", "0.41445202", "0.41375324", "0.4137148", "0.41364127", "0.41261", "0.41258562", "0.41220924", "0.4111116", "0.41072875", "0.4102436", "0.4091911", "0.40903822", "0.40866873", "0.4082971", "0.40801296", "0.40784582", "0.40780017", "0.40758622", "0.40509504", "0.40463373", "0.40430218", "0.4038941", "0.40372172", "0.40308478", "0.40268096", "0.40253282", "0.40205562", "0.4013889", "0.401336", "0.40128118", "0.4011711", "0.4008269", "0.40036374", "0.4003596", "0.39963678", "0.3995268", "0.39839303", "0.39764655", "0.39764413", "0.39763546", "0.39762333", "0.3970836", "0.39680946", "0.39610535", "0.39519605", "0.3949752", "0.3946908" ]
0.5665907
0
Sets the configuration for the properties view. Each value of the map can be an string (full name of an entity) or a map with options to be passed to the builder. See addPropsView method for details.
void setPropsViews(Map<String, String> propertiesView);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperties(Map properties);", "public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }", "public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }", "public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties(Map<String, Object> properties) {\n mProperties = properties;\n }", "public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n * Sets the configuration for the properties view. Each value of the map\n * can be an string (full name of an entity) or a map with options to be\n * passed to the builder.<br/>\n * See <b>addPropsView</b> method for details.\n * @param configuration\n */\n void setPropsViews(Map<String, String> propertiesView);\n\n /**\n * Gets the configuration for the properties view\n * @return the map with the configuration\n */\n Map<String, String> getPropsViews();\n}", "public void setProperties(Map<String, Object> properties) {\n\t\tthis.properties = properties;\n\t}", "public void setConfiguration(Properties props);", "public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}", "public Configuration withProperties(java.util.Map<String,String> properties) {\n setProperties(properties);\n return this;\n }", "void configure(Properties properties);", "public FormPropertiesImpl(final HeterogMap<String> properties) {\n\t\tif (properties == null) throw new IllegalArgumentException(\"formProperties cannot be null, only empty\");\n\t\tthis.properties = HeterogCollections.unmodifiableMap(properties);\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public void setProperties(java.util.Map<String, Double> properties) {\n this.properties = new HashMap<String, Double>(properties);\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public void setProperties(Properties properties);", "public void setVelocityPropertiesMap(Map velocityPropertiesMap)\n\t{\n\t\tif (velocityPropertiesMap != null)\n\t\t{\n\t\t\tthis.velocityProperties.putAll(velocityPropertiesMap);\n\t\t}\n\t}", "private ConfiguredDataSourceProperties createDataSourceProperties(Map configMap) {\n ConfiguredDataSourceProperties configs = new ConfiguredDataSourceProperties();\n for (final Object o : configMap.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n String name = (String) entry.getKey();\n final Object obj = entry.getValue();\n if (name.equals(\"connection-url\")) {\n configs.setURL((String) obj);\n } else if (name.equals(\"user-name\")) {\n configs.setUser((String) obj);\n } else if (name.equals(\"password\")) {\n configs.setPassword(PasswordUtil.decrypt((String) obj));\n } else if (name.equals(\"jdbc-driver-class\")) {\n configs.setJDBCDriver((String) obj);\n } else if (name.equals(\"init-pool-size\")) {\n configs.setInitialPoolSize(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_INIT_LIMIT) : obj)));\n } else if (name.equals(\"max-pool-size\")) {\n configs.setMaxPoolSize(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_MAX_LIMIT) : obj)));\n } else if (name.equals(\"idle-timeout-seconds\")) {\n configs.setConnectionExpirationTime(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_EXPIRATION_TIME) : obj)));\n } else if (name.equals(\"blocking-timeout-seconds\")) {\n configs.setConnectionTimeOut(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_ACTIVE_TIME_OUT) : obj)));\n } else if (name.equals(\"login-timeout-seconds\")) {\n configs.setLoginTimeOut(Integer.parseInt((String) (obj == null\n ? String.valueOf(DataSourceResources.CONNECTION_POOL_DEFAULT_CLIENT_TIME_OUT) : obj)));\n } else if (name.equals(\"conn-pooled-datasource-class\")) {\n configs.setConnectionPoolDSClass((String) obj);\n } else if (name.equals(\"xa-datasource-class\")) {\n configs.setXADSClass((String) obj);\n } else if (name.equals(\"managed-conn-factory-class\")) {\n configs.setMCFClass((String) obj);\n } else if (name.equals(\"transaction-type\")) {\n configs.setTransactionType((String) obj);\n }\n }\n\n /*\n * Test hook for replacing URL\n */\n if (TEST_CONNECTION_URL != null) {\n configs.setURL(TEST_CONNECTION_URL);\n }\n return configs;\n }", "PropertiesTask setProperties( Properties properties );", "@ReactMethod\n public void peopleSet(ReadableMap properties) {\n mixpanel.getPeople().set(this.readableMapToJson(properties));\n }", "public final void initializePhasePropertiesView() {\n resetViews();\n propertiesSettingsView.initialize(phasesUI, skin);\n }", "public void setProperties(final ConfigProperties properties) {\n this.properties = properties;\n }", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "public void configure(PropertiesGetter properties) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public void setProperties(Properties properties)\n {\n this.properties = properties;\n }", "public void setProperties(Properties properties) {\n this.properties=properties;\n }", "void setParameters(Map<String, Object> propertyValues);", "public EndpointPropertiesBaseInner withProperties(Map<String, String> properties) {\n this.properties = properties;\n return this;\n }", "public void setTable(Map<String, VoogaData> properties) {\n\t\tthis.properties = properties;\n\t\tdisplayTable();\n\t}", "@Override\n\tpublic void setProperties(Properties properties) {\n\t\tsuper.setProperties(properties);\n\t}", "public JbootVoModel set(Map<String, Object> map) {\n super.putAll(map);\n return this;\n }", "public static void bindProperties(Binder binder, final Map<String, String> propertiesMap) {\n bindProperties(binder, new MapPropertiesHandler(propertiesMap));\n }", "public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "void updateProperties(@NotNull List<NlComponent> components,\n @NotNull Map<String, NlProperty> properties,\n @NotNull PropMgr propertiesManager);", "public void setProperties() {\r\n\t\tconfigProps.setProperty(\"Root\", textRoot.getText());\r\n\t\tconfigProps.setProperty(\"Map\", textMap.getText());\r\n\t\tconfigProps.setProperty(\"Out\", textOut.getText());\r\n\t\tconfigProps.setProperty(\"ReportTypeName\",textrtn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedByPersonName\",textrbpn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedDate\",textrd.getText());\r\n\t\tdt.Map = textMap.getText();\r\n\t\tdt.Root = textRoot.getText();\r\n\t\tdt.Out = textOut.getText();\r\n\t\tdt.setReportHeaderData(textrtn.getText(), textrbpn.getText(), textrd.getText());\r\n\t}", "@Override\n public void initialize(Map<String, String> propertyValues) {\n // Set the configurable properties\n properties.setValues(propertyValues);\n }", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "public void createTaskProperties(View view) {\n \t\n \tIntent intent = new Intent(this, TaskProperties.class);\n \t\n \t//dont have any task properties at this point\n \tif(!propertiesGrabbed){\n \n \t\tintent.putExtra(EDIT, \"no\");\n \t\tstartActivityForResult(intent, 3);\n \t\t \t\t\n \t//we have properties so need to populate the next page\t\n \t}else{\n \t\t\n \t\t//creating the values to pass\n\t\t\t//0 -> where to send the notification\n\t \t//1 -> visibility\n\t \t//2 -> description\n\t \t//3 -> type\n \t\tString[] send = new String[TaskProperties.propertyCount];\n \t\tsend[0] = taskResponseString;\n \t\tsend[1] = taskVisibility;\n \t\tsend[3] = taskResponseType;\n \t\tsend [2] = taskDescription; \n \t\t\n \t\tintent.putExtra(EDIT, \"yes\");\n \t\tintent.putExtra(PROPERTIES, send);\n \t\tstartActivityForResult(intent, 3); \t\t\t\n \t} \t\n }", "Map<String, String> getPropsViews();", "public static void configure(Properties properties) {\r\n configure(properties, true);\r\n }", "protected void UpdateProperties(final Map<String, Object> props){\n //loop through the properties keys, check to see if it already exists,\n //if it does, update it, if it doesn't add it.\n props.keySet().forEach((k) -> {\n if(this.properties.get(k) == null){\n this.properties.put(k, props.get(k));\n }else{\n this.properties.replace(k, props.get(k));\n }\n }\n );\n }", "public void setViewProperties(com.microsoft.schemas.sharepoint.soap.UpdateViewViewProperties viewProperties) {\r\n this.viewProperties = viewProperties;\r\n }", "public static void setProperties(final HashMap<String, String> properties) {\n for (String propertyName : properties.keySet()) {\n Conf.properties.setProperty(propertyName, properties.get(propertyName));\n }\n try {\n commit();\n } catch (IOException e) {\n Log.error(e);\n }\n }", "public PropertiesChooserView() {\n initComponents();\n choicesModel = new DefaultListModel();\n chosenModel = new DefaultListModel();\n chooseList.setModel(choicesModel);\n chosenList.setModel(chosenModel);\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "public ConfigureEvent(ReplicatorProperties props) {\n super(props);\n }", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowWidth(true);\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setMinWidth(120);\n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"ListView\", \"Item two\", \"Item three\");\n aView.setCellConfigure(c -> configureCell(c));\n }", "public void setProperties(Properties setList);", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowHeight(true);\n }", "public void configure(T aView)\n {\n aView.setPadding(4,4,4,4); aView.setSpacing(4); aView.setGrowHeight(true);\n }", "protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}", "public void setMessageProperties(Map<String,String> properties)\r\n\t{\r\n\t\tthis.properties = properties;\r\n\t}", "public PropertySet getViewProperties() {\r\n return prefs;\r\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "public Config(Properties props) {\n entries = (Properties)props.clone();\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setRowHeight(15); aView.setPrefWidth(120);\n \n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"TreeView\");\n aView.setResolver(new TR());\n aView.setCellConfigure(c -> configureCell(c));\n aView.expandAll();\n }", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "public boolean setProperties(Properties props) {\n String str;\n\n super.setProperties(props);\n str=props.getProperty(\"shun\");\n if(str != null) {\n shun=Boolean.valueOf(str).booleanValue();\n props.remove(\"shun\");\n }\n\n str=props.getProperty(\"merge_leader\");\n if(str != null) {\n merge_leader=Boolean.valueOf(str).booleanValue();\n props.remove(\"merge_leader\");\n }\n\n str=props.getProperty(\"print_local_addr\");\n if(str != null) {\n print_local_addr=Boolean.valueOf(str).booleanValue();\n props.remove(\"print_local_addr\");\n }\n\n str=props.getProperty(\"join_timeout\"); // time to wait for JOIN\n if(str != null) {\n join_timeout=Long.parseLong(str);\n props.remove(\"join_timeout\");\n }\n\n str=props.getProperty(\"join_retry_timeout\"); // time to wait between JOINs\n if(str != null) {\n join_retry_timeout=Long.parseLong(str);\n props.remove(\"join_retry_timeout\");\n }\n\n str=props.getProperty(\"leave_timeout\"); // time to wait until coord responds to LEAVE req.\n if(str != null) {\n leave_timeout=Long.parseLong(str);\n props.remove(\"leave_timeout\");\n }\n\n str=props.getProperty(\"merge_timeout\"); // time to wait for MERGE_RSPS from subgroup coordinators\n if(str != null) {\n merge_timeout=Long.parseLong(str);\n props.remove(\"merge_timeout\");\n }\n\n str=props.getProperty(\"digest_timeout\"); // time to wait for GET_DIGEST_OK from PBCAST\n if(str != null) {\n digest_timeout=Long.parseLong(str);\n props.remove(\"digest_timeout\");\n }\n\n str=props.getProperty(\"view_ack_collection_timeout\");\n if(str != null) {\n view_ack_collection_timeout=Long.parseLong(str);\n props.remove(\"view_ack_collection_timeout\");\n }\n\n str=props.getProperty(\"resume_task_timeout\");\n if(str != null) {\n resume_task_timeout=Long.parseLong(str);\n props.remove(\"resume_task_timeout\");\n }\n\n str=props.getProperty(\"disable_initial_coord\");\n if(str != null) {\n disable_initial_coord=Boolean.valueOf(str).booleanValue();\n props.remove(\"disable_initial_coord\");\n }\n\n str=props.getProperty(\"handle_concurrent_startup\");\n if(str != null) {\n handle_concurrent_startup=Boolean.valueOf(str).booleanValue();\n props.remove(\"handle_concurrent_startup\");\n }\n\n str=props.getProperty(\"num_prev_mbrs\");\n if(str != null) {\n num_prev_mbrs=Integer.parseInt(str);\n props.remove(\"num_prev_mbrs\");\n }\n\n if(props.size() > 0) {\n log.error(\"GMS.setProperties(): the following properties are not recognized: \" + props);\n\n return false;\n }\n return true;\n }", "public ConfigProperties() {\n initComponents();\n Properties propertie = MainControl.getDBProperties();\n txtServidor.setText(propertie.getProperty(\"servidor\"));\n txtDataBase.setText(propertie.getProperty(\"dbName\"));\n txtPort.setText(propertie.getProperty(\"port\"));\n txtUser.setText(propertie.getProperty(\"user\"));\n txtPass.setText(propertie.getProperty(\"pass\"));\n this.setLocationRelativeTo(null);\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setRowHeight(17); aView.setPrefWidth(120);\n \n TableCol col = new TableCol();\n aView.addCol(col); col.setGrowWidth(true);\n aView.getScrollView().setShowVBar(true); aView.getScrollView().setBarSize(10);\n \n aView.setItems(\"TableView\", \"Item two\", \"Item three\");\n aView.setCellConfigure(c -> configureCell(c));\n }", "PropertiesTask setProperties( File propertiesFile );", "void addPropsView(String id, String className);", "public TogglePropertiesPanelAction(Application app, @Nullable View view) {\r\n super(app, view);\r\n setPropertyName(\"propertiesPanelVisible\");\r\n ResourceBundleUtil labels = ODGLabels.getLabels();\r\n putValue(AbstractAction.NAME, labels.getString(\"propertiesPanel\"));\r\n }", "public final void setPropertyConfig(\n final PropertiesConfiguration propertyConfig) {\n PCTMailGenerator.propertyConfig = propertyConfig;\n }", "public void showProperties() {\n if ( _project != null ) {\n AntelopeProperties ap = new AntelopeProperties( this );\n ap.showProperties( _project );\n }\n }", "PropertiesTask setProperty( String key, String value );", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "public void setProps(PeerProps props, RoomClient roomClient) {\n setPeerViewProps(props);\n\n props.setOnPropsLiveDataChange(ediasProps -> {\n if(roomClient.isConnecting()) {\n // set view model.\n setPeerViewProps(props);\n // set view model.\n setPeerProps(props);\n }\n });\n\n // register click listener.\n info.setOnClickListener(\n view -> {\n Boolean showInfo = props.getShowInfo().get();\n props.getShowInfo().set(showInfo != null && showInfo ? Boolean.FALSE : Boolean.TRUE);\n });\n\n stats.setOnClickListener(\n view -> {\n // TODO(HaiyangWU): Handle inner click event;\n });\n\n // set view model\n setPeerProps(props);\n }", "@ApiModelProperty(example = \"null\", value = \"The properties of the reporting task.\")\n public Map<String, String> getProperties() {\n return properties;\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n aView.setRowHeight(15); aView.setPrefSize(160,50);\n \n aView.setResolver(new BR());\n aView.setItems(\"BrowserView\");\n aView.setCellConfigure((Consumer <ListCell>)c -> configureCell(c));\n aView.setSelectedItem(\"BrowserView\");\n \n aView.getScrollView().setShowHBar(true); aView.getScrollView().setBarSize(10);\n aView.getCol(0).getScrollView().setShowVBar(true); aView.getCol(0).getScrollView().setBarSize(10);\n aView.getCol(1).getScrollView().setShowVBar(true); aView.getCol(1).getScrollView().setBarSize(10);\n }", "public void setMappings(Properties mappings)\r\n/* 17: */ {\r\n/* 18: 70 */ CollectionUtils.mergePropertiesIntoMap(mappings, this.urlMap);\r\n/* 19: */ }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "public void populate(java.util.Map properties) throws LexComponentException;", "public PolicyViewPresenter(HandlerManager eventBus, PolicyViewDisplay view,\n\t\t\tMap<SupportedService, PolicyAdminUIService> serviceMap) {\n\t\tthis.eventBus = eventBus;\n\t\tthis.view = view;\n\t\tthis.view.setAssociatedId(getId());\n\t\tthis.serviceMap = serviceMap;\n\t\tbind();\n\t}", "@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }", "protected void toProperties(Properties properties, boolean dflt) {\r\n T val = dflt ? this.dflt : value;\r\n if (null != val) {\r\n properties.put(key, val);\r\n }\r\n }", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "public void setParameters(Properties props) {\n\n\t}", "public void addProperties(MetadataEntity metadataEntity, Map<String, String> properties)\n throws IOException, UnauthenticatedException, BadRequestException, UnauthorizedException {\n String path = String.format(\"%s/metadata/properties\", constructPath(metadataEntity));\n path = addQueryParams(path, metadataEntity, null);\n makeRequest(path, HttpMethod.POST, GSON.toJson(properties));\n }", "public void init(ViewConfigData config) {\n\r\n this.viewConfig = config;\r\n\r\n /* fill the ontologyMap\r\n String ontologyMapFile = viewConfig.getOntologyMap(); */\r\n\r\n /* try {\r\n ontologyMapStore.parse(ontologyMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"IOException while trying to parse the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } */\r\n\r\n //fill the schemaMap\r\n String schemaMapFile = viewConfig.getSchemaMap();\r\n try {\r\n schemaMapStore.parse(schemaMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the schema map file: \"\r\n + schemaMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"ConfigurationException for the schema map file: \"\r\n + schemaMapFile, e);\r\n }\r\n\r\n //build the DTree. It also fills the ontologyStore\r\n dTree = buildDTree();\r\n \r\n //build the hash table for ont map properites\r\n String ontMappropertiesFilePath = viewConfig.getOntMapProperties();\r\n ReadPropFile.loadToHashTableFromOntmapPropertiesFile(ontMappropertiesFilePath); \r\n \r\n }", "public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }", "public void setEnvProperties(Map<String, String> envProperties) {\n\t\tthis.envProperties = envProperties;\n\t}", "void configure(String name, Map<String, Object> configuration);", "public static void configureLocal() {\r\n configure(getProperties(true));\r\n }", "public void configureGallery(T aView)\n {\n aView.setPrefSize(140,40); aView.setFont(Font.Arial10);\n aView.setShowVBar(true); aView.setShowHBar(true); aView.setBarSize(10);\n Label label = new Label(\"ScrollView\"); label.setPadding(8,35,8,45); label.setTextFill(Color.GRAY);\n label.setAlign(Pos.TOP_LEFT);\n aView.setContent(label); label.setFill(Color.WHITE); label.setMinSize(600,600);\n }", "public void configureGallery(T aView)\n {\n aView.setText(\"Title\"); aView.setFont(Font.Arial10);\n Label label = new Label(\"TitleView\"); label.setPadding(0,40,8,40); label.setTextFill(Color.GRAY);\n aView.setContent(label);\n }", "@Override\n public void addConfigurationProperties(Properties properties) {\n this.properties.putAll(properties);\n\n suppressDate = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));\n\n suppressAllComments = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));\n\n }", "Map<String, String> getConfigProperties();", "@JsonProperty(\"properties\")\n public void setProperties(PropertyBag properties) {\n this.properties = properties;\n }", "public void setProperties(Hashtable<String, String> h) {\n\t\t_props = h;\n\t}" ]
[ "0.6340825", "0.61658424", "0.6121599", "0.60842985", "0.6081417", "0.6053063", "0.6036583", "0.59745413", "0.59590685", "0.59400046", "0.5882092", "0.58815444", "0.577833", "0.5775914", "0.5694946", "0.567667", "0.56619877", "0.56019014", "0.5594576", "0.55924296", "0.54952824", "0.54876286", "0.5485724", "0.5471278", "0.54603183", "0.54327923", "0.5431253", "0.5424461", "0.54184884", "0.54139656", "0.5412746", "0.5397743", "0.5389474", "0.53493875", "0.534869", "0.53477997", "0.53207064", "0.53068787", "0.53035283", "0.52728", "0.5271836", "0.52456594", "0.521396", "0.52129245", "0.52129245", "0.52073663", "0.51878893", "0.5173235", "0.5139773", "0.51308846", "0.51293755", "0.51212215", "0.5095146", "0.50846815", "0.50749373", "0.50742054", "0.5067013", "0.5062156", "0.5062156", "0.5056077", "0.505352", "0.5039892", "0.5014427", "0.50119907", "0.49980867", "0.4991714", "0.49858776", "0.49809736", "0.4973671", "0.49736443", "0.49697688", "0.49670714", "0.4966687", "0.49544358", "0.49389198", "0.49361762", "0.49352926", "0.49279517", "0.49232632", "0.48978806", "0.48779452", "0.48653483", "0.48329288", "0.4830446", "0.4825424", "0.4812647", "0.47988856", "0.47987014", "0.47974998", "0.479411", "0.4770526", "0.4768027", "0.47666028", "0.47654322", "0.47638848", "0.47519234", "0.47464946", "0.4742056", "0.4740383", "0.47354668" ]
0.7602514
0
Gets the configuration for the properties view
Map<String, String> getPropsViews();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ConfigProperties getProperties() {\n return properties;\n }", "Map<String, String> getConfigProperties();", "public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}", "public PropertySet getViewProperties() {\r\n return prefs;\r\n }", "static Properties getConfig()\n {\n return(config);\n }", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "@Override\n\tpublic Properties getConfig() {\n\t\treturn null;\n\t}", "Properties getProperties();", "java.lang.String getProperties();", "public Properties getProperty() {\r\n return properties;\r\n }", "public abstract Properties getProperties();", "public Properties getProperties();", "public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }", "EProperties getProperties();", "public Properties getProperties() {\n return properties;\n }", "public Properties getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "protected java.util.Map getProperties() {\n return properties;\n }", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "@ApiModelProperty(example = \"null\", value = \"The properties of the reporting task.\")\n public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "public Properties getProperties() { return props; }", "public Properties getProperties()\n {\n return this.properties;\n }", "public Properties getProperties() {\n return this.serverProperties;\n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "public Config getConfig();", "public Map<String, Property> getProperties()\n {\n return properties;\n }", "public Map<String, String> properties() {\n return this.properties;\n }", "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "public String getConfig();", "public abstract AbstractProperties getProperties();", "public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}", "Map<String, String> properties();", "Map<String, String> properties();", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Object getConfig() {\n return config;\n }", "public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }", "CommonProperties getProperties();", "public Map getProperties();", "public HasDisplayableProperties getProperties();", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public Map<String, Object> getProperties() {\n return properties;\n }", "public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }", "protected Config getConfig () {\n return this.conf;\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "public String getPropertyDACConfig();", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public Properties getProperties()\n {\n Properties properties = null;\n List<Props.Entry> props = this.props.getEntry();\n if ( props.size() > 0 )\n {\n properties = new Properties();\n //int size = props.size();\n for ( Props.Entry entry : props )\n {\n String key = entry.getKey();\n String val = entry.getValue();\n properties.setProperty( key, val );\n }\n }\n return properties;\n }", "@ApiModelProperty(required = true, value = \"Configuration parameters for the connector.\")\n public Map<String, String> getConfig() {\n return config;\n }", "public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }", "public String getConfig() {\n\n return config;\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "public Properties getOutputProperties()\n {\n return templates.getOutputProperties();\n }", "public String getPropertyDACConfig()\n {\n return iPropertyDACConfig.getValue();\n }", "public String getConfig() {\n\t\treturn(config);\n\t}", "private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}", "public int getPropertyShowMode()\n {\n return propertyShowMode;\n }", "private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }", "public static ConfigProperties getInstance() {\r\n\r\n if (instance==null) {\r\n instance=new ConfigProperties();\r\n }\r\n return instance;\r\n }", "public AreaProperties getProperties() {\n return this.properties;\n }", "public Config getConfig() {\n return config;\n }", "public ConfigProvider getConfig() {\n return config;\n }", "@Override\n public List<Property> getConfigurationProperties() {\n List<Property> configProperties = new ArrayList<>();\n\n Property apiKey = new Property();\n apiKey.setName(Token2Constants.APIKEY);\n apiKey.setDisplayName(\"Api Key\");\n apiKey.setRequired(true);\n apiKey.setDescription(\"Enter Token2 API Key value\");\n apiKey.setDisplayOrder(1);\n configProperties.add(apiKey);\n\n Property callbackUrl = new Property();\n callbackUrl.setDisplayName(\"Callback URL\");\n callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);\n callbackUrl.setDescription(\"Enter value corresponding to callback url.\");\n callbackUrl.setDisplayOrder(2);\n configProperties.add(callbackUrl);\n return configProperties;\n }", "public Set<ProductSectionProperty> getProperties() {\n return properties;\n }", "public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }", "private Map<String, String> getConfigProperties(ArcConfig arcConfig) {\n Map<String, String> props = new HashMap<>();\n props.put(\"quarkus.arc.remove-unused-beans\", arcConfig.removeUnusedBeans);\n props.put(\"quarkus.arc.unremovable-types\", arcConfig.unremovableTypes.map(Object::toString).orElse(\"\"));\n props.put(\"quarkus.arc.detect-unused-false-positives\", \"\" + arcConfig.detectUnusedFalsePositives);\n props.put(\"quarkus.arc.transform-unproxyable-classes\", \"\" + arcConfig.transformUnproxyableClasses);\n props.put(\"quarkus.arc.auto-inject-fields\", \"\" + arcConfig.autoInjectFields);\n props.put(\"quarkus.arc.auto-producer-methods\", \"\" + arcConfig.autoProducerMethods);\n props.put(\"quarkus.arc.selected-alternatives\", \"\" + arcConfig.selectedAlternatives.map(Object::toString).orElse(\"\"));\n props.put(\"quarkus.arc.exclude-types\", \"\" + arcConfig.excludeTypes.map(Object::toString).orElse(\"\"));\n props.put(\"quarkus.arc.config-properties-default-naming-strategy\",\n \"\" + arcConfig.configPropertiesDefaultNamingStrategy.toString());\n return props;\n }", "public static Config getConfig(){\n return _Config;\n }", "public static Properties getConfig() throws IllegalStateException {\n \tif (!propertiesLoaded)\n \t\tthrow new IllegalStateException(\"Call loadConfig() first\");\n \t\n \treturn properties;\n }", "private ProjectionConfig getProjectionConfig() {\n return (ProjectionConfig) getProjection();\n }", "public Properties getProperties() {\n\t\tif (isStale()) {\n\t\t\tlogger.info(\"getProperties: is stale (reloading\");\n\t\t\tload();\n\t\t}\n\t\treturn properties;\n\t}", "public HashMap<String, String> getProperties() {\n return (HashMap<String, String>) properties.clone();\n }", "public Map<String, Object> getProperties() {\n return mProperties;\n }", "public List<CarPropertyConfig> getPropertyList() throws CarNotConnectedException {\n return mCarPropertyMgr.getPropertyList(mHvacPropertyIds);\n }", "public File getPropertiesFile() {\n return propertiesFile;\n }", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "private DynamicConfiguration getPropertiesConfiguration() throws ConfigurationException,\n MalformedURLException {\n String userHome = System.getProperty(\"user.home\");\n Path properties = Paths.get(userHome, \"config-root\", \"address\", \"address.properties\");\n PolledConfigurationSource polledSource = new URLConfigurationSource(properties.toUri().toURL());\n return new DynamicConfiguration(polledSource, new FixedDelayPollingScheduler());\n }", "public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "public com.microsoft.schemas.sharepoint.soap.UpdateViewViewProperties getViewProperties() {\r\n return viewProperties;\r\n }", "public abstract Properties getProfileProperties();", "public Vector getApplicationProperties() {\n return appProperties;\n }", "public C getConfig()\n {\n return config;\n }", "public JsonObject getConfig() {\n return config;\n }", "public Map<String, Object> getProperties()\n {\n return m_props;\n }", "private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}", "public PortletConfig getPortletConfig ()\n {\n return config;\n }", "public abstract String getConfig();", "public Object getProperties() {\n return this.properties;\n }", "public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }", "void setPropsViews(Map<String, String> propertiesView);", "public WorkbenchProperties getProperties() {\r\n return properties;\r\n }", "@ApiModelProperty(value = \"The custom properties of this entity\")\n public Map<String, String> getProperties() {\n return properties;\n }", "public void showProperties() {\n if ( _project != null ) {\n AntelopeProperties ap = new AntelopeProperties( this );\n ap.showProperties( _project );\n }\n }", "public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}" ]
[ "0.7415112", "0.72710484", "0.7114265", "0.7090497", "0.70096135", "0.68353504", "0.6751157", "0.664859", "0.65824", "0.65537727", "0.6514391", "0.6512855", "0.6503908", "0.65029293", "0.6483339", "0.6476084", "0.6458972", "0.64557624", "0.6423691", "0.64188766", "0.6407801", "0.6407801", "0.6398785", "0.6386749", "0.63696337", "0.6366703", "0.6366703", "0.6361792", "0.63534576", "0.6349358", "0.6343674", "0.63424265", "0.6338717", "0.6295622", "0.6294951", "0.62883973", "0.62697047", "0.62697047", "0.6210935", "0.6191697", "0.6186817", "0.61690134", "0.61599696", "0.61358213", "0.6124531", "0.61151236", "0.6108012", "0.6105951", "0.6096875", "0.6087731", "0.60862434", "0.60862434", "0.6073294", "0.6064105", "0.60621464", "0.60532117", "0.6048676", "0.60481524", "0.60456914", "0.60196435", "0.6019265", "0.5997977", "0.5997722", "0.5993631", "0.5990785", "0.5988533", "0.5988523", "0.5980634", "0.5969042", "0.5967384", "0.5962856", "0.5953938", "0.59537244", "0.59465706", "0.5928475", "0.5919773", "0.5913409", "0.5902048", "0.59013927", "0.5900947", "0.58962226", "0.58945805", "0.589101", "0.5888033", "0.5880736", "0.58791435", "0.58764416", "0.58716744", "0.5868725", "0.58639145", "0.585994", "0.58594984", "0.5852217", "0.5851185", "0.5848285", "0.5844961", "0.5837991", "0.58239293", "0.5818338", "0.5816867" ]
0.64865965
14
Question Candy Constructor with current points rule
public CandyQuestion(Image image) { super(image, Constants.QUESTION_CANDY_INITIAL_POINTS); setQuestion(new PopsQuestion()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Candy() {\n\t\tthis(\"\");\n\t}", "public AccrualRule(){}", "public Clue(String c, String a) {\n this.clue = c;\n this.answer = a;\n }", "@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(pointsToTest[i],new PointGrade(pointsToTest[i]).getPoints());\r\n\t\t}\r\n\t}", "BruceScore() {}", "public BruteforceAttack(int[] pt,int[] ct){this(pt,ct,8);}", "public KarateChop() {\n super(SkillFactory.KARATE_CHOP, \"Karate Chop\", SkillDescription.KARATE_CHOP, 25,\n Pokemon.Type.FIGHTING, SkillCategory.PHYSICAL, 100, 50, 2);\n makesPhysicalContact = true;\n }", "public LyricAnswer() {\n }", "public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }", "@Override\n\tpublic void createCpteCourant(CompteCourant cpt) {\n\t\t\n\t}", "@Test\r\n\tpublic void constructorTest() \r\n\t{\r\n\t\tassertEquals(0, scoreBehavior.score());\r\n\t}", "public PrecisePoint() {\n }", "public Candy(String name) {\n\t\tsuper(name);\n\t}", "protected AnswerScore() {/* intentionally empty block */}", "private Solution() { }", "private Solution() { }", "public void newCandy() {\n\t\tDebugger.print(\"Making new candy\");\n\t\tint x = (Random.nextInt(1, this.SIZE * 2) - 2);\n\t\tint y = (Random.nextInt(1, this.SIZE - 2));\n\n\t\tTile t = new Tile(x, y);\n\t\tboolean foundFreeTile = false;\n\t\twhile (!foundFreeTile) {\n\t\t\tfor (Snake snake : this.snakes) {\n\t\t\t\tif (snake != null) {\n\n\t\t\t\t\tif (snake.find(t)) {\n\t\t\t\t\t\tx = (Random.nextInt(1, this.SIZE * 2) - 1);\n\t\t\t\t\t\ty = (Random.nextInt(1, this.SIZE - 1));\n\t\t\t\t\t\tt.setX(x);\n\t\t\t\t\t\tt.setY(y);\n\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\tfoundFreeTile = true;\n\t\t}\n\t\tif (this.getGui() != null) {\n\t\t\tthis.getGui().print(\"New candy made\");\n\t\t}\n\t\tthis.setCandy(new Candy(x, y));\n\t}", "@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }", "@Test\n\tpublic void constructorTest() {\n\t\tCTRNN testCtrnn = new CTRNN(layout1, phenotype1, false);\n\t\tAssert.assertEquals(1.0, testCtrnn.inputWeights[0], 0.001);\n\t\tAssert.assertEquals(2.0, testCtrnn.hiddenWeights[0][0], 0.001);\n\t\tAssert.assertArrayEquals(new double[] {3.0, 4.0}, testCtrnn.biasWeights, 0.001);\n\t\tAssert.assertArrayEquals(new double[] {5.0, 6.0}, testCtrnn.gains, 0.001);\n\t\tAssert.assertArrayEquals(new double[] {7.0, 8.0}, testCtrnn.timeConstants, 0.001);\n\t\t\n\t}", "public Coin()\n {\n toss();//call the toss method\n }", "public QuestionTF() {}", "public AssistantJack(int answerSet) {\n\t\tthis();\n\t\tif(answerSet == 1) {\n\t\t\tthis.correctTheory = new Theory(1,1,1);\n\t\t}\n\t\telse if (answerSet == 2) {\n\t\t\tthis.correctTheory = new Theory(6, 10, 6);\n\t\t}\n\t\telse {\n\t\t\tRandom random = new Random();\n\t\t\tint weapon = random.nextInt(6) + 1;\n\t\t\tint location = random.nextInt(10) + 1;\n\t\t\tint person = random.nextInt(6) + 1;\n\t\t\tthis.correctTheory = new Theory(weapon, location, person);\n\t\t}\n\t}", "public Crate(){}", "public Candidate()\n\t{\n\t\t\n\t}", "public Rules(Player player) {\n this.player = player;\n categoryCheck = new boolean[13];\n\n\n\n/* For later on\n\n // length i is starting at 0, Category 1 would be 0, and so on.\n for (int i = 0; i < categoryCheck.length;i++) {\n // Counting up to .length = [13]\n // Since i less than, will start 0-12, i is not <= so we -1 from regular categories to match them\n // When returned false and not true, then the category is available for this.player to use\n categoryCheck[i] = false;\n }\n*/\n\n\n //Creating categoryScore to 13 new int's 0-12 in index form\n // We use I as an index just to replicate a for () for temp use in this method\n categoryScore = new int[13];\n for (int i = 0; i < categoryScore.length; i++) {\n categoryScore[i] = 0;\n }\n\n }", "public LoyaltyCard(String theTitle, String theFirstName, \r\n String theLastName, String street, \r\n String town, String postcode, \r\n String theCardNumber, int thePoints)\r\n {\r\n title = theTitle;\r\n firstName = theFirstName;\r\n lastName = theLastName;\r\n address = new LoyaltyCardAddress(street, town, postcode);\r\n cardNumber = theCardNumber;\r\n points = thePoints; \r\n }", "public Chant(){}", "protected Points(int victoryP, int militaryP, int faithP, int councilP){\n\t\tthis.victoryPoints=victoryP;\n\t\tthis.militaryPoints=militaryP;\n\t\tthis.faithPoints=faithP;\n\t\tthis.councilPrivileges=councilP;\n\t}", "public TPrizeExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}", "public void createEssay() {\n Question q = new Essay(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Essay question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s)\\n\");\n this.o.getDisplay();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n\n this.survey.addQuestion(q);\n }", "public DecideQuestion(){\n\t\tsuper(0); /** call relation -> PromptQuestion.java */\n\t}", "public Pinky(Pinky autre){\n\t\tsuper(autre);\n\t\tstartPos = autre.getPosition();\n\t\tsteps = 0;\n\t\tpreviousChoice = autre.getPosition().toDirection();\n\t\tmode = 'c'; \n\t}", "public Contestant(String n, String c){\n\t\tname = n;\n \tcountry = c;\n\t\tage = 18;\n\t\ttalents = new String[3];\n\t}", "public Cavalier(boolean blanc) {\n super(blanc);\n }", "public Cab() {\r\n fare = 50;\r\n }", "public Contestant(String n, String c, int a){\n\t\tname = n;\n\t\tcountry = c;\n\t\tage = a;\n\t\ttalents = new String[3];\n\t}", "public Question(){}", "public ComputerMoveCalculator(int personality, String name, int amountToCall, int playerMoney, int playerChips[][], Card playerOwnCards[], Card faceUpCards[], int turnCounter, int minRaise, int amountBetSoFarThisTurn, boolean canRaise, int lastRaiseAmount, int pot) {\n this.playerCards = playerOwnCards;\n this.recommendedAmountToBet = 0;\n this.canRaise = canRaise;\n this.turnCounter = turnCounter;\n this.potOdds_percentage = 100 * (double) ((double) (amountToCall) / (double) ((pot + amountToCall)));\n this.personality = personality;\n this.amountToCall = amountToCall;\n this.name = name;\n this.minRaise = minRaise;\n this.playerMoney = playerMoney;\n this.lastRaiseAmount = lastRaiseAmount;\n this.faceUpCards = faceUpCards;\n //variables that will change based on player's personalities\n //all levels from 1 to 10\n\n switch (personality) {\n case PokerGame.LOOSE_AGGRESSIVE:\n personalityString = PokerGame.namesOfPlayerTypes[PokerGame.LOOSE_AGGRESSIVE];\n howEasyToBluff_level = randomIntWithin(1, 3);\n bettingRiskTolerance_level = randomIntWithin(5, 9);\n willBluff_level = randomIntWithin(5, 10);\n patience_level = randomIntWithin(2, 6);\n break;\n case PokerGame.LOOSE_PASSIVE:\n personalityString = PokerGame.namesOfPlayerTypes[PokerGame.LOOSE_PASSIVE];\n howEasyToBluff_level = randomIntWithin(1, 4);\n bettingRiskTolerance_level = randomIntWithin(1, 4);\n willBluff_level = randomIntWithin(1, 3);\n patience_level = randomIntWithin(2, 4);\n break;\n case PokerGame.TIGHT_AGGRESSIVE:\n personalityString = PokerGame.namesOfPlayerTypes[PokerGame.TIGHT_AGGRESSIVE];\n howEasyToBluff_level = randomIntWithin(3, 5);\n bettingRiskTolerance_level = randomIntWithin(6, 10);\n willBluff_level = randomIntWithin(1, 3);\n = randomIntWithin(6, 10);\n break;\n case PokerGame.TIGHT_PASSIVE:\n personalityString = PokerGame.namesOfPlayerTypes[PokerGame.TIGHT_PASSIVE];\n howEasyToBluff_level = randomIntWithin(4, 6);\n bettingRiskTolerance_level = randomIntWithin(1, 3);\n willBluff_level = randomIntWithin(1, 4);\n patience_level = randomIntWithin(7, 10);\n break;\n }\n\n allParametersToString(amountToCall, playerMoney, playerChips, playerOwnCards, faceUpCards, turnCounter, minRaise, amountBetSoFarThisTurn);\n\n //what if the previous person raised by a lot??\n if (lastRaiseAmount >= minRaise * howEasyToBluff_level * 3 / 2) {\n int k = randomIntWithin(1, 10);\n System.out.println(\"How easy to bluff: \" + howEasyToBluff_level + \", and k is \" + k);\n System.out.println(\"if k is less than or equal to how easy to bluff level then will fold\");\n if (k <= howEasyToBluff_level) {\n System.out.println(\"setting should probably fold to true\");\n this.shouldProbablyFold = true; //however, will NOT fold if we have an amazing hand\n }\n }\n\n sumPoints = 0;\n int numMultipliedByMinRaise = 0;\n switch (turnCounter) {\n case 0://just the player's TWO CARDS\n allCards = playerOwnCards;\n sumPoints += qualityOfPlayersOwnTwoCards(playerOwnCards);\n findBestTwoCardHandName();\n if (shouldProbablyFold == true && sumPoints > bettingRiskTolerance_level * 3) {\n System.out.println(\"Should probably fold was true...but player has a great hand...so not going to fold\");\n shouldProbablyFold = false;\n }\n if (shouldProbablyFold == false) {\n if (sumPoints >= 20) {//pair of high cards \n numMultipliedByMinRaise = bettingRiskTolerance_level;\n recommendedAmountToBet = amountToCall + betThisAmountOrNextLargest(minRaise * numMultipliedByMinRaise);//was 6, 8//use bettingRiskTolerance_level here\n } else if (sumPoints >= 14) {\n numMultipliedByMinRaise = thisNumberOrAtLeastNumber1((int) (bettingRiskTolerance_level / 1.5));//divide by 1.5\n recommendedAmountToBet = amountToCall + betThisAmountOrNextLargest(minRaise * numMultipliedByMinRaise);//was 1, 5\n } else if (sumPoints >= 8) {\n numMultipliedByMinRaise = ((int) (bettingRiskTolerance_level / 2.5));//divide by 2.5\n recommendedAmountToBet = amountToCall + betThisAmountOrNextLargest(minRaise * numMultipliedByMinRaise);//was 0 , 3\n } else if (sumPoints >= 0) {\n numMultipliedByMinRaise = (bettingRiskTolerance_level / 4);\n recommendedAmountToBet = amountToCall + betThisAmountOrNextLargest(minRaise * numMultipliedByMinRaise);//was 0, 1\n }\n } else {\n fold();\n }\n System.out.println(\"Turn Counter is 0:\");\n System.out.println(\"sumPoints was \" + sumPoints + \" and multiplied min raise by \" + numMultipliedByMinRaise);\n\n break;\n //for hand decision calculation, remember to use 1)percentChanceOfMakingHand and 2)potOdds_percentage\n case 1://players 2 cards + faceUpCards 1 2 3\n allCards = new Card[5];\n allCards[0] = playerOwnCards[0];\n allCards[1] = playerOwnCards[1];//\n allCards[2] = faceUpCards[0];\n allCards[3] = faceUpCards[1];\n allCards[4] = faceUpCards[2];\n sumPoints = determineHowGoodHandIs(3, 5);\n System.out.println(\"chance of making hand: \" + percentChanceOfMakingHand + \", pot odds: \" + potOdds_percentage);\n setRecommendedBetBasedOnPlayerVariablesAndOdds(sumPoints);\n break;\n case 2: //player 2 cards + faceUpCards 1 2 3 4\n allCards = new Card[6];\n allCards[0] = playerOwnCards[0];\n allCards[1] = playerOwnCards[1];\n allCards[2] = faceUpCards[0];\n allCards[3] = faceUpCards[1];\n allCards[4] = faceUpCards[2];\n allCards[5] = faceUpCards[3];\n sumPoints = determineHowGoodHandIs(4, 6);\n setRecommendedBetBasedOnPlayerVariablesAndOdds(sumPoints);\n System.out.println(\"chance of making hand: \" + percentChanceOfMakingHand + \", pot odds: \" + potOdds_percentage);\n break;\n case 3: //player 2 cards + faceUpCards 1 2 3 4 5 \n case 4:\n allCards = new Card[7];\n allCards[0] = playerOwnCards[0];\n allCards[1] = playerOwnCards[1];\n allCards[2] = faceUpCards[0];\n allCards[3] = faceUpCards[1];\n allCards[4] = faceUpCards[2];\n allCards[5] = faceUpCards[3];\n allCards[6] = faceUpCards[4];\n sumPoints = determineHowGoodHandIs(5, 7); //sum points is between 2 and 126\n this.bestHandFromCardsNickNameString = finalHandName;\n //we now know how good our hand is \n //now, call, bet, or fold accordingly\n break;\n }//soooo need to take make functions that take NUMCARDS ON TABLE _ and _ those 5 main variables and outputs percent chance royal flush, then other\n //function which outputs the chance of a straigt etc etc etc\n\n howGoodIsPlayerHand = sumPoints;\n if (bestHandFromCardsNickNameString.equals(\"\") || bestHandFromCardsNickNameString.equals(\" \")){\n bestHandFromCardsNickNameString = finalHandName;\n }\n if (amountToCall >= playerMoney / 2){//someone just bet a crap ton of money\n //only call it if you have a good hand\n System.out.println(\"Amount to call is really big... sumPoints is \" + sumPoints);\n if (this.turnCounter == 0 && sumPoints < 15 - this.bettingRiskTolerance_level || (this.turnCounter > 0 && sumPoints < 55 - this.bettingRiskTolerance_level)){//change these numbers to dictate how often they fold when someone goes all in\n fold();\n } \n }\n\n System.out.println(\"....\" + recommendedAmountToBet);\n }", "public Answers()\r\n {\r\n \r\n }", "public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }", "public SportScoreExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }", "QuoteCoefficient createQuoteCoefficient();", "public CopelandArtifact() {\n this.qtdVoted = 0;\n this.qtdToVote = 0;\n this.votation = new HashMap<>();\n this.votationResults = null;\n this.qtdSolutionsHash=new HashMap<>();\n currentWinner=null;\n }", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "public Question(String firstPrompt) {\r\n this(); //Calling method (defualt constuctor) that takes no parameters\r\n this.firstPrompt = firstPrompt;\r\n //or public Question(String p) and firstPrompt = p\r\n }", "public Goal(Point point) {\n super(point);\n }", "Question() {\n ques = opt1 = opt2 = opt3 = opt4 = null; // initializing to null\n }", "public BlusterCritter (int c) {\n super();\n courage = c;\n }", "public TCpyBankCreditExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public TrueQuestion(int examNum, int questionNum, String text, double points, boolean answer) {\r\n\t\tthis.examNum = examNum;\r\n\t\tthis.questionNum = questionNum;\r\n\t\tthis.text = text;\r\n\t\tthis.points = points;\r\n\t\tthis.expAnswer = answer;\r\n\t\t\r\n\t\t//may turn out this doesn't need an examNum or questionNum\r\n\t}", "public Puzzles(String question, int answer, int level) {\n\t\tsuper();\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t\tthis.isAsked = false;\n\t}", "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "public ScoreFixer ()\r\n {\r\n }", "public Candidate(String w, int c) {\r\n\t\tword = w;\r\n\t\tconfidence = c; // confidence will be represented by the number of times a particular word has been entered\r\n\t\t// higher frequency of entries = higher confidence\r\n\t}", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "protected Criteria(TCpyBankCreditExample example) {\n super();\n this.example = example;\n }", "private Solution() {\n //constructor\n }", "public Card() { this(12, 3); }", "public Candidate(ContestEvaluation evaluation, int generation, player20 p,\r\n\t\t\tdouble[] parameters, double[] stDevs) {\r\n\t\tevaluation_ = evaluation;\r\n\t\tgeneration_ = generation;\r\n\t\tparameters_ = parameters;\r\n\t\tstDevs_ = stDevs;\r\n\t\tfitness_ = (Double) evaluation_.evaluate(parameters_);\r\n\t\tp.evals_++;\r\n\t}", "public Riddle(String initQuestion, String initAnswer)\n {\n // set the instance variables to the init parameter variables\n\n }", "public void createCariculum(){\n Set<Session> s = new HashSet<>();\n allCombinations.clear();\n RunAlgo(0, s, createModel());\n filteredResults = allCombinations;//check later if need to adjust.\n }", "public ChaCha( int rounds )\n\t{\n\t\tsuper( rounds );\n\t}", "public Test() {\n super(0, \"A task\");\n this.answersArray = new String[]{\"a\", \"b\", \"c\"};\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public Cow() {\n\t\t// Values adjustable to better fit game\n\t\tsuper(\"Cow\", 50.00, 15.00);\n\t}", "Candy() {\n cName = \"\";\n }", "public CurvePoints(double abci, double ord)\r\n\t{\r\n\t\tthis.abci=abci; //initialization of the abcissa axe\r\n\t\tthis.ord=ord; //initialization of the ordinate axe\r\n\t}", "private Solution() {\n }", "public Question() {\n\n }", "public BaseOptimizer() {\r\n Candidates = new ArrayList<>();\r\n }", "public Championship() {\n }", "private void generateCandies(){\n\t\tfor (int i = 0; i < 16; i++){\n\t\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tCandy candy = new Candy(coordX, coordY, i);\n\t\t\tcandies.put(i, candy);\n\t\t}\n\t}", "public Casual(Town p, int r, int c) {\n\t\tsuper(p,r,c);\n\t}", "public Course (double creditHours) {\r\n\t\tname = \"A New Course\";\r\n\t\tnumGrade = 0;\r\n\t\tcredithours = creditHours;\r\n\t\tletterGrade = \"\";\r\n\t}", "public Pitonyak_09_02() {\r\n }", "protected Checkpoint() {\n super();\n }", "public Cohete() {\n\n\t}", "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "public Coup coupAJouer();", "public PassCost() {\r\n\r\n }", "public Naive() {\n\n }", "@Test\r\n void testTitForTatWithHistoryCooperate() {\r\n TitForTat testStrat = new TitForTat();\r\n AlwaysCooperate testStrat2 = new AlwaysCooperate();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 2, payoffs);\r\n game.playGame();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 6, \"tit for tat not returning correctly \"\r\n + \"against cooperating opponent\"); \r\n }", "private Solution() {\n\n }", "@Test\r\n void testVaryingMajorityNoHistory() {\r\n VaryingMajority testStrat = new VaryingMajority(3);\r\n AlwaysDefect testStrat2 = new AlwaysDefect();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 1, payoffs);\r\n game.playGame();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 0, \"varyingMajority not returning c when no history\");\r\n }", "public RedPuzzle() {\n }", "public Chick() {\n\t}", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "public BruteCollinearPoints(Point[] points) {\n this.points = points;\n }", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "public CampLease( ) {}", "public Potencial() {\r\n }", "public PricingModel(Game game) {\n this.game = game;\n this.currentPrice = SavingCard.INITIAL_COST;\n this.invokedCount = 0;\n \n\t}", "public static void main(String[] args){\n\n System.out.println(\"====Testing CannibalProblem class====\");\n\n CannibalProblem cp = new CannibalProblem(3,3,1,0,0,0); // start: (3,3,1)\n CannibalProblem cp2 = new CannibalProblem(3,3,1,0,0,0); // start (3,2,1)\n System.out.println(cp.startNode);\n System.out.println(cp.startNode.getDepth());\n System.out.println(cp.startNode.hashCode());\n\n System.out.println(cp.startNode.equals(cp.startNode));\n System.out.println(cp.startNode.equals(cp2.startNode));\n\n System.out.println(cp.startNode.goalTest());\n System.out.println(cp.startNode.getSuccessors().get(2).getSuccessors());\n\n }", "@Test\r\n\tpublic void testInputC() {\n\t\tString filename = \"input-C.txt\";\r\n\t\tCompetitionDijkstra map1 = new CompetitionDijkstra (filename, 55,60,92);\r\n\t\tCompetitionFloydWarshall map2 = new CompetitionFloydWarshall(filename, 55,60,92);\r\n\t\tassertEquals(-1, map1.timeRequiredforCompetition());\r\n\t\tassertEquals(-1, map2.timeRequiredforCompetition());\r\n\t}", "private cufftResult()\r\n {\r\n }", "public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}", "<C> Cocartesian<Choice2<C, A>, Choice2<C, B>, P> cocartesian();", "public BlusterCritter(int c) {\n super();\n courage = c;\n }", "private DiscretePotentialOperations() {\r\n\t}" ]
[ "0.6200073", "0.595511", "0.5889354", "0.5882982", "0.58278394", "0.57843614", "0.5764574", "0.5750871", "0.5743362", "0.56534314", "0.5619897", "0.5602531", "0.56018513", "0.55935663", "0.55452293", "0.55452293", "0.5539906", "0.55378574", "0.5511598", "0.55059063", "0.54991096", "0.54657114", "0.54616123", "0.5460167", "0.5427094", "0.5411168", "0.5400762", "0.53997296", "0.5396926", "0.5390647", "0.53823316", "0.537606", "0.53750044", "0.537128", "0.5370574", "0.5364943", "0.5362954", "0.536238", "0.53610194", "0.5356542", "0.53547496", "0.5350724", "0.5343154", "0.53304464", "0.53258806", "0.5324338", "0.53228855", "0.5315733", "0.5308643", "0.53080004", "0.53028226", "0.529707", "0.5296375", "0.527418", "0.5262161", "0.5259833", "0.5255706", "0.52522624", "0.5251106", "0.52509224", "0.5246619", "0.5245091", "0.5243872", "0.5236479", "0.5229479", "0.5228318", "0.52267563", "0.52129096", "0.5212861", "0.5210424", "0.5206714", "0.5203992", "0.51989233", "0.5196376", "0.51894826", "0.51866186", "0.5185401", "0.51797664", "0.51797277", "0.51727873", "0.5171152", "0.51709676", "0.51702905", "0.5169563", "0.5159625", "0.51551795", "0.5154095", "0.5149512", "0.51472396", "0.5138578", "0.51384515", "0.5138443", "0.5137572", "0.5136796", "0.5132728", "0.51317185", "0.5129908", "0.5128473", "0.51139367", "0.51133955" ]
0.6426788
0
load question candy image from drive to object
@Override public void loadImages() { super.setImage((new ImageIcon("pacpix/QuestionCandy.png")).getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Image loadImage();", "private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}", "public static void loadFruitPic() {\n //images are from the public domain website: https://www.clipartmax.com/\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n Banana.fruitPic = toolkit.getImage(\"Images/banana.png\");\n Banana.fruitSlice = toolkit.getImage(\"Images/bananaSlice.png\");\n }", "private BufferedImage loadImage(String path) {\n try {\n return ImageIO.read(getClass().getClassLoader().getResource(path));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n return null;\n }", "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 static Image loadImage(String name) {\r\n Image result = null;\r\n try {\r\n result = ImageIO.read(IO.class.getClassLoader().getResourceAsStream(\"data/\" + name));\r\n } catch (Exception ex) {\r\n } \r\n return result;\r\n }", "private void initializeImages(File imageFile,File answerFile) throws IOException {\n asciiReader=new ASCIIreader(imageFile,answerFile, 2.0/3.0);\n }", "public static void load(){\n\t\trobot=new BufferedImage[5];\n\t\ttry {\n\t\t\tfor(int i=0;i<5;i++)\n\t\t\t\trobot[i]=ImageIO.read(new File(\"robot\" + i +\".png\"));\n\t\t\t\n\t\t\tminiRobot=ImageIO.read(new File(\"miniRobot.png\"));\n\t\t\toil=ImageIO.read(new File(\"oil.png\"));\n\t\t\tslime=ImageIO.read(new File(\"slime.png\"));\n\t\t\tmap=ImageIO.read(new File(\"map.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e + \"Failed to load images\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "@Override\n\tpublic Image loadEntity() {\n\t\ttry {\n\t\t\tImage entityImage = new Image(new FileInputStream(IMAGE_LOCATION));\n\t\t\treturn entityImage;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\treturn null;\n\t\t}\n\t}", "private BufferedImage readImageDataFromClasspath(String fileName)\n\t\t\tthrows IOException {\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\n\t\t\t\tfileName);\n\n\t\treturn ImageIO.read(in);\n\t}", "private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }", "File resolveImage(Box box);", "public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}", "private void collectCloud() {\n\t\ttry { \n\t\t\tcloud = ImageIO.read(getClass().getResourceAsStream(\"/img/tempCloud.png\"));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"The cloud file requested does not exist! Please fix this before contueing!\");\n\t\t}\n\t}", "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "private void loadImages(){\n try{\n System.out.println(System.getProperty(\"user.dir\"));\n\n t1img = read(new File(\"resources/tank1.png\"));\n t2img = read(new File(\"resources/tank1.png\"));\n backgroundImg = read(new File(\"resources/background.jpg\"));\n wall1 = read(new File(\"resources/Wall1.gif\"));\n wall2 = read(new File(\"resources/Wall2.gif\"));\n heart = resize(read(new File(\"resources/Hearts/basic/heart.png\")), 35,35);\n heart2 = resize(read( new File(\"resources/Hearts/basic/heart.png\")), 25,25);\n bullet1 = read(new File(\"resources/bullet1.png\"));\n bullet2 = read(new File(\"resources/bullet2.png\"));\n\n }\n catch(IOException e){\n System.out.println(e.getMessage());\n }\n }", "private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "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}", "void loadPhoto(String filename) throws IOException;", "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 }", "private void loadImage(User user) throws IOException {\n byte [] bytes = ByteArrayUtils.bytesFromUrl(user.getImageUrl());\n user.setImageBytes(bytes);\n }", "public CopyOfPlayer(){ //Loads and scales the images\n for (int i = 0; i < robotImages.length; i++){\n for (int j = 0; j < black.length; j++){\n robotImages[i][j].scale(300, 300);\n }\n }\n costume = PrefLoader.getCostume(); //Sets costume according to file\n setImage(robotImages[costume][2]);\n }", "public Cow() {\n\t\tsuper();\n\t\tloadImages();\n\t}", "@Override\r\n\tpublic ImageDescriptor loadImageDescriptor(Class<?> clazz, String path){\n\t\tURL url=createImageURL(clazz,path);\r\n\t\t\r\n\t\tImageDescriptor imageDescript = ImageDescriptor.createFromURL(url);\r\n\t\treturn imageDescript;\r\n\t}", "private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}", "public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}", "private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}", "public void loadCard(String cid) {\n\t\tmDisplayedCard = BitmapFactory.decodeResource(this.getResources(), R.drawable.card_base);\r\n\t\t\r\n\t}", "static BufferedImage loadImage(String filename){\r\n\t\t\r\n\t\tBufferedImage image = null;\r\n\t\ttry{\r\n\t\t\timage = ImageIO.read(View.class.getResource(filename));\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "Board() {\n currentlyPlacedShip = null;\n imageMap = new TreeMap<ShipType, Image>();\n fillImageMap();\n try {\n hit = ImageIO.read(getClass().getResource(\"img/hit.gif\"));\n board = ImageIO.read(getClass().getResource(\"img/board.gif\"));\n mishit = ImageIO.read(getClass().getResource(\"img/mishit.gif\"));\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }", "public void loadImage(String str) {\r\n\t\t// sets file into BufferedImage\r\n\t\ttry {\r\n\r\n\t\t\t// if type == 1: draw the first type of tree\r\n\t\t\tif (type == 1) {\r\n\t\t\t\tBufferedImage imgOne = ImageIO.read(Vegetation.class.getResource(str));\r\n\t\t\t\t// calls resize method to resize image\r\n\t\t\t\timg1 = imageResize(imgOne, 130, 170);\r\n\r\n\t\t\t}\r\n\t\t\t// if type == 2: draw the second type of tree\r\n\t\t\tif (type == 2) {\r\n\t\t\t\tBufferedImage imgTwo = ImageIO.read(Vegetation.class.getResource(str));\r\n\t\t\t\t// calls resize method to resize image\r\n\t\t\t\timg2 = imageResize(imgTwo, 130, 170);\r\n\t\t\t}\r\n\t\t\t// if type == 3: draw bush\r\n\t\t\tif (type == 3) {\r\n\t\t\t\tBufferedImage imgThree = ImageIO.read(Vegetation.class.getResource(str));\r\n\t\t\t\t// calls resize method to resize image\r\n\t\t\t\timg3 = imageResize(imgThree, 100, 140);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}", "public BufferedImage loadImage(String path){\n\t\ttry {\n\t\t\timage = ImageIO.read(getClass().getResource(path));\n\t\t\tSystem.out.println(\"Sprite Sheet Loaded\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "byte[] getRecipeImage(CharSequence query);", "public interface IOcr {\n\n Ticket recognitionPic(String path);\n\n Ticket recognitionPic(byte[] bytes);\n}", "public void loadImages() {\n\t\tcowLeft1 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowLeft2 = new ImageIcon(\"images/animal/cow2left.png\");\n\t\tcowLeft3 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowRight1 = new ImageIcon(\"images/animal/cow1right.png\");\n\t\tcowRight2 = new ImageIcon(\"images/animal/cow2right.png\");\n\t\tcowRight3 = new ImageIcon(\"images/animal/cow1right.png\");\n\t}", "@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}", "Bitmap load(String id);", "protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }", "private Image makeAnImage(String s) throws IOException {\n //String imageName = s.substring(s.indexOf(\"\\\\(\") + 1, s.indexOf(\"\\\\)\"));\n String[] parts = s.split(\"\\\\(\");\n String imageName = parts[1].substring(0, parts[1].length() - 1);\n // load the image data into an java.awt.Image object.\n Image img = null;\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(imageName);\n try {\n img = ImageIO.read(is);\n } catch (IOException e) {\n System.out.println(\"Error: failed to load image\");\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n System.out.println(\"Failing closing the image\");\n }\n }\n }\n return img;\n }", "public Objects(String image){\n\t\tthis.face = new Image(\"file:res/\" + image);\n\t\tthis.MoveSpeed = 6;\n\t}", "private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";\n\n\t\t// Load background\n\t\tbackground = createImage(img_file_base + \"Underwater\" + ext);\n\t}", "IMG createIMG();", "public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "private void loadImages() {\n\t\ttry {\n\t\t\timage = ImageIO.read(Pillar.class.getResource(\"/Items/Pillar.png\"));\n\t\t\tscaledImage = image;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed to read Pillar image file: \" + e.getMessage());\n\t\t}\n\t}", "public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n BufferedImage resized = resizeImage(unsized,275,250, unsized.getType());\n frontPic.setIcon(new ImageIcon(resized));*/\n\n\t\t\tImage image = new Image(new File(side1).toURI().toString());\n\t\t\tImageView iv = new ImageView(image);\n\t\t\tLabel imageLabel = new Label(\"Image\");\n\t\t\timageLabel.setGraphic(iv);\n\t\t\treturn imageLabel;\n /*} catch (IOException ex) {\n System.out.println(\"Trouble reading from the file: \" + ex.getMessage());\n }\n return frontPic;*/\n }", "void selectImage(String path);", "public void getPictures(){\n\t\t\ttry{\n\t\t\t\timg = ImageIO.read(new File(\"background.jpg\"));\n\t\t\t\ttank = ImageIO.read(new File(\"Tank.png\"));\n\t\t\t\tbackground2 = ImageIO.read(new File(\"background2.png\"));\n\t\t\t\t\n\t\t\t\trtank = ImageIO.read(new File(\"RTank.png\"));\n\t\t\t\tboom = ImageIO.read(new File(\"Boom.png\"));\n\t\t\t\tboom2 = ImageIO.read(new File(\"Boom2.png\"));\n\t\t\t\tinstructions = ImageIO.read(new File(\"Instructions.png\"));\n\t\t\t\tshotman = ImageIO.read(new File(\"ShotMan.png\"));\n\t\t\t\tlshotman = ImageIO.read(newFile(\"LShotMan.png\"));\n\t\t\t\tboomshotman = ImageIO.read(new File(\"AfterShotMan\"));\n\t\t\t\tlboomshotman = ImageIO.read(new File(\"LAfterShotMan\"));\n\t\t\t\t\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.err.println(\"d\");\n\t\t\t}\n\t\t}", "public void loadImage() {\n\t\tif (images.containsKey(name)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString fullPath = BASE_PATH + this.sprite_sheet;\n\t\t\tFile imageFile = new File(fullPath);\n\t\t\tImage initialImage = ImageIO.read(imageFile);\n\t\t\tImage scaledImage = initialImage.getScaledInstance(\n\t\t\t\t\tMainPanel.TILE_SIZE, MainPanel.TILE_SIZE, 0);\n\n\t\t\tBufferedImage image = new BufferedImage(scaledImage.getWidth(null),\n\t\t\t\t\tscaledImage.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D imageGraphicsContext = image.createGraphics();\n\t\t\timageGraphicsContext.drawImage(scaledImage, 0, 0, null);\n\t\t\timageGraphicsContext.dispose();\n\t\t\timages.put(name, image);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not load image for\" + this.name);\n\t\t}\n\t}", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }", "public static BufferedImage load(String name) {\r\n\t\ttry {\r\n\t\t\tfinal BufferedImage org = ImageIO.read(Art.class.getResource(name));\r\n\t\t\tfinal BufferedImage res = new BufferedImage(org.getWidth(),\r\n\t\t\t\t\torg.getHeight(), BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tfinal Graphics g = res.getGraphics();\r\n\t\t\tg.drawImage(org, 0, 0, null, null);\r\n\t\t\tg.dispose();\r\n\t\t\treturn res;\r\n\t\t} catch (final Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "public ImageView loadTheMan()\n {\n try \n {\n Image theMan = new Image(new FileInputStream(\"theMan.jpg\"), 800, 800, true, true);\n ImageView theManView = new ImageView(theMan);\n theManView.setTranslateX(0);\n theManView.setTranslateY(-210);\n theManView.setScaleX(0.3);\n theManView.setScaleY(0.3);\n return theManView;\n } \n catch (FileNotFoundException ex) \n {\n Logger.getLogger(TycoonGUI.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "public void init() throws IOException\n\t{\n\t\tString pth = \"\";\n\t\tif(normal)\n\t\t{\n\t\t\tpth = \"Assets\\\\Art\\\\Tiles\\\\\";\n\t\t}\n\t\ttry\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+path));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+\"default.png\"));\n\t\t}\n\n\t\theight = texture.getImageHeight();\n\t\twidth = texture.getImageWidth();\n\t\tRandom rand = new Random();\n\t\tthis.identity = rand.nextInt();\n\t\ta = new AudioController();\n\t\t\n\t}", "private void initAreaImageFilm() {\n\n }", "private void readFile(){\n File file = new File(Environment.getExternalStorageDirectory()+\"/saved_images/profile.jpg\");\n myPictureForShow = BitmapFactory.decodeFile(file.getAbsolutePath());\n }", "public void cargarHashMap() throws IOException {\r\n\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.BUTTERFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/butterfly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.AMOEBA,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/amoeba.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGDIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.WALL,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/wall.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIRT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/dirt.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EMPTY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/empty.jpg\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.PLAYER,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/rockford.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.ROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FIREFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/firefly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.TITANIUM,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/steel.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EXIT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/exit.gif\")));\r\n\t\t//imagenes.put(\r\n\t\t\t//\tBDTile.EXPLOSION,\r\n\t\t\t\t//toolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t//\t.getResource(\"resources/explosion.gif\")));\r\n\r\n\t}", "java.lang.String getImage();", "private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }", "private void load_figure()\n {\n imageHumanPlayer.getChildren().clear();\n imageComputerPlayer_1.getChildren().clear();\n imageComputerPlayer_2.getChildren().clear();\n int capacity = humanPlayer.getHospitalScale();\n int capacity2 = computerPlayer_1.getHospitalScale();\n int capacity3 = computerPlayer_2.getHospitalScale();\n Image image_1 = new Image(\"file:hospital_\" + capacity + \".png\");\n Image image_2 = new Image(\"file:hospital_\" + capacity2 + \".png\");\n Image image_3 = new Image(\"file:hospital_\" + capacity3 + \".png\");\n ImageView imageView_1 = new ImageView(image_1);\n ImageView imageView_2 = new ImageView(image_2);\n ImageView imageView_3 = new ImageView(image_3);\n imageHumanPlayer.getChildren().add(imageView_1);\n imageComputerPlayer_1.getChildren().add(imageView_2);\n imageComputerPlayer_2.getChildren().add(imageView_3);\n\n }", "public Bitmap LoadFromFile(String _fullFilename) {\n\t //if (bmp != null) { bmp.recycle(); }\n\t BitmapFactory.Options bo = new BitmapFactory.Options();\t\t\n\t\t\n\t if( bo == null ) return null;\n\t \n\t if( controls.GetDensityAssets() > 0 )\n\t bo.inDensity = controls.GetDensityAssets();\n\t \n\t return BitmapFactory.decodeFile(_fullFilename, bo);\n }", "public static BufferedImage loadImage(String ref) {\n BufferedImage b1 = null;\n try {\n b1 = ImageIO.read(new File(ref));\n } catch (IOException e) {\n System.out.println(\"error loading the image: \" + ref + \" : \" + e);\n }\n return b1;\n }", "public HuffmanImage(String src) throws IOException {\n img = Files.readAllBytes(Paths.get(src));\n }", "WorldImage getImage();", "public void testRead() throws IOException\n {\n File file;\n Pic pic;\n\n file = new File(\"src/test/resources/pic/test.pic\");\n pic = Pic.read(new FileInputStream(file), 288, 128);\n assertNotNull(pic);\n assertEquals(new File(\"src/test/resources/pic/test.png\"), pic);\n }", "String getImage();", "public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "void setImageFromFile(File imageFile);", "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 }", "protected void setPic() {\n }", "public BufferedImage open() {\n\t\tJFileChooser choose = new JFileChooser(); //Removed path from the chooser!\n\n\t\tif (choose.showOpenDialog(null) != JFileChooser.APPROVE_OPTION)\n\t\t\treturn null;\n\t\tString file = choose.getSelectedFile().getAbsolutePath();\n\t\ttry {\n\t\t\tthis.x = 0;\n\t\t\tthis.y = 0;\n\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tString iden = \"\";\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\t\n\t\t\tif (iden.compareTo(\"PPL\") != 0)\treturn null;\n\t\t\tbyte by = ois.readByte();\n\t\t\tSystem.out.println(by);\n\t\t\t\n\t\t\tswitch (by) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.image = loadRGB(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.image = loadCMY(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.image = loadGS(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.image = loadBW(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.image = loadLT(ois);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tois.close();\n\t\t\t//int b = ois.readByte(); //lee 8 bits, lee -16, y no 240\n\t\t\t//si el bit mas significativo del byte antes de introducirse fue 1, el numero leido se interpreta como negativo\n\t\t\t//if(b < 0) b += 256; //para leer bytes sin signo\n\t\t\t//int i = ois.readInt(); //lee 32 bits, lee 3500\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public void test(String path){\n File file = new File(path);\n byte[] image = new byte[(int) file.length()];\n try {\n FileInputStream fis = new FileInputStream(file);\n fis.read(image); //read file into bytes[]\n\n fis.close();\n test(image);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public BufferedImage readImage() throws IOException{\n\t\tFile read = new File(\"src/blue_plate.png\");\n\t\t//decodes a supplied File and returns a BufferedImage\n\t\tBufferedImage master = ImageIO.read(read);\n\t\treturn master;\n\t\t\n\t}", "public ModelImage readImage(boolean one) throws IOException {\r\n // The data types are Sun, hence the byte order is big-endian.\r\n int i;\r\n int num; //image number within file\r\n\r\n boolean endianess = LITTLE_ENDIAN;\r\n\r\n try {\r\n file = new File(fileDir + fileName);\r\n raFile = new RandomAccessFile(file, \"r\");\r\n progressBar = new ViewJProgressBar(ViewUserInterface.getReference().getProgressBarPrefix() + fileName,\r\n ViewUserInterface.getReference().getProgressBarPrefix() + \"BioRad image(s) ...\", 0, 100,\r\n false, null, null);\r\n xDim = getSignedShort(endianess); // 0\r\n yDim = getSignedShort(endianess); // 2\r\n zDim = getSignedShort(endianess); // 4\r\n ramp1Min = (short)getSignedShort(endianess); // 6\r\n ramp1Max = (short)getSignedShort(endianess); // 8\r\n notes = getInt(endianess); // 10\r\n byteFormat = (short)getSignedShort(endianess); // 14\r\n num = (short)getSignedShort(endianess); // 16\r\n\r\n setProgressBarVisible(!one);\r\n\r\n for (i = 0; i < 32; i++) {\r\n name[i] = 0;\r\n }\r\n readAgain = true;\r\n i = 0;\r\n while(readAgain) {\r\n name[i++] = raFile.readByte(); // 18\r\n if (name[i-1] == 0) {\r\n readAgain = false;\r\n }\r\n }\r\n fName = new String(name,0,i-1);\r\n raFile.seek(50);\r\n merged = (short)getSignedShort(endianess); // 50\r\n color1 = getUnsignedShort(endianess); // 52\r\n fileID = getUnsignedShort(endianess); // 54\r\n if (fileID != 12345) {\r\n throw new IOException(\"fileID is an illegal \" + fileID);\r\n }\r\n ramp2Min = (short)getSignedShort(endianess); // 56\r\n ramp2Max = (short)getSignedShort(endianess); // 58\r\n color2 = getUnsignedShort(endianess); // 60\r\n edited = (short)getSignedShort(endianess); // 62\r\n lens = (short)getSignedShort(endianess); // 64\r\n magFactor = getFloat(endianess); // 66\r\n // Position to the start of the image data\r\n raFile.seek(76);\r\n\r\n fileInfo = new FileInfoBioRad(fileName, fileDir, FileBase.BIORAD); // dummy fileInfo\r\n fileInfo.setEndianess(endianess);\r\n if (zDim > 1) {\r\n imgExtents = new int [3];\r\n imgExtents[0] = xDim;\r\n imgExtents[1] = yDim;\r\n imgExtents[2] = zDim;\r\n }\r\n else {\r\n imgExtents = new int [2];\r\n imgExtents[0] = xDim;\r\n imgExtents[1] = yDim;\r\n }\r\n\r\n fileInfo.setExtents(imgExtents);\r\n if (byteFormat == 1) {\r\n dataType = ModelStorageBase.UBYTE;\r\n bufferSize = xDim*yDim;\r\n }\r\n else { // byteFormat == 0\r\n dataType = ModelStorageBase.SHORT;\r\n bufferSize = xDim*yDim;\r\n }\r\n /*else { // merged pseudocolor\r\n dataType = ModelStorageBase.ARGB;\r\n bufferSize = 4*xDim*yDim;\r\n }*/\r\n fileInfo.setDataType(dataType);\r\n\r\n if (one) {\r\n image = new ModelImage(dataType, new int[] {imgExtents[0], imgExtents[1]}, fileInfo.getFileName(), UI);\r\n zDim = 1;\r\n }\r\n else {\r\n image = new ModelImage(dataType, imgExtents, fileInfo.getFileName(), UI);\r\n }\r\n\r\n imgBuffer = new float[bufferSize];\r\n for (i = 0; i < zDim; i++){\r\n try {\r\n if (one && imgExtents.length > 2) {\r\n if (dataType == ModelStorageBase.UBYTE) {\r\n raFile.seek(imgExtents[2]/2*xDim*yDim);\r\n }\r\n else {\r\n raFile.seek(imgExtents[2]*xDim*yDim);\r\n }\r\n readBuffer(imgExtents[2]/2, imgBuffer);\r\n }\r\n else {\r\n readBuffer(i, imgBuffer); // Slice a time;\r\n }\r\n image.setFileInfo(fileInfo, i);\r\n }\r\n catch (IOException error){\r\n throw new IOException(\"FileTiff: read: \" + error);\r\n }\r\n image.importData(i*bufferSize, imgBuffer, false);\r\n } // for (i = 0; i < imageSlice; i++)\r\n\r\n raFile.close();\r\n progressBar.dispose();\r\n }\r\n catch (OutOfMemoryError error) {\r\n if (image != null) {\r\n image.disposeLocal();\r\n image = null;\r\n }\r\n byteBuffer = null;\r\n System.gc();\r\n throw error;\r\n }\r\n\r\n return image;\r\n }", "public Image getBassClef();", "public void loadImg(String pic)\n\t{\n\t\ttry\n\t\t{\n\t\t\timg = ImageIO.read( getClass().getResourceAsStream( pic + \".png\" ) );\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "private BufferedImage sacaFoto(String fo){\n File input = null;\n BufferedImage image = null;\n try{\n input = new File(fo);\n image = ImageIO.read(input);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la lectura de la imagen\");\n System.exit(1);\n }\n return image;\n }", "public void initSpriteSheet() {\n\t\tString url = \"https://amiealbrecht.files.wordpress.com/2016/08/set-cards.jpg?w=1250\";\n\n\t\tcimg = loadImage(url, \"png\");\n\t}", "private void loadImage() {\n try {\n background = ImageIO.read(new File(\"src/main/resources/background.jpg\"));\n } catch (IOException e) {\n System.out.println(\"Cannot load background image!\");\n }\n }", "public void setup() {\n\n\t\t// example of loading an image file - edit to suit your project\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"angrybirds.jpg\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// your code here\n\t\t\n\t\t\n\t}", "public static Image loadActor(String name) {\n\t\treturn loadBitmap(ACTORS_DIR + name);\n\t}", "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 }", "@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}", "public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }", "public void initialize()\r\n {\r\n ceresImage = new Image(\"Ceres.png\");\r\n erisImage = new Image(\"Eris.png\");\r\n haumeaImage = new Image(\"Haumea.png\");\r\n makemakeImage = new Image(\"MakeMake.png\");\r\n plutoImage = new Image(\"Pluto.png\");\r\n }", "abstract public void loadSprite();", "public Image call() throws IOException;", "public void loadImages() {\n\t\tpigsty = new ImageIcon(\"images/property/pigsty.png\");\n\t}", "private Images() {}", "public void load (){\n try{\n FileInputStream fis = new FileInputStream(\"game.data\");\n ObjectInputStream o = new ObjectInputStream(fis);\n for (int i = 0; i < 8; i++){\n for (int j = 0; j < 8; j++){\n String loaded = o.readUTF();\n if (loaded.equals(\"null\")){\n Tiles[i][j].removePiece();\n }else if (loaded.equals(\"WhiteLeftKnight\")){\n Tiles[i][j].setPiece(WhiteLeftKnight);\n }else if (loaded.equals(\"WhiteRightKnight\")){\n Tiles[i][j].setPiece(WhiteRightKnight);\n }else if (loaded.equals(\"WhiteLeftBishop\")){\n Tiles[i][j].setPiece(WhiteLeftBishop);\n }else if (loaded.equals(\"WhiteRightBishop\")){\n Tiles[i][j].setPiece(WhiteRightBishop);\n }else if (loaded.equals(\"WhiteLeftRook\")){\n Tiles[i][j].setPiece(WhiteLeftRook);\n }else if (loaded.equals(\"WhiteRightRook\")){\n Tiles[i][j].setPiece(WhiteRightRook);\n }else if (loaded.equals(\"WhiteQueen\")){\n Tiles[i][j].setPiece(WhiteQueen);\n }else if (loaded.equals(\"WhiteKing\")){\n Tiles[i][j].setPiece(WhiteKing);\n }else if (loaded.equals(\"WhitePromotedRookPawn\")){\n Rook WhitePromotedRookPawn = new Rook(\"WhitePromotedRookPawn\");\n WhitePromotedRookPawn.setIcon(WhiteRookImg);\n Tiles[i][j].setPiece(WhitePromotedRookPawn);\n }else if (loaded.equals(\"WhitePromotedBishopPawn\")){\n Bishop WhitePromotedBishopPawn = new Bishop(\"WhitePromotedBishopPawn\");\n WhitePromotedBishopPawn.setIcon(WhiteBishopImg);\n Tiles[i][j].setPiece(WhitePromotedBishopPawn);\n }else if (loaded.equals(\"WhitePromotedKnightPawn\")){\n Knight WhitePromotedKnightPawn = new Knight(\"WhitePromotedKnightPawn\");\n WhitePromotedKnightPawn.setIcon(WhiteKnightImg);\n Tiles[i][j].setPiece(WhitePromotedKnightPawn);\n }else if (loaded.equals(\"WhitePromotedQueenPawn\")){\n Queen WhitePromotedQueenPawn = new Queen(\"WhitePromotedQueenPawn\");\n WhitePromotedQueenPawn.setIcon(WhiteQueenImg);\n Tiles[i][j].setPiece(WhitePromotedQueenPawn);\n }else if (loaded.equals(\"BlackLeftKnight\")){\n Tiles[i][j].setPiece(BlackLeftKnight);\n }else if (loaded.equals(\"BlackRightKnight\")){\n Tiles[i][j].setPiece(BlackRightKnight);\n }else if (loaded.equals(\"BlackLeftBishop\")){\n Tiles[i][j].setPiece(BlackLeftBishop);\n }else if (loaded.equals(\"BlackRightBishop\")){\n Tiles[i][j].setPiece(BlackRightBishop);\n }else if (loaded.equals(\"BlackLeftRook\")){\n Tiles[i][j].setPiece(BlackLeftRook);\n }else if (loaded.equals(\"BlackRightRook\")){\n Tiles[i][j].setPiece(BlackRightRook);\n }else if (loaded.equals(\"BlackQueen\")){\n Tiles[i][j].setPiece(BlackQueen);\n }else if (loaded.equals(\"BlackKing\")){\n Tiles[i][j].setPiece(BlackKing);\n }else if (loaded.equals(\"BlackPromotedQueenPawn\")){\n Queen BlackPromotedQueenPawn = new Queen(\"BlackPromotedQueenPawn\");\n BlackPromotedQueenPawn.setIcon(BlackQueenImg);\n Tiles[i][j].setPiece(BlackPromotedQueenPawn);\n }else if (loaded.equals(\"BlackPromotedRookPawn\")){\n Rook BlackPromotedRookPawn = new Rook(\"BlackPromotedRookPawn\");\n BlackPromotedRookPawn.setIcon(BlackRookImg);\n Tiles[i][j].setPiece(BlackPromotedRookPawn);\n }else if (loaded.equals(\"BlackPromotedBishopPawn\")){\n Bishop BlackPromotedBishopPawn = new Bishop(\"BlackPromotedBishopPawn\");\n BlackPromotedBishopPawn.setIcon(BlackBishopImg);\n Tiles[i][j].setPiece(BlackPromotedBishopPawn);\n }else if (loaded.equals(\"BlackPromotedKnightPawn\")){\n Knight BlackPromotedKnightPawn = new Knight(\"BlackPromotedKnightPawn\");\n BlackPromotedKnightPawn.setIcon(BlackKnightImg);\n Tiles[i][j].setPiece(BlackPromotedKnightPawn);\n }else if (loaded.equals(\"WhitePawn0\")){\n Tiles[i][j].setPiece(WhitePawns[0]);\n }else if (loaded.equals(\"WhitePawn1\")){\n Tiles[i][j].setPiece(WhitePawns[1]);\n }else if (loaded.equals(\"WhitePawn2\")){\n Tiles[i][j].setPiece(WhitePawns[2]);\n }else if (loaded.equals(\"WhitePawn3\")){\n Tiles[i][j].setPiece(WhitePawns[3]);\n }else if (loaded.equals(\"WhitePawn4\")){\n Tiles[i][j].setPiece(WhitePawns[4]);\n }else if (loaded.equals(\"WhitePawn5\")){\n Tiles[i][j].setPiece(WhitePawns[5]);\n }else if (loaded.equals(\"WhitePawn6\")){\n Tiles[i][j].setPiece(WhitePawns[6]);\n }else if (loaded.equals(\"WhitePawn7\")){\n Tiles[i][j].setPiece(WhitePawns[7]);\n }else if (loaded.equals(\"BlackPawn0\")){\n Tiles[i][j].setPiece(BlackPawns[0]);\n }else if (loaded.equals(\"BlackPawn1\")){\n Tiles[i][j].setPiece(BlackPawns[1]);\n }else if (loaded.equals(\"BlackPawn2\")){\n Tiles[i][j].setPiece(BlackPawns[2]);\n }else if (loaded.equals(\"BlackPawn3\")){\n Tiles[i][j].setPiece(BlackPawns[3]);\n }else if (loaded.equals(\"BlackPawn4\")){\n Tiles[i][j].setPiece(BlackPawns[4]);\n }else if (loaded.equals(\"BlackPawn5\")){\n Tiles[i][j].setPiece(BlackPawns[5]);\n }else if (loaded.equals(\"BlackPawn6\")){\n Tiles[i][j].setPiece(BlackPawns[6]);\n }else if (loaded.equals(\"BlackPawn7\")){\n Tiles[i][j].setPiece(BlackPawns[7]);\n }\n }\n }\n player = o.readInt();\n if (player == 1){\n area.setText(\"\\t\\t\\tPlayer \"+player+\" (White)\");\n }else{\n area.setText(\"\\t\\t\\tPlayer \"+player+\" (Black)\");\n }\n o.close();\n OriginalColor();\n }catch (Exception ex){\n\n }\n }", "private void loadGame(String fileName){\n\n }", "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}", "public static Image getImage(String filename) \r\n \t{\r\n \r\n \t\tInputStream is = cl.getResourceAsStream(AA_RESOURCE_FILE_PATH + filename);\r\n \t\t\r\n \t\tif(is == null){\r\n \t\t\tSystem.out.println(\"Input stream is null\");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\treturn (ImageIO.read(is));\r\n \t\t} catch (Exception e) {\r\n \t\t\tlog.error(\"An exception occurred while reading the file: \"+filename);\r\n \t\t\tlog.error(e.getMessage());\r\n \t\t\te.printStackTrace();\r\n \t\t\treturn null;\r\n \t\t}\r\n \t}", "public void setImage( String s )\r\n {\r\n java.net.URL url = getClass().getResource( s );\r\n if ( url == null )\r\n {\r\n url = getClass().getResource( \"/\" + s );\r\n if ( url == null )\r\n {\r\n try\r\n { // for applications\r\n content = ImageIO.read( new File( s ) );\r\n }\r\n catch ( IOException ioe )\r\n {\r\n ioe.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n flush();\r\n\r\n }", "public void load() ;", "public static Image loadImageFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n return new Image(is);\n } catch (Exception e) {\n return null;\n }\n \n }", "public void setImage2(String file){ \n try {\n player = ImageIO.read(new File(file));\n } catch (IOException ex) {\n Logger.getLogger(GridSquarePanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.60826415", "0.5940747", "0.59329", "0.58537126", "0.5829875", "0.57399756", "0.5738403", "0.5732322", "0.57236034", "0.57164717", "0.56916946", "0.5658565", "0.56510496", "0.5627988", "0.56237257", "0.56131876", "0.555843", "0.55562866", "0.55304515", "0.55237466", "0.55224305", "0.55135816", "0.5497394", "0.5477381", "0.5469673", "0.54472494", "0.5443011", "0.54306746", "0.5424416", "0.54225963", "0.54122174", "0.53999317", "0.5388504", "0.5388023", "0.5386407", "0.5359071", "0.5357085", "0.5347466", "0.5345281", "0.5333787", "0.5328792", "0.5325907", "0.52965856", "0.5290259", "0.52892464", "0.5282241", "0.5281474", "0.52791095", "0.5269985", "0.5269047", "0.52663064", "0.52660555", "0.5254039", "0.52515256", "0.52366364", "0.5226535", "0.5209243", "0.52079123", "0.51959", "0.51956093", "0.5191744", "0.5190725", "0.51900166", "0.5189012", "0.51812124", "0.5164087", "0.5158135", "0.515566", "0.51545334", "0.5149335", "0.51472485", "0.514267", "0.51360327", "0.5132599", "0.5130933", "0.51301724", "0.5117002", "0.5116026", "0.51121205", "0.5095465", "0.50926024", "0.5092472", "0.50815105", "0.50788516", "0.5076525", "0.50732464", "0.5068242", "0.5060836", "0.5056284", "0.5054669", "0.50530595", "0.50517476", "0.50431967", "0.504044", "0.5039909", "0.5038762", "0.50356615", "0.50352764", "0.5027392", "0.5026016" ]
0.61157423
0
/ Access modifiers changed, original: protected|final
public final void beforeExecute(Thread thread, Runnable runnable) { super.beforeExecute(thread, runnable); try { if (this.a > 0) { thread.setPriority(this.a); return; } if (runnable instanceof w) { thread.setPriority(((w) runnable).a); } } catch (Throwable unused) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract Object mo26777y();", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private abstract void privateabstract();", "public final void mo51373a() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public abstract void mo70713b();", "protected void h() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void m50366E() {\n }", "public void method_4270() {}", "public abstract void mo27386d();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected abstract Set method_1559();", "public abstract void mo56925d();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract void mo27385c();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private Infer() {\n\n }", "private Get() {}", "private Get() {}", "@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 final void i() {\n }", "private TMCourse() {\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public final void mo91715d() {\n }", "protected Doodler() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\n public void get() {}", "@Override\n boolean isFinal() {\n return false;\n }", "public Methods() {\n // what is this doing? -PMC\n }", "public abstract void mo30696a();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public abstract void m15813a();", "@Override\n protected void init() {\n }", "public abstract String mo13682d();", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public abstract String mo41079d();", "@Override\n\tpublic void leti() \n\t{\n\t}", "private void ss(){\n }", "final void getData() {\n\t\t//The final method can't be overriden\n\t}", "public abstract Object mo1771a();", "@Override\n void init() {\n }", "public abstract void mo42329d();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public abstract void mo27464a();", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract String mo118046b();", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "private Unescaper() {\n\n\t}", "public abstract void mo35054b();", "private ChainingMethods() {\n // private constructor\n\n }", "public void myPublicMethod() {\n\t\t\n\t}", "public abstract void mo42331g();", "private URIs() {\r\n throw new IllegalAccessError();\r\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "private test5() {\r\n\t\r\n\t}", "@Override\r\n public void salir() {\n }", "private Util() { }", "protected Problem() {/* intentionally empty block */}", "private CommonMethods() {\n }", "private Singletion3() {}" ]
[ "0.7188292", "0.69440913", "0.67583746", "0.67421097", "0.6695834", "0.6595748", "0.6588323", "0.6538176", "0.6462649", "0.6439864", "0.64044964", "0.640002", "0.6365475", "0.6361452", "0.6354888", "0.6339893", "0.631317", "0.6310145", "0.6305046", "0.62962663", "0.6290889", "0.6287272", "0.6278733", "0.62739193", "0.6244431", "0.6229134", "0.6229134", "0.6218013", "0.6218013", "0.62009495", "0.6184897", "0.61794925", "0.61687404", "0.6167887", "0.61675704", "0.6159665", "0.6159665", "0.6157881", "0.614789", "0.614789", "0.6135493", "0.6135493", "0.613252", "0.6131892", "0.6121316", "0.6121123", "0.6116509", "0.6114024", "0.6112635", "0.611137", "0.6099282", "0.6089668", "0.6084239", "0.608028", "0.6078863", "0.60756654", "0.6072232", "0.6069283", "0.6060184", "0.60388976", "0.6025587", "0.6025445", "0.6023142", "0.6023088", "0.6019795", "0.6019666", "0.6007372", "0.60003793", "0.59998286", "0.59891224", "0.598773", "0.598724", "0.59852856", "0.59830844", "0.59769946", "0.5974814", "0.59723604", "0.59683144", "0.5968023", "0.5964807", "0.59615976", "0.5960101", "0.5950508", "0.5945421", "0.5938081", "0.59376884", "0.59324247", "0.5927691", "0.5927679", "0.5927524", "0.59264547", "0.5923561", "0.59146357", "0.5913351", "0.59126323", "0.5912199", "0.59087723", "0.5906827", "0.5906426", "0.5892068", "0.5890293" ]
0.0
-1
12. endsWith() Method: endsWith() method is used to check the last character or characters in a String. endsWith() method is used with Strings.Do not use it with "char". endsWith() method can be used with multiple characters as well. endsWith() method returns "boolean"
public static void main(String[] args) { String str = "Java is Java"; /* * System.out.println(str.endsWith("a"));//true * System.out.println(str.endsWith("x"));//false * System.out.println(str.endsWith("ava"));//true */ // 13. startsWith() : // startsWith() method is used to check the last character or characters in a // String. // startsWith() method is used with Strings.Do not use it with "char". // startsWith() method can be used with multiple characters as well. // startsWith() method returns "boolean" /* * System.out.println(str.startsWith("J"));// true * System.out.println(str.startsWith("Java")); //If you want to check the * character in a specific index do the following. * System.out.println(str.startsWith("i", 5)); //true * System.out.println(str.startsWith("is", 5));//true */ // 14. isEmpty() returns boolean. Inside parenthesis we don't use anything. Used // to check if String has zero character or not. // If a String has no any character , isEmpty() returns true , otherwise returns // false. /* * System.out.println(str.isEmpty());//false * * String str2 = "" ; System.out.println(str2.isEmpty());//true */ // 15.way: replace() method is used to change a specific character or characters // to another one . Strings are unchangeable. System.out.println(str.replace("a", "x")); System.out.println(str); System.out.println(str.replace("ava", "x")); System.out.println(str.replace("a", "xxxxxxxx")); //replace() method can be used to delete character or characters System.out.println(str.replace("ava", "")); //In replace method char and String both can be used. System.out.println(str.replace('a', 'x')); // System.out.println(str.replace('a', "x")); ==> char cannot be reverse to String or reverse of this. and char must be single character //16.replaceAll() method does the same with replace() method but there are some differences: //1.In replaceAll() you cannot use chars but in replace() you can. //2.In replaceAll() you can use "Regular Expression"s System.out.println(str.replaceAll("a", "x")); /* * Regular Expressions ==>1) \\s : space character * 2) \\S : all characters except space character * 3) \\w : a->z A->Z _ 0->9.. to change these characters to another ones, this method is possible to use * 4) \\W : All characters except a->z A->Z _ 0->9 * 5) \\d : 0->9 (just digits) * 6) \\D : All characters except 0->9 * * */ String str3 = "Java123 learn, earn_money!! ."; System.out.println(str3.replaceAll("\\s", "*")); System.out.println(str3.replaceAll("\\S", "*")); System.out.println(str3.replaceAll("\\w", "*")); System.out.println(str3.replaceAll("\\W", "&")); System.out.println(str3.replaceAll("\\d", "@")); System.out.println(str3.replaceAll("\\D", "+")); //17.way : replaceFirst() changes just the first occurrence of the character. System.out.println(str3.replaceFirst("a", "*")); //18.Way : substring() method is used to get a part of the String by using indexes. Index is inclusive. String str4 = "Java is the best"; System.out.println(str4.substring(3)); System.out.println(str4.substring(7)); // System.out.println(str4.substring(0)); and System.out.println(str4); are same. System.out.println(str4.substring(0)); //If you use last it returns last character because indexes used in substring() are inclusive System.out.println(str4.substring(15)); // If you use length in substring() method it returns "nothing" System.out.println(str4.substring(16)); //If you use any index greater than the length it returns "StringIndexOutOfBoundsException" //System.out.println(str4.substring(17)); /* Ask user to enter a String If the first and the last character of the String are same print "Woow!" on the console. Otherwise print "Hmmm!" on the console. */ Scanner scan = new Scanner ( System.in); System.out.println("Enter a String"); String strr = scan.nextLine(); //length()-1 ==> every time gives the last character String last = strr.substring(strr.length()-1); //substring() can be used with 2 parameters. //First parameter is starting index(inclusive) , second parameter is ending index(exclusive) String first = strr.substring(0, 1); if (last.equals(first)) { System.out.println("Wooow!"); }else { System.out.println("Hmmm!"); } String str5 ="Java is an OOP language"; System.out.println(str5.substring(5, 14));//is an OOP System.out.println(str5.substring(2, 4));//va //If starting end ending indexes are same , you get nothing System.out.println(str5.substring(2, 2));//nothing //In substring() method, starting index cannot be larger than ending index. //If you do it, you get StringIndexOutOfBoundsException" System.out.println(str5.substring(3, 2)); /* When we type codes we may get two types of error messages. 1) While you type code you may get "red underline",this type of error is called "Compile Time Error" 2) While you type code you do not get "red underline", but when you after run the code , you will get some red messages on the console. That kind of errors are called "Run Time Error" */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean endsWith(String suffix) {\n/* 371 */ return this.m_str.endsWith(suffix);\n/* */ }", "public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str2.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return str.endsWith(str2);\r\n }\r\n}", "public boolean endsWith(\n String... suffix\n ) {\n \t// TODO optimize\n int offset = size() - suffix.length;\n if (offset < 0) return false;\n for(\n int index = 0;\n index < suffix.length;\n index++\n ) {\n if(!suffix[index].equals(this.getSegment(offset+index).toClassicRepresentation())) return false;\n }\n return true; \n }", "private boolean isEndFound(String line) {\n\t\tif (end != null) {\n\t\t\tif (nothingAfterEnd) {\n\t\t\t\treturn line.endsWith(end);\n\t\t\t} else {\n\t\t\t\treturn line.contains(end);\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean endsWith(String value, String suffix) {\n if ((value == null) || (suffix == null)) {\n return false;\n }\n\n return value.endsWith(suffix);\n }", "public boolean endsWith(String suffix) {\n return path.endsWith(suffix);\n }", "private boolean endsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(str.length() - 1) == ' ';\r\n\t}", "static boolean endsWith(StringBuilder sb, String s) {\n if (sb == null && s == null)\n return true;\n if (sb == null && sb != null)\n return false;\n if (sb.length() < s.length())\n return false;\n String end = sb.substring(sb.length() - s.length());\n return end.equals(s);\n }", "public boolean endsWith(FilePath suffix) {\n return endsWith(suffix.path);\n }", "public static Boolean endsWith(File file, String[] endsWith) {\n\t\tBoolean goodFile = false;\n\t\tfor (String end : endsWith) {\n\t\t\tif (file.getName().toLowerCase().endsWith(end.toLowerCase())) {\n\t\t\t\tgoodFile = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn goodFile;\n\t}", "@Test\n public void whenEndsWithPrefixThenTrue() {\n char[] word = {'H', 'e', 'l', 'l', 'o'};\n char[] post = {'l', 'o'};\n boolean result = ArrayChar.endsWith(word, post);\n assertThat(result, is(true));\n }", "public static boolean endsWith (TextFragment textFragment,\r\n \t\tString substr)\r\n \t{\r\n \t\tif (textFragment == null)\r\n \t\t\treturn false;\r\n \t\tif (Util.isEmpty(substr))\r\n \t\t\treturn false;\r\n \r\n \t\tString st = textFragment.getCodedText();\r\n \r\n \t\tint pos = TextFragment.indexOfLastNonWhitespace(st, -1, 0, true, true, true, true);\r\n \t\tif (pos == -1)\r\n \t\t\treturn false;\r\n \r\n \t\treturn st.lastIndexOf(substr) == pos - substr.length() + 1;\r\n \t}", "public boolean isAccepted2(String word) {\r\n\t return word.endsWith(\"baa\");\r\n \r\n }", "public boolean endsWith(final byte[] string, final byte[] sub, final InputInfo info)\n throws QueryException {\n return indexOf(string(string), string(sub), false, true, info) != -1;\n }", "static Predicate<File> endsWith(String suffix) \r\n\t{\r\n\t\treturn f -> f.getPath().endsWith(suffix);\r\n\t}", "public boolean endsLy(String str) {\r\n return str.length() > 1 ? str.substring(str.length() - 2, str.length()).equals(\"ly\") : false;\r\n }", "@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}", "public void endCharacter() {\n\t\tString name = \"Tori\";\n\t\tboolean startWith = name.endsWith(\"ori\");\n\t\tif(startWith) {\n\t\t\tSystem.out.println(\"it ends with the character\");\n\t\t}\n\t}", "public static boolean hasTrailingChar(char c,String s) {\n \tif(s == null || s.length()==0) {\n \t\treturn false;\n \t}\n \treturn (s.charAt(s.length()-1) == c);\n }", "private boolean endsWithWhite(String str) {\r\n if ((str != null) &&\r\n (str.length() > 0) &&\r\n isWhitespace( str.charAt(str.length() - 1))) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean useSuffixPatternMatch()\n/* */ {\n/* 590 */ return this.suffixPatternMatch;\n/* */ }", "public static boolean isEnd () {\n if (index >= inputCharArray.length) return true;\n else return false;\n }", "private static boolean isSuffix_r(String text, String pattern)\n {\n if (pattern.length() == 0)\n return true;\n else if (pattern.length() > text.length())\n return false;\n else if (pattern.charAt(pattern.length() - 1) != text.charAt(text.length() - 1))\n return false;\n else\n return isSuffix_r(text.substring(0, text.length() - 1), pattern.substring(0, pattern.length() - 1));\n }", "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();\n int i = larger.length() - smaller.length();\n return ((larger.substring(i, larger.length())).equals(smaller));\n }", "public static String checkPathEnding(String path){\n\t\t\n\t\tpath.replace('\\\\', '/');\n\t\t\n\t\tif(path.endsWith(\"/\"))\n\t\t\treturn path;\n\t\telse\n\t\t\treturn path + \"/\";\n\t}", "boolean endTimeAfter(String start, String end) {\n SimpleDateFormat HHmm = new SimpleDateFormat(\"HH:mm\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startTime = HHmm.parse(start);\n Date endTime = HHmm.parse(end);\n c.setTime(startTime);\n return startTime.compareTo(endTime) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Time\");\n }\n return true;\n }", "private boolean findFullStop(ArrayList<String> parameters) {\n int index = findIndexOfLastWord(parameters);\n if (index == -1) {\n return false;\n }\n return true;\n }", "boolean hasEndLineNumber();", "public boolean isAtEnd()\n\t{\n\t\treturn (lineNow >= lineTime);\n\t}", "public void setEndStr(String endStr) {\r\n this.endStr = endStr;\r\n }", "boolean endDateAfter(String start, String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startDate = ddMMyyyy.parse(start);\n Date endDate = ddMMyyyy.parse(end);\n c.setTime(startDate);\n return startDate.compareTo(endDate) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return true;\n }", "private boolean endsWithAny(String fileName, String[] extensions) {\r\n\r\n\t\t// Loop through the list of supported extensions\r\n\t\tfor (int i = 0; i < extensions.length; i++) {\r\n\t\t\tif (fileName.endsWith(extensions[i])) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean hasIsEndOfSentence();", "default int findEnd(char[] buffer, int beginIndex, int endIndex) {\n return endIndex;\n }", "public String extraEnd(String str) {\r\n String lastTwoChars = str.substring(str.length() - 2);\r\n\r\n return lastTwoChars + lastTwoChars + lastTwoChars;\r\n }", "boolean truncateSuffix(final long lastIndexKept);", "private final boolean isEnd()\n {\n if (m_bufferOffset_ >= 0) {\n if (m_bufferOffset_ != m_buffer_.length()) {\n return false;\n }\n else {\n // at end of buffer. check if fcd is at the end\n return m_FCDLimit_ == m_source_.getLength();\n }\n }\n return m_source_.getLength() == m_source_.getIndex();\n }", "public boolean useTrailingSlashMatch()\n/* */ {\n/* 574 */ return this.trailingSlashMatch;\n/* */ }", "public Query endsWith(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.REGEX), key, value + \"$\");\n return this;\n }", "@Override\n\tpublic boolean isAtEnd()\n\t{\n\t\tif (right.isEmpty())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }", "public String withouEnd2(String str) {\r\n return str.length() > 2 ? str.substring(1, str.length() - 1) : \"\";\r\n }", "public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}", "public String theEnd(String str, boolean front) {\r\n return front && str.length() > 0 ? str.substring(0, 1) : str.substring(str.length() - 1,\r\n str.length());\r\n }", "public static Boolean endTimeAfterStart(String startTimeString, String endtimeString) {\n assert(isValidTime(startTimeString));\n assert(isValidTime(endtimeString));\n\n int startTime = Integer.parseInt(startTimeString);\n int endTime = Integer.parseInt(endtimeString);\n if (startTime > endTime) {\n return false;\n } else {\n return true;\n }\n }", "boolean isEndInclusive();", "private boolean isEnd(String nextVal) throws java.io.IOException {\n\t\tif (Character.toString((char)PREPROCESSING).equals(nextVal)) {\n\t\t\tint pos = (int) reader.getFilePointer();\n\t\t\tthis.readUntilEndOfLine(nextVal.charAt(0));\n\t\t\tif (next.matches(\"^!end\"))\n\t\t\t\treturn true;\n\t\t\treader.seek(pos);\n\t\t}\n\t\treturn false;\n\n\t}", "public ArrayList<String> endsWithE() {\n return list;\n }", "public static boolean isVowel(String endChar){\n\t\tif(endChar.equalsIgnoreCase(\"a\") || endChar.equalsIgnoreCase(\"c\") || endChar.equalsIgnoreCase(\"s\") || endChar.equalsIgnoreCase(\"l\")){\n\t\t\t//If the word ends in a vowel\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//If the word ends in a consonant\n\t\t\treturn false;\n\t\t}\n\t}", "private static boolean lastEmailFieldTwoCharsOrMore(String emailAddress) {\r\n\t\tif (emailAddress == null)\r\n\t\t\treturn false;\r\n\t\tStringTokenizer st = new StringTokenizer(emailAddress, \".\");\r\n\t\tString lastToken = null;\r\n\t\twhile (st.hasMoreTokens()) {\r\n\t\t\tlastToken = st.nextToken();\r\n\t\t}\r\n\t\tif (lastToken.length() >= 2) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasEndPosition();", "boolean hasEndPosition();", "public static int wordsEndsWithSubstring(String s, String substring) {\n\t\tint yeehaw=0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif(s.charAt(i)==' ' && i-substring.length()>-1) {\n\t\t\t if(s.substring(i-substring.length(), i).equals(substring)) {\n\t\t\t\t yeehaw++;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\treturn yeehaw;\n\t}", "String getIfEnd();", "public abstract boolean containsUppercaseLetters(String str);", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public int lastIndexOf(String str, int fromIndex) {\n/* 615 */ return this.m_str.lastIndexOf(str, fromIndex);\n/* */ }", "boolean validateLastName(String Last_name) {\n\t\treturn true;\n\n\t}", "public int lastIndexOf(int ch, int fromIndex) {\n/* 492 */ return this.m_str.lastIndexOf(ch, fromIndex);\n/* */ }", "public String getEndStr() {\r\n return endStr;\r\n }", "public boolean useRegisteredSuffixPatternMatch()\n/* */ {\n/* 610 */ return this.registeredSuffixPatternMatch;\n/* */ }", "public void setEndAt(String endAt) {\n this.endAt = endAt == null ? null : endAt.trim();\n }", "private boolean isAtEnd() {\n return peek().type == EOF;\n }", "boolean isOutOfDate(String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n Date current = c.getTime();\n current.setTime(current.getTime() - 86400000);\n try {\n Date endDate = ddMMyyyy.parse(end);\n return (endDate.compareTo(current) < 0);\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return false;\n }", "@Test\n\tpublic void testareFirstAndLastTwoCharactersTheSame_BasicNegative() \n\t{\n\t\tassertFalse(helper.areFirstAndLastTwoCharactersTheSame(\"ABCD\"));\n\t}", "protected boolean acceptInternal(Object propertyValue) {\r\n if (propertyValue == null && value == null) {\r\n return true;\r\n }\r\n if (propertyValue != null\r\n && value != null\r\n && ((String) propertyValue).endsWith(value)) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean getIsEndOfSentence();", "int endStatement(String theStr){\n char last = theStr.charAt(theStr.length() - 1);\n // if statement that determines if statement has ended properly\n if(last == ';' || last == '{' || last == '(' || last == ')' || last =='}' ){\n return 1;\n }else {\n JOptionPane optionPane = new JOptionPane(\"The test program cannot be generated by the Demo function.\" +\n \" User is missing an end statement.\",\n JOptionPane.ERROR_MESSAGE);\n JDialog dialog = optionPane.createDialog(\"Failure\");\n dialog.setAlwaysOnTop(true);\n dialog.setVisible(true);\n return 0;\n }\n }", "public boolean validateLastName() {\n\t\treturn this.getLastName().length() > 0 && this.getLastName().length() <= 20;\n\t}", "public static String stripEnding(final String s, final String ending)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t// Stripping a null or empty string from the end returns the\n\t\t// original string.\n\t\tif (ending == null || \"\".equals(ending))\n\t\t{\n\t\t\treturn s;\n\t\t}\n\t\tfinal int endingLength = ending.length();\n\t\tfinal int sLength = s.length();\n\n\t\t// When the length of the ending string is larger\n\t\t// than the original string, the original string is returned.\n\t\tif (endingLength > sLength)\n\t\t{\n\t\t\treturn s;\n\t\t}\n\t\tfinal int index = s.lastIndexOf(ending);\n\t\tfinal int endpos = sLength - endingLength;\n\n\t\tif (index == endpos)\n\t\t{\n\t\t\treturn s.substring(0, endpos);\n\t\t}\n\n\t\treturn s;\n\t}", "private boolean isEndLineSpace(final String message) {\n\t\treturn message.contains(\"A line should not end with blank space\"); //$NON-NLS-1$\n\t}", "public abstract boolean shouldEnd();", "protected abstract boolean definitelyNotLastLine(String message);", "String getSuffix();", "public boolean isEnd(T msg)\n\t{\n\t\treturn false;\n\t}", "@Test\n public void LastName_WhenShort_ShouldReturnFalse() {\n RegexTest valid = new RegexTest();\n boolean result = valid.lastName(\"jamkhandi\");\n Assert.assertEquals(false,result);\n }", "public boolean endOfText () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n textEnded = true;\n }\n return textEnded;\n }", "public boolean contains(String i){\r\n return stream().anyMatch(item -> (item.name.endsWith(i)));\r\n }", "@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}", "public static boolean determineSuffixtype(String suffix){\n\t\t/*\n\t\t * First character\n\t\t * True: vowel\n\t\t * False: consonant\n\t\t */\n\t\tString firstchar = suffix.substring(0, 1);\n\t\tif(isVowel(firstchar)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isLast() {\n return !hasNext();\n }", "static int findEndOfString(String sb) {\n/* */ int result;\n/* 216 */ for (result = sb.length(); result > 0 && \n/* 217 */ Character.isWhitespace(sb.charAt(result - 1)); result--);\n/* */ \n/* */ \n/* */ \n/* 221 */ return result;\n/* */ }", "@Test\n public void shouldFindSubstringAtTheEndOfTheStringAfterOneCharacterPartialMatch() {\n // Given\n String string = \"AABc\";\n CharSequence charSequence = new StringBuilder(\"ABc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertTrue(containsCharSequence);\n }", "public Boolean safeEnd()\n\t{\n\t\treturn safeEnd;\n\t}", "public static Boolean endOnTheSameDay(String startTimeString, String durationString) {\n assert(isValidTime(startTimeString));\n assert(isValidDuration(durationString));\n\n int startTime = Integer.parseInt(startTimeString);\n int duration = Integer.parseInt(durationString);\n int endTime = startTime + 100 * duration;\n if (endTime > 2359) {\n return false;\n } else {\n return true;\n }\n }", "public boolean endOfInput() {\n \tif((tmpPosition<totalLength)&&(IsOk)){\n \t//\tSystem.out.println(\"Am returnat ok\");\n \t\treturn false;\n\t\t\t\n \t}\n\t\telse\n\t\t\treturn true;\n \t\n }", "@Override\n\tprotected void testForTrailingText() {\n\t\tif (this.thisSentence.length() > 0) {\n\t\t\tthis.trailingSentence = true;\n\t\t\tsaveToken();\n\t\t\tsaveSentence();\n\t\t} else {\n\t\t\t//The tentative sentence must be saved (and cleared) - Notify the processor of this new sentence\n\t\t\tgetProcessor().processNlSentence(this.tentativeSentence);\n\t\t\tthis.tentativeSentence = null;\n\t\t}\n\t}", "public boolean getEnd()\n\t{\n\t\treturn getBooleanIOValue(\"End\", true);\n\t}", "public int lastIndexOf(int ch) {\n/* 464 */ return this.m_str.lastIndexOf(ch);\n/* */ }", "public boolean hasBad(String str) {\r\n String word = \"bad\";\r\n\r\n int indexOf = str.lastIndexOf(word);\r\n return indexOf == 0 || indexOf == 1;\r\n }", "private static boolean checkFirstLastTag(String line) {\n return line.charAt(1) != line.charAt(line.length() - 2);\n }", "static boolean isSubSequence(String keyword, String task, int keywordLength, int taskLength) {\n if (keywordLength == 0) {\n return true;\n }\n\n if (taskLength == 0) {\n return false;\n }\n\n // If last characters of two strings are matching\n if (keyword.charAt(keywordLength - 1) == task.charAt(taskLength - 1)) {\n return isSubSequence(keyword, task, keywordLength - 1, taskLength - 1);\n }\n\n // If last characters are not matching\n return isSubSequence(keyword, task, keywordLength, taskLength - 1);\n }", "public static boolean isTimeAfter(String time)\n\t{\n\t\treturn isTimeAfter(time, getDateTimeFormat());\n\t}", "public int mo131899b(String str) {\n return super.lastIndexOf(str);\n }", "public boolean getEnd(){\n\t\treturn this.isEnd;\n\t}", "private boolean reachedEnd() {\n return current >= source.length();\n }", "public static String getEnd(String town){\n\t\treturn Character.toString(town.charAt(1));\n\t}", "private static boolean isTailChar(char ch) {\n if(ch == OLD_TAIL_CHAR || ch == NEW_TAIL_CHAR){\n return true;\n }else{\n return false;\n }\n }", "void isLastPosition(boolean isLastPosition);", "public boolean validateLastNameLength() {\n if (lastName.length() < 2) {\n return false;\n }\n return true;\n }" ]
[ "0.8289038", "0.7866757", "0.74961644", "0.7291921", "0.71912634", "0.7167998", "0.70007426", "0.69737464", "0.6961963", "0.6852409", "0.68319666", "0.665423", "0.6599714", "0.6576059", "0.65559083", "0.6415779", "0.62357837", "0.61410576", "0.60636127", "0.60576695", "0.6043875", "0.59771097", "0.59707963", "0.5952954", "0.59214604", "0.59070057", "0.5848624", "0.5838623", "0.58175033", "0.58137304", "0.5744187", "0.57264465", "0.5658423", "0.5630417", "0.5623524", "0.56113106", "0.5552542", "0.5507445", "0.55009645", "0.54982203", "0.5479013", "0.54775256", "0.54517555", "0.5450204", "0.5444987", "0.5441189", "0.5425749", "0.54235417", "0.5395056", "0.53793806", "0.5351503", "0.5351503", "0.5320149", "0.53026885", "0.5302649", "0.53006816", "0.52981573", "0.5296537", "0.52862287", "0.52745503", "0.52725154", "0.5266473", "0.5257804", "0.52417827", "0.52394533", "0.5237908", "0.52376336", "0.52297544", "0.5218283", "0.5188303", "0.51850355", "0.5183275", "0.5175853", "0.51754826", "0.51712126", "0.51644224", "0.51612437", "0.515596", "0.51533103", "0.5152753", "0.51463926", "0.5142053", "0.51414025", "0.51277465", "0.51251423", "0.51204866", "0.5116727", "0.5110061", "0.5085849", "0.5077914", "0.5064853", "0.5060486", "0.5031893", "0.50307125", "0.5029766", "0.5024184", "0.50214154", "0.50170827", "0.5003158", "0.49988544" ]
0.53987074
48
Constructs an CheckerBoardCommand based on the model to manipulate and the view that will reflect these changes.
public CheckerBoardCommand(IMultiLayerExtraOperations model, GUIView frame) throws IllegalArgumentException { super(model, frame); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BoardView(GameController controller, Text state, Rectangle sideRect,\n Text sideStatus, RadioMenuItem playerGameMenuItem, Text tType,\n Label whitePiecesEaten, Label blackPiecesEaten,\n ObservableList<String> moveHistory, Label lblCurrentPiece) {\n\n this.controller = controller;\n this.state = state;\n this.sideRect = sideRect;\n this.sideStatus = sideStatus;\n\n this.playerGameMenuItem = playerGameMenuItem;\n\n this.tType = tType;\n\n this.whitePiecesEaten = whitePiecesEaten;\n this.blackPiecesEaten = blackPiecesEaten;\n\n this.moveHistory = moveHistory;\n this.lblCurrentPiece = lblCurrentPiece;\n\n tiles = new Tile[8][8];\n gridPane = new GridPane();\n gridPane.setStyle(\"-fx-background-color : darkcyan;\");\n reset(controller);\n\n isFirstClick = true;\n hasStarted = false;\n promotionEventHappened = false;\n }", "Board(Board model) {\r\n copy(model);\r\n }", "public Presenter(Model model, View view)\r\n\t{\r\n\t\tthis.myModel=model;\r\n\t\tthis.myView=view;\r\n\t\tConcurrentHashMap<String, RemoteControlCommand> commandMap=new ConcurrentHashMap<String, RemoteControlCommand>(); \r\n\t\tcommandMap.put(\"connection status\", new CheckConnectionStatus());\r\n\t\tcommandMap.put(\"disconnect user\", new DisconnectUser());\r\n\t\tcommandMap.put(\"start server\",new StartServer());\r\n\t\tcommandMap.put(\"stop server\", new StopServer());\r\n\t\tcommandMap.put(\"exit\", new exit());\r\n\r\n\t\tmyView.setCommands(commandMap);\r\n\t}", "public BoardController(BoardModel data) {\n this.data = data;\n }", "public BoardView(Controller controller)\r\n {\r\n this.controller = controller;\r\n controller.addChangeListener(this);\r\n \r\n addMouseMotionListener(new MouseMotionAdapter()\r\n {\r\n \r\n @Override\r\n public void mouseMoved(MouseEvent e)\r\n {\r\n moved(e);\r\n }\r\n });\r\n \r\n addMouseListener(new MouseAdapter()\r\n {\r\n \r\n @Override\r\n public void mousePressed(MouseEvent e)\r\n {\r\n pressed(e);\r\n }\r\n });\r\n }", "private CommandView(CommandViewBuilder builder)\n\t{\n\t\tthis.commandBlock = builder.commandBlock;\n\t\tthis.textColor = builder.textColor;\n\t\tthis.backgroundColor = builder.backgroundColor;\n\t\tthis.highlightColor = builder.highlightColor;\n\t\t\n\t\tthis.root = new Group();\n\t\t\n\t\tconfigureViewAppearance();\n\t\tconfigureEventListeners();\n\t}", "public GameView(GameModel gameModel, GameController gameController) {\n \n // ADD YOU CODE HERE\n\n this.gameModel=gameModel;\n\n setTitle(\"MineSweeper it -- the ITI 1121 version\");\n\n // For minesweeper matrix\n JPanel p1 = new JPanel();\n p1.setLayout(new GridLayout(gameModel.getHeigth(),gameModel.getWidth(),0,0));\n\n board = new DotButton[gameModel.getHeigth()][gameModel.getWidth()];\n\n // Integer temp used to store the tile's setActionCommand number so we can identify which tile is being clicked\n int temp=0;\n\n // Adding buttons to board matrix\n for (int i=0; i<gameModel.getHeigth(); i++) {\n\n for (int j=0; j<gameModel.getWidth(); j++) {\n\n board[i][j] = new DotButton(j,i,11);\n\n board[i][j].setPreferredSize(new Dimension(28,28));\n \n board[i][j].addActionListener(gameController);\n board[i][j].setActionCommand(Integer.toString(temp));\n \n temp++;\n\n p1.add(board[i][j]);\n \n }\n \n }\n\n // For buttons and text field\n JPanel p2 = new JPanel();\n\n JButton reset = new JButton(\"Reset\");\n reset.addActionListener(gameController);\n \n JButton quit = new JButton(\"Quit\");\n quit.addActionListener(gameController);\n\n nbreOfStepsLabel = new JLabel(\"Number of steps: \" + Integer.toString(gameModel.getNumberOfSteps()));\n\n p2.add(nbreOfStepsLabel);\n p2.add(reset);\n p2.add(quit);\n \n // Frame related stuff\n add(p1, BorderLayout.NORTH);\n add(p2, BorderLayout.SOUTH);\n pack();\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setResizable(false); // Window isn't resizable so it doesnt look bad when stretched out\n setVisible(true);\n }", "public AbstractBoardView() {\n\n }", "public void buildModel() {\r\n\t\tmRecursiveBoard = new RecursiveGameModelDecorator[boardSize][boardSize];\r\n\t\tmPanes = new JPanel[boardSize][boardSize];\r\n\t\t// Recursive game is composed of other games, create the actual model now\r\n\t\tfor (int i = 0; i < boardSize; i++) {\r\n\t\t\tfor (int j = 0; j < boardSize; j++) {\r\n\t\t\t\tmRecursiveBoard[i][j] = new RecursiveGameModelDecorator(new GameModel(boardSize*i+j), false);\r\n\t\t\t\tmPanes[i][j] = new JPanel();\r\n\t\t\t\tmPanes[i][j].setPreferredSize(new Dimension(105, 105));\r\n\t\t\t\tmPanes[i][j].setBorder(new LineBorder(boardSize*i+j == mTargetSubjectId ? Color.CYAN : Color.BLACK, 2));\r\n\t\t\t\tObject list = mRecursiveBoard[i][j].getBoard();\r\n\t\t if (list != null && list.getClass().isAssignableFrom(ArrayList.class)) {\r\n\t\t \tList cells = (List)list;\r\n\t\t \tfor (Object cell : cells) {\r\n\t\t \t\tif (OXOCell.class.isInstance(cell)) {\r\n\t\t \t\t\tmPanes[i][j].add(((OXOCell)cell).getUiCell());\r\n\t\t \t\t\t// This is very IMPORTANT - the play() events MUST be handled by single model, \r\n\t\t \t\t\t// and re-distributed to child models according the Recursive OXO logic.\r\n\t\t \t\t\t// Thus I have to override the default model in Cell with the common model, that is as parameter\r\n\t\t \t\t\t((OXOCell)cell).setModel(this); \r\n\t\t \t\t\t((OXOCell)cell).setSubjectId(boardSize*i+j);\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t }\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ChessboardView() {\n\t\t\n\t\tcontroller = new ChessController(this);\n\t\t\n\t\tsetLayout(new GridLayout(10, 10));\n\t\t\n\t\t// creo i bottoni (caselle della scacchiera)\n\t\tcreateButtons();\n\t\t\n\t\t// assegno componenti alla griglia (buttons e labels)\n\t\taddComponents();\n\t}", "public BuilderView(Model model, JPanel parent, BuilderApplication app) {\n\t\tsuper();\n\t\tthis.model = model;\n\t\tthis.cardLayoutPanel = parent;\n\t\tthis.bgColor = new Color(178, 34, 34);\n\t\tthis.app = app;\n\t\tthis.labelFont = new Font(\"Times New Roman\", Font.BOLD, 18);\n\t\tsetBackground(new Color(102,255,102));\n\t\tinitialize();\n\t}", "public ButtonPanel(NoughtsCrossesModel model) {\n\t\tsuper();\n\n\t\tthis.model = model;\n\n\t\tthis.reset = new JButton(\"New Game\");\n\t\treset.setEnabled(false);\n\t\treset.addActionListener(e -> model.newGame());\n\n\t\tthis.exit = new JButton(\"Exit\");\n\t\texit.setEnabled(false);\n\t\texit.addActionListener(e -> {\n\t\t\tSwingUtilities.getWindowAncestor(this).dispose();\n\t\t\tmodel.exitGame();\n\t\t});\n\n\t\tadd(reset);\n\t\tadd(exit);\n\t}", "public CheckerBoard(){\n mCheckerBoard = new ArrayList<>(64);\n }", "public AbstractBoardView(BoardEditor boardEditor) {\n this.board = new Board();\n this.boardEditor = boardEditor;\n this.initialize();\n }", "public TaskBoardModel() {\n\n }", "public GameView(GameModel model, GameController controller) {\n\t\tsuper(\"Puzzler\");\n\t\tSystem.out.println(\"view\");\n\t\t\n \tthis.model = model;\n \tthis.controller = controller;\n\t\t\n\t\tsize = model.getSize();\n\t\t\n\t\t// 1 is small icons and 2 is medium\n\t\tif (size > 25)\n\t\t\tdotSize = 1;\n\t\telse\n\t\t\tdotSize = 2;\n\t\t\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBackground(Color.WHITE);\n\n\n\t\t// Updates and Shows The Number of Steps \n\t\tnumberofsteps= new JLabel(\" Number of steps: \" + 0);//model.getNumberOfSteps());\n\n\t\t// Reset Button\n\t\tJButton reset = new JButton(\"reset\");\n\t\treset.setFocusPainted(false);\n\t\treset.addActionListener(controller);\n\n\t\tJButton quit= new JButton(\"quit\");\n\t\tquit.setFocusPainted(false);\n\t\tquit.addActionListener(controller);\n\n\t\t// Create Dot Panel\n\t\tJPanel dotPanel = new JPanel();\n\t\tdotPanel.setBackground(Color.WHITE);\n\t\tdotPanel.setLayout(new GridLayout(size+1, size));\n\t\tdotPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 0, 20));\n\t\t\n\t\t// Create Dot Selection Panel\n\t\tJPanel selectPanel = new JPanel();\n\t\tselectPanel.setBackground(Color.WHITE);\n\t\tselectPanel.setLayout(new GridLayout(1, 3));\n\t\t\n\t\t// Create Dot options Panel\n\t\tJPanel optionsPanel = new JPanel();\n\t\toptionsPanel.setBackground(Color.WHITE);\n\t\toptionsPanel.setLayout(new GridLayout(1, 3));\n\t\t\n\t\t// Create Selection Dots\n\t\tDotButton d0 = new DotButton(0, 0, 0, 3);\n\t\tDotButton d1 = new DotButton(0, 1, 1, 3);\n\t\tDotButton d2 = new DotButton(0, 2, 2, 3);\n\t\tDotButton d3 = new DotButton(0, 3, 3, 3);\n\t\tDotButton d4 = new DotButton(0, 4, 4, 3);\n\t\tDotButton d5 = new DotButton(0, 5, 5, 3);\n\t\t\n\t\t// Add action listeners\n\t\td0.addActionListener(controller);\n\t\td1.addActionListener(controller);\n\t\td2.addActionListener(controller);\n\t\td3.addActionListener(controller);\n\t\td4.addActionListener(controller);\n\t\td5.addActionListener(controller);\n\t\t\n\t\t// Add selection buttons to panel\n\t\tselectPanel.add(d0);\n\t\tselectPanel.add(d1);\n\t\tselectPanel.add(d2);\n\t\tselectPanel.add(d3);\n\t\tselectPanel.add(d4);\n\t\tselectPanel.add(d5);\n\t\t\n\t\t// Add options buttons\n\t\toptionsPanel.add(numberofsteps);\n\t\toptionsPanel.add(reset);\n\t\toptionsPanel.add(quit);\n\t\t\n\t\t\n\t\t// Add buttons\n\t\tdots = new DotButton[size][size];\n\t\taddDots(dotPanel);\n\t\t\n\t\t// Add panels to frame\n\t\tadd(dotPanel);\n\n\t\t//adding two south panels to frame \n\t\tJPanel southPanel=new JPanel();\n\t\tsouthPanel.setLayout(new GridLayout(2, 6));\n\t\tsouthPanel.add(selectPanel,BorderLayout.NORTH);\n\t\tsouthPanel.add(optionsPanel,BorderLayout.SOUTH);\n\t\tadd(southPanel,BorderLayout.SOUTH);\n\n\t\tpack();\n\t\tsetResizable(false);\n\t\tsetVisible(true);\t\n }", "@Override public void widgetSelected(SelectionEvent arg0) {\n\t\t\t if((gameAlive == false)&&(! (domain.getText().isEmpty()))&&(! algorithm.getText().isEmpty())&&(! hardLevel.getText().isEmpty())) {\r\n\t\t\t\t //get selected combos and start conversation with the model\r\n\t\t\t\t String s = \"SelectGame \"+domain.getText()+\":\"+hardLevel.getText()+\",SelectAlgoritm \"+algorithm.getText()+\",play\";\r\n\t\t\t\t actions = s.split(\",\");\r\n\t\t\t\t gameAlive = true;\r\n\t\t\t\t if(domain.getText().equals(\"TicTacToe\")) {\r\n\t\t\t\t\t board = new TicTacToeCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t\t// board.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));\r\n\t\t\t\t }\r\n\t\t\t\t else if(domain.getText().equals(\"Reversi\")) {\r\n\t\t\t\t\t board = new ReversiCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t }\r\n\t\t\t\t try {\r\n\t\t\t\t\t startView();\r\n\t\t\t\t } catch (IOException e) {\r\n\t\t\t\t\t getExeptionMessage(e.getMessage());\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }", "public RefreshBoardCommand(Board board) {\n\t\tsuper();\n\t\tthis.board = board;\n\t}", "public void buildModel() {\n }", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "public EditActivityPanel(Model model, ButtonListener bL, Activity a) {\r\n\t\tthis.a = a;\r\n\t\tthis.model = model;\r\n\t\tthis.bL = bL;\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tgbc = new GridBagConstraints();\r\n\t\tgbc.fill = GridBagConstraints.BOTH;\r\n\r\n\t\tgbc.insets = new Insets(5, 5, 5, 5);\r\n\t\tgbc.anchor = GridBagConstraints.LINE_START;\r\n\t\tgbc.fill = GridBagConstraints.BOTH;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 1;\r\n\t\t\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJLabel pName = new JLabel(\"Activity Name:\");\r\n\t\tthis.add(pName, gbc);\r\n\r\n\t\tgbc.gridx = 2;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\r\n\t\tthis.name = new JTextField(a.getName());\r\n\t\tthis.add(name, gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 1;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJLabel expWorkloadLabel = new JLabel(\"Expected Workload:\");\r\n\t\tthis.add(expWorkloadLabel, gbc);\r\n\r\n\t\tthis.add(expWorkloadLabel, gbc);\r\n\r\n\t\tgbc.gridx = 2;\r\n\t\tgbc.gridy = 1;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\r\n\t\tthis.expWorkload = new JTextField(\"\" + a.getExpectedWorkload());\r\n\r\n\t\tthis.add(expWorkload, gbc);\r\n\t\t\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 2;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJLabel message = new JLabel(\"Description:\");\r\n\t\tthis.add(message,gbc);\r\n\t\t\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 3;\r\n\t\tgbc.gridwidth = 4;\r\n\t\tgbc.gridheight = 2;\r\n\t\tgbc.ipady = 50;\r\n\t\tString messageText = a.getMessageText();\r\n\t\tthis.messageArea = new JTextArea(messageText);\r\n\t\tmessageArea.setLineWrap(true);\r\n\t\tthis.add(new JScrollPane(messageArea), gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = GridBagConstraints.PAGE_END;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tgbc.ipady = 0;\r\n\t\tJButton confirm = new JButton(\"Confirm\");\r\n\t\tconfirm.addActionListener(bL);\r\n\r\n\t\tthis.add(confirm, gbc);\r\n\r\n\t\tgbc.gridx = 2;\r\n\t\tgbc.gridy = GridBagConstraints.PAGE_END;;\r\n\t\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJButton cancel = new JButton(\"Cancel\");\r\n\t\tcancel.addActionListener(bL);\r\n\r\n\t\tthis.add(cancel, gbc);\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 4;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJLabel e = new JLabel(\"Employees\");\r\n\t\tthis.add(e, gbc);\r\n\r\n\t\ttempEmployees = new ArrayList<Employee>();\r\n\t\taddedEmployees = new ArrayList<Employee>();\r\n\t\tthis.employees = new JComboBox<String>();\r\n\t\temployeesAddedBox = new JComboBox<String>();\r\n\r\n\t\tfor (int i = 0; i < model.employeeList.size(); i++) {\r\n\t\t\ttempEmployees.add(model.employeeList.get(i));\r\n\t\t\temployees.addItem(model.employeeList.get(i).getName());\r\n\t\t}\r\n\r\n\t\t// filling the addedEmployeeBox\r\n\t\temployeesAddedBox.addItem(\"Added employees\");\r\n\t\tfor (int i = 0; i < a.employeeList.size(); i++) {\r\n\t\t\temployeesAddedBox.addItem(a.employeeList.get(i).getName());\r\n\t\t\taddedEmployees.add(a.employeeList.get(i));\r\n\t\t\ttempEmployees.remove(a.employeeList.get(i));\r\n\t\t\temployees.removeItem(a.employeeList.get(i).getName());\r\n\t\t}\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 5;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tthis.add(employees, gbc);\r\n\r\n\t\tgbc.gridx = 2;\r\n\t\tgbc.gridy = 5;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tJButton addEmployee = new JButton(\"+\");\r\n\t\taddEmployee.addActionListener(bL);\r\n\t\tthis.add(addEmployee, gbc);\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 6;\r\n\t\tgbc.gridwidth = 2;\r\n\t\tgbc.gridheight = 1;\r\n\t\tthis.add(employeesAddedBox, gbc);\r\n\r\n\t\t// Label for added employees\r\n\t\tgbc.gridx = 2;\r\n\t\tgbc.gridy = 6;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tremoveEmp = new JButton(\"-\");\r\n\t\tremoveEmp.addActionListener(bL);\r\n\t\tthis.add(removeEmp, gbc);\r\n\r\n\t}", "public CommandViewBuilder(String commandBlock)\n\t\t{\n\t\t\tthis.commandBlock = commandBlock;\n\t\t}", "Board constantView() {\n return this.new ConstantBoard();\n }", "void copy(Board model) {\r\n if (model == this) {\r\n return;\r\n }\r\n init();\r\n }", "public CommonCommand(Controller controller) {\r\n\t\tsuper();\r\n\t\tthis.controller = controller;\r\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getActionCommand() == \"purchaser\") {\r\n ViewPurchaser viewPurchaser = new ViewPurchaser(purchaserDAO, purchaserBLL);\r\n }\r\n if (e.getActionCommand() == \"product\") {\r\n ViewProduct viewProduct = new ViewProduct(productBLL, productDAO, categoryBLL, categoryDAO, supplierBLL, supplierDAO);\r\n }\r\n if (e.getActionCommand() == \"category\") {\r\n ViewCategory viewCategory = new ViewCategory(categoryDAO, categoryBLL);\r\n }\r\n if (e.getActionCommand() == \"reforder\") {\r\n ViewReforder viewReforder = new ViewReforder(reforderDAO, reforderBLL);\r\n }\r\n if (e.getActionCommand() == \"order\") {\r\n ViewOrder viewOrder = new ViewOrder(orderDAO, orderBLL);\r\n }\r\n if (e.getActionCommand() == \"supplier\") {\r\n ViewSupplier viewSupplier = new ViewSupplier(supplierDAO, supplierBLL);\r\n }\r\n if (e.getActionCommand() == \"create\") {\r\n ViewCreateOrder viewCreateOrder=new ViewCreateOrder(purchaserBLL,purchaserDAO,productBLL,productDAO,orderBLL,orderDAO,reforderBLL,reforderDAO);\r\n }\r\n }", "public Logic(Model m){\r\n model = m;\r\n }", "private CommandBrocker() {}", "ImmutableBoard getImmutableView();", "public ExitWithoutSavingController(BuilderView builderView, JPanel parentPanel, Model model){\n\t\tthis.builderView = builderView;\n\t\tthis.parentPanel = parentPanel;\n\t\tthis.cardLayout = (CardLayout) parentPanel.getLayout();\n\t\tthis.model = model;\n\t}", "public SwitchboardView() {\r\n\t\tinitComponents();\r\n\r\n\t\tbtnDineIn.addActionListener(this);\r\n\t\tbtnTakeout.addActionListener(this);\r\n\t\tbtnPickup.addActionListener(this);\r\n\t\tbtnHomeDelivery.addActionListener(this);\r\n\t\tbtnDriveThrough.addActionListener(this);\r\n\t\tbtnBarTab.addActionListener(this);\r\n\r\n\t\tbtnEditTicket.addActionListener(this);\r\n\t\tbtnGroupSettle.addActionListener(this);\r\n\t\tbtnOrderInfo.addActionListener(this);\r\n\t\tbtnReopenTicket.addActionListener(this);\r\n\t\tbtnSettleTicket.addActionListener(this);\r\n\t\tbtnSplitTicket.addActionListener(this);\r\n\t\tbtnVoidTicket.addActionListener(this);\r\n\r\n\t\torderServiceExtension = Application.getPluginManager().getPlugin(OrderServiceExtension.class);\r\n\r\n\t\tif (orderServiceExtension == null) {\r\n\t\t\tbtnHomeDelivery.setEnabled(false);\r\n\t\t\tbtnPickup.setEnabled(false);\r\n\t\t\tbtnDriveThrough.setEnabled(false);\r\n\t\t\tbtnAssignDriver.setEnabled(false);\r\n\r\n\t\t\torderServiceExtension = new DefaultOrderServiceExtension();\r\n\t\t} else {\r\n\t\t\tbtnAssignDriver.setEnabled(true);\r\n\t\t\tbtnHomeDelivery.setEnabled(true);\r\n\r\n\t\t}\r\n\r\n\t\tapplyComponentOrientation(ComponentOrientation.getOrientation(Locale.getDefault()));\r\n\r\n\t\tinstance = this;\r\n\t}", "public AbstractBoardView(BoardEditor boardEditor, Board board) {\n this.board = board;\n this.boardEditor = boardEditor;\n this.initialize();\n }", "@SuppressWarnings(\"serial\")\n\tpublic JBView(JBModel m, JComponent c) {\n\t\tsuper(\"JabaGator\");\n\n\t\t// Get the resources for menus, buttons, etc. \n\t\tResourceBundle b = ResourceBundle.getBundle(\"GatorAid\");\n\n\t\tpanel = c;\n\n\t\tContainer cp = getContentPane();\n\n\t\tmodel = m;\n\n\t\tcp.setLayout(new BorderLayout());\n\n\t\t// Construct the JToolBar \n\t\ttoolBar = new JToolBar();\n\n\t\tcp.add(BorderLayout.NORTH, toolBar); \n\t\t\n\t\tfinal JPanel mainPanel = new JPanel();\n\t\tmainPanel.setPreferredSize(new Dimension(400, 300));\n\t\tcp.add(BorderLayout.CENTER, mainPanel);\n\t\tcp.add(BorderLayout.SOUTH,\n\t\t\tstatusLabel = new JLabel(\"Welcome to JabaGator\"));\n\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t// if (m.unsavedChanges())\n\t\t\t\t//\t\tdo a YesNoQuit dialog\n\t\t\t\t// meanwhile:\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\t// Construct the MENU part of the GUI\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\n\t\tJMenuItem mi;\n\t\tJMenu fm = I18N.mkMenu(b, \"file\");\n\t\tAction openAction = new IntlAction(\n\t\t\tb, \"file.open\", getJLFImageIcon(\"general/Open\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoadSaveSerial.getInstance().load(model);\n\t\t\t}\n\t\t};\n\t\tfm.add(openAction);\n\t\ttoolBar.add(openAction);\n\n\t\tAction newAction = new IntlAction(\n\t\t\tb, \"file.new\", getJLFImageIcon(\"general/New\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(JBView.this,\n\t\t\t\t\t\"Not Written Yet\", \"Not Written Yet\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t};\n\t\tfm.add(newAction);\n\t\ttoolBar.add(newAction);\n\n\t\tAction saveAction = new IntlAction(\n\t\t\tb, \"file.save\", getJLFImageIcon(\"general/Save\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoadSaveSerial.getInstance().save(model);\n\t\t\t}\n\t\t};\n\t\tfm.add(saveAction);\n\t\ttoolBar.add(saveAction);\n\n\t\tAction saveAsAction = new IntlAction(\n\t\t\tb, \"file.saveas\", getJLFImageIcon(\"general/SaveAs\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadSaveInstance.save(model);\n\t\t\t}\n\t\t};\n\t\tfm.add(saveAsAction);\n\t\ttoolBar.add(saveAsAction);\n\n\t\tAction printAction = new IntlAction(\n\t\t\tb, \"file.print\", getJLFImageIcon(\"general/Print\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoPrint(JBView.this);\n\t\t\t}\n\t\t};\n\t\tfm.add(printAction);\n\t\ttoolBar.add(printAction);\n\n\t\tfm.addSeparator();\n\t\tfm.add(mi = I18N.mkMenuItem(b, \"file\", \"exit\"));\n\t\tmi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tshutdown(JBView.this);\n\t\t\t}\n\t\t});\n\t\tmb.add(fm);\n\n\t\ttoolBar.addSeparator();\n\n\t\t// GRAPHICS ACTIONS\n\t\tAction circleAction = \n\t\t\tnew IntlAction(b, \"graphics.circle\", getMyImageIcon(\"Circle\")){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGOval g = new GOval();\n\t\t\t\tg.setLocation(100, 100);\n\t\t\t\tg.setSize(100, 100);\n\t\t\t\tmodel.add(g);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(circleAction);\n\n\t\tAction rectAction =\n\t\t\tnew IntlAction(b, \"graphics.rect\", getMyImageIcon(\"Rectangle\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGRect g = new GRect();\n\t\t\t\tg.setLocation(100, 100);\n\t\t\t\tg.setSize(100, 100);\n\t\t\t\tmodel.add(g);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(rectAction);\n\n\t\tAction drawLineAction =\n\t\t\tnew IntlAction(b, \"graphics.line\", getMyImageIcon(\"Line\")) {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tJOptionPane.showMessageDialog(JBView.this,\n\t\t\t\t\"Not written yet\", \"Not written yet\",\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(drawLineAction);\n\n\t\tAction textAction =\n\t\t\tnew IntlAction(b, \"graphics.text\", getMyImageIcon(\"Text\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = JOptionPane.showInputDialog(JBView.this,\n\t\t\t\t\t\"Text:\", \"Text\", JOptionPane.QUESTION_MESSAGE); \n\t\t\t\tif (text == null)\n\t\t\t\t\treturn;\n\t\t\t\tGText g = new GText();\n\t\t\t\tmodel.add(g);\n\t\t\t\tg.setLocation(100, 100);\n\t\t\t\tg.setText(text);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(textAction);\n\n\t\ttoolBar.addSeparator();\n\n\t\t// EDIT MENU AND ACTIONS\n\n\t\tJMenu em = I18N.mkMenu(b, \"edit\");\n\t\tmb.add(em);\n\n\t\tcutAction = \n\t\t\tnew IntlAction(b, \"edit.cut\", getJLFImageIcon(\"general/Cut\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.cut();\n\t\t\t\tpasteAction.setEnabled(true);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(cutAction);\n\t\tem.add(cutAction);\n\n\t\tcopyAction = \n\t\t\tnew IntlAction(b, \"edit.copy\", getJLFImageIcon(\"general/Copy\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.copy();\n\t\t\t\tpasteAction.setEnabled(true);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(copyAction);\n\t\tem.add(copyAction);\n\n\t\tpasteAction = \n\t\t\tnew IntlAction(b, \"edit.paste\", getJLFImageIcon(\"general/Paste\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.paste();\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(pasteAction);\n\t\tem.add(pasteAction);\n\n\t\tAction undoAction = \n\t\t\tnew IntlAction(b, \"edit.undo\", getJLFImageIcon(\"general/Undo\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.undo();\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(undoAction);\n\t\tem.add(undoAction);\n\t\tundoAction.setEnabled(false);\n\n\t\tAction deleteAction = \n\t\t\tnew IntlAction(b, \"edit.delete\", getJLFImageIcon(\"general/Delete\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.delete();\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(deleteAction);\n\t\tem.add(deleteAction);\n\n\t\tem.addSeparator();\n\t\tem.add(mi=I18N.mkMenuItem(b, \"edit\", \"attributes\"));\n\t\tmi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.editSelected();\n\t\t\t}\n\t\t});\n\n\t\tJMenu winMenu1 = I18N.mkMenu(b, \"window\");\n\t\tmb.add(winMenu1);\n\n\t\tJMenu palMenu = I18N.mkMenu(b, \"palettes\");\n\t\twinMenu1.add(palMenu);\n\t\t// palMenu.add(mi=I18N.mkCheckboxMenuItem(b, \"palettes\", \"paintstyle\", false));\n\n\t\tJMenu hm = I18N.mkMenu(b, \"help\");\n\t\tmb.add(hm);\n\t\t// mb.setHelpMenu(hm);\t\t// needed for portability (Motif, etc.).\n\n\t\tAction aboutAction = \n\t\t\tnew IntlAction(b, \"help.about\", getJLFImageIcon(\"general/About\")) {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tshowAboutBox(JBView.this);\n\t\t\t}\n\t\t};\n\t\ttoolBar.add(aboutAction);\n\n\t\t// Set initial state of actions\n\t\tpasteAction.setEnabled(false);\n\n\t\t// Add the JComponent into the main window.\n\t\tcp.add(BorderLayout.CENTER, c);\n\n\t\t// pack();\n\t}", "public AbstractCommandController(Class commandClass)\r\n/* 16: */ {\r\n/* 17:66 */ setCommandClass(commandClass);\r\n/* 18: */ }", "@Override\n\tpublic void execute(Model model) {\n\n\t\tBoardDao dao = new BoardDao();\n\t\tArrayList<BoardDto> dtos = dao.list();\n\t\t\n\t\tmodel.addAttribute(\"list\",dtos);\n\t}", "public void setModel(Board b) { model = b; repaint(); }", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public AffymetrixView(Controller controller) {\r\n\t\t// set the controller\r\n\t\tcontroller = new Controller(this);\r\n\r\n\t\t// set the layouts for the different panels\r\n\t\tmainpanel.setLayout(new GridBagLayout());\r\n\t\ttitlepanel.setLayout(new GridBagLayout());\r\n\t\ttoppanel.setLayout(new GridBagLayout());\r\n\r\n\t\t// call a new set of gridbagconstraints\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// setting the titlelabel and adding it to titlepanel\r\n\t\ttitlelabel.setText(\"Import Barcode output from 2 conditions.\");\r\n\t\ttitlelabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 12));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 30; // make this component tall\r\n\t\tc.ipadx = 20;\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 4;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 0;\r\n\t\ttitlepanel.add(titlelabel, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the condition1label label to toppanel\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridwidth = 1;\r\n\t\tc.ipady = 5;\r\n\t\tc.ipadx = 5;\r\n\t\ttoppanel.add(condition1label, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the inputcondition1field to toppanel\r\n\t\tc.gridx = 1;\r\n\t\ttoppanel.add(inputcondition1field, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the browsecondition1button to toppanel and adding action commands/listener\r\n\t\tc.gridx = 2;\r\n\t\ttoppanel.add(browsecondition1button, c);\r\n\t\tbrowsecondition1button.setActionCommand(\"Affymetrix Browse Condition 1\");\r\n\t\tbrowsecondition1button.addActionListener(controller);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the condition2label label to toppanel\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\ttoppanel.add(condition2label, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the inputcondition2field label to toppanel\r\n\t\tc.gridx = 1;\r\n\t\ttoppanel.add(inputcondition2field, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the browsecondition2button to toppanel and adding action commands/listener\r\n\t\tc.gridx = 2;\r\n\t\ttoppanel.add(browsecondition2button, c);\r\n\t\tbrowsecondition2button.setActionCommand(\"Affymetrix Browse Condition 2\");\r\n\t\tbrowsecondition2button.addActionListener(controller);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the browsecondition2button to toppanel and adding action commands/listener\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 2;\r\n\t\ttoppanel.add(helpbutton, c);\r\n\t\thelpbutton.setActionCommand(\"Affymetrix Help\");\r\n\t\thelpbutton.addActionListener(controller);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// adding the applyfilterbutton to toppanel and adding action commands/listener\r\n\t\tc.gridx = 2;\r\n\t\tc.gridy = 2;\r\n\t\ttoppanel.add(applyfilterbutton, c);\r\n\t\tapplyfilterbutton.setActionCommand(\"Affymetrix Apply Filter\");\r\n\t\tapplyfilterbutton.addActionListener(controller);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// Add top title panel into the main panel\r\n\t\tc.ipady = 10;\r\n\t\tc.ipadx = 10;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 0;\r\n\t\tmainpanel.add(titlepanel, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// Add top panel into the main panel\r\n\t\tc.gridy = 1;\r\n\t\tmainpanel.add(toppanel, c);\r\n\t\t/* ------------------------------------------------------ */\r\n\t\t// add the main panel to the content pane\r\n\t\tgetContentPane().add(mainpanel);\r\n\t\tgetContentPane().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t\t//ToolTip help\r\n\t\tbrowsecondition1button.setToolTipText(\"Data of the control\");\r\n\t\tbrowsecondition2button.setToolTipText(\"Data of the experiment\");\r\n\t\tapplyfilterbutton.setToolTipText(\"Start filtering\");\r\n\t\thelpbutton.setToolTipText(\"To get information about how to use the plugin\");\r\n\t\t\r\n\t\t//General appearance\r\n\t\tsetTitle(\"Import Barcode Output\");\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetSize(400, 300);\r\n\t\tsetResizable(false);\r\n\t\tsetVisible(true);\r\n\t\tpack();\r\n\t}", "public ActivityMenuEditController(final Model model, final View view) {\n\t\tsuper(model, view);\n\t}", "public WindowHandle( ModelControllable model, ViewControllable view ) {\r\n\r\n this.model = model;\r\n this.view = view;\r\n }", "Command createCommand();", "Build_Model() {\n\n }", "public ButtonsPane(final LambdacModel model) {\n super();\n this.model = model;\n\n setLayout(new FlowLayout(FlowLayout.LEADING));\n\n final JButton open = new JButton(\"Open...\");\n final JButton save = new JButton(\"Save\");\n final JButton saveAs = new JButton(\"Save As...\");\n final JButton run = new JButton(\"Run\");\n final JButton help = new JButton(\"Help\");\n add(open);\n add(save);\n add(saveAs);\n add(run);\n add(help);\n\n open.addActionListener(ev -> open());\n save.addActionListener(ev -> save());\n saveAs.addActionListener(ev -> saveAs());\n run.addActionListener(ev -> run());\n help.addActionListener(ev -> help());\n }", "public GameModel(int size, PlayerController p1, PlayerController p2, LobbyModel lmodel, String opp)\n {\n opponent = opp;\n winSend = lmodel;\n player1 = p1;\n player2 = p2;\n turn = 0;\n moves = 0;\n winSent = false;\n maxTurn = size * size;\n board = new int[size][size];\n System.out.println(\"Constructor: \" + player1);\n System.out.println(\"Constructor: \" + player2);\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n board[i][j] = EMPTY_FLAG;\n }\n }\n p1.yourTurn();\n }", "public BoardTextView(Board<Character> toDisplay) {\n this.toDisplay = toDisplay;\n if (toDisplay.getWidth() > 10 || toDisplay.getHeight() > 26) {\n throw new IllegalArgumentException(\n \"Board must be no larger than 10x26, but is \" + toDisplay.getWidth() + \"x\" + toDisplay.getHeight());\n }\n }", "public ViewModel(TableHomeFrame tableHomeFrame){\n dbActions = new Model();\n this.tableHomeFrame = tableHomeFrame;\n calculations = new Calculations();\n }", "public Controlador(Vista view, Modelo model){\r\n \r\n //Se igualan las propiedades\r\n this.view = view;\r\n this.model = model;\r\n this.view.btnGuardar.addActionListener(this);\r\n \r\n //se iguala el modelo de la tabla\r\n table = new DefaultTableModel();\r\n view.tablaResultado.setModel(table);\r\n \r\n //nombre para la columna de la tabla\r\n table.addColumn(\"Listado\"); \r\n \r\n }", "public EAEditorView(ReadOnlyEAOperations model) {\n\n super();\n setTitle(\"The Easy Animator\");\n\n // check for null\n if (model == null) {\n throw new IllegalArgumentException(\"Model can't be null\");\n }\n this.model = model;\n\n // initialize the main panel\n constructMainPanel();\n constructAnimationPanel();\n generateLabelPanel();\n generateButtonPanel();\n constructPopup();\n createOKButtons();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.pack();\n }", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "GridPanel create(GridDataModel model);", "public static CellModel buildNewBoard(MainActivity activity) {\r\n if (cellModel == null) {\r\n cellModel = new CellModel();\r\n } else {\r\n cellModel.resetAllCells();\r\n }\r\n Random r = new Random(System.currentTimeMillis());\r\n int filledCells = r.nextInt(15) + 17;\r\n MaskBoardGeneratorTask task = new MaskBoardGeneratorTask(filledCells, activity);\r\n BackgroundTaskManager.getInstance().runTask(task, cellModel);\r\n return cellModel;\r\n }", "public Command getOkCommand () {\nif (okCommand == null) {//GEN-END:|30-getter|0|30-preInit\n // write pre-init user code here\nokCommand = new Command (\"Ok\", Command.OK, 0);//GEN-LINE:|30-getter|1|30-postInit\n // write post-init user code here\n}//GEN-BEGIN:|30-getter|2|\nreturn okCommand;\n}", "public Controller(BasicBoard basicBoard)\n\t{\n\t\tboard = basicBoard;\n\t\t// What to do when users click on pits\n\t\tMouseListener mouseListener = new MouseListener()\n\t\t{\n\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tPit pit = (Pit) event.getSource();\n\t\t\t\tint pick = pit.getIndex();\n\t\t\t\tboard.getDataModel().pick_pit(pick);\n\t\t\t\tboard.stateChanged(new ChangeEvent(this));\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\t// What to do when users click on buttons\n\t\tActionListener actionListener = new ActionListener()\n\t\t{\n\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tJButton button = (JButton) event.getSource();\n\t\t\t\tif (button.getText().equals(\"Undo\"))\n\t\t\t\t{\n\t\t\t\t\tboard.getDataModel().undo();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tboard.getDataModel().endTurn();\n\t\t\t\t}\n\t\t\t\tboard.stateChanged(new ChangeEvent(this));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\tboard.attachMouseListener(mouseListener);\n\t\tboard.attachActionListener(actionListener);\n\t}", "Board createLayout();", "public UpdateDifficultyController(Model m) {\n\t\tthis.model = m;\n\t}", "public AbstractCommandController(Class commandClass, String commandName)\r\n/* 21: */ {\r\n/* 22:75 */ setCommandClass(commandClass);\r\n/* 23:76 */ setCommandName(commandName);\r\n/* 24: */ }", "@Override\n public Command build() {\n switch (CommandType.fromString(commandName.getEscapedAndStrippedValue())) {\n case ASSIGN:\n return new AssignmentCommand(commandArgs);\n case CAT:\n return new CatCommand(commandArgs);\n case ECHO:\n return new EchoCommand(commandArgs);\n case WC:\n return new WcCommand(commandArgs);\n case PWD:\n return new PwdCommand(commandArgs);\n case GREP:\n return new GrepCommand(commandArgs);\n case EXIT:\n return new ExitCommand(commandArgs);\n default:\n return new OtherCommand(commandName, commandArgs);\n }\n }", "private AddEventCommand getAddEventCommandForEvent(Event event, Model model) {\n AddEventCommand command = new AddEventCommand(event);\n command.setData(model, new CommandHistory(), new UndoRedoStack());\n return command;\n }", "private void buildViewMenu(){\n //Create a Run Payroll menu item\n viewItem = new JMenuItem(\"View CS History\");\n viewItem.setMnemonic(KeyEvent.VK_H);\n viewItem.addActionListener(new ViewListener());\n \n //Create a JMenu object for the run menu\n viewMenu = new JMenu(\"View\");\n viewMenu.setMnemonic(KeyEvent.VK_V);\n \n //Add the item to the menu\n viewMenu.add(viewItem);\n }", "public CampusPathsController(CampusPaths model, CampusPathsView view) {\n\t\tthis.model = model;\n\t\tthis.view = view;\n\t\tview.getFindButton().addActionListener(new FindListener());\n\t\tview.getResetButton().addActionListener(new ResetListener());\n\t}", "public CheckersGame(CheckersData passedBoard) {\n boardData = passedBoard;\n }", "public BullpenController(Level level, ILevelView levelView, LevelBuilder builder) {\n\t\tsuper();\n\t\tthis.level = level;\n\t\tthis.levelView = levelView;\n\t\tthis.bullpenView = levelView.getBullpenView();\n\t\tthis.boardView = levelView.getBoardView();\n\t\tthis.builder = builder;\n\t\tboardView.updateDraggedPiece(null);\n\t}", "public SidePanelView(final GameModel model, final GameView view) {\r\n\r\n this.model = model;\r\n this.view = view;\r\n this.talentPanel = new TalentSideView();\r\n this.buttonPanel = new ButtonView();\r\n this.upgradePanel = new UpgradeView();\r\n this.towerPanel = new TowerPanelView();\r\n this.infoPanel = new InfoView();\r\n\r\n this.buttonPanel.setModel(this.model, this.view);\r\n this.upgradePanel.setModel(this.model);\r\n this.towerPanel.setModel(this.model);\r\n this.infoPanel.setModel(this.model);\r\n\r\n this.midPanelCards = new CardLayout();\r\n this.flipPanel = new JPanel(this.midPanelCards);\r\n this.flipPanel.add(towerPanel, \"TowerPanel\");\r\n this.flipPanel.add(upgradePanel, \"UpgradePanel\");\r\n this.flipPanel.add(talentPanel, \"TalentPanel\");\r\n\r\n this.setLayout(new BorderLayout());\r\n this.add(infoPanel, BorderLayout.NORTH);\r\n this.add(flipPanel, BorderLayout.CENTER);\r\n this.add(buttonPanel, BorderLayout.SOUTH);\r\n this.midPanelCards.show(this.flipPanel, \"TowerPanel\");\r\n }", "public void setModelView(IModelView mv) {\n checkNull(mv);\n\n state = mv.getFullState();\n buttons = new HashMap<>();\n\n JCheckBox button;\n JPanel buttonContainer = new JPanel();\n //buttonContainer.setLayout(new BoxLayout(buttonContainer, BoxLayout.PAGE_AXIS));\n buttonContainer.setLayout(new GridLayout(0, 4));\n\n for (IAnimatedShape shape : state.values()) {\n button = new JCheckBox(shape.getName());\n button.setActionCommand(shape.getName());\n button.setSelected(true);\n button.addActionListener(buttonListener);\n buttonContainer.add(button);\n\n buttons.put(button.getName(), button);\n }\n\n JScrollPane listScroller;\n listScroller = new JScrollPane(buttonContainer,\n ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n listScroller.setPreferredSize(new Dimension(50, 50));\n //listScroller.setAlignmentX(LEFT_ALIGNMENT);\n\n this.add(listScroller);\n this.setPreferredSize(new Dimension(50, 50));\n this.repaint();\n\n }", "public GameLobby(int GameID, Player redPlayer, Player whitePlayer, MoveValidator validator) {\n this.validator = validator;\n activePlayer = Piece.COLOR.RED;\n this.GameID = GameID;\n this.redPlayer = redPlayer;\n this.whitePlayer = whitePlayer;\n redBoard = new BoardView(Piece.COLOR.RED);\n whiteBoard = new BoardView(Piece.COLOR.WHITE);\n }", "@Override\n public void modelPropertyChange(final PropertyChangeEvent e) {\n \n /* Update Status Line */\n \n if (e.getPropertyName().equals(DefaultController.STATUS)) {\n String newStatus = e.getNewValue().toString();\n if (!status.getText().equals(newStatus))\n status.setText(newStatus);\n }\n \n /* Shot Missed (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER1_SHOT_MISSED) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER2_SHOT_MISSED) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n splash.play();\n \n /* Present Dialog Message */\n \n JOptionPane.showMessageDialog(this, \"Your shot was a MISS!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_HIT) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_HIT) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot HIT a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit and Sunk opponent's ship (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_SUNK) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_SUNK) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot SANK a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Game Over (Player 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_GAME_OVER) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_GAME_OVER) && currentPlayer == 2) ) {\n \n /* Play Sound (if sound is enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Congratulations!!!!\\nPlayer \" + currentPlayer + \" won the game.\");\n \n }\n \n \n }", "static Controller makeController(MusicEditorModel model, ViewModel vm, NonGuiViewAdapter view) {\n return new NonGuiController(model, vm, view);\n }", "public void initialize(){\t\t\n\n\t\tsetBounds(100, 100, 900, 620);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(SystemColor.control);\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tcontentPane.setLayout(null);\n\t\tsetLayout(null);\n\n\t\t//build the image of the board for toggling the active squares\n\t\t//buildBoardImage();\n\n\t\tboardView = new BoardView(new Color(20,200,160), model, 1, app);\n\t\tboardView.builderInitialize(app);\n\t\tboardView.setSize(408, 440);\n\t\tboardView.setLocation(39, 158);\n\t\tadd(boardView);\n\n\t\tcomboBox = new JComboBox<String>();\n\t\tcomboBox.setModel(new DefaultComboBoxModel<String>(new String[] {\"Puzzle\", \"Lightning\", \"Theme\"}));\n\t\tcomboBox.setToolTipText(\"\");\n\t\tcomboBox.setMaximumRowCount(3);\n\t\tcomboBox.setBounds(593, 158, 97, 26);\n\t\tcomboBox.addItemListener(this);\n\t\tthis.add(comboBox, \"ComboBox\");\n\n\t\tJLabel lblTitle = new JLabel(\"LetterCraze: Builder\");\n\t\tlblTitle.setFont(new Font(\"Impact\", Font.BOLD | Font.ITALIC, 40));\n\t\tlblTitle.setBounds(39, 11, 522, 109);\n\t\tadd(lblTitle);\n\n\t\tpnlLevelSwitch = new JPanel();\n\t\tpnlLevelSwitch.setName(\"pnlLevelSwitch\");\n\t\tpnlLevelSwitch.setBounds(479, 192, 379, 362);\n\t\tpnlLevelSwitch.setLayout(new CardLayout());\n\t\tadd(pnlLevelSwitch);\n\n\t\tJPanel pnlPuzzle = new BuilderPuzzlePanelView(labelFont);\n\t\tpnlLevelSwitch.add(pnlPuzzle, \"Puzzle\");\n\t\tpnlPuzzle.setBackground(new Color(102,255,102));\n\t\tpnlPuzzle.setLayout(null);\n\n\t\tJPanel pnlLightning = new BuilderLightningPanelView();\n\t\tpnlLightning.setBackground(Color.ORANGE);\n\t\tpnlLevelSwitch.add(pnlLightning, \"Lightning\");\n\t\tpnlLightning.setLayout(null);\n\n\n\t\tJPanel pnlTheme = new BuilderThemePanelView(labelFont);\n\t\tpnlTheme.setBackground(Color.PINK);\n\t\tpnlLevelSwitch.add(pnlTheme, \"Theme\");\n\t\tpnlTheme.setLayout(null);\n\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.repaint();\n\t\tJButton btnReset = new JButton(\"Reset Level\");\n\t\tbtnReset.addMouseListener(new ResetBoardSquaresController(this, model));\n\t\tbtnReset.setBounds(39, 118, 107, 29);\n\t\tadd(btnReset);\n\n\t\tJButton btnSaveLevel = new JButton(\"Save And Exit\");\n\t\tbtnSaveLevel.setBounds(156, 118, 111, 29);\n\t\tbtnSaveLevel.addMouseListener(new SaveLevelController(this, cardLayoutPanel, model));\n\t\t//btnSaveLevel.addMouseListener(new ExitWithoutSavingController(this, cardLayoutPanel, model));\n\t\tadd(btnSaveLevel);\n\n\t\tJLabel lblLevelType = new JLabel(\"Level Type\");\n\t\tlblLevelType.setFont(labelFont);\n\t\tlblLevelType.setBounds(491, 158, 92, 26);\n\t\tadd(lblLevelType);\n\n\t\tJButton btnCloseWithoutSaving = new JButton(\"Close Without Saving\");\n\t\t//TODO replace with close builder controller\n\t\tbtnCloseWithoutSaving.addMouseListener(new ExitWithoutSavingController(this, cardLayoutPanel, model));\n\t\tbtnCloseWithoutSaving.setBounds(273, 118, 174, 29);\n\t\tadd(btnCloseWithoutSaving);\n\t\t\n\t\tJButton btnPreviewLevel = new JButton(\"Show Me The Money!\");\n\t\tbtnPreviewLevel.addMouseListener(new PreviewLevelController(this, model, cardLayoutPanel));\n\t\tbtnPreviewLevel.setBounds(491, 118, 199, 29);\n\t\tadd(btnPreviewLevel);\n\t\trepaint();\n\t}", "@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n System.out.println(this+\": \"+commandText);\n String word = \"\";\n Resource resource;\n String prefix = \"\";\n String suffix = \"\";\n boolean found = false;\n ArrayList<Resource> resources = new ArrayList<>();\n\n if (commandText.length() == 0)\n throw new InvalidCommandException();\n\n commandText = Command.deleteInitSpaces(commandText);\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n if (prefix.equals(\"coin\") || prefix.equals(\"rock\") || prefix.equals(\"shield\") || prefix.equals(\"servant\")){\n\n resource = Command.fromStringToResource(prefix);\n resources.add(resource);\n\n for (int i = 0;i<suffix.length();i++){\n if (suffix.charAt(i) != ' '){\n word = word + suffix.charAt(i);\n } else {\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n word = \"\";\n }\n }\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n\n if (resources.size() != numberOfWhiteMarbles){\n throw new InvalidCommandException();\n }\n return new WhiteMarbleCommand(resources,cli);\n } else {\n switch (prefix) {\n case \"exit\": {\n return new ExitCommand();\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"showGameboard\": {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\": {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\": {\n\n int n = 0;\n int temp;\n found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if (suffix.charAt(i) != ' ') {\n temp = suffix.charAt(i) - '0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\": {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\": {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "public GetCrossSectionByXCommand(View view, Model model) {\n\t\t_view = view;\n\t\t_model = model;\n\t}", "public CoPView(CoP model) {\r\n super(ShoeView.shoeToViewX(model.xProperty().getValue(), model.getSide()), ShoeView.shoeToViewY(model.yProperty().getValue(), model.getSide()), 4, Color.color(0, 0, 1));\r\n this.model = model;\r\n initialize();\r\n }", "public ItemCommand() {\n }", "private JComponent createComponent(ViewModel<?> model)\r\n {\r\n JComponent comp = ControllerFactory.createComponent(model, null);\r\n if (comp instanceof JCheckBox)\r\n {\r\n ((JCheckBox)comp).setText(null);\r\n }\r\n return comp;\r\n }", "public MinesweeperModel(int[] args) {\n this.WIDTH = args[0];\n this.HEIGHT = args[1];\n this.numMines = args[2];\n numMinesLeft = numMines;\n numMinesMarked = 0;\n gameOver = false;\n numberOfMoves = 0;\n initializeBoard();\n }", "public void setBikeBoardModel(BikeBoardModel model) {\n bikeBoardModel = model;\n lstvList.setItems(model.getObservableBikes());\n }", "@Override\n\tprotected Command createCommand() {\n\t\tList<Object> editparts = editor.getSelectionCache().getSelectionModelForType(MGraphicElement.class);\n\t\tif (editparts.isEmpty())\n\t\t\treturn null;\n\t\tJSSCompoundCommand command = new JSSCompoundCommand(null);\n\t\tfor(Object part : editparts){\n\t\t\tif (part instanceof MTextElement) {\n\t\t\t\tMTextElement textElement = (MTextElement)part;\n\t\t\t\tcommand.setReferenceNodeIfNull(textElement);\n\t\t\t\tLazyCreateTextFieldCommand createCommand = new LazyCreateTextFieldCommand(textElement);\n\t\t\t\tcommand.add(createCommand);\n\t\t\t}\n\t\t}\n\t\tif (command.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn command;\n\t}", "public static CommandViewBuilder builder(String commandBlock)\n\t{\n\t\treturn new CommandViewBuilder(commandBlock);\n\t}", "public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}", "public CompositeController(IMusicModel model, CompositeView view) {\n this.model = model;\n this.view = view;\n }", "public GameView(GameModel model, DiceModel diceModel) {\n this.model = model;\n this.controller = new GameController(model, diceModel);\n this.diceModel = diceModel;\n\n initComponents();\n\n model.addObserver(this);\n\n createComponents();\n updateScores();\n\n pack();\n }", "private NonGuiController(MusicEditorModel model0, ViewModel vm, NonGuiViewAdapter view) {\n model = requireNonNull(model0);\n this.vm = vm;\n this.view = view;\n }", "public void initialize() {\r\n\r\n\t\t// Assign1, Add control button\r\n\t\tFlowLayout fl = new FlowLayout();\r\n\t\tfl.setAlignment(FlowLayout.LEFT);\r\n\t\tthis.setLayout(fl);\r\n\t\tswitcher = new JButton(\"Switch Player:black\");\r\n\t\tswitcher.setEnabled(false);\r\n\t\tswitcher.addActionListener(this);\r\n\t\tconfirm = new JButton(\"Confirm\");\r\n\t\tconfirm.setEnabled(false);\r\n\t\tconfirm.addActionListener(this);\r\n\t\tthis.add(switcher);\r\n\t\tthis.add(confirm);\r\n\t\tswitcher.setBounds(520, 200, 50, 20);\r\n\t\tconfirm.setBounds(520, 400, 50, 20);\r\n\r\n\t\t// Assign1, Add message upper from the board\r\n\t\tt = new JLabel();\r\n\t\tt.setVerticalAlignment(JLabel.TOP);\r\n\t\tthis.add(t);\r\n\t\tt.setVisible(true);\r\n\r\n\t\t// Assign1, Get layer object, which in order to enable layering of JFrame\r\n\t\tlp = this.getLayeredPane();\r\n\r\n\t\t// Define board by JPanel with a 8*8 GridLayout\r\n\t\t// Put red and white board\r\n\t\tboardBg = new JPanel();\r\n\t\tboardBg.setLayout(new GridLayout(8, 8));\r\n\t\tfor (int i = 0; i < 8 * 8; i++) {\r\n\t\t\t// Assign1, Put red board\r\n\t\t\tif ((i % 2 == 0 && (i / 8) % 2 == 1)\r\n\t\t\t\t\t|| (i % 2 == 1 && (i / 8) % 2 == 0)) {\r\n\t\t\t\tChessBoardBlock block = new ChessBoardBlock(\"red\", order[i]);\r\n\t\t\t\tblock.addActionListener(this);\r\n\t\t\t\tblock.addMouseListener(this);\r\n\t\t\t\tboard.put(order[i], block);\r\n\t\t\t\tblock.setEnabled(false);\r\n\t\t\t\tblock.setBorderPainted(false);\r\n\t\t\t\tboardBg.add(block);\r\n\t\t\t}\r\n\t\t\t// Assign1, Put white board\r\n\t\t\telse {\r\n\t\t\t\tChessBoardBlock block = new ChessBoardBlock(\"white\", order[i]);\r\n\t\t\t\tblock.addActionListener(this);\r\n\t\t\t\tblock.addMouseListener(this);\r\n\t\t\t\tboard.put(order[i], block);\r\n\t\t\t\tblock.setEnabled(false);\r\n\t\t\t\tblock.setBorderPainted(false);\r\n\t\t\t\tboardBg.add(block);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Assign1, Put pieces on the board, on another same JPanel with 8*8 GridLayout\r\n\t\tbody = new JPanel();\r\n\t\tbody.setLayout(new GridLayout(8, 8));\r\n\r\n\t\t// Assign1, Put board panel and piece panel in different layer by the Integer parameter\r\n\t\tlp.add(boardBg, new Integer(1));\r\n\t\tlp.add(body, new Integer(2));\r\n\t\tboardBg.setBounds(0, 70, 500, 500);\r\n\t\tboardBg.setVisible(true);\r\n\t\tbody.setBounds(0, 70, 500, 500);\r\n\t\tbody.setOpaque(false);// Assign1, Make the upper layer panel transparent so that lower layer can be seen\r\n\t\tbody.setVisible(true);\r\n\t\t\r\n\t\tstatus.setStatusInit();\r\n\r\n\t}", "public ColumnDefinitionBinder(DefaultValidatorSupport validator, ColumnDefinitionModel model)\r\n {\r\n myModel = model;\r\n myValidator = validator;\r\n myModel.addObserver(this);\r\n }", "public View(Model m) {\r\n\t\tsuper();\r\n\t\tsetBackground(Color.black); // Setting background color.\r\n\t\tthis.model = m;\r\n\t}", "@Override\n public void actionPerformed(ActionEvent ae) {\n //\n // \"blacklist peer\" - Blacklist inbound peer\n // \"copy address\" - Copy peer address\n // \"copy block id\" - Copy the block identifier\n // \"copy generator id\" - Copy the generator identifier\n // \"show transactions\" - Show block transactions\n //\n try {\n String action = ae.getActionCommand();\n StringSelection sel;\n Clipboard cb;\n int row;\n switch (action) {\n case \"blacklist peer\":\n row = connectionTable.getSelectedRow();\n if (row >= 0) {\n row = connectionTable.convertRowIndexToModel(row);\n String address = (String)connectionTableModel.getValueAt(row, 0);\n Nxt.blacklistPeer(address, Main.adminPW);\n }\n break;\n case \"copy address\":\n row = connectionTable.getSelectedRow();\n if (row >= 0) {\n row = connectionTable.convertRowIndexToModel(row);\n sel = new StringSelection((String)connectionTableModel.getValueAt(row, 0));\n cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(sel, null);\n }\n break;\n case \"copy block id\":\n row = blockTable.getSelectedRow();\n if (row >= 0) {\n row = blockTable.convertRowIndexToModel(row);\n sel = new StringSelection((String)blockTableModel.getValueAt(row, 2));\n cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(sel, null);\n }\n break;\n case \"copy generator id\":\n row = blockTable.getSelectedRow();\n if (row >= 0) {\n row = blockTable.convertRowIndexToModel(row);\n sel = new StringSelection((String)blockTableModel.getValueAt(row, 5));\n cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(sel, null);\n }\n break;\n case \"show transactions\":\n row = blockTable.getSelectedRow();\n if (row >= 0) {\n row = blockTable.convertRowIndexToModel(row);\n String blockId = (String)blockTableModel.getValueAt(row, 2);\n TransactionDialog.showDialog(Main.mainWindow, blockId);\n }\n break;\n }\n } catch (IOException exc) {\n Main.logException(\"I/O exception while processing Nxt API request\",exc);\n } catch (Exception exc) {\n Main.log.error(\"Exception while processing action event\", exc);\n Main.logException(\"Exception while processing action event\", exc);\n }\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "public Command parseCommand(String userInput, Model model,\n seedu.address.person.model.CheckAndGetPersonByNameModel personModel) throws Exception {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments, model, personModel);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments, model, personModel);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments, model, personModel);\n\n case SetCashierCommand.COMMAND_WORD:\n return new SetCashierCommandParser().parse(arguments, model, personModel);\n\n case CheckoutCommand.COMMAND_WORD:\n return new CheckoutCommandParser().parse(arguments, model, personModel);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommandParser().parse(arguments, model, personModel);\n\n default:\n logger.info(\"There is no such command.\");\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n\n }\n }", "public static void createBoard() {\n Checkers[] CheckerBoard = new Checkers[24];\n CheckerBoard[0] = new Checkers(0,1,\"black\");\n CheckerBoard[1] = new Checkers(0,3,\"black\");\n CheckerBoard[2] = new Checkers(0,5,\"black\");\n CheckerBoard[3] = new Checkers(0,7,\"black\");\n CheckerBoard[4] = new Checkers(1,0,\"black\");\n CheckerBoard[5] = new Checkers(1,2,\"black\");\n CheckerBoard[6] = new Checkers(1,4,\"black\");\n CheckerBoard[7] = new Checkers(1,6,\"black\");\n CheckerBoard[8] = new Checkers(2,1,\"black\");\n CheckerBoard[9] = new Checkers(2,3,\"black\");\n CheckerBoard[10] = new Checkers(2,5,\"black\");\n CheckerBoard[11] = new Checkers(2,7,\"black\");\n CheckerBoard[12] = new Checkers(5,1,\"red\");\n CheckerBoard[13] = new Checkers(5,3,\"red\");\n CheckerBoard[14] = new Checkers(5,5,\"red\");\n CheckerBoard[15] = new Checkers(5,7,\"red\");\n CheckerBoard[16] = new Checkers(6,0,\"red\");\n CheckerBoard[17] = new Checkers(6,2,\"red\");\n CheckerBoard[18] = new Checkers(6,4,\"red\");\n CheckerBoard[19] = new Checkers(6,6,\"red\");\n CheckerBoard[20] = new Checkers(7,1,\"red\");\n CheckerBoard[21] = new Checkers(7,3,\"red\");\n CheckerBoard[22] = new Checkers(7,5,\"red\");\n CheckerBoard[23] = new Checkers(7,7,\"red\");\n\n\n\n }", "public ButtonHolderActionBarView(SpeelveldController speelveldController)\n throws RemoteException {\n this.speelveldController = speelveldController;\n this.speler = speelveldController.getSpeler();\n this.karakter = this.speler.getKarakter();\n\n container = new StackPane();\n gebruikEigenschap = new Button();\n exitbutton = new Button();\n spelregels = new Button();\n opslaanknop = new Button();\n goudbutton = new Button();\n bouwbutton = new Button();\n eindebeurtbutton = new Button();\n\n this.speler.addObserver(this);\n this.karakter.addObserver(this);\n\n this.buttonGrid.setHgap(10);\n this.buttonGrid.setVgap(10);\n this.buttonGrid.setPadding(new Insets(22.5, 0, 22.5, 0));\n\n initButton(gebruikEigenschap, \"Eigenschap\", \"button-primary\", 1, 1, 160f, 55f);\n initButton(bouwbutton, \"Bouwen\", \"button-primary\", 2, 1, 160f, 55f);\n initButton(goudbutton, \"Bonusgoud\", \"button-primary\", 1, 2, 160f, 55f);\n initButton(eindebeurtbutton, \"Einde beurt\", \"button-danger\", 2, 2, 160f, 55f);\n initButton(opslaanknop, \"Opslaan\", \"button-success\", 1, 3, 160f, 55f);\n initButton(exitbutton, \"Afsluiten\", \"button-danger\", 2, 3, 160f, 55f);\n\n opslaanknop.setOnAction(event1 -> this.speelveldController.cmdOpslaan());\n goudbutton.setOnAction(event -> this.speelveldController.cmdBonusGoud());\n bouwbutton.setOnAction(event -> this.speelveldController.cmdBouwGebouw());\n eindebeurtbutton.setOnAction(event -> this.speelveldController.cmdEindeBeurt());\n gebruikEigenschap.setOnAction(event -> this.speelveldController.cmdGebruikEigenschap());\n exitbutton.setOnAction(event -> System.exit(0));\n\n isKarakterBonusable();\n\n buttonholder = new Rectangle(0, 0, 350, 250);\n buttonholder.setFill(Color.rgb(57, 57, 57));\n this.container.getChildren().addAll(buttonholder, buttonGrid);\n }", "public VisualView(Model model, JFrame frame, Controller controller) {\n\n this.model = model;\n this.frame = frame;\n this.controller = controller;\n this.localRoutes = new ArrayList<>();\n\n this.animate = new JButton();\n this.animate.addActionListener(this);\n this.animate.setText(\"Animate\");\n this.animate.setAlignmentY(Component.CENTER_ALIGNMENT);\n this.add(this.animate);\n\n this.back = new JButton();\n this.back.addActionListener(this);\n this.back.setText(\"Go Back\");\n this.back.setAlignmentY(Component.CENTER_ALIGNMENT);\n this.add(this.back);\n }", "Command createCommandWith(CommandCreator creator);", "private Command() {\n initFields();\n }", "private Window buildVerificationCodeDialogWindow(MutableObject<String> model)\r\n throws BuilderException\r\n {\r\n Builder builder = applicationContext.newBuilder();\r\n ApplicationBuilderData builderData =\r\n applicationContext.initBuilderData();\r\n builderData.addProperty(KEY_MODEL, model);\r\n return builder.buildWindow(scriptLocator, builderData);\r\n }", "public Model() {\n\t\tboolean debug = Constants.getDebugFlag();\n\t\tgameMode = Constants.getGameMode();\n\t\twhitePieces = new PieceArray();\n\t\tblackPieces = new PieceArray();\n\t\tcapturedPieces = new ArrayList<Piece>();\n\t\tmoveList = new ArrayList<Move>();\n\t\tgameTree = new GameTree();\n\n\t\tboard = new Piece[8][8];\n\n\t\t\n\t\t// Easy way to set up nonstandard positions for testing.\n\t\tif(debug)\n\t\t\tinitializeDebugBoard();\n\t\telse\n\t\t\tinitializeBoard();\n\t\t\n\t\tpopulateLists();\n\t}", "MainBoard createMainBoard();", "public NewCidsClassVisualPanel1(final NewCidsClassWizardPanel1 model) {\n this.model = model;\n this.tableRowSelectionL = new TableRowSelectionListener();\n this.oneToManyL = new OneToManyActionListener();\n \n initComponents();\n \n dbType = new ImageIcon(ImageUtilities.loadImage(DomainserverProject.IMAGE_FOLDER + \"db_types.png\")); // NOI18N\n syncClassDocL = new SyncClassDocListener();\n syncTableDocL = new SyncTableDocListener();\n attrPolicyL = new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n final Policy policy = (Policy)e.getItem();\n model.getCidsClass().setAttributePolicy((policy.getId() == null) ? null : policy);\n }\n }\n };\n ((JXTable)tblAttr).setAutoStartEditOnKeyStroke(true);\n ((JXTable)tblAttr).setTerminateEditOnFocusLost(true);\n tblAttr.setDefaultEditor(String.class, new DefaultCellEditor(new JTextField()));\n tblAttr.getDefaultEditor(String.class).addCellEditorListener(new CellEditorListener() {\n \n @Override\n public void editingCanceled(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n \n @Override\n public void editingStopped(final ChangeEvent e) {\n model.fireChangeEvent();\n }\n });\n \n final JCheckBox chkEditorBox = new JCheckBox();\n chkEditorBox.setHorizontalAlignment(JCheckBox.CENTER);\n tblAttr.setDefaultEditor(Boolean.class, new DefaultCellEditor(chkEditorBox));\n lstTypes.setCellRenderer(new ListCellRendererImpl());\n cboClassIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setClassIcon((Icon)cboClassIcons.getSelectedItem());\n }\n });\n cboObjectIcons.addItemListener(new ItemListener() {\n \n @Override\n public void itemStateChanged(final ItemEvent e) {\n final CidsClass c = classTableModel.getCidsClass();\n c.setObjectIcon((Icon)cboObjectIcons.getSelectedItem());\n }\n });\n \n tblAttr.getSelectionModel()\n .addListSelectionListener(WeakListeners.create(\n ListSelectionListener.class,\n tableRowSelectionL,\n tblAttr.getSelectionModel()));\n btnOneToMany.addActionListener(WeakListeners.create(ActionListener.class, oneToManyL, btnOneToMany));\n }", "public CheckerBoard(int size) {\n super(new int[size * tilesPerSide][size * tilesPerSide][3]);\n for (int y = 0; y < this.getHeight(); ++y) {\n for (int x = 0; x < this.getWidth(); ++x) {\n for (int channel = 0; channel < 3; ++channel) {\n this.data[y][x][channel] = ((x / size + y / size) % 2 == 1) ? 0 : 255;\n }\n }\n }\n }" ]
[ "0.59617484", "0.56428677", "0.5424975", "0.5369879", "0.53476834", "0.5336852", "0.5174873", "0.51585215", "0.51338637", "0.5125975", "0.51067376", "0.50821126", "0.5044124", "0.497825", "0.4964558", "0.4946565", "0.49464703", "0.49258104", "0.4858192", "0.48534894", "0.4830361", "0.48101127", "0.4801113", "0.4794794", "0.47757253", "0.47683498", "0.4758466", "0.47510287", "0.47320634", "0.47255793", "0.47249892", "0.47230697", "0.47196308", "0.47134027", "0.46986553", "0.46933538", "0.4684981", "0.4683962", "0.46735916", "0.46610066", "0.46553144", "0.46496317", "0.46471396", "0.46459016", "0.46390498", "0.4635824", "0.46346647", "0.46336067", "0.4628198", "0.46104673", "0.46093985", "0.4598936", "0.4590983", "0.45833468", "0.45832545", "0.45616978", "0.4560684", "0.45492226", "0.45350793", "0.45350036", "0.45254004", "0.45215687", "0.4521512", "0.4518313", "0.4515699", "0.45151958", "0.4510486", "0.45090124", "0.45053014", "0.4501066", "0.45008737", "0.44952175", "0.44884017", "0.44872203", "0.448633", "0.44855517", "0.44831073", "0.4479813", "0.4475972", "0.44725972", "0.44706768", "0.44696906", "0.44626892", "0.446098", "0.44502392", "0.44469368", "0.4445118", "0.4444954", "0.44412434", "0.44411674", "0.44408908", "0.4440283", "0.44352096", "0.4427989", "0.44259956", "0.44246614", "0.4424043", "0.4414183", "0.4408803", "0.44078323" ]
0.6997045
0
To get List of Important News
@SkipValidation public String getAllImportantNews() { impList = impService.getAllImportantNews(); return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<NewsNotifications> getNewsFeed(int limit);", "@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }", "@Override\r\n\tpublic List<Product> findNews() throws Exception {\n\t\treturn null;\r\n\t}", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "@Override\n\tpublic List<News> queryNewsList(News params) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<News> findAllNews() {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<News> newsList = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from news\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tnewsList = new ArrayList<>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tNews aNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t\t\r\n\t\t\t\tnewsList.add(aNews);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\t\r\n\t\treturn newsList;\r\n\t}", "@GET(\"user-news-article-content?expand=newsArticle,newsArticle.newsArticleType,newsArticle.translations,newsArticle.like,newsArticle.liked,newsArticle.comments_count&per-page=1000\")\n Call<UserNewsResponse>getUserNews();", "private void fetchNews() {\n if (isOnline(mContext)) {\n // showing refresh animation before making http call\n swipeRefreshLayout.setRefreshing(true);\n\n // appending offset to url\n // String url = URL_TOP_250 + offSet;\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n\n if (response.body().getRows().size() > 0) {\n\n newsList.addAll(response.body().getRows());\n showList();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n }\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n displayMessage(t.getMessage());\n setTextMessage();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n\n }\n });\n } else {\n setTextMessage();\n }\n\n }", "@Override\n\tpublic List<News> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<News> list = (List<News>)getCurrentSession().createQuery(\"FROM News\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "@Override\n\tpublic List<MovieNews> getMovieNews() {\n\t\treturn this.moviesNews;\n\t}", "@Override\r\n\tpublic void getNewsList(Page page, String query) {\n\t\t\r\n\t}", "String getNews();", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "@Override\r\n\tpublic List<ENews> newsTitle() {\n\t\treturn new ENDaoImpl().newsTitle();\r\n\t}", "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "public List<NewsBaseInfo> getNewsListByDate(Date date) throws DataAccessException {\n return null;\n }", "private static List<News> extractFeatureFromJson(String newsJSON){\n if (TextUtils.isEmpty(newsJSON)) {\n return null;\n }\n\n // Create an empty ArrayList that we can start adding news to\n ArrayList<News> news = new ArrayList<>();\n\n // Try to parse the SAMPLE_JSON_RESPONSE. If there's a problem with the way the JSON\n // is formatted, a JSONException exception object will be thrown.\n // Catch the exception so the app doesn't crash, and print the error message to the logs.\n try {\n\n JSONObject baseJsonObject = new JSONObject(newsJSON);\n\n JSONArray articlesJsonArray = baseJsonObject.getJSONArray(\"articles\");\n\n for (int i=0;i<articlesJsonArray.length();i++){\n JSONObject currentNews = articlesJsonArray.getJSONObject(i);\n\n String title = currentNews.getString(\"title\");\n String description = currentNews.getString(\"description\");\n String url = currentNews.getString(\"url\");\n String urlImage = currentNews.getString(\"urlToImage\");\n\n News exactNews = new News(title,description,url,urlImage);\n news.add(exactNews);\n }\n\n } catch (JSONException e) {\n Log.e(\"QueryUtils\", \"Problem parsing the earthquake JSON results\", e);\n }\n return news;\n }", "private static List<News> extractFeaturesFromJsonResponse(String jsonResponse) {\n List<News> newsList = new ArrayList<>();\n\n try {\n JSONObject baseJsonObject = new JSONObject(jsonResponse);\n // If JSON object does not contain \"response\" return null object\n if (!baseJsonObject.has(Keys.JSON_NEWS_OBJECT_KEY)) {\n return null;\n }\n\n JSONObject response = baseJsonObject.getJSONObject(Keys.JSON_NEWS_OBJECT_KEY);\n JSONArray resultsArray = response.getJSONArray(Keys.JSON_NEWS_ARRAY_KEY);\n\n for (int i = 0; i < resultsArray.length(); i++) {\n JSONObject newsObject = resultsArray.getJSONObject(i);\n\n // Get section name\n String sectionName = newsObject.getString(Keys.JSON_NEWS_SECTION_KEY);\n // Get Headline\n String newsHeadline = newsObject.getString(Keys.JSON_NEWS_HEADLINE_KEY);\n // Get published time\n String publishedTime = newsObject.getString(Keys.JSON_NEWS_PUBLISHED_TIME_KEY);\n // Get web Url\n String webUrl = newsObject.getString(Keys.JSON_NEWS_URL_KEY);\n\n // Get thumbnail URL string\n String newsThumbnailUrlString = null;\n if (newsObject.has(Keys.JSON_NEWS_FIELDS_KEY)) {\n JSONObject field = newsObject.getJSONObject(Keys.JSON_NEWS_FIELDS_KEY);\n\n if (field.has(Keys.JSON_NEWS_THUMBNAIL_KEY)) {\n newsThumbnailUrlString = field.getString(Keys.JSON_NEWS_THUMBNAIL_KEY);\n }\n }\n\n // Get author name\n String authorName = null;\n if (newsObject.has(Keys.JSON_NEWS_TAGS_KEY)) {\n JSONArray tags = newsObject.getJSONArray(Keys.JSON_NEWS_TAGS_KEY);\n if (!tags.isNull(0)) {\n // If first element of array is not null then get the author name\n JSONObject tagsObject = tags.getJSONObject(0);\n if (tagsObject.has(Keys.JSON_NEWS_AUTHOR_NAME_KEY)) {\n authorName = tagsObject.getString(Keys.JSON_NEWS_AUTHOR_NAME_KEY);\n }\n }\n }\n newsList.add(new News(newsHeadline, sectionName, authorName, publishedTime, webUrl, newsThumbnailUrlString));\n }\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"Error creating JSON object : extractFeaturesFromJsonResponse() method\", e);\n }\n return newsList;\n }", "public List<News> getAll()\n {\n\n return newsRepository.findAllByOrderByIdAsc();\n }", "NewsMakerList() {\n\t\tthis.newsMakers = new ArrayList<NewsMaker>();\n\t}", "@RequestMapping(value = \"/newsfeed/\", method = RequestMethod.GET)\r\n public ResponseEntity<List<NewsFeed>> listAllNewsFeed() {\r\n List<NewsFeed> newsFeeds = newsFeedService.findAllNewsFeeds();\r\n if(newsFeeds.isEmpty()){\r\n return new ResponseEntity<List<NewsFeed>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\r\n }\r\n return new ResponseEntity<List<NewsFeed>>(newsFeeds, HttpStatus.OK);\r\n }", "java.util.List<com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail> \n getNewsindentifydetailList();", "List<String> showNewsAndMessages();", "public static List<Article> fetchNewsArticles(String queryUrl) {\n List<Article> articlesList = new ArrayList<>();\n\n // Create a url form the queryUrl\n URL url = createURL(queryUrl);\n\n // Make empty json string\n String jsonResponse = \"\";\n\n try {\n // TRY to make a http request on url, set the returned json string to jsonResponse\n jsonResponse = makeHTTPRequest(url);\n\n // Parse through json string to get the article info needed, and create a list of articles\n articlesList = extractFeatureFromJson(jsonResponse);\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error calling makeHTTPRequest method: \" + e);\n }\n\n // Return list of articles\n return articlesList;\n }", "public static ArrayList<NewsItem> loadNews(int descending) throws JSONException{\n \t\t\n \t\t//Get JSON string from server\n \t\tString result = getJSON(Constants.NEWSFEED + descending); \n \t\t\n \t\tList<NewsItem> posts = new ArrayList<NewsItem>();\n \t\t\n \t\t//Parse JSON string\n \t\t\tJSONObject json_obj = new JSONObject(result);\n \t\t\tJSONArray json_arr = json_obj.getJSONArray(\"data\");\n \t\t\t\n \t\t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\t\t//Get post message\n \t\t\t\tString message = json_arr.getJSONObject(i).optString(\"message\");\n \t\t\t\t\n \t\t\t\t//Get date\n \t\t\t\tString[] date = json_arr.getJSONObject(i).optString(\"created_time\").split(\"T\");\n \t\t\t\t\n \t\t\t\t//Get image url\n \t\t\t\tString image = json_arr.getJSONObject(i).optString(\"picture\");\n \t\t\t\t\n \t\t\t\tif(!image.equals(\"\")){\n \t\t\t\t\timage = image.replace(\"s.jpg\", \"n.jpg\");\n\t\t\t\t\timage = image.replace(\"s.png\", \"n.png\");\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t//Add to posts if valid content\n \t\t\t\tif ((!message.equals(\"\")) && (!date.equals(\"\"))){\n \t\t\t\t\tposts.add(new NewsItem(message, date[0], image));\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\treturn (ArrayList<NewsItem>) posts;\n \t}", "public static List<News> fetchNewsData(String requestedQueryURLString) {\n URL url;\n String JSONResponse = null;\n\n // If requested URL is null return null object\n if (requestedQueryURLString == null) {\n Log.i(LOG_TAG, \"Null url is passed\");\n return null;\n } else {\n url = generateUrl(requestedQueryURLString);\n }\n\n try {\n JSONResponse = makeHttpRequest(url);\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Exception occurred due to closing input Stream : fetchNewsData() gets from readFromStream() block\");\n }\n\n List<News> newsList;\n if (JSONResponse != null) {\n // If JSON response is not null return newsList List object\n newsList = extractFeaturesFromJsonResponse(JSONResponse);\n return newsList;\n } else {\n // If JSON response is null, return null\n return null;\n }\n }", "@RequestMapping(value = \"/news\", method = RequestMethod.GET)\n\tpublic List<News> getListaAggregata() {\n\t\t\n\t\treturn newsWebService.getNewsList().parallelStream().sorted().collect(Collectors.toList());\n\n\t}", "List<WxNews> selectByExample(WxNewsExample example);", "@Override\n public int getItemCount() {\n return news.size();\n }", "public List<News> getNewsList(Integer id) {\n List<News> newsList = newsMapper.selectByAuthorId(id);\n newsList.sort((dt1,dt2) -> {\n if (dt1.getPubdate().getTime() < dt2.getPubdate().getTime()) {\n return 1;\n } else if (dt1.getPubdate().getTime() > dt2.getPubdate().getTime()) {\n return -1;\n } else {\n return 0;\n }\n });\n return newsList;\n }", "public List<DBObject> getNews(List<ObjectId> userStories, int skip) \n throws InputException, MongoException;", "WebBookNewsCateListResult listAllBookNewsCategories();", "public void LoadNews()\n {\n String url = \"https://newsapi.org/v1/articles?source=the-next-web&apiKey=533af958594143758318137469b41ba9\";\n Load_News = new StringRequest(Request.Method.GET,url,Success,Error);\n rQueue = ApplicationSingleton.getInstance().getQueue();\n rQueue.add(Load_News);\n\n\n }", "public static ArrayList<DigitalNewspapers> getDigitalNewsSources(){\n\n Uri builtUri = Uri.parse(BASE_NEWSAPI_SOURCES_EP).buildUpon()\n .build();\n\n URL url = null;\n\n try {\n url = new URL(builtUri.toString());\n return doCall(url);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "@Override\r\n\tpublic List<News> getNewsTjList(String pId, String size, String query) {\n\t\treturn null;\r\n\t}", "@Override\n public int getCount() {\n return news.size();\n }", "@Override\r\n\tpublic List<News> getNewsTtList(String pId, String size, String query) {\n\t\treturn null;\r\n\t}", "LiveData<List<MainEntity>> getAllNews() {\n\t\treturn mainListLiveData;\n\t}", "List<NewsFile> selectAll();", "public List<NewsItem> getNewsItemDataFromDB() throws SQLException;", "private void LoadItems() {\n\n Call<NewsResponce> callNews = null;\n\n if (SourceId != null && DateTo != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, DateTo, currentPage, SourceId);\n\n } else if (SourceId != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, currentPage, SourceId);\n\n } else if (SourceId != null && DateTo != null) {\n callNews = newsApiInterface.GetEverythingDateTo(NewsClient.API_KEY, DateTo, currentPage, SourceId);\n\n } else {\n DialogAlert(R.string.dialog_title_no_criterias, R.string.dialog_message_no_criterias);\n }\n\n if (callNews != null)\n callNews.enqueue(new Callback<NewsResponce>() {\n @Override\n public void onResponse(Call<NewsResponce> call, final Response<NewsResponce> response) {\n if (response.body() != null) {\n if (response.body().getTotalResults() > articleList.size()) {\n articleList.addAll(response.body().getArticles());\n newsAdapter.notifyDataSetChanged();\n ++currentPage;\n }\n } else\n articleList.clear();\n\n Log.d(TAG, articleList.size() + \"\");\n }\n\n @Override\n public void onFailure(Call<NewsResponce> call, Throwable t) {\n Log.e(TAG, t.getMessage());\n }\n });\n }", "public List<Integer> getNewsFeed(int userId) {\n\n }", "@Override\n public List<News> loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n // Perform the network request, parse the response, and extract a list of articles.\n List<News> news = QueryUtils.fetchNewsData(mUrl);\n return news;\n }", "public List getJpmProductSaleNews(JpmProductSaleNew jpmProductSaleNew);", "@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> tmp = twitterTweetMap.getOrDefault(userId, new LinkedList<>());\n return tmp.size() <= 10 ? tmp : tmp.subList(0,10);\n }", "@Override\r\n\tprotected ListBaseAdapter<News> getListAdapter() {\n\t\treturn null;\r\n\t}", "private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }", "@RequestMapping(value = \"/news\", method = RequestMethod.GET)\n public String viewNewsArticles(final HttpServletRequest request, final HttpServletResponse response, final Model model) {\n PagedListHolder<NewsArticle> pagedListHolder = populatePagedListHolder(request);\n\n request.getSession().setAttribute(ARTICLE_LIST, pagedListHolder);\n\n model.addAttribute(\"mostPopular\", getMostPopular());\n\n model.addAttribute(ARTICLE_LIST, pagedListHolder);\n\n return NEWS_PAGE;\n }", "List<String> getFeeds();", "List<NewsInfo> selectByExample(NewsInfoExample example);", "@Override\n\t\tprotected List<NewsBean> doInBackground(Void... params) {\n\t\t\tsynchronized (this) {\n\t\t\t\treturn new ParseXMLUtil().parseNewsXml(ls, url);\n\t\t\t}\n\t\t}", "@Override\n public void fetchNewsFail() {\n }", "private synchronized void processNewsInitial()\n\t\t\t\tthrows ClientProtocolException, IOException, JSONException {\n\t\t\tlong lastTime = System.currentTimeMillis() / 1000;\n\t\t\tlong startTime = lastTime - Utils.MONTH;\n\t\t\tsetNews(ApiHandler.getData(lastTime, startTime));\n\t\t\tmHandler.sendEmptyMessage(CREATE_LIST);\n\t\t}", "public List<Integer> getNewsFeed(int userId) {\n\t\t\tint resultSize = 10;\n\t\t\tList<Integer> result = new ArrayList<>(resultSize);\n\t\t\tSet<Integer> followees = getFollowees(userId);\n\t\t\tint count = 0;\n\t\t\tfor (int i = tweets.size() - 1; i >= 0; i--) {\n\t\t\t\tif (count == resultSize)\n\t\t\t\t\tbreak;\n\t\t\t\tint tweet = tweets.get(i);\n\t\t\t\tint owner = tweetOwner.get(tweet);\n\t\t\t\tif (owner == userId || followees.contains(owner)) {\n\t\t\t\t\tresult.add(tweet);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "@Override\n\tpublic void requestNews() {\n\t\tSystem.out.println(\"xiaoming-requestNews\");\n\t}", "private List<FeedItemRO> getFeedFromGoogle() {\n\t\t// create RO list\n\t\tList<FeedItemRO> feedItemROs = new ArrayList<>();\n\t\t// parse the data with ROME library inside a try-catch so that if there is a connection problem it will throw an exception.\n\t\tURL feedUrl;\n\t\ttry {\n\t\t\tfeedUrl = new URL(\"https://news.google.com/gn/news/?ned=us&gl=US&hl=en&output=rss\");\n\t\t\tSyndFeedInput input = new SyndFeedInput();\n\t\t\tSyndFeed feed = input.build(new XmlReader(feedUrl));\n\t\t\t\n\t\t\t// every news story in the feed is an entry, for each one construct a RO with title, link, description and add it to the list. \n\t\t\tList<SyndEntry> entries = feed.getEntries();\n\t\t\tfor (SyndEntry syndEntry : entries) {\n\t\t\t\tfeedItemROs.add(new FeedItemRO(syndEntry.getTitle(),syndEntry.getLink(), syndEntry.getDescription().getValue()));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//Should be logged properly\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return RO list of news stories.\n\t\treturn feedItemROs;\n\t}", "public ArrayList<ListArt> PrintWikiArticles()\r\n\t{\r\n\t\t//----- Declare variables----------//\r\n\t\tfinal String Art = \"Article\";\r\n\t\tint NumberCross = 0;\r\n\t\tfinal Label recordClassLabel = DynamicLabel.label(Art); \r\n\t\tListArt aux = null;\r\n\t\t//---------------------------------//\r\n\r\n\t\ttry (Transaction tx = graphDb.beginTx()) {\r\n\t\t\tResourceIterator<Node> it = graphDb.findNodes(recordClassLabel, \"wikiid\", \"1395966\"); // Node representing a component\r\n\t\t\tNode next = null; \r\n\t\t\twhile( it.hasNext() ) { \r\n\t\t\t\tnext = it.next(); \r\n\t\t\t\tString lang = (String)next.getProperty(\"lang\");\r\n\t\t\t\tif ( lang.equals(\"en\") ) // language of the node\r\n\t\t\t\t\tbreak; \r\n\t\t\t} \r\n\r\n\t\t\tvisit(graphDb, next, /*visited,*/ NumberCross, aux, ListNode);\r\n\t\t\ttx.success(); \r\n\r\n\t\t}\r\n\t\treturn ListNode;\r\n\r\n\t}", "@Override\n\t\tprotected List<NewsBean> doInBackground(Void... params) {\n\t\t\tsynchronized (this) {\t\t\t\n\t\t\t\treturn new ParseXMLUtil().parseNewsXml(ls,url);\n\t\t\t}\t\t\t\n\t\t}", "public void setupArticlesList();", "@Override\n\tpublic List<NewsCollection> findAllList(Map<String, Object> param) {\n\t\treturn newsCollectionMapper.findAllList(param);\n\t}", "List<News> selectByExample(NewsExample example);", "public void fetchArticles(int page, boolean newSearch) {\n if(newSearch) { articles.clear(); }\n\n AsyncHttpClient client = new AsyncHttpClient();\n String url;\n RequestParams params = new RequestParams();\n params.put(\"api-key\", \"ed5753fe0329424883b2a07a7a7b4817\");\n params.put(\"page\", page);\n\n // If top stories, different parameters\n if(topStories) {\n url = \"https://api.nytimes.com/svc/topstories/v2/home.json\";\n } else {\n url = \"https://api.nytimes.com/svc/search/v2/articlesearch.json\";\n params.put(\"q\",filter.getQuery());\n if(filter.getSort() != null) {\n params.put(\"sort\",filter.getSort());\n }\n if(filter.getBegin_date() != null) {\n params.put(\"begin_date\",filter.getBegin_date());\n }\n if(filter.getNewsDeskOpts().size() > 0) {\n for(int i=0; i<filter.getNewsDeskOpts().size(); i++) {\n params.put(\"fq\",String.format(\"news_desk:(%s)\",filter.getNewsDeskOpts().get(i)));\n }\n }\n Log.d(\"DEBUG\",params.toString());\n }\n\n client.get(url, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.d(\"DEBUG\",response.toString());\n JSONArray articleJsonResults = null;\n try {\n if(!topStories) {\n articleJsonResults = response.getJSONObject(\"response\").getJSONArray(\"docs\");\n } else {\n articleJsonResults = response.getJSONArray(\"results\");\n }\n\n // Every time data is changed, notify adapter; can also do by article.addAll and use adapter.notifyDataSetChanged\n articles.addAll(Article.fromJsonArray(articleJsonResults, topStories));\n adapter.notifyDataSetChanged();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\",\"JSON response failed\");\n super.onFailure(statusCode, headers, throwable, errorResponse);\n }\n });\n }", "@Override\n public int getCount() {\n return newsArticleList.size();\n }", "@Override\n\tpublic void loadNews() {\n\t\tif(newsUrl.contains(\"xyz\")) {\n\t\t\tnewsUrl = \"abc\";\n\t\t}\n\t\t\n\t\tif(realNews==null) {\n\t\t\trealNews = new RealNews(newsUrl);\n\t\t}\n\t\trealNews.loadNews();\n\t}", "@Override\n public void loadNews(boolean forceUpdate) {\n if(forceUpdate) {\n newsRequestTask = new NewsRequestTask(this, context);\n newsRequestTask.execute(URL_NEWS);\n } else {\n List<News> newsList = dbDao.load();\n view.onRefreshList(newsList);\n }\n }", "public static ArrayList<NewsItem> parseNews(String jObject){\r\n\r\n ArrayList<NewsItem> newsItemList = new ArrayList<>();\r\n\r\n try {\r\n JSONObject mainJSONObject = new JSONObject(jObject);\r\n JSONArray items = mainJSONObject.getJSONArray(\"articles\");\r\n\r\n for(int i = 0; i < items.length(); i++){\r\n JSONObject item = items.getJSONObject(i);\r\n newsItemList.add(new NewsItem(item.getString(\"author\"), item.getString(\"title\"),\r\n item.getString(\"description\"), item.getString(\"url\"), item.getString(\"urlToImage\"), item.getString(\"publishedAt\") ));\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n return newsItemList;\r\n }", "public static ArrayList<PieceOfNews> convertPONJson(String jsonNews){\n\n ArrayList<PieceOfNews> allPon = new ArrayList<>();\n\n try {\n JSONObject data = new JSONObject(jsonNews);\n JSONArray jsonAllNews = data.getJSONArray(\"articles\");\n\n\n for (int i = 0; i < jsonAllNews.length(); i++) {\n\n JSONObject jsonPieceOfNews = jsonAllNews.getJSONObject(i);\n\n PieceOfNews pon = new PieceOfNews();\n\n if(jsonPieceOfNews.has(\"author\")){\n pon.setAuthor(jsonPieceOfNews.getString(\"author\"));\n }\n pon.setTitle(jsonPieceOfNews.getString(\"title\"));\n pon.setUrlToExtendedPOF(jsonPieceOfNews.getString(\"url\"));\n\n if(jsonPieceOfNews.has(\"urlToImage\")){\n pon.setUrlToImage(jsonPieceOfNews.getString(\"urlToImage\"));\n }\n\n allPon.add(pon);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return allPon;\n\n }", "@Override\r\n\tpublic List<News> getNewsList(String pId, String size, String query) {\n\t\tString hql=\" WHERE 1=1 AND o.lm.id=\"+pId+query;\r\n\t\treturn this.findAll(News.class, hql, 0, Integer.valueOf(size));\r\n\t}", "public static void notifyLatestNews(@NonNull final Context context) {\n Uri articlesUri = NewsContract.NewsEntry.CONTENT_URI;\n\n Cursor articlesCursor = context.getContentResolver().query(\n articlesUri,\n NEWS_NOTIFICATION_PROJECTION,\n null,\n null,\n NewsContract.NewsEntry.COLUMN_PUBLISHED_AT + \" DESC\");\n\n if(articlesCursor.moveToFirst()) {\n long articleId = articlesCursor.getLong(INDEX_ARTICLE_ID);\n String articleTitle = articlesCursor.getString(INDEX_ARTICLE_TTITLE);\n String articleAuthor = articlesCursor.getString(INDEX_ARTICLE_AUTHOR);\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)\n .setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n .setSmallIcon(R.drawable.ic_sms_black_24dp)\n .setContentText(\"By \" + articleAuthor)\n .setContentTitle(articleTitle)\n .setAutoCancel(true);\n\n Intent intentForLatestArticle = new Intent(context, DetailActivity.class);\n intentForLatestArticle.setData(NewsContract.NewsEntry.buildUriWithId(articleId));\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context)\n .addNextIntentWithParentStack(intentForLatestArticle);\n PendingIntent resultPendingIntent = taskStackBuilder\n .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notificationBuilder.setContentIntent(resultPendingIntent);\n\n NotificationManager notificationManager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(NEWS_NOTIFICATION_ID, notificationBuilder.build());\n\n PreferencesUtils.saveLastNotificationTime(context, System.currentTimeMillis());\n }\n\n articlesCursor.close();\n }", "@Override\n\tpublic Result getNewsByPage(Page page) {\n\t\tList<News> newsList = indexMapper.selectAll();\n\t\tResult result = new Result(1,\"success\",newsList);\n//\t\tSystem.out.println(\"indexService\"+newsList);\n\t\treturn result;\n\t}", "public List<Integer> getNewsFeed(int userId) {\n ArrayList<Tweet> feeds = new ArrayList<>();\n\n User user = getOrCreateUser(userId);\n feeds.addAll(user.myTweets);\n for (User followee : user.following) {\n feeds.addAll(followee.myTweets);\n }\n\n feeds.sort(new Comparator<Tweet>() {\n @Override\n public int compare(Tweet o1, Tweet o2) {\n return o2.counter - o1.counter;\n }\n });\n\n ArrayList<Integer> rlt = new ArrayList<>();\n\n for (Tweet tweet : feeds) {\n rlt.add(tweet.id);\n }\n\n if (rlt.size() > 10)\n return rlt.subList(0, 10);\n\n return rlt;\n }", "private synchronized void processNews() throws ClientProtocolException,\n\t\t\t\tIOException, JSONException {\n\n\t\t\tlong lastTime = mAdapter.getItem(mCount - 1).date;\n\t\t\tlong startTime = lastTime - Utils.MONTH;\n\n\t\t\tsetNews(ApiHandler.getData(lastTime, startTime));\n\t\t\tmHandler.sendEmptyMessage(UPDATE_LIST);\n\t\t}", "@Override\r\n\tpublic List<NoticeVO> recentNoticeList() {\n\t\treturn sqlSession.selectList(namespace + \".recentNoticeList\");\r\n\t}", "@Override\n public HashSet<News> getNewsFreeCriteria(String request) throws ServiceException {\n try {\n String [] parametersForTheSearch;\n parametersForTheSearch = RequestWorker.getSearchParametersInRequest(request);\n\n return dbWorker.searchNewsForFreeCriteria(parametersForTheSearch);\n\n } catch (DAOException e) {\n throw new ServiceException(e.getMessage(),e);\n }\n }", "private void getAllNewsFromDatabase() {\n new GetAllNewsAsyncTask(newsDao).execute(newsList);\n }", "public NewsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "List<String> getArtists();", "@Override\n\tpublic String toString() {\n\t\treturn \"News [newsId=\" + newsId + \", title=\" + title + \", author=\" + author + \", description=\" + description\n\t\t\t\t+ \", content=\" + content + \", publishedAt=\" + publishedAt + \"]\";\n\t}", "@Scheduled(fixedRate = 120000)\n public void readRss() {\n\n List<ItemNews> itemList = new ArrayList<>();\n\n try {\n String url = \"https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml\";\n\n try (XmlReader reader = new XmlReader(new URL(url))) {\n SyndFeed feed = new SyndFeedInput().build(reader);\n for (SyndEntry entry : feed.getEntries()) {\n LocalDateTime localDateTime = entry.getPublishedDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDateTime();\n ItemNews item = new ItemNews();\n item.setTitle(entry.getTitle());\n item.setAuthor(entry.getAuthor());\n item.setLink(entry.getLink());\n item.setDescription(entry.getDescription().getValue());\n item.setDateTime(localDateTime);\n modifyItem(item);\n itemList.add(item);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (!itemList.isEmpty()) {\n Collections.sort(itemList , Comparator.comparing(ItemNews::getDateTime));\n saveItems(itemList);\n }\n }", "public List<News> query(Route route);", "public List<Integer> getNewsFeed(int userId) {\n User target = null;\n for (User user : users) {\n if (user.id == userId) {\n target = user;\n }\n }\n if (target == null) {\n return null;\n }\n List<Tweet> tweets = new ArrayList<>(target.tweetList);\n for (User follower : target.followers) {\n tweets.addAll(follower.tweetList);\n }\n tweets.sort((o1, o2) -> o2.publishTime - o1.publishTime);\n while (tweets.size() > 10) {\n tweets.remove(tweets.size() - 1);\n }\n List<Integer> list = new ArrayList<>();\n for (Tweet tweet : tweets) {\n list.add(tweet.Id);\n }\n return list;\n }", "int getNewsindentifydetailCount();", "@Override\n\tpublic int getCount() {\n\t\treturn newsList == null ? 0 : newsList.size();\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn newsfeedList.size();\n\t\t}", "@Override\n public List<Article> getArticles() {\n List<Article> articles=articleDAO.getArticles();\n knownArticles.addAll(articles);\n return articles;\n }", "java.util.List<online_info>\n getInfoList();", "public List<Integer> getNewsFeed(int userId) {\n if (!followees.containsKey(userId)) {\n followees.put(userId, new HashSet<>());\n followees.get(userId).add(userId);\n }\n List<Integer> result = new ArrayList<>();\n for (int i = tweetList.size() - 1; i >= 0; i--) {\n if (followees.get(userId).contains(tweetList.get(i).userId))\n result.add(tweetList.get(i).tweetId);\n if (result.size() == 10)\n break;\n }\n return result;\n }", "public List<BbsNotice> getNoticeList();", "public List<Element> monitorMainPage(){\n\t\tSystem.out.println(\"monitor main Page\");\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(\"https://www.supremenewyork.com/shop/all\");\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tElements elements = document.getElementsByClass(\"inner-article\");\n\t\tList<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement link = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(link);\n\t\t}\n\t\tresults = articlesGeneral;\t\t\n\n\t\treturn results;\n\n\t}", "@Override\n\tpublic News getNewsById(Integer id) throws Exception {\n\t\treturn null;\n\t}", "private void getArticles() throws Exception {\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\n\n\t\t\tStringBuilder uriBuilder = new StringBuilder(BASE_URL);\n\t\t\turiBuilder.append(mURL);\n\n\t\t\tHttpGet request = new HttpGet(uriBuilder.toString());\n\t\t\tHttpResponse response = httpClient.execute(request);\n\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\n\t\t\tif (status != HttpStatus.SC_OK) {\n\n\t\t\t\t// Log whatever the server returns in the response body.\n\t\t\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\n\t\t\t\tresponse.getEntity().writeTo(ostream);\n\t\t\t\tmHandler.sendEmptyMessage(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tInputStream content = response.getEntity().getContent();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(content));\n\t\t\tStringBuilder result = new StringBuilder();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tresult.append(line);\n\t\t\t}\n\n\t\t\t// Clean up and close connection.\n\t\t\tcontent.close();\n\n\t\t\tString html = result.toString();\n\t\t\t//This is our regex to match each article\n\t\t\t//This website's html is not xml compatible so regex is next best thing\n\t\t\tPattern p = Pattern.compile(\"<td class=\\\"title\\\"><a href=\\\"(.*?)\\\".*?>(.*?)<\\\\/a>(<span class=\\\"comhead\\\">(.*?)<\\\\/span>)?.*?<\\\\/td><\\\\/tr><tr><td colspan=2><\\\\/td><td class=\\\"subtext\\\">.*? by <a href=\\\"user\\\\?.*?\\\">(.*?)<\\\\/a>.*?<a href=\\\"item\\\\?id=(.*?)\\\">\");\n\t\t\tMatcher m = p.matcher(html);\n\t\t\tList<Article> articles = new ArrayList<Article>();\n\t\t\twhile(m.find()) {\n\t\t\t\tString url = m.group(1);\n\t\t\t\tString title = m.group(2);\n\t\t\t\tString domain = m.group(4);\n\t\t\t\tString author = m.group(5);\n\t\t\t\tString discussionID = m.group(6);\n\t\t\t\tArticle eachArticle = new Article(title, domain, url, author, discussionID);\n\t\t\t\tarticles.add(eachArticle); \n\t\t\t}\n\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putParcelableArrayList(\"articles\", (ArrayList<? extends Parcelable>) articles);\n\t\t\tmsg.setData(bundle);\n\t\t\tmHandler.sendMessage(msg);\n\t\t}", "public List<Artist> getArtistsWhichHaveNoReleases();", "@Override\r\n\tpublic void onMpnews(HttpRequest request, Mpnews news) {\n\r\n\t}", "@Override\n public int getCount() {\n return newsModelArrayList.size();\n }", "public List<Integer> getNewsFeed(int userId) {\n\t\t//minHeap the top is the old tweet, which maybe remove from the list\n\t\tPriorityQueue<Tweet> minHeap = new PriorityQueue<>(new Comparator<Tweet>(){\n\t\t\t@Override\n\t\t\tpublic int compare(Tweet t1, Tweet t2) {\n\t\t\t\treturn t1.timePosted - t2.timePosted;\n\t\t\t}\n\t\t});\n\t\t// get my followee Set\n\t\tSet<Integer> myFollowees = followees.get(userId);\n\t\tif (myFollowees != null) {\n\t\t\tfor (Integer followeeId : myFollowees) {\n\t\t\t\t//get the tweets of them\n\t\t\t\tList<Tweet> followeeTweets = tweets.get(followeeId);\n\t\t\t\tif (followeeTweets != null) {\n\t\t\t\t\tfor (Tweet tweet : followeeTweets) {\n\t\t\t\t\t\tif (minHeap.size() < feedMaxNum) {\n\t\t\t\t\t\t\tminHeap.offer(tweet);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//if it is older than the oldest one in the heap just discard\n\t\t\t\t\t\t\tif (tweet.timePosted <= minHeap.peek().timePosted) break;\n\t\t\t\t\t\t\tminHeap.offer(tweet);\n\t\t\t\t\t\t\tminHeap.poll();\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\tList<Integer> myFeed = new LinkedList<>();\n\t\twhile (!minHeap.isEmpty()) {\n\t\t\tmyFeed.add(0, minHeap.poll().tweetId);\n\t\t}\n\t\treturn myFeed;\n\t}", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> \n getNoticeListList();", "private void fetchEverything() {\n ApiNewsMethods newsEverything = retrofit.create(ApiNewsMethods.class);\n newsEverything.getEverything(\"bitcoin\"/*topic input by user*/, newsApiKey).enqueue(new Callback<NewsModelClass>() {\n @Override\n public void onResponse(Call<NewsModelClass> call, Response<NewsModelClass> response) {\n if(response.isSuccessful()) {\n newsModelBody = response.body();\n Log.d(\"myBODY\", newsModelBody.getStatus());\n //text to speech object of the response fetched\n newsUIChanges();\n } else {\n Log.d(\"mySTRING\", \"DID NOT OCCUR\");\n }\n }\n\n @Override\n public void onFailure(Call<NewsModelClass> call, Throwable t) {\n }\n\n });\n }", "public List<Integer> getNewsFeed(int userId) {\n if (!userId2TopTenTweets.containsKey(userId)) {\n return new ArrayList<>(0);\n }\n\n\n userId2TopTenTweets.get(userId).sort((i1, i2)->i2.getTimestamp() - i1.getTimestamp() > 0 ? 1:i2.getTimestamp() - i1.getTimestamp() == 0 ? 0 : -1);\n List<Integer> result = new ArrayList<>();\n int size = 0;\n for (Tweet tweet : userId2TopTenTweets.get(userId)) {\n result.add(tweet.id);\n size++;\n if (size == 10) {\n return result;\n }\n }\n return result;\n }", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }" ]
[ "0.7044034", "0.6990594", "0.694983", "0.6946498", "0.6711309", "0.66985273", "0.6631104", "0.65023494", "0.64973116", "0.64385957", "0.64141846", "0.63994515", "0.6375808", "0.62829185", "0.628118", "0.6267215", "0.62537587", "0.62533605", "0.61960757", "0.6182105", "0.61730456", "0.6152356", "0.61422205", "0.61289495", "0.60911506", "0.6074519", "0.60613084", "0.6040371", "0.6034466", "0.6032779", "0.59997815", "0.59699684", "0.596026", "0.5957128", "0.5919264", "0.5886907", "0.58839816", "0.58735895", "0.58599085", "0.58468544", "0.5834793", "0.58289665", "0.58249265", "0.5824851", "0.57965094", "0.5786597", "0.5775998", "0.5775067", "0.5773708", "0.5762196", "0.5738181", "0.57040393", "0.5703957", "0.5694486", "0.56769985", "0.56639904", "0.56564695", "0.5653561", "0.5649229", "0.5638992", "0.5631515", "0.5631357", "0.5627202", "0.56111676", "0.5604989", "0.56021076", "0.55943376", "0.5593382", "0.5572014", "0.5564928", "0.5563368", "0.55487925", "0.5548477", "0.5542663", "0.5536034", "0.5534728", "0.55280006", "0.55224514", "0.5519572", "0.5511233", "0.54996645", "0.54878575", "0.54775757", "0.5477551", "0.54733306", "0.54636663", "0.5459196", "0.5459067", "0.5456976", "0.54464805", "0.5438767", "0.5429838", "0.5405952", "0.54029024", "0.53967285", "0.53961515", "0.53960925", "0.53954804", "0.5393821", "0.53850406" ]
0.7640424
0
when click Edit link it bring particular data into Form or click Add Important News it shows blank Form to enter New Data
@SkipValidation public String setUpImportantNews() { if ((important != null) && (important.getImportantNewsId() != null)) { important = impService.getImportantNews(important.getImportantNewsId()); } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/newsAdmin\", method = RequestMethod.GET)\n public String loadFormPage(final Model model) {\n LOGGER.log(Level.INFO, \"in loadFormPage\");\n model.addAttribute(NEWS_ARTICLE, new NewsArticle());\n return NEWS_ADMIN_PAGE;\n }", "private String prepareAndReturnEditPage(Model model) {\n this.populateDentistVisitFormModel(model);\n return \"editForm\";\n }", "@RequestMapping(\"/item/{id}/update\")\n\tpublic ModelAndView showEditForm(@PathVariable(\"id\")Long id) {\n\t\tModelAndView mv = new ModelAndView(\"item-form\");\n\t\tmv.addObject(\"title\", \"Edit item!\"); //1st var is name we wanna call it\n\t\tmv.addObject(\"item\", itemDao.findById(id).orElse(null)); //2nd is data we use over and over again\n\t\t\t\t\n\t\t\t\treturn mv;\n\t\t\n\t}", "private void viewEditTblArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tTableItem[] items = tblArticle.getSelection();\n\t\tint len = items.length;\n\t\tif (len == 1) {\n\n\t\t\ttxtArticleName.setText(items[0].getText(0));\n\t\t\ttxtCW.setText(items[0].getText(1));\n\t\t\tcbCCC.setText(items[0].getText(2));\n\t\t\t/*if (items[0].getText(2).equalsIgnoreCase(\"open\") || items[0].getText(2).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtCCCValue.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtCCCValue.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtCCCValue.setText(items[0].getText(3));\n\t\t\thandleCCCTypeChange();\n\t\t\t\n\t\t\tcbDCC.setText(items[0].getText(4));\n\t\t\t/*if (items[0].getText(4).equalsIgnoreCase(\"open\") || items[0].getText(4).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtDCCValue.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtDCCValue.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtDCCValue.setText(items[0].getText(5));\n\t\t\thandleDCCTypeChange();\n\t\t\t\n\t\t\tcbIEC.setText(items[0].getText(6));\n\t\t\t/*if (items[0].getText(6).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtIEC_article.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtIEC_article.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtIEC_article.setText(items[0].getText(7));\n\t\t\thandleIECTypeChange();\n\t\t\t\n\t\t\tcbLoadingCharge.setText(items[0].getText(8));\n\t\t\t/*if (items[0].getText(8).equalsIgnoreCase(\"Dont Charge\")) {\n\t\t\t\ttxtLC_article.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtLC_article.setEnabled(true);\n\t\t\t}*/\n\t\t\ttxtLC_article.setText((items[0].getText(9)));\n\t\t\thandleLCTypeChange();\n\t\t\t\n\t\t\tcbDDC.setText(items[0].getText(10));\n\t\t\tif (items[0].getText(10).equalsIgnoreCase(\"extra\")) {\n\t\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\t\t} else if ((items[0].getText(10).equalsIgnoreCase(\"free\"))) {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\t\t\t} else {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t\ttxtDDC_minPerLR.setEnabled(true);\n\t\t\t}\n\t\t\ttxtDDC_minPerLR.setText(((items[0].getText(11))));\n\t\t\ttxtDDC_chargeArticle.setText(((items[0].getText(12))));\n\n\t\t\t// }\n\t\t}\n\t\thandleMixedArticleDropdown();\n\t}", "@RequestMapping(value = \"/edit/update\", method = RequestMethod.POST)\n public String updateArticle(@ModelAttribute final NewsArticle newsArticle, final Model model, final HttpServletRequest request) {\n newsService.editNewsArticle(newsArticle);\n request.getSession().setAttribute(ARTICLE_LIST, null);\n PagedListHolder<NewsArticle> pagedListHolder = populatePagedListHolder(request);\n\n request.getSession().setAttribute(ARTICLE_LIST, pagedListHolder);\n\n model.addAttribute(ARTICLE_LIST, pagedListHolder);\n\n return REDIRECT_NEWS;\n }", "public void clickEditLink() {\r\n\t\tbtn_EditLink.click();\r\n\t}", "@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}", "private void edit() {\n\n\t}", "public void editProduct(SiteProduct product) {\n showForm(product != null);\n //form.editProduct(product);\n }", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "private void getEditLinkPanel() {\n\t\ttry{\n\t\t\tEditLinkPanel editLinkPanel = new EditLinkPanel(newsItem, feedNewsPresenter);\n\t\t\toptionPanel.add(editLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {\n PAK_ISSUE_SALE_DB data= new PAK_ISSUE_SALE_DB();\n if(data.chech_qty(connAA,invNo.getText())){\n// if(data.chech_order_or_sale(connAA,invNo.getText())){// invno present in Customer leger or not\n forBackBtnEnable(false); recEditBtnEnable(false);textFieldsEditable(true);saveUpdateBtnVisible(\"update\", true);sellers1=(String)suppName.getSelectedItem();refNo1=refNo.getText();remarks1=remarks.getText();\n// }else{\n// JFrame j=new JFrame();j.setAlwaysOnTop(true);\n// JOptionPane.showMessageDialog(j,\n// \"You can not edit the delivered stock because it is generated from Sales Order\",\n// \"InfoBox: \", JOptionPane.INFORMATION_MESSAGE);\n }else{\n JFrame j=new JFrame();j.setAlwaysOnTop(true);\n JOptionPane.showMessageDialog(j,\n \"You can't Edit or Delete this invoice Due to Entry Of Sales Return.\"\n + \"\\nFor Edit or Delete First Go to the Return Page & Set text '0' in Issue Adjustment\",\n \"InfoBox: \", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\tif (requestCode == 333 && resultCode == RESULT_OK) {\n\t\t\tDtb_OneNewsObject c = (Dtb_OneNewsObject) data.getExtras().get(\n\t\t\t\t\t\"congviec\");\n\t\t\t// sua lai thong tin sqlite\n\t\t\tqlb.editNews(c);\n\t\t\t// hien thi lai tin\n\t\t\tdisplayDataUpListView();\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "private void prepareAndShowEditForm(TileRecord tileRecord) {\n\t\tString ownerGoogleID = tileRecord.getAttribute(\"ownerGoogleID\");\r\n\t\tString currentGoogleID = loginInfo.getGoogleID();\r\n\t\t//edit\r\n\t\tif (loginInfo.isUserAdmin() || \r\n\t\t\t\t(loginInfo.isLoggedIn() && currentGoogleID.equals(ownerGoogleID))) {\r\n\t\t\tboundSwagForm.enable();\r\n\t\t\teditButtonsLayout.show();\r\n\t\t\timFeelingLuckyButton.show();\r\n\t\t\ttabSet.setTabTitle(0,\"Edit Item\");\r\n\t\t}\r\n\t\t//view\r\n\t\telse {\r\n\t\t\tboundSwagForm.disable();\r\n\t\t\teditButtonsLayout.hide();\r\n\t\t\timFeelingLuckyButton.hide();\r\n\t\t\ttabSet.setTabTitle(0,\"View Item\");\r\n\t\t}\r\n\t\ttabSet.selectTab(0); //put it on the view/edit tab\r\n\t\titemEditTitleLabel.setIcon(\"/springmvc/showThumbnail/\" + tileRecord.getAttribute(\"imageKey\")); \r\n\t\tString itemName = tileRecord.getAttribute(\"name\");\r\n\t\tString ownerNickName = tileRecord.getAttribute(\"ownerNickName\");\r\n\t\tDate lastUpdated = tileRecord.getAttributeAsDate(\"lastUpdated\");\r\n\t\titemEditTitleLabel.setContents(\"<b>\" + itemName + \"</b> posted by: <b>\"\r\n\t\t\t\t+ ownerNickName + \"</b> (\" + dateFormatter.format(lastUpdated) + \")\");\r\n\t\tboundSwagForm.editRecord(tileRecord);\r\n\t\tcurrentSwagImage.setSrc(\"/springmvc/showImage/\" + tileRecord.getAttribute(\"imageKey\")); \r\n\t\tcurrentSwagImage.setWidth(283);\r\n\t\tcurrentSwagImage.setHeight(212);\r\n\t\t\r\n\t\t//show commentsTab if it's been removed\r\n\t\tif (tabSet.getTab(1) == null) {\r\n\t\t\ttabSet.addTab(commentsTab);\r\n\t\t}\r\n\t\t\r\n\t\tLong currentKey = Long.valueOf(tileRecord.getAttribute(\"key\"));\r\n\t\tstarClickHandler1.setSwagItemRating(new SwagItemRating(currentKey,1));\r\n\t\tstarClickHandler2.setSwagItemRating(new SwagItemRating(currentKey,2));\r\n\t\tstarClickHandler3.setSwagItemRating(new SwagItemRating(currentKey,3));\r\n\t\tstarClickHandler4.setSwagItemRating(new SwagItemRating(currentKey,4));\r\n\t\tstarClickHandler5.setSwagItemRating(new SwagItemRating(currentKey,5));\r\n\t\t\r\n\t\tupdateUserRatingStars(currentKey);\r\n\t\t\r\n\t\t//get fresh comments\r\n\t\trefreshComments(currentKey);\r\n\t\tstarHStack.show();\r\n\t\teditFormHStack.show();\r\n\t}", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\thome = new AdminDashboardForm();\r\n\t\t\tRootPanel.get(\"details\").add(home);\r\n\t\t}", "public void onEdit(View view){\n\n Intent intent = new Intent(this,ACT_Edit_Course.class);\n intent.putExtra(\"refID\",selectedCategory);\n startActivity(intent);\n\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tdropdown.clear();\r\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tSpielplanErstellenForm erstellen = new SpielplanErstellenForm();\r\n\r\n\t\t\tRootPanel.get(\"details\").add(erstellen);\r\n\t\t}", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}", "@RequestMapping(value = \"/editPersona\", method = RequestMethod.GET)\n\tpublic String showFormForUpdate(@RequestParam(\"id_persona\") int id_persona, Model model) {\n\t\tPersona Person = personaService.getPersona(id_persona);\n\t\tmodel.addAttribute(\"Person\", Person);\n\t\treturn \"editPersona\";\n\t}", "public edit() {\n initComponents();\n }", "@RequestMapping(value = \"/edit/{id}\", method = RequestMethod.GET)\n public String editArticle(@PathVariable final Integer id, final Model model) {\n NewsArticle article = newsService.getArticle(id);\n model.addAttribute(NEWS_ARTICLE, article);\n\n return \"editNews\";\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(context, NewsDetails.class);\n intent.putExtra(\"desc\", desc.getText().toString()); // here key is = desc\n intent.putExtra(\"pubdate\", pub.getText().toString()); //key is = pubdate ,, nd in next activity key must be same\n intent.putExtra(\"title\", txtTitle.getText().toString());\n intent.putExtra(\"shdesc\", shdesc.getText().toString());\n intent.putExtra(\"postedby\", uname.getText().toString());\n context.startActivity(intent);\n }", "public void mmEditClick(ActionEvent event) throws Exception{\r\n displayEditProfile();\r\n }", "private void showOldAuthorData() {\n try {\n Author author = authorService.getAuthorById(selectedId);\n nameTxt.setText(author.getName());\n surnameTxt.setText(author.getSurname());\n } catch (Exception ex) {\n Logger.getLogger(EditAuthorFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void onClick(ClickEvent event) {\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}", "public String edit() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getExpenseSearch(expenses);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setOnLoadFlag(true);\r\n\t\texpenses.setCancelFlg(\"true\");\r\n\t\texpenses.setPageFlag(\"true\");\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n if (from == Constant.NEW_NEWS) {\n insertNews();\n } else {\n deleteNews();\n }\n floatingActionButtonSave.setVisibility(View.GONE);\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 }", "@PostMapping(\"/edit\")\r\n public String editDetails(Model model,@RequestParam int id) {\r\n \t\r\n try {\r\n Trainee trainee = service.findById(id);\r\n \r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"modify\";\r\n }", "protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}", "@Override\n\tpublic ModelAndView edit(String id) {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tIntent i = new Intent(NewProfileActivity.this,\n\t\t\t\t\t\tTBDispContacts.class);\n\t\t\t\ti.putExtra(\"Edit\", \"true\");\n\t\t\t\ti.putExtra(\"Details\", \"false\");\n\t\t\t\tstartActivity(i);\n\t\t\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\n if(request.getParameter(\"btn_edit\")!=null) \n {\t\n \t String company_name=request.getParameter(\"Name\"); \n\t String address_line_1=request.getParameter(\"address1\"); \n\t String address_line_2=request.getParameter(\"address2\"); \n\t String city =request.getParameter(\"city\");\n\t String email=request.getParameter(\"email\");\n\t String mobile=request.getParameter(\"mobile\");\n\t String item_name=request.getParameter(\"itemname\");\n\t \n\t double unit_Price=Double.parseDouble(request.getParameter(\"unitprice\"));\n \t \n int hidden_id=Integer.parseInt(request.getParameter(\"hidden_id\")); \n \n ORM_AddMetModel m=new ORM_AddMetModel(); \n \n m.setCompany_name(company_name);\n\t m.setAddress_line_1(address_line_1);\n\t m.setAddress_line_2(address_line_2);\t \n\t m.setCity(city);\n\t m.setEmail(email);\n\t m.setMobile(mobile);\n\t m.setItem_name(item_name);\n\t m.setUnit_Price(unit_Price);\n\t m.setId(hidden_id);\n\t \n \n ORM_EditMetDao editDao=new ORM_EditMetDao();\n \n String updateValidate=editDao.checkUpdate(m); \n \n if(updateValidate.equals(\"UPDATE SUCCESS\")) \n {\n request.setAttribute(\"UpdateSuccessMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_MetPortal.jsp\");\n rd.forward(request, response);\n }\n else\n {\n request.setAttribute(\"UpdateErrorMsg\",updateValidate); \n RequestDispatcher rd=request.getRequestDispatcher(\"6_ORM_Material.jsp\");\n rd.include(request, response);\n }\n }\n\t}", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, EditDataActivity.class);\n startActivity(intent);\n\n }", "public void loadNewEdit(){\n fabAdd.hide();\n fabSave.show();\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragContainer1,new CourseEditFragment(),\"EDIT\")\n .addToBackStack(\"EDIT\")\n .commit();\n }", "@RequestMapping(path=\"/actualizaFormulario\")\r\n public String viewUpdateForm(@RequestParam(name=\"id\")int id,Model model)\r\n {\n \tProducto producto=productoDAO.getProducto(id);\r\n \t//Introducimos el producto en el modelo\r\n \tmodel.addAttribute(\"producto\", producto);\r\n \t//Llamamos al formulario de actualizacion\r\n \treturn \"formularioProducto2\";\r\n }", "public articlesModify() {\n initComponents();\n }", "private void edit() {\r\n if (String.valueOf(txt_name.getText()).equals(\"\") || String.valueOf(txt_bagian.getText()).equals(\"\")|| String.valueOf(txt_address.getText()).equals(\"\")|| String.valueOf(txt_telp.getText()).equals(\"\")) {\r\n Toast.makeText(getApplicationContext(),\r\n \"Anda belum memasukan Nama atau ALamat ...\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n SQLite.update(Integer.parseInt(txt_id.getText().toString().trim()),txt_name.getText().toString().trim(),\r\n txt_bagian.getText().toString().trim(),\r\n txt_address.getText().toString().trim(),\r\n txt_telp.getText().toString().trim());\r\n Toast.makeText(getApplicationContext(),\"Data berhasil di Ubah\",Toast.LENGTH_SHORT).show();\r\n blank();\r\n finish();\r\n }\r\n }", "private void edit() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null)) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.update(Integer.parseInt(idField.getText().toString().trim()),nama_pasien2,nama_dokter2, tgl_pengobatanField.getText().toString().trim(),waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "private void initFormEditMode() {\n initSpinnerSelectionChamps();\n //encodage de la chaine de caracteres correspondant au nom du produit pour etre passé dans l'URL\n String urlCategorieName = null;\n try {\n urlCategorieName = URLEncoder.encode(this.nomCategorie, ENCODING);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n //preparation de l'URL\n String[] params = {urlCategorieName};\n final String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_GET, params);\n\n //requete pour recuperer la categorie a editer (asynchrone)\n asyncHttpClient.get(getActivity(), url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONObject jsonObject = new JSONObject(response);\n //TODO PAUSE\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Log.e(\"CATEGORIE_EDIT\", \"fail to connect: \" + url + \" \" + statusCode);\n }\n });\n }", "public void marksEdit(View view) {\n Intent intent = new Intent(getApplicationContext(), InsertingAtten.class);\n intent.putExtra(\"STATUS\", \"edit\");\n intent.putExtra(\"SEMESTER\", semester);\n intent.putExtra(\"SECTION\", section);\n intent.putExtra(\"COURSEID\", courseId);\n intent.putExtra(\"DEPARTMENT\", department);\n intent.putExtra(\"SERIES\", series);\n startActivity(intent);\n }", "protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }", "private void editOtherDetails() {\n addLanguageTv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditTextDialogue(\"language\");\n }\n });\n\n // Edit Skills click listener\n addSkillsTv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditTextDialogue(\"skills\");\n }\n });\n\n // Edit Links click Listener\n\n addLinksTv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditTextDialogue(\"links\");\n }\n });\n\n //Edit Description\n addDescTv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n descriptionTv.setVisibility(View.GONE);\n descriptionET.setVisibility(View.VISIBLE);\n descriptionET.setText(description);\n }\n });\n\n saveBtnCv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(final View v) {\n final String value = descriptionET.getText().toString().trim();\n progressDialog.setTitle(\"Saving Information...\");\n progressDialog.show();\n HashMap<String, Object> result = new HashMap<>();\n result.put(\"description\", value);\n\n dbReference.child(user.getUid()).updateChildren(result)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @SuppressLint(\"RestrictedApi\")\n @Override\n public void onSuccess(Void aVoid) {\n\n descriptionTv.setText(value);\n descriptionET.setVisibility(View.GONE);\n descriptionTv.setVisibility(View.VISIBLE);\n\n editProfFab.setVisibility(View.VISIBLE);\n savBtnRL.setVisibility(View.GONE);\n addLanguageTv.setVisibility(View.GONE);\n addSkillsTv.setVisibility(View.GONE);\n addLinksTv.setVisibility(View.GONE);\n addDescTv.setVisibility(View.GONE);\n\n progressDialog.dismiss();\n Toast.makeText(UserProfile.this, \"Saved Successfully..\", Toast.LENGTH_SHORT).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\n Toast.makeText(UserProfile.this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n }\n });\n }", "@RequestMapping(value = \"/viewcategory\", method = RequestMethod.GET)\r\n\tpublic String getEdit(@RequestParam(value=\"categoryId\") Integer categoryId,Model model) \r\n\t{\r\n\t\tString found = \"false\";\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tmodel.addAttribute(\"category\", categoryDao.getCategory(categoryId));\r\n\t\tObject categoryName=categoryDao.getCategory(categoryId).getCategoryName();\r\n\t\tList<ItemMaster> itemCategoryName=itemmasterDao.getBaseCategoryName(categoryName.toString());\r\n\t\tif(!itemCategoryName.isEmpty())\r\n\t\t{\r\n\t\t\tfound=\"true\";\r\n\t\t}else {\r\n\t\t\tfound = \"false\";\r\n\t\t}\r\n\t\tmodel.addAttribute(\"baseCategoryName\",found);\r\n\t\treturn \"formcategory\";\r\n\t}", "@GetMapping(\"/edit\")\r\n\tpublic String showEdit(@RequestParam Integer id,Model model)\r\n\t{\r\n\t\tProduct p=service.getOneProduct(id);\r\n\t\tmodel.addAttribute(\"product\", p);\r\n\t\treturn \"ProductEdit\";\r\n\t}", "public void editarData(){\n\t\talunoTurmaService.inserirAlterar(alunoTurmaAltera);\n\t\t\n\t\t\n\t\tmovimentacao.setDataMovimentacao(alunoTurmaAltera.getDataMudanca());\n\t\tmovimentacaoService.inserirAlterar(movimentacao);\n\t\t\n\t\tFecharDialog.fecharDialogDATAAluno();\n\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\talunoTurmaAltera = new AlunoTurma();\n\t\tmovimentacao = new Movimentacao();\n\t\t\n\t\tatualizarListas();\n\t}", "public void doAdd() {\r\n\t\tif (_mode == MODE_LIST_ON_PAGE && _listForm != null) {\r\n\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\tDataStoreBuffer ds = getDataStore();\r\n\t\t\tif (listDs == ds && ds != null) {\r\n\t\t\t\t//same datastore on list and detail\r\n\t\t\t\tif (ds.getRowCount() > 0 && (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW))\r\n\t\t\t\t\treturn;\r\n\r\n if (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED) ds.deleteRow();\r\n if (isDataModified()) undoChanges();\r\n\r\n\t\t\t\tds.insertRow();\r\n\t\t\t\tif (_listForm.getDataTable() != null) {\r\n\t\t\t\t\tJspDataTable tab = _listForm.getDataTable();\r\n\t\t\t\t\tif (!tab.isRowOnPage(ds.getRowCount() - 1))\r\n\t\t\t\t\t\ttab.setPage(tab.getPage(ds.getRowCount() - 1));\r\n\t\t\t\t}\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\r\n\t\t\t} else if (_ds != null) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tif (listDs != null)\r\n\t\t\t\t\tlistDs.clearSelectedRow();\r\n\t\t\t\t_listSelectedRow = null;\r\n\t\t\t\t_ds.reset();\r\n\t\t\t\t_ds.insertRow();\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsetVisible(true);\r\n\t\t} else {\r\n\t\t\t_listSelectedRow = null;\r\n\t\t\t_ds.reset();\r\n\t\t\t_ds.insertRow();\r\n\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\tif (comp != null)\r\n\t\t\t\tcomp.setFocus();\r\n\t\t\tscrollToMe();\r\n\t\t}\r\n\t}", "public void editLogInfo(BaseModel model, boolean newFlag, HttpServletRequest req) {\r\n\t\tHttpSession session = req.getSession();\r\n\t\tUser user = (User) session.getAttribute(\"User\");\r\n\t\tCompany company = new Company();\r\n\r\n\t\r\nlogger.info(\"editLogInfo companyid is :\"+user.getCompany().getCompanyId()+\"newFlag is :\"+newFlag);\r\n\t\tcompany.setCompanyId(user.getCompany().getCompanyId());\r\n\t\tmodel.setCompany(company);\r\n\r\n\t\t// model.setDateUpdate(dateUpdate);\r\n\t\tif (user.getGroupg() == null) {\r\n\t\t\tGroupg groupg = new Groupg();\r\n\t\t\tgroupg.setGroupId(1l);\r\n\t\t\tmodel.setGroupg(groupg);\r\n\t\t} else {\r\n\t\t\tmodel.setGroupg(user.getGroupg());\r\n\t\t}\r\n\r\n\t\tmodel.setDateUpdate(new Date());\r\n\t\tmodel.setUserIdUpdate(user.getUserId());\r\n\t\tif (newFlag) {\r\n\t\t\tmodel.setDateCreated(new Date());\r\n\t\t\tmodel.setUserId(user.getUserId());\r\n\t\t\tmodel.setEffectiveStartDate(new Date());\r\n\t\t\tmodel.setActiveStatus(\"AC\");\r\n\t\t}\r\n\t\t/*else {\r\n\r\n\t\t\tmodel.setEffectiveEndDate(new Date());\r\n\t\t\tmodel.setActiveStatus(\"DE\");\r\n\t\t}\r\n*/\t}", "Product editProduct(Product product);", "@RequestMapping(value = \"/{id}/edit.html\", method = RequestMethod.GET)\n public String provideForm(@PathVariable(\"id\") Long id, Model model) \n throws Exception {\n FixtureModel fixture = fixtureService.findFixtureById(id); \n model.addAttribute(\"fixture\", fixture);\n return FORM_VIEW_NAME;\n }", "public String saveNewsAndEvents() throws POLLINGBusinessException{\n\t\t\t\n\t\tthis.populateMenu();\n\t\t\t\tSystem.out.println(\"hello 1\");\n\t\t String flag = CommonConstants.FAILURE_ERROR;\n\t\t if(request.getSession().getAttribute(\"adminDetailDto\") == null) {\n\t\t\t\t\treturn \"login\";\n\t\t\t\t}\n\t\t\t\tAdminDetailDto adminDetailDto = new AdminDetailDto();\n\t\t\t\tadminDetailDto = (AdminDetailDto) request.getSession().getAttribute(\"adminDetailDto\");\n\t\t\t\t\n\t\t Pattern p = Pattern.compile(\"^[a-z0-9@._,&:-]\", Pattern.CASE_INSENSITIVE);\n\t\t\t String headline = newsAndEventsDto.getGstr_headline();\n\t\t\t String content = newsAndEventsDto.getGstr_content();\n\t\t\t String gnum_slno = request.getParameter(\"newsAndEventsDto.gnum_slno\");\n\t\t\t Matcher headlineDesc = p.matcher(headline); \n\t\t\t boolean name = headlineDesc.find();\n\t\t\t Matcher contentDesc = p.matcher(content);\n\t\t\t boolean desciption = contentDesc.find();\n\t\t\t \n\t\t\t if(headline!=null && content!=null){\n\t\t\t\t if(name == false){\n\t\t\t\t\t showNewsAndEvents();\n\t\t\t\t\t info = \"<div class='message error'><h5>Error!</h5><p>Scriptlet Characters are not allowed</p></div>\";\n\t\t\t\t flag = CommonConstants.FAILURE_ERROR;\n\t\t\t\t } else {\n\t\t\t \tif(desciption == false){\n\t\t\t \t\tshowNewsAndEvents();\n\t\t\t \t\tinfo = \"<div class='message error'><h5>Error!</h5><p>Scriptlet Characters are not allowed</p></div>\";\n\t\t\t \t\tflag = CommonConstants.FAILURE_ERROR;\n\t\t\t \t} else {\n\t\t\t \t\tif(gnum_slno.equals(\"\")) {\n\t\t\t \t\t\t checkAvailNewsAndEventsList = this.getNewsAndEventsServices().checkAvailNewsAndEvents(headline);\n\t\t\t \t\t \tif(checkAvailNewsAndEventsList!=null && checkAvailNewsAndEventsList.size()>0){\n\t\t\t\t\t\t \t\n\t\t\t\t\t\t \t\tshowNewsAndEvents();\n\t\t\t\t\t\t \t\tnewsAndEventsDto = new NewsAndEventsDto();\n \t\t\t\t \t info = \"<div class='message error'><h5>Error!</h5><p>Record is already exist, Try Again</p></div>\";\n\t\t\t\t\t\t \t\tflag = CommonConstants.FAILURE_ALREADY_EXIST;\n\t\t\t\t\t\t \t} else {\n\t\t\t \t\t \tnewsAndEventsDto.setGnum_is_active(1);\n\t\t\t \t\t \tnewsAndEventsDto.setAdminDetailDto(adminDetailDto);\n\t\t\t\t\t \t\t \t\tthis.getNewsAndEventsServices().updateNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t \t\t \tnewsAndEventsDtoList = null;\n\t\t\t\t\t \t\t \tnewsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t \t\t \tnewsAndEventsDto = new NewsAndEventsDto();\n\t\t\t\t\t \t\t \tshowNewsAndEvents();\n\t\t\t\t\t \t\t \tinfo = \"<div class='message success'><h5>Success!</h5><p>Record Insert successfully.</p></div>\";\n\t\t\t\t\t\t flag = CommonConstants.SUCCESS_FLAG;\n\t\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t \t } else {\n\t\t\t\t\t\t \t\t newsAndEventsDto.setGnum_is_active(1); \n\t\t\t\t\t\t \t\t newsAndEventsDto.setAdminDetailDto(adminDetailDto);\n\t\t\t\t\t newsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t this.getNewsAndEventsServices().updateNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t showNewsAndEvents();\n\t\t\t\t\t \t info = \"<div class='message success'><h5>Success!</h5><p>Record Has been updated successfully.</p></div>\";\n\t\t\t\t\t newsAndEventsDto = new NewsAndEventsDto();\n\t\t\t\t\t \t\t flag = CommonConstants.SUCCESS_FLAG;\n\t\t\t \t\t }\n\t\t\t \t }\n\t\t\t }\n\t\t\t } else {\n\t\t\t\t newsAndEventsDto = null;\n\t\t\t showNewsAndEvents();\n\t\t\t info = \"<div class='message error'><h5>Error!</h5><p>Try Again Because Values are Null.</p></div>\";\n\t\t\t flag = CommonConstants.FAILURE_ERROR;\n\t\t\t }\n\t\t\t return flag;\n\t}", "public void updateDetails(int id){\n ArticlesModel.getInstance().setOnContentsUpdateListener(this);\n Article article = ArticlesModel.getInstance().getArticleList().get(id);\n ArticlesModel.getInstance().ContentsItem(article.getArticleId());\n\n }", "@RequestMapping(value = \"/modify\", method=RequestMethod.POST) //보낼때 post로 보낸다..............용량 크거나 아이다 패스워드같은\n\tpublic String modify(HttpServletRequest request, Model model) {\n\t\tdao.modify(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"));\n\t\treturn \"redirect:list\";\n\t}", "public void viewRecord(int pos){\n\n Intent i = new Intent(getApplicationContext(),addExpensesPage.class);\n\n Expenses _e = recordList.getMyRecords().get(pos);\n\n i.putExtra(\"Edit\",pos);\n i.putExtra(\"Date\",_e.getExpenseDate());\n i.putExtra(\"Amount\",_e.getAmount());\n i.putExtra(\"Category\",_e.getCategory());\n i.putExtra(\"Choice\",_e.getCategory_choice());\n i.putExtra(\"Payment\",_e.getpMethod());\n i.putExtra(\"Description\",_e.getDescription());\n\n startActivity(i);\n }", "private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }", "public void editOperation() {\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n Intent addEvent = new Intent(getApplicationContext(), EditActivity.class);\n startActivity(addEvent);\n }", "@RequestMapping(\"/edit/{id}\")\n public String editPage(@PathVariable Integer id, HttpSession session, Model model) {\n if (!baseRequest(session, model)) {\n return \"redirect:/login\";\n }\n\n Data_sets data = data_setsService.getData_setsById(id);\n\n if (data.getVendor_id() == 0) {\n data.setVendor_name(\"Administrator\");\n } else {\n Vendors vendors = vendorService.getVendorIDById(data.getVendor_id());\n data.setVendor_name(vendors.getLegal_name());\n }\n List<Price_model> price_modelsList = price_modelService.findAll();\n List<Asset_class> assetClassLists = asset_classService.findAll();\n List<Asset_class> assetClassList = new ArrayList<>();\n for (int i = 1; i < assetClassLists.size(); i++) {\n assetClassList.add(assetClassLists.get(i));\n }\n List<Data_type> dataTypeList = data_typeService.findAll();\n List<Region> regionList = regionService.findAll();\n List<Publisher> publisherList = publisherService.findAll();\n List<Data_category> data_categoryList = data_categoryService.findAll();\n\n model.addAttribute(\"data_categoryList\", data_categoryList);\n model.addAttribute(\"price_modelsList\", price_modelsList);\n model.addAttribute(\"asset_classList\", assetClassList);\n model.addAttribute(\"data_typeList\", dataTypeList);\n model.addAttribute(\"regionList\", regionList);\n model.addAttribute(\"publisherList\", publisherList);\n\n model.addAttribute(\"domain\", domain);\n\n model.addAttribute(\"data\", data);\n return \"admin/data_set/edit\";\n }", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "public void onPressEdit() {\r\n Intent intent = new Intent(this, CreateEventActivity.class);\r\n intent.putExtra(CreateEventActivity.EXTRA_EDIT_EVENT_UID, event.uid);\r\n startActivity(intent);\r\n }", "public EditInfo() {\n initComponents();\n }", "public String toEdit() {\n\t\t HttpServletRequest request = (HttpServletRequest) FacesContext\n\t\t\t\t\t.getCurrentInstance().getExternalContext().getRequest();\n\t\t\t String idf = request.getParameter(\"idf\");\n\t log.info(\"----------------------------IDF--------------\"+idf);\n\t\t\treturn \"paramEdit?faces-redirect=true&idf=\"+idf;\n\t\n\t}", "public EmpresaEditView(String codigo, JDesktopPane index) {\n super(\"EDITAR EMPRESA\");\n index.add(this);\n initComponents();\n EmpresaDAO dao = new EmpresaDAO();\n EmpresaBEAN empresas = dao.get(codigo);\n txtNome.setText(empresas.getNome());\n txtEndereco.setText(empresas.getEndereco());\n txtBairro.setText(empresas.getBairro());\n txtCodigo.setText(empresas.getCodigo());\n txtCnpj.setText(empresas.getCnpj());\n txtTelefone.setText(empresas.getTelefone());\n txtLogradouro.setText(empresas.getLogradouro());\n selectEstado.setSelectedItem(empresas.getEstado());\n\n }", "public void firstLoadBookUpdate(CheckOutForm myForm) {\n\t\tString isbn=myForm.getFrmIsbn();\r\n\t\tViewDetailBook myViewDetailBook=myViewDetailBookDao.getBookInfoByIsbn(isbn);\r\n\t\tmyForm.setFrmViewDetailBook(myViewDetailBook);\r\n\t\tint cp=myViewDetailBook.getNoofcopies();\r\n\t\tSystem.out.println(\"No of Copy in First Load Book Update=\"+cp);\r\n\t\tmyForm.setNoOfcopies(cp);\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/edit/{employeeID}\", method = RequestMethod.GET)\n public ModelAndView initUpdateOwnerForm(@PathVariable(\"employeeID\") String employeeID, Model model) {\n \tEmployee e = empService.findById(employeeID);\n\t\tModelAndView mav= new ModelAndView(\"CreateOrUpdateEmployee\",\"employee\",e);\n\t\tString s=\"edit\";\n\t\tmav.addObject(\"actiont\", s);\n\t\t mav.addObject(\"roleList\", roleRepo.findAll());\n\t\t mav.addObject(\"SupervisorList\",empService.ListOfSuperVisor());\n return mav;\n }", "@Override\n\tpublic void buttonClick(ClickEvent event) {\n\t\tif (event.getButton()==view.getBtnAddForm()){\n\t\t\taddHeader();\n\t\t} else if (event.getButton()==view.getBtnDeleteForm()){\n\t\t\tdeleteHeader();\n\t\t} else if (event.getButton()==view.getBtnSearchForm()){\n\t\t\tsearchHeader();\n\t\t} else if (event.getButton()==view.getBtnAdd()){\n\t\t\taddDetailModul();\n\t\t} else if (event.getButton()==view.getBtnRem()){\n\t\t\tremDetailModul();\n\t\t} else if (event.getButton()==view.getBtnSaveForm()){\n\t\t\tsaveForm();\n\t\t} else if (event.getButton()==view.getBtnCancelForm()){\n\t\t\tcancelForm();\n\t\t} \n\t\t\n\t}", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "@Override\n public void onClick(View view, int position) {\n\n Intent intent =new Intent(getContext(), EditFoodItme.class);\n // intent.putExtra(\"shopid\", id.getText());\n startActivity(intent);\n\n //Detail.navigate(appCompatActivity, view.findViewById(R.id.iv_recipe));\n\n }", "public void edit(RequestBean request) {\n\t\t\r\n\t}", "public ViewResumePage clickonedit() throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(edit);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Edit button is not displayed\");\r\n\t\t\t\telement.click();\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Edit Button NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn new ViewResumePage(driver);\r\n\t\t\r\n\t}", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "private void butEditFeeSched_Click(Object sender, System.EventArgs e) throws Exception {\n long selectedSched = 0;\n if (listFeeSched.SelectedIndex != -1)\n {\n selectedSched = FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum;\n }\n \n FormFeeScheds FormF = new FormFeeScheds();\n FormF.ShowDialog();\n DataValid.setInvalid(InvalidType.FeeScheds,InvalidType.Fees,InvalidType.ProcCodes);\n //Fees.Refresh();\n //ProcedureCodes.RefreshCache();\n changed = true;\n fillFeeSchedules();\n for (int i = 0;i < FeeSchedC.getListShort().Count;i++)\n {\n if (FeeSchedC.getListShort()[i].FeeSchedNum == selectedSched)\n {\n listFeeSched.SelectedIndex = i;\n }\n \n }\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedules\");\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\"; }", "protected abstract void editItem();", "@Override\n public void onClick(View v) {\n Log.d(\"prof\",\"edit\");\n editDetails();\n// btn_prof_save.setVisibility(View.VISIBLE);\n// btn_prof_edit.setVisibility(View.INVISIBLE);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMyButtonEditor.this.fireEditingCanceled(); \n\t\t\t\t//查看详情\n\t\t\t\t\n\t\t\t\tif(mdtjf!=null){\n\t\t\t\t\tmdtjf.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tMyTableModel model = (MyTableModel) jtb.getModel();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> data = model.getTableData();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> newData = new Vector<List<String>>();\n\t\t\t\t\t\n\t\t\t\t\tList<String> list = data.get(jtb.getSelectedRow());\n\t\t\t\t\t\n\t\t\t\t\tString name = list.get(0).split(\"×\")[0];\n\t\t\t\t\t\n\t\t\t\t\tList<String> newList = new ArrayList<String>();\n\t\t\t\t\t\n\t\t\t\t\t//添加菜名\n\t\t\t\t\tnewList.add(name);\n\t\t\t\t\t//添加份数为1份,即查看每份所需材料,Order中已对数据进行处理,故无需管后面几项\n\t\t\t\t\t//Order中处理只根据菜名和份数,即可算出所需的所有东西\n\t\t\t\t\t//这里直接添加菜名+份数1份,利用order可查看1份菜品所需的材料\n\t\t\t\t\tnewList.add(\"1\");\n\t\t\t\t\t\n\t\t\t\t\tnewData.add(newList);\n\t\t\t\t\t\n\t\t\t\t\tMyTableModel newModel = new MyTableModel(jf);\n\t\t\t\t\tnewModel.setTableData(newData);\n\t\t\t\t\t\n\t\t\t\t\tOrder order = new Order(jf, newModel, ALL_DISHES);\n\t\t\t\t\t\n\t\t\t\t\tmdtjf = new MyDetailTableJF(order);\n\t\t\t\t\tmdtjf.setVisible(true);\n\t\t\t\t\t\n\t\t\t}", "void editMyPost(Post post);", "@GetMapping(\"/showFormForUpdate/{id}\")\n public String showFormForUpdate(@PathVariable(value =\"id\") long id,Model model){\n Employee employee=employeeService.getEmployeeById(id);\n //set employee as model attribute to pre-populate the form\n model.addAttribute(\"employee\",employee);\n return \"Update_Employee\";\n }", "private void refreshData() {\n\r\n\t SfJdRecordFileModel model = (SfJdRecordFileModel) listCursor.getCurrentObject();\r\n\r\n\t if (model != null && !\"\".equals(ZcUtil.safeString(model.getModelId()))) {//列表页面双击进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_BROWSE;\r\n\r\n\t model = getModel(model.getModelId());\r\n\t listCursor.setCurrentObject(model);\r\n\t this.setEditingObject(model);\r\n\t } else {//新增按钮进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_NEW;\r\n\r\n\t model = new SfJdRecordFileModel();\r\n\t \r\n\t setDefaultValue(model);\r\n\r\n\t listCursor.getDataList().add(model);\r\n\r\n\t listCursor.setCurrentObject(model);\r\n\r\n\t this.setEditingObject(model);\r\n\r\n\t }\r\n\r\n\t refreshSubData();\r\n\t \r\n\t setOldObject();\r\n\r\n\t setButtonStatus();\r\n\r\n\t updateFieldEditorsEditable();\r\n\r\n\t }", "public String editParagraphMasterDetail() throws Exception{\n\t\t\t\n\t\t\tString flag = CommonConstants.ERROR_FLAG;\n\t\t\ttry{\t\t\t\t\n\t\t\t\tthis.showParagraphDetails();\n\t\t\t\tpopulateMenu();\n\t\t\t\tString id = request.getParameter(\"slno\");\n\t\t\t\t\n\t\t\t\tparagraphDetailsDto = this.getMasterDetailsServices().findParagraphDetailsById(Integer.parseInt(id));\n\t flag = CommonConstants.SUCCESS_FLAG;\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception er){\n\t\t\t\ter.printStackTrace();\n\t\t\t}\t\t\t\n\t\t\treturn flag;\n\t\t}", "@RequestMapping(\"/showEdit\")\n\tpublic String viewEditPage(@RequestParam(\"locId\")int locId,ModelMap map){\n\t\tLocation loc=service.getLocationById(locId);\n\t\tmap.addAttribute(\"locObj\",loc);\n\t\treturn \"LocationDataEdit\";\n\t}", "public String loadMainEdit(){\r\n\t\treturn \"edit\";\r\n }", "@RequestMapping(value=\"/manage_product_edit/{id}\", method=RequestMethod.GET)\n\tpublic ModelAndView editProduct(@PathVariable(\"id\")String id)\n\t{\n\t\tModelAndView mv = new ModelAndView(\"/admin/Product\");\n\t\tProduct prod =productDAO.getProductById(id);\n\t\tmv.addObject(\"product\",prod);\n\t\tmv.addObject(\"isEditing\",true);\n\t\t\n\t\treturn mv;\t\n\t}", "@RequestMapping(\"updat\")\r\n\tpublic String update(Model m) \r\n\t{\n\t\tm.addAttribute(\"update1\",new Employee());\r\n\t\treturn \"update\";//register.jsp==form action=register\r\n\t}", "private ItemNews modifyItem(ItemNews itemNews) {\n itemNews.setTitle(\"Title: \" + itemNews.getTitle());\n if (itemNews.getAuthor() != null && itemNews.getAuthor() != \"\") {\n if (itemNews.getAuthor().contains(\"By \"))\n itemNews.setAuthor(itemNews.getAuthor().replace(\"By \", \"\").trim());\n }\n return itemNews;\n }", "@Override\n public void onClick(View v) {\n Intent intent = PostEditActivity.newIntent(contex);\n intent.putExtra(\"PostKey\", postKey);\n contex.startActivity(intent);\n }", "@Override\n public void onClick(View v) \n {\n TableRow buttonTableRow = (TableRow) v.getParent();\n Button searchButton = \n (Button) buttonTableRow.findViewById(R.id.newListButton);\n \n String list = searchButton.getText().toString();\n \n // set EditTexts to match the chosen url and site_name\n listEditText.setText(list);\n urlEditText.setText(savedSiteList.getString(list, \"\"));\n }", "public abstract void edit();", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title!\", Toast.LENGTH_SHORT).show();\n } else if (!TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter description!\", Toast.LENGTH_SHORT).show();\n } else if (TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title and description!\", Toast.LENGTH_SHORT).show();\n } else {\n alertDialog.dismiss();\n }\n\n //Update or add data into the database only when both field are filled(i.e title,description)\n if (!TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n\n // check if user updating note\n\n if (shouldUpdate && event != null) {\n // update event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, position, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n } else {\n // create new event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, -1, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n }\n }\n }", "public Result viaje_edit(Long id){\n \n Viaje viaje=Viaje.find.byId(id);\n List<Cabezal> cabezales = Cabezal.find.where().eq(\"activo\",true).findList();\n List<Cliente> clientes = Cliente.find.where().eq(\"activo\",true).findList();\n List<Motorista> motoristas = Motorista.find.where().eq(\"activo\",true).findList();\n \n if(viaje==null){\n return redirect(routes.LogisticaController.viajes());\n }\n\n return ok(viaje_edit.render(viaje,cabezales,motoristas,clientes));\n\n }", "public void editDogButtonClicked() {\r\n if (areFieldsNotBlank()) {\r\n viewModel.editDog();\r\n viewHandler.openView(\"home\");\r\n dogNameField.setStyle(null);\r\n }\r\n }", "private void editButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(storeStock.size() == 0){\n JOptionPane.showMessageDialog(this, \"No Stock Present To Edit\", \"\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n //End Bug Fix : Nothing Shown In \"EDIT EXISTING STOCK\" If Store Does Not Have Any Stock\n current = 0;\n medicineIdField.setEditable(false);\n addButton.setVisible(false);\n editButton.setVisible(false);\n displayCurrentStock();\n showFields(true);\n updateInventorySaveButton.setText(\"Done Editing\");\n updateInventorySaveButton.setVisible(true);\n previousButton.setVisible(true);\n nextButton.setVisible(true);\n }", "@RequestMapping(\"/book/edit/{id}\")\n public String edit(@PathVariable Long id, Model model){\n model.addAttribute(\"book\", bookService.getBookById(id));\n return \"bookform\";\n }", "public void doEdit() throws SQLException, DataStoreException, Exception {\r\n\t\tif (_listForm != null) {\r\n\t\t\tif (_listForm.getDataStore() == _ds) {\r\n\t\t\t\tif (isDataModified()) {\r\n if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_MODIFIED)\r\n undoChanges();\r\n else if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED || getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW)\r\n _ds.removeRow();\r\n\t\t\t\t}\r\n\t\t\t\t_ds.gotoRow(_listForm.getRowToEdit());\r\n\t\t\t\tsetVisible(true);\r\n\t\t\t\tgetPage().scrollToItem(getFullName() + \"scrollToMe\");\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t} else {\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tint row = _listForm.getRowToEdit();\r\n\t\t\t\tif (listDs instanceof DataStore && _ds instanceof DataStore) {\r\n\t\t\t\t\tString table[] = _ds.getTableList(true);\r\n\t\t\t\t\tString where = null;\r\n\t\t\t\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\t\t\t\tString snippet = ((DataStore) listDs).buildCriteriaStringForRow(row, table[i]);\r\n\t\t\t\t\t\tif (snippet != null) {\r\n\t\t\t\t\t\t\tif (where == null)\r\n\t\t\t\t\t\t\t\twhere = snippet;\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\twhere += \" and \" + snippet;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdoDataStoreRetrieve(where);\r\n\t\t\t\t} else if (listDs instanceof BeanDataStore) {\r\n\t\t\t\t\tString crit = ((BeanDataStore) listDs).buildCriteriaStringForRow(row);\r\n\t\t\t\t\tdoDataStoreRetrieve(crit);\r\n\t\t\t\t}\r\n\t\t\t\t_ds.gotoFirst();\r\n\t\t\t\tlistDs.gotoRow(row);\r\n\t\t\t\t_listSelectedRow = listDs.getDataStoreRow(row, DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\tgetPage().scrollToItem(getFullName() + \"scrollToMe\");\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void editProduct(String newProductId) {\n fill(\"#productId\").with(newProductId);\n fill(\"#name\").with(newProductId);\n fill(\"#description\").with(\"A nice product\");\n submit(\"#update\");\n }", "@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}", "public void clickOnEditButtonOnSavedListings() {\r\n\t\tprint(\"Click on Edit under Saved Listing Section\");\r\n\t\tlocator = Locator.MyTrader.Saved_Listing_Edit.value;\r\n\t\tclickOn(locator);\r\n\t\tAssert.assertTrue(isElementPresent(Locator.MyTrader.Your_Saved_Listing.value));\r\n\t}", "public void Editproduct(Product objproduct) {\n\t\t\n\t}" ]
[ "0.6273559", "0.6065813", "0.6043359", "0.5983909", "0.59648293", "0.5940713", "0.5911516", "0.5814211", "0.57877904", "0.5781017", "0.57788754", "0.5716309", "0.5667527", "0.5641084", "0.56288993", "0.56208235", "0.5606755", "0.5587114", "0.5576829", "0.55746925", "0.5562576", "0.5546609", "0.55459017", "0.5545756", "0.5542794", "0.55389225", "0.55265695", "0.552633", "0.5525623", "0.5525556", "0.55152", "0.5510597", "0.551036", "0.5488263", "0.5485935", "0.5476722", "0.5473088", "0.547039", "0.5466972", "0.5461275", "0.54559493", "0.54537797", "0.5449196", "0.544752", "0.5435503", "0.5421107", "0.5419792", "0.54181826", "0.5418083", "0.5411689", "0.5410523", "0.5404756", "0.5398562", "0.5393541", "0.53919715", "0.53907937", "0.53880024", "0.53761727", "0.5371894", "0.5369227", "0.5347309", "0.5342017", "0.53351176", "0.5333033", "0.5329983", "0.53285956", "0.5322861", "0.5319462", "0.53177804", "0.53155124", "0.53080964", "0.530485", "0.5303389", "0.52981067", "0.5293782", "0.52929485", "0.52892274", "0.52852684", "0.52846724", "0.52845836", "0.5284549", "0.52843446", "0.5274989", "0.52746826", "0.5256428", "0.52546984", "0.5252438", "0.5252373", "0.52497554", "0.5246926", "0.5243199", "0.5243137", "0.5242347", "0.5237684", "0.5225532", "0.52248746", "0.52225083", "0.52194357", "0.52186114", "0.5218349", "0.52180666" ]
0.0
-1
To get Particular Important News Data
@SkipValidation public String importantNewsView() { if ((important != null) && (important.getImportantNewsId() != null)) { important = impService.getImportantNews(important.getImportantNewsId()); } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"user-news-article-content?expand=newsArticle,newsArticle.newsArticleType,newsArticle.translations,newsArticle.like,newsArticle.liked,newsArticle.comments_count&per-page=1000\")\n Call<UserNewsResponse>getUserNews();", "@SkipValidation\n public String getAllImportantNews() {\n impList = impService.getAllImportantNews();\n return SUCCESS;\n }", "String getNews();", "@Override\r\n\tpublic List<Product> findNews() throws Exception {\n\t\treturn null;\r\n\t}", "private static List<News> extractFeaturesFromJsonResponse(String jsonResponse) {\n List<News> newsList = new ArrayList<>();\n\n try {\n JSONObject baseJsonObject = new JSONObject(jsonResponse);\n // If JSON object does not contain \"response\" return null object\n if (!baseJsonObject.has(Keys.JSON_NEWS_OBJECT_KEY)) {\n return null;\n }\n\n JSONObject response = baseJsonObject.getJSONObject(Keys.JSON_NEWS_OBJECT_KEY);\n JSONArray resultsArray = response.getJSONArray(Keys.JSON_NEWS_ARRAY_KEY);\n\n for (int i = 0; i < resultsArray.length(); i++) {\n JSONObject newsObject = resultsArray.getJSONObject(i);\n\n // Get section name\n String sectionName = newsObject.getString(Keys.JSON_NEWS_SECTION_KEY);\n // Get Headline\n String newsHeadline = newsObject.getString(Keys.JSON_NEWS_HEADLINE_KEY);\n // Get published time\n String publishedTime = newsObject.getString(Keys.JSON_NEWS_PUBLISHED_TIME_KEY);\n // Get web Url\n String webUrl = newsObject.getString(Keys.JSON_NEWS_URL_KEY);\n\n // Get thumbnail URL string\n String newsThumbnailUrlString = null;\n if (newsObject.has(Keys.JSON_NEWS_FIELDS_KEY)) {\n JSONObject field = newsObject.getJSONObject(Keys.JSON_NEWS_FIELDS_KEY);\n\n if (field.has(Keys.JSON_NEWS_THUMBNAIL_KEY)) {\n newsThumbnailUrlString = field.getString(Keys.JSON_NEWS_THUMBNAIL_KEY);\n }\n }\n\n // Get author name\n String authorName = null;\n if (newsObject.has(Keys.JSON_NEWS_TAGS_KEY)) {\n JSONArray tags = newsObject.getJSONArray(Keys.JSON_NEWS_TAGS_KEY);\n if (!tags.isNull(0)) {\n // If first element of array is not null then get the author name\n JSONObject tagsObject = tags.getJSONObject(0);\n if (tagsObject.has(Keys.JSON_NEWS_AUTHOR_NAME_KEY)) {\n authorName = tagsObject.getString(Keys.JSON_NEWS_AUTHOR_NAME_KEY);\n }\n }\n }\n newsList.add(new News(newsHeadline, sectionName, authorName, publishedTime, webUrl, newsThumbnailUrlString));\n }\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"Error creating JSON object : extractFeaturesFromJsonResponse() method\", e);\n }\n return newsList;\n }", "private static List<News> extractFeatureFromJson(String newsJSON){\n if (TextUtils.isEmpty(newsJSON)) {\n return null;\n }\n\n // Create an empty ArrayList that we can start adding news to\n ArrayList<News> news = new ArrayList<>();\n\n // Try to parse the SAMPLE_JSON_RESPONSE. If there's a problem with the way the JSON\n // is formatted, a JSONException exception object will be thrown.\n // Catch the exception so the app doesn't crash, and print the error message to the logs.\n try {\n\n JSONObject baseJsonObject = new JSONObject(newsJSON);\n\n JSONArray articlesJsonArray = baseJsonObject.getJSONArray(\"articles\");\n\n for (int i=0;i<articlesJsonArray.length();i++){\n JSONObject currentNews = articlesJsonArray.getJSONObject(i);\n\n String title = currentNews.getString(\"title\");\n String description = currentNews.getString(\"description\");\n String url = currentNews.getString(\"url\");\n String urlImage = currentNews.getString(\"urlToImage\");\n\n News exactNews = new News(title,description,url,urlImage);\n news.add(exactNews);\n }\n\n } catch (JSONException e) {\n Log.e(\"QueryUtils\", \"Problem parsing the earthquake JSON results\", e);\n }\n return news;\n }", "private void fetchNews() {\n if (isOnline(mContext)) {\n // showing refresh animation before making http call\n swipeRefreshLayout.setRefreshing(true);\n\n // appending offset to url\n // String url = URL_TOP_250 + offSet;\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n\n if (response.body().getRows().size() > 0) {\n\n newsList.addAll(response.body().getRows());\n showList();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n }\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n displayMessage(t.getMessage());\n setTextMessage();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n\n }\n });\n } else {\n setTextMessage();\n }\n\n }", "@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "public List<NewsNotifications> getNewsFeed(int limit);", "@Override\n\tpublic void loadNews() {\n\t\tif(newsUrl.contains(\"xyz\")) {\n\t\t\tnewsUrl = \"abc\";\n\t\t}\n\t\t\n\t\tif(realNews==null) {\n\t\t\trealNews = new RealNews(newsUrl);\n\t\t}\n\t\trealNews.loadNews();\n\t}", "private List<NewsArticle> getMostPopular() {\n LOGGER.log(Level.INFO, \"getMostPopular\");\n return newsService.getMostPopular();\n }", "public List<NewsBaseInfo> getNewsListByDate(Date date) throws DataAccessException {\n return null;\n }", "List<WxNews> selectByExample(WxNewsExample example);", "public static List<News> fetchNewsData(String requestedQueryURLString) {\n URL url;\n String JSONResponse = null;\n\n // If requested URL is null return null object\n if (requestedQueryURLString == null) {\n Log.i(LOG_TAG, \"Null url is passed\");\n return null;\n } else {\n url = generateUrl(requestedQueryURLString);\n }\n\n try {\n JSONResponse = makeHttpRequest(url);\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Exception occurred due to closing input Stream : fetchNewsData() gets from readFromStream() block\");\n }\n\n List<News> newsList;\n if (JSONResponse != null) {\n // If JSON response is not null return newsList List object\n newsList = extractFeaturesFromJsonResponse(JSONResponse);\n return newsList;\n } else {\n // If JSON response is null, return null\n return null;\n }\n }", "@Override\n\tpublic List<News> queryNewsList(News params) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void getNewsList(Page page, String query) {\n\t\t\r\n\t}", "public void LoadNews()\n {\n String url = \"https://newsapi.org/v1/articles?source=the-next-web&apiKey=533af958594143758318137469b41ba9\";\n Load_News = new StringRequest(Request.Method.GET,url,Success,Error);\n rQueue = ApplicationSingleton.getInstance().getQueue();\n rQueue.add(Load_News);\n\n\n }", "List<NewsInfo> selectByExample(NewsInfoExample example);", "@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "@Override\n\tpublic List<MovieNews> getMovieNews() {\n\t\treturn this.moviesNews;\n\t}", "private synchronized void processNewsInitial()\n\t\t\t\tthrows ClientProtocolException, IOException, JSONException {\n\t\t\tlong lastTime = System.currentTimeMillis() / 1000;\n\t\t\tlong startTime = lastTime - Utils.MONTH;\n\t\t\tsetNews(ApiHandler.getData(lastTime, startTime));\n\t\t\tmHandler.sendEmptyMessage(CREATE_LIST);\n\t\t}", "@Override\r\n\tpublic void onMpnews(HttpRequest request, Mpnews news) {\n\r\n\t}", "@Override\r\n\tpublic List<News> findAllNews() {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<News> newsList = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from news\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tnewsList = new ArrayList<>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tNews aNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t\t\r\n\t\t\t\tnewsList.add(aNews);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\t\r\n\t\treturn newsList;\r\n\t}", "private synchronized void processNews() throws ClientProtocolException,\n\t\t\t\tIOException, JSONException {\n\n\t\t\tlong lastTime = mAdapter.getItem(mCount - 1).date;\n\t\t\tlong startTime = lastTime - Utils.MONTH;\n\n\t\t\tsetNews(ApiHandler.getData(lastTime, startTime));\n\t\t\tmHandler.sendEmptyMessage(UPDATE_LIST);\n\t\t}", "public NewsSet getParsedData() {\n return this.newsSet;\n }", "public ENews newsContent(String newsTitle) {\n\t\treturn new ENDaoImpl().newsContent(newsTitle);\r\n\t}", "private void fetchEverything() {\n ApiNewsMethods newsEverything = retrofit.create(ApiNewsMethods.class);\n newsEverything.getEverything(\"bitcoin\"/*topic input by user*/, newsApiKey).enqueue(new Callback<NewsModelClass>() {\n @Override\n public void onResponse(Call<NewsModelClass> call, Response<NewsModelClass> response) {\n if(response.isSuccessful()) {\n newsModelBody = response.body();\n Log.d(\"myBODY\", newsModelBody.getStatus());\n //text to speech object of the response fetched\n newsUIChanges();\n } else {\n Log.d(\"mySTRING\", \"DID NOT OCCUR\");\n }\n }\n\n @Override\n public void onFailure(Call<NewsModelClass> call, Throwable t) {\n }\n\n });\n }", "@Override\n public List<News> loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n // Perform the network request, parse the response, and extract a list of articles.\n List<News> news = QueryUtils.fetchNewsData(mUrl);\n return news;\n }", "@Override\n public void fetchNewsFail() {\n }", "public static ArrayList<NewsItem> loadNews(int descending) throws JSONException{\n \t\t\n \t\t//Get JSON string from server\n \t\tString result = getJSON(Constants.NEWSFEED + descending); \n \t\t\n \t\tList<NewsItem> posts = new ArrayList<NewsItem>();\n \t\t\n \t\t//Parse JSON string\n \t\t\tJSONObject json_obj = new JSONObject(result);\n \t\t\tJSONArray json_arr = json_obj.getJSONArray(\"data\");\n \t\t\t\n \t\t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\t\t//Get post message\n \t\t\t\tString message = json_arr.getJSONObject(i).optString(\"message\");\n \t\t\t\t\n \t\t\t\t//Get date\n \t\t\t\tString[] date = json_arr.getJSONObject(i).optString(\"created_time\").split(\"T\");\n \t\t\t\t\n \t\t\t\t//Get image url\n \t\t\t\tString image = json_arr.getJSONObject(i).optString(\"picture\");\n \t\t\t\t\n \t\t\t\tif(!image.equals(\"\")){\n \t\t\t\t\timage = image.replace(\"s.jpg\", \"n.jpg\");\n\t\t\t\t\timage = image.replace(\"s.png\", \"n.png\");\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t//Add to posts if valid content\n \t\t\t\tif ((!message.equals(\"\")) && (!date.equals(\"\"))){\n \t\t\t\t\tposts.add(new NewsItem(message, date[0], image));\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\treturn (ArrayList<NewsItem>) posts;\n \t}", "List<News> selectByExample(NewsExample example);", "int getNewsindentifydetailCount();", "@Override\n\tpublic News getNewsById(Integer id) throws Exception {\n\t\treturn null;\n\t}", "public static List<Article> fetchNewsArticles(String queryUrl) {\n List<Article> articlesList = new ArrayList<>();\n\n // Create a url form the queryUrl\n URL url = createURL(queryUrl);\n\n // Make empty json string\n String jsonResponse = \"\";\n\n try {\n // TRY to make a http request on url, set the returned json string to jsonResponse\n jsonResponse = makeHTTPRequest(url);\n\n // Parse through json string to get the article info needed, and create a list of articles\n articlesList = extractFeatureFromJson(jsonResponse);\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error calling makeHTTPRequest method: \" + e);\n }\n\n // Return list of articles\n return articlesList;\n }", "private boolean pull(String url) {\r\n\t\ttry {\r\n\t\t\tHttpURLConnection con = (HttpURLConnection) new URL(url).openConnection();\r\n\t\t\tint respCode = con.getResponseCode();\r\n\t\t\tif (respCode != HttpURLConnection.HTTP_OK) {\r\n\t\t\t\tHaypiLog.d(TAG, respCode + \" \" + con.getResponseMessage());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tInputStream in = con.getInputStream();\r\n\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream(4096);\r\n\t\t\tbyte[] buf = new byte[2048];\r\n\t\t\tint n;\r\n\t\t\twhile ((n = in.read(buf)) > -1) {\r\n\t\t\t\tout.write(buf, 0, n);\r\n\t\t\t}\r\n\t\t\tString encoding = con.getContentEncoding();\r\n\t\t\tif (encoding == null) {\r\n\t\t\t\tencoding = \"UTF-8\";\r\n\t\t\t}\r\n\t\t\tString resp = out.toString(encoding);\r\n\t\t\tString[] ss = HaypiUtil.split(resp, \"\\r\\n\");\r\n\r\n\t\t\tif (ss.length >= 3 && ss[0].equals(\"0\") && ss[1].equals(\"0\")) {\r\n\t\t\t\tint index = 2;\r\n\t\t\t\tint count = Integer.parseInt(ss[index++]);\r\n\t\t\t\tif (count > 0) {\r\n\t\t\t\t\tArrayList<News> list = new ArrayList<News>();\r\n\t\t\t\t\tfor (; count > 0; count--) {\r\n\t\t\t\t\t\tint version = Integer.parseInt(ss[index++]);\r\n\t\t\t\t\t\tif (version <= News.lastNewsVersion)\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\tNews.lastNewsVersion = version;\r\n\t\t\t\t\t\tNews entity = new News();\r\n\t\t\t\t\t\tentity.setNew(true);\r\n\t\t\t\t\t\tentity.setVersion(version);\r\n\t\t\t\t\t\tentity.setStartTime(Integer.parseInt(ss[index++]));\r\n\t\t\t\t\t\tentity.setEndTime(Integer.parseInt(ss[index++]));\r\n\t\t\t\t\t\tentity.setSubject(ss[index++]);\r\n\t\t\t\t\t\tentity.setDescription(ss[index++]);\r\n\t\t\t\t\t\tentity.setContent(ss[index++]);\r\n\t\t\t\t\t\tentity.setToken(ss[index++]);\r\n\t\t\t\t\t\tentity.setButtonText(ss[index++]);\r\n\t\t\t\t\t\tentity.setNewsType(News.TYPE.values()[Integer.parseInt(ss[index++])]);\r\n\t\t\t\t\t\tentity.setTopNews(\"1\".equals(ss[index++]));\r\n\t\t\t\t\t\tentity.setParams1(ss[index++]);\r\n\t\t\t\t\t\tentity.setParams2(ss[index++]);\r\n\t\t\t\t\t\tentity.setParams3(ss[index++]);\r\n\t\t\t\t\t\tlist.add(entity);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\t\t\tNews.add(list);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcon.disconnect();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tHaypiLog.e(TAG, \"poll\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<ENews> newsTitle() {\n\t\treturn new ENDaoImpl().newsTitle();\r\n\t}", "public void fetchArticles(int page, boolean newSearch) {\n if(newSearch) { articles.clear(); }\n\n AsyncHttpClient client = new AsyncHttpClient();\n String url;\n RequestParams params = new RequestParams();\n params.put(\"api-key\", \"ed5753fe0329424883b2a07a7a7b4817\");\n params.put(\"page\", page);\n\n // If top stories, different parameters\n if(topStories) {\n url = \"https://api.nytimes.com/svc/topstories/v2/home.json\";\n } else {\n url = \"https://api.nytimes.com/svc/search/v2/articlesearch.json\";\n params.put(\"q\",filter.getQuery());\n if(filter.getSort() != null) {\n params.put(\"sort\",filter.getSort());\n }\n if(filter.getBegin_date() != null) {\n params.put(\"begin_date\",filter.getBegin_date());\n }\n if(filter.getNewsDeskOpts().size() > 0) {\n for(int i=0; i<filter.getNewsDeskOpts().size(); i++) {\n params.put(\"fq\",String.format(\"news_desk:(%s)\",filter.getNewsDeskOpts().get(i)));\n }\n }\n Log.d(\"DEBUG\",params.toString());\n }\n\n client.get(url, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.d(\"DEBUG\",response.toString());\n JSONArray articleJsonResults = null;\n try {\n if(!topStories) {\n articleJsonResults = response.getJSONObject(\"response\").getJSONArray(\"docs\");\n } else {\n articleJsonResults = response.getJSONArray(\"results\");\n }\n\n // Every time data is changed, notify adapter; can also do by article.addAll and use adapter.notifyDataSetChanged\n articles.addAll(Article.fromJsonArray(articleJsonResults, topStories));\n adapter.notifyDataSetChanged();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\",\"JSON response failed\");\n super.onFailure(statusCode, headers, throwable, errorResponse);\n }\n });\n }", "public static ArrayList<DigitalNewspapers> getDigitalNewsSources(){\n\n Uri builtUri = Uri.parse(BASE_NEWSAPI_SOURCES_EP).buildUpon()\n .build();\n\n URL url = null;\n\n try {\n url = new URL(builtUri.toString());\n return doCall(url);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public static ArrayList<PieceOfNews> convertPONJson(String jsonNews){\n\n ArrayList<PieceOfNews> allPon = new ArrayList<>();\n\n try {\n JSONObject data = new JSONObject(jsonNews);\n JSONArray jsonAllNews = data.getJSONArray(\"articles\");\n\n\n for (int i = 0; i < jsonAllNews.length(); i++) {\n\n JSONObject jsonPieceOfNews = jsonAllNews.getJSONObject(i);\n\n PieceOfNews pon = new PieceOfNews();\n\n if(jsonPieceOfNews.has(\"author\")){\n pon.setAuthor(jsonPieceOfNews.getString(\"author\"));\n }\n pon.setTitle(jsonPieceOfNews.getString(\"title\"));\n pon.setUrlToExtendedPOF(jsonPieceOfNews.getString(\"url\"));\n\n if(jsonPieceOfNews.has(\"urlToImage\")){\n pon.setUrlToImage(jsonPieceOfNews.getString(\"urlToImage\"));\n }\n\n allPon.add(pon);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return allPon;\n\n }", "public News getByid(News news);", "private void LoadItems() {\n\n Call<NewsResponce> callNews = null;\n\n if (SourceId != null && DateTo != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, DateTo, currentPage, SourceId);\n\n } else if (SourceId != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, currentPage, SourceId);\n\n } else if (SourceId != null && DateTo != null) {\n callNews = newsApiInterface.GetEverythingDateTo(NewsClient.API_KEY, DateTo, currentPage, SourceId);\n\n } else {\n DialogAlert(R.string.dialog_title_no_criterias, R.string.dialog_message_no_criterias);\n }\n\n if (callNews != null)\n callNews.enqueue(new Callback<NewsResponce>() {\n @Override\n public void onResponse(Call<NewsResponce> call, final Response<NewsResponce> response) {\n if (response.body() != null) {\n if (response.body().getTotalResults() > articleList.size()) {\n articleList.addAll(response.body().getArticles());\n newsAdapter.notifyDataSetChanged();\n ++currentPage;\n }\n } else\n articleList.clear();\n\n Log.d(TAG, articleList.size() + \"\");\n }\n\n @Override\n public void onFailure(Call<NewsResponce> call, Throwable t) {\n Log.e(TAG, t.getMessage());\n }\n });\n }", "private static List<Article> extractFeatureFromJson(String jsonString) {\n\n // If Json string is empty or null, return early\n if (TextUtils.isEmpty(jsonString)) {\n return null;\n }\n\n List<Article> articles = new ArrayList<>();\n\n try {\n\n // Get json root string\n JSONObject jsonObjectString = new JSONObject(jsonString);\n\n // Get the response object in the root json string\n JSONObject responseObj = jsonObjectString.getJSONObject(\"response\");\n\n // Get th array that contains all the articles inside the response\n JSONArray articlesArray = responseObj.getJSONArray(\"results\");\n\n // Loop through every article object in the array\n for (int i = 0; i < articlesArray.length(); i++) {\n\n // get current article at the current index\n JSONObject currentArticle = articlesArray.getJSONObject(i);\n\n // Get the object that contains all fields of info on the currentArticle\n JSONObject feilds = currentArticle.getJSONObject(\"fields\");\n\n // Get the articles title\n String title = feilds.getString(\"headline\");\n\n // Get the articles webUrl\n String url = currentArticle.getString(\"webUrl\");\n\n // Get the articles picture\n String image = feilds.getString(\"thumbnail\");\n\n // Create bitmap from image url string\n Bitmap picture = readImageUrl(image);\n\n // Get Authors name\n String author = feilds.optString(\"byline\");\n\n // Get the date the article was published\n String datePublished = feilds.getString(\"firstPublicationDate\");\n\n // Get the articles section name\n String section = currentArticle.getString(\"sectionName\");\n\n // Create a new article and add it to the list\n articles.add(new Article(title, url, author, image, datePublished, section, picture));\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error parsing json:\" + e);\n }\n\n // Return list of articles\n return articles;\n\n }", "Article findLatestArticle();", "static void callNews(String key, Scanner sc) {\n\t\tSystem.out.print(\"Enter stock symbol: \");\n\t\tString symbol = sc.next().toUpperCase();\n\t\tsc.nextLine();\n\t\t\n\t\tHttpResponse<String> response = Unirest.get(\"https://yahoo-finance-low-latency.p.rapidapi.com/v2/finance/news?symbols=\" + symbol)\n\t\t\t\t.header(\"x-rapidapi-key\", key)\n\t\t\t\t.header(\"x-rapidapi-host\", \"yahoo-finance-low-latency.p.rapidapi.com\")\n\t\t\t\t.asString();\n\t\t\t\t\t\n\t\t/* You can get a summary of the stories as well - summary\n\t\t * URL of story - url\n\t\t * Author - author_name\n\t\t * Time - provider_publish_time\n\t\t * Source - provider_name\n\t\t * Time zone - timeZoneShortName\n\t\t * \n\t\t */\n\t\tJSONObject obj = new JSONObject(response.getBody());\t// Get the response, store it in JSON object\n\t\tobj = obj.getJSONObject(\"Content\");\t\t\n\t\tJSONArray arr = new JSONArray(obj.get(\"result\").toString());\n\t\t \n\t\tfor(int i = 0; i < arr.length(); i++) {\n\t\t\tobj = new JSONObject(arr.opt(i).toString());\n\t\t\tLocalDateTime date = LocalDateTime.ofEpochSecond(Long.parseLong(obj.get(\"provider_publish_time\").toString()), 0, ZoneOffset.MIN);\n\t\t\tSystem.out.println(\"(\" + (i + 1) + \") \"+ obj.get(\"title\") + \n\t\t\t\t\t\" - \" + date.toLocalDate() + \" \" + date.toLocalTime() + \n\t\t\t\t\t\" \" + obj.get(\"timeZoneShortName\"));\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Read story summary? Y or N\\n\");\n\t\tboolean readSummary = (sc.next().toUpperCase().matches(\"Y\")) ? true : false;\n\t\t\n\t\tif(readSummary) {\n\t\t\tSystem.out.print(\"Select a number to select a story: \");\n\t\t\tint selection = sc.nextInt();\n\t\t\tobj = new JSONObject(arr.opt(selection - 1).toString());\n\t\t\tSystem.out.println(obj.get(\"summary\") + \"\\n\");\n\t\t\t/* Maybe add the ability to select the story \n\t\t\t * and visit the webpage\n\t\t\t */\n\t\t}\n\t\t\n\t\tsc.nextLine();\t// clear scanner\n\t\t\t\n\t\tUnirest.shutDown();\n\t}", "@Override\n\tpublic void requestNews() {\n\t\tSystem.out.println(\"xiaoming-requestNews\");\n\t}", "@Override\n protected News doInBackground(String... strings) {\n News newsLeida = null;\n\n try {\n\n //HAGO UN REQUEST HTTP\n HTTPConnectionManager httpConnectionManager = new HTTPConnectionManager();\n InputStream input = httpConnectionManager.getRequestStream(\"https://api.myjson.com/bins/1nev4\");\n\n //PARSER DE JSON\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(input));\n Gson gson = new Gson();\n Container container = gson.fromJson(bufferedReader, Container.class);\n newsLeida = container.getNewsList().get(0);\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n\n return newsLeida;\n }", "public static void notifyLatestNews(@NonNull final Context context) {\n Uri articlesUri = NewsContract.NewsEntry.CONTENT_URI;\n\n Cursor articlesCursor = context.getContentResolver().query(\n articlesUri,\n NEWS_NOTIFICATION_PROJECTION,\n null,\n null,\n NewsContract.NewsEntry.COLUMN_PUBLISHED_AT + \" DESC\");\n\n if(articlesCursor.moveToFirst()) {\n long articleId = articlesCursor.getLong(INDEX_ARTICLE_ID);\n String articleTitle = articlesCursor.getString(INDEX_ARTICLE_TTITLE);\n String articleAuthor = articlesCursor.getString(INDEX_ARTICLE_AUTHOR);\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)\n .setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n .setSmallIcon(R.drawable.ic_sms_black_24dp)\n .setContentText(\"By \" + articleAuthor)\n .setContentTitle(articleTitle)\n .setAutoCancel(true);\n\n Intent intentForLatestArticle = new Intent(context, DetailActivity.class);\n intentForLatestArticle.setData(NewsContract.NewsEntry.buildUriWithId(articleId));\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context)\n .addNextIntentWithParentStack(intentForLatestArticle);\n PendingIntent resultPendingIntent = taskStackBuilder\n .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notificationBuilder.setContentIntent(resultPendingIntent);\n\n NotificationManager notificationManager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(NEWS_NOTIFICATION_ID, notificationBuilder.build());\n\n PreferencesUtils.saveLastNotificationTime(context, System.currentTimeMillis());\n }\n\n articlesCursor.close();\n }", "public List<Integer> getNewsFeed(int userId) {\n\n }", "public int getNewsId() {\n\t\treturn newsId;\n\t}", "private void extractRemainingMetadata(ArticleMetadata thisAM,\n CachedUrl mdCu) {\n\n // Which top node is appropriate for this specific dtd\n String top_node = null;\n String dtdString = thisAM.getRaw(ElsevierDTD5XmlSchemaHelper.dataset_dtd_metadata);\n Matcher mat = DTD_PATTERN.matcher(dtdString);\n if (mat.matches() && JOURNAL_ARTICLE.equals(mat.group(1))) {\n top_node = JASchemaMap.get(mat.group(3));\n }\n //String top_node = SchemaMap.get(dtdString);\n if (top_node == null) {\n log.siteWarning(\"Unknown type of Elsevier DTD provided for article\" + dtdString);\n return; // we can't extract article level metadata (author & title)\n }\n try {\n List<ArticleMetadata> amList = \n new XPathXmlMetadataParser(null, \n top_node,\n ElsevierDTD5XmlSchemaHelper.articleLevelMDMap,\n false).extractMetadata(MetadataTarget.Any(), mdCu);\n /*\n * There should only be ONE top_node per main.xml; don't verify\n * but just access first one.\n */\n if (amList.size() > 0) {\n log.debug3(\"found article level metadata...\");\n ArticleMetadata oneAM = amList.get(0);\n String rawVal = oneAM.getRaw(ElsevierDTD5XmlSchemaHelper.common_title);\n if (rawVal != null) {\n thisAM.putRaw(ElsevierDTD5XmlSchemaHelper.common_title, rawVal);\n } else {\n // a simple-article might use document heading, like \"Book Review\" as title\n rawVal = oneAM.getRaw(ElsevierDTD5XmlSchemaHelper.common_dochead);\n if (rawVal != null) {\n // store it in the title anyway, it only exists if title doesn't\n thisAM.putRaw(ElsevierDTD5XmlSchemaHelper.common_title, rawVal);\n }\n }\n rawVal = oneAM.getRaw(ElsevierDTD5XmlSchemaHelper.common_author_group);\n if ( rawVal != null) {\n thisAM.putRaw(ElsevierDTD5XmlSchemaHelper.common_author_group, rawVal);\n }\n } else {\n log.debug3(\"no md extracted from \" + mdCu.getUrl());\n }\n } catch (XPathExpressionException e) {\n log.debug3(\"Xpath expression exception:\",e); // this is a note to the PLUGIN writer!\n } catch (IOException e) {\n // We going to keep going and just not extract from this file\n log.siteWarning(\"IO exception loading article level XML file\", e);\n } catch (SAXException e) {\n // We going to keep going and just not extract from this file\n log.siteWarning(\"SAX exception loading article level XML file\", e);\n } \n }", "public List getJpmProductSaleNews(JpmProductSaleNew jpmProductSaleNew);", "int countByExample(NewsInfoExample example);", "private void getSportsNews() {\n new SportsAsyncTask(this,MainActivity.this).execute(url);\n }", "@Override\n\tpublic void detailProcess(Page page) throws RuntimeException{\n\t\tNewsAbstract newsabs = super.thv.getNewsabs();\n\t\tNewsDetails newsdet = super.thv.getNewsdet();\n\t\t\n\t\t// 分页处理 第一页时获取其他页面的url\n\t\tif(thv.getF() == 1){\n\t\t\tList<String> requesturl = getRequestUrl(page.getHtml().getDocument(),page.getRequest().getUrl());\n\t\t\tsuper.addTargetUrls(requesturl, page);\n\t\t}\n\t\t\n\t\t\n\t\t/** 获取新闻正文*/\n\t\tString temcontent = \"\";\n\t\tDocument doc = page.getHtml().getDocument();\n\t\ttemcontent = doc.select(\".TRS_Editor\").get(0).toString().trim();\n\t\t/*模拟获取分页信息,将内容存在静态变量{@code content}中*/\n\t\tthv.setContent(thv.getContent()+temcontent);\n\t\t\n\t\t\n\t\t// if(page.getTargetRequests().size() == 0){// 抓取到的每一个url都是一个不同的page对象,故不能通过此方法判断分页是否为最后一页\n\t\t// 根据{@Scheduler}判断是否还有分页,当没有分页时继续处理,此种方法也有缺陷,因为在处理倒数第二个时,{@Scheduler}的size已经为0了,具体见{@Spider#Run}循环的写法\n\t\tif(super.isLast()){\n\t\t\tnewsdet.setTableName(\"dgnewsdetail\");\n\t\t\tnewsdet.setUrl(newsabs.getUrl());\n\t\t\t// 获取日期\n\t\t\tif(newsabs.getDate() == null){\n\t\t\t\tString oridate = super.getOriginalDateOfNewsDetail(doc.toString());\n\t\t\t\tnewsabs.setOriginalDate(oridate);\n\t\t\t\tnewsabs.setDate(super.getPublishDate(oridate));\n\t\t\t}\n\t\t\tnewsdet.setDate(newsabs.getDate());\n\t\t\t\n\t\t\t// 正文内容与图片的处理\n\t\t\tString content = thv.getContent();\n\t\t\tcontent = this.imgRelativeToAbsolute(page.getRequest().getUrl(), content);\n\t\t\tnewsabs.setImgPath(super.getImgPath(newsdet.getUrl(), content));// 设置网络原图片访问路径\n\t\t\tnewsabs.setImgUuid(NewsUtils.getImgUuid(newsabs));\n\t\t\tnewsdet.setContent(content);\n\t\t\t/**可以由专有的image服务器处理**/\n\t\t\tcontent = super.contentAndImgProc(newsdet,newsabs);\n\t\t\t/**********************/\n\t\t\tnewsdet.setContent(content);\n\t\t\t\n//\t\t\tNewsUtils.checkAndPutNewsDetail(SpiderEntrance.AllNewsDetailList,SpiderEntrance.AllNewsByUrl,SpiderEntrance.AllNewsList,\n//\t\t\t\t\tnewsdet);\n\t\t\t\n\t\t\tsuper.checkAndPutNewsDetail(newsdet);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static List<News> parseNewsInfo(String newsString)\n {\n List<News> newsList = new ArrayList<News>();\n try\n {\n JSONObject jsonObject = new JSONObject(newsString);\n Log.i(\"MY_TEST_JSON_OBJECT\", \"\" + jsonObject);\n JSONArray data = jsonObject.getJSONArray(\"T1348647853363\");\n Log.i(\"data_LENGTH\", data.length() + \"\");\n for(int i = 1; i < data.length(); i++){\n Log.i(\"data_LENGTH-------\", i + \"\");\n News tmp_news = new News();\n Log.i(\"data_LENGTH-------\", \"A\" + i);\n JSONObject tmp = data.getJSONObject(i);\n Log.i(\"data_LENGTH-------\", \"B\" + i);\n tmp_news.setTitle(tmp.getString(\"title\"));\n Log.i(\"data_LENGTH-------\", \"C\" + i);\n try {\n tmp_news.setUrl(tmp.getString(\"url_3w\"));\n }catch (Exception e){\n tmp_news.setUrl(\"\");\n }\n Log.i(\"data_LENGTH-------\", \"D\" + i);\n tmp_news.setSource(\"\");\n Log.i(\"data_LENGTH-------\", \"E\" + i);\n tmp_news.setLmodify(\"\");\n Log.i(\"data_LENGTH-------\", \"F\" + i);\n tmp_news.setImgSrc(\"\");\n Log.i(\"data_LENGTH-------\", \"G\" + i);\n tmp_news.setSubtitle(\"\");\n Log.i(\"data_LENGTH-------\", \"H\" + i);\n tmp_news.setPtime(tmp.getString(\"ptime\"));\n Log.i(\"data_LENGTH-------\", \"I\" + i);\n newsList.add(tmp_news);\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n return newsList;\n }", "private List<FeedItemRO> getFeedFromGoogle() {\n\t\t// create RO list\n\t\tList<FeedItemRO> feedItemROs = new ArrayList<>();\n\t\t// parse the data with ROME library inside a try-catch so that if there is a connection problem it will throw an exception.\n\t\tURL feedUrl;\n\t\ttry {\n\t\t\tfeedUrl = new URL(\"https://news.google.com/gn/news/?ned=us&gl=US&hl=en&output=rss\");\n\t\t\tSyndFeedInput input = new SyndFeedInput();\n\t\t\tSyndFeed feed = input.build(new XmlReader(feedUrl));\n\t\t\t\n\t\t\t// every news story in the feed is an entry, for each one construct a RO with title, link, description and add it to the list. \n\t\t\tList<SyndEntry> entries = feed.getEntries();\n\t\t\tfor (SyndEntry syndEntry : entries) {\n\t\t\t\tfeedItemROs.add(new FeedItemRO(syndEntry.getTitle(),syndEntry.getLink(), syndEntry.getDescription().getValue()));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//Should be logged properly\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return RO list of news stories.\n\t\treturn feedItemROs;\n\t}", "@Scheduled(fixedRate = 120000)\n public void readRss() {\n\n List<ItemNews> itemList = new ArrayList<>();\n\n try {\n String url = \"https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml\";\n\n try (XmlReader reader = new XmlReader(new URL(url))) {\n SyndFeed feed = new SyndFeedInput().build(reader);\n for (SyndEntry entry : feed.getEntries()) {\n LocalDateTime localDateTime = entry.getPublishedDate().toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDateTime();\n ItemNews item = new ItemNews();\n item.setTitle(entry.getTitle());\n item.setAuthor(entry.getAuthor());\n item.setLink(entry.getLink());\n item.setDescription(entry.getDescription().getValue());\n item.setDateTime(localDateTime);\n modifyItem(item);\n itemList.add(item);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (!itemList.isEmpty()) {\n Collections.sort(itemList , Comparator.comparing(ItemNews::getDateTime));\n saveItems(itemList);\n }\n }", "public List<DBObject> getNews(List<ObjectId> userStories, int skip) \n throws InputException, MongoException;", "public List<Integer> getNewsFeed(int userId) {\n List<Integer> tmp = twitterTweetMap.getOrDefault(userId, new LinkedList<>());\n return tmp.size() <= 10 ? tmp : tmp.subList(0,10);\n }", "public static synchronized NewsDetail getNewsDetail(String newsId) throws NewsException {\n NewsDetail newsDetail;\n try {\n newsDetail = newsdetailHttpService.getNewsDetail(newsId).execute().body();\n } catch (IOException e) {\n throw new NewsException(NewsException.NEWS_ERROR, String.format(NewsException.CONVERT_FROM_STRING_TO_JSON_MESSAGE, \"getNewsDetail\", SERVICE_NAME));\n }\n newsDetail.setFavorite(CacheService.getFavorite(newsId));\n newsDetail.separateImageUrlString();\n newsDetail.injectHyperlink();\n CacheService.storeNewsDetail(newsDetail);\n return newsDetail;\n }", "@Override\n\t\tprotected List<NewsBean> doInBackground(Void... params) {\n\t\t\tsynchronized (this) {\n\t\t\t\treturn new ParseXMLUtil().parseNewsXml(ls, url);\n\t\t\t}\n\t\t}", "java.util.List<com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail> \n getNewsindentifydetailList();", "private void getArticles() throws Exception {\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\n\n\t\t\tStringBuilder uriBuilder = new StringBuilder(BASE_URL);\n\t\t\turiBuilder.append(mURL);\n\n\t\t\tHttpGet request = new HttpGet(uriBuilder.toString());\n\t\t\tHttpResponse response = httpClient.execute(request);\n\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\n\t\t\tif (status != HttpStatus.SC_OK) {\n\n\t\t\t\t// Log whatever the server returns in the response body.\n\t\t\t\tByteArrayOutputStream ostream = new ByteArrayOutputStream();\n\n\t\t\t\tresponse.getEntity().writeTo(ostream);\n\t\t\t\tmHandler.sendEmptyMessage(0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tInputStream content = response.getEntity().getContent();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(content));\n\t\t\tStringBuilder result = new StringBuilder();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tresult.append(line);\n\t\t\t}\n\n\t\t\t// Clean up and close connection.\n\t\t\tcontent.close();\n\n\t\t\tString html = result.toString();\n\t\t\t//This is our regex to match each article\n\t\t\t//This website's html is not xml compatible so regex is next best thing\n\t\t\tPattern p = Pattern.compile(\"<td class=\\\"title\\\"><a href=\\\"(.*?)\\\".*?>(.*?)<\\\\/a>(<span class=\\\"comhead\\\">(.*?)<\\\\/span>)?.*?<\\\\/td><\\\\/tr><tr><td colspan=2><\\\\/td><td class=\\\"subtext\\\">.*? by <a href=\\\"user\\\\?.*?\\\">(.*?)<\\\\/a>.*?<a href=\\\"item\\\\?id=(.*?)\\\">\");\n\t\t\tMatcher m = p.matcher(html);\n\t\t\tList<Article> articles = new ArrayList<Article>();\n\t\t\twhile(m.find()) {\n\t\t\t\tString url = m.group(1);\n\t\t\t\tString title = m.group(2);\n\t\t\t\tString domain = m.group(4);\n\t\t\t\tString author = m.group(5);\n\t\t\t\tString discussionID = m.group(6);\n\t\t\t\tArticle eachArticle = new Article(title, domain, url, author, discussionID);\n\t\t\t\tarticles.add(eachArticle); \n\t\t\t}\n\n\t\t\tMessage msg = mHandler.obtainMessage();\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putParcelableArrayList(\"articles\", (ArrayList<? extends Parcelable>) articles);\n\t\t\tmsg.setData(bundle);\n\t\t\tmHandler.sendMessage(msg);\n\t\t}", "List<NewsFile> selectAll();", "@Override\n public int getItemCount() {\n return news.size();\n }", "public void loadJiaDianNews(RssNews rssNews) {\n\t\ttry {\n\t\t\tgnfn.getJiaDian();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tloadRssNewsData(61);\n\n\t}", "public List<News> getAll()\n {\n\n return newsRepository.findAllByOrderByIdAsc();\n }", "@Override\n\t\tprotected List<NewsBean> doInBackground(Void... params) {\n\t\t\tsynchronized (this) {\t\t\t\n\t\t\t\treturn new ParseXMLUtil().parseNewsXml(ls,url);\n\t\t\t}\t\t\t\n\t\t}", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "@Override\n\tpublic Result getNewsByPage(Page page) {\n\t\tList<News> newsList = indexMapper.selectAll();\n\t\tResult result = new Result(1,\"success\",newsList);\n//\t\tSystem.out.println(\"indexService\"+newsList);\n\t\treturn result;\n\t}", "public static ArrayList<NewsItem> parseNews(String jObject){\r\n\r\n ArrayList<NewsItem> newsItemList = new ArrayList<>();\r\n\r\n try {\r\n JSONObject mainJSONObject = new JSONObject(jObject);\r\n JSONArray items = mainJSONObject.getJSONArray(\"articles\");\r\n\r\n for(int i = 0; i < items.length(); i++){\r\n JSONObject item = items.getJSONObject(i);\r\n newsItemList.add(new NewsItem(item.getString(\"author\"), item.getString(\"title\"),\r\n item.getString(\"description\"), item.getString(\"url\"), item.getString(\"urlToImage\"), item.getString(\"publishedAt\") ));\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n return newsItemList;\r\n }", "@RequestMapping(value = \"/newsfeed/\", method = RequestMethod.GET)\r\n public ResponseEntity<List<NewsFeed>> listAllNewsFeed() {\r\n List<NewsFeed> newsFeeds = newsFeedService.findAllNewsFeeds();\r\n if(newsFeeds.isEmpty()){\r\n return new ResponseEntity<List<NewsFeed>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\r\n }\r\n return new ResponseEntity<List<NewsFeed>>(newsFeeds, HttpStatus.OK);\r\n }", "public void loadKptpNews(RssNews rssNews) {\n\t\ttry {\n\t\t\tgnfn.getKptp();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tloadRssNewsData(62);\n\n\t}", "LiveData<List<MainEntity>> getAllNews() {\n\t\treturn mainListLiveData;\n\t}", "@Override\r\n\tpublic ENews findNewsById(int id) {\n\t\treturn new ENDaoImpl().findNewsById(id);\r\n\t}", "protected void scrapeUrl() {\n String baseUrl = \"https://time.com\";\n int sectionsLen = TIME_SECTIONS.length;\n DateTimeFormatter ISOFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.ENGLISH);\n\n for (int i = 0; i < sectionsLen; i++) {\n try {\n //Fetch the website and store it in Document object\n Document doc = Jsoup.connect(baseUrl + TIME_SECTIONS[i]).get();\n\n //Retrieve all articles from Document object\n Elements articles = doc.getElementsByTag(\"article\");\n\n NewsItem newsItem = null;\n\n Map<String, Integer> pathMap = new HashMap<>();\n\n //Go through each article tag and scrape key data\n for (Element article : articles) {\n newsItem = new NewsItem();\n\n Elements articleTitleURL = article.select(\"h3\");\n Elements articleExcerpt = article.getElementsByClass(\"summary margin-8-bottom desktop-only\");\n Elements articleImgURL = article.getElementsByClass(\"media-img margin-16-bottom\");\n\n //Checking for duplicate article\n if (pathMap.containsKey(articleTitleURL.select(\"a\").attr(\"href\"))) {\n int newsItemPos = pathMap.get(articleTitleURL.select(\"a\").attr(\"href\"));\n String currentCategory = newsItems.get(newsItemPos).getCategory();\n newsItems.get(newsItemPos).setCategory(currentCategory + \",\" + TIME_CATEGORIES[i]);\n }\n //Otherwise creating new NewsItem\n else {\n newsItem.setCategory(TIME_CATEGORIES[i]);\n newsItem.setTitle(articleTitleURL.select(\"a\").text());\n newsItem.setPageUrl(baseUrl + articleTitleURL.select(\"a\").attr(\"href\"));\n newsItem.setExcerpt(articleExcerpt.text());\n newsItem.setImgUrl(articleImgURL.select(\"div\").attr(\"data-src\"));\n newsItem.setPublishedDate(articlePublishedDate(newsItem.getPageUrl(), ISOFormatter));\n\n //Add new NewsItem to list\n newsItems.add(newsItem);\n //Mapping current articles url path to its corresponding NewsItem object to handle duplicates\n pathMap.put(articleTitleURL.select(\"a\").attr(\"href\"), newsItems.size() - 1);\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Scheduled(cron=\"0 0 9 * * ? \")\r\n\t@Override\r\n\tpublic void getNewsFromIDataAPI() {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tList<NewsType> newsTypeArray=newsTypeRepository.findAllByFlag(0);\r\n\t\t\t\r\n\t\t\tfor(NewsType n: newsTypeArray) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString catId=n.getCatId();\r\n\t\t\t\t\tString url = \"http://api01.bitspaceman.com:8000/news/toutiao?apikey=np5SpQ7QGzm7HgvX8Aw8APA5NDq6Bpj5m4eo4hX5qJFLm0G0Oqt31xJzjIEeJFTv&catid=\"+n.getCatId();\r\n\t\t\t\t\tString json = IDataAPI.getRequestFromUrl(url);\r\n\t\t\t\t\tlog.info(json);\r\n\t\t\t\t\tGson gson=new Gson();\r\n\t\t\t\t\tToutiaoResponseDto toutiaoResponseDto=gson.fromJson(json, ToutiaoResponseDto.class);\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<NewsInfo> newsInfoArray=new ArrayList<NewsInfo>();\r\n\t\t\t\t\tfor(ToutiaoDataResponseDto toutiao :toutiaoResponseDto.getData()) {\r\n\t\t\t\t\t\tnewsInfoArray.add(new NewsInfo(toutiao,catId));\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tList<NewsInfo> iter=(List<NewsInfo>) newsInfoRepository.saveAll(newsInfoArray);\r\n\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\tlog.info(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(\"true\".equals(toutiaoResponseDto.getHasNext())) {\r\n\t\t\t\t\t\tgetNewsFromIDataAPIByPageToken(toutiaoResponseDto.getPageToken(),catId);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tlog.info(e.getMessage());\r\n\t\t}\r\n\t}", "public List<NewsItem> getNewsItemDataFromDB() throws SQLException;", "@Override\n public void loadNews(boolean forceUpdate) {\n if(forceUpdate) {\n newsRequestTask = new NewsRequestTask(this, context);\n newsRequestTask.execute(URL_NEWS);\n } else {\n List<News> newsList = dbDao.load();\n view.onRefreshList(newsList);\n }\n }", "private void fetchTopHeadlines() {\n ApiNewsMethods newsTopHeadlines = retrofit.create(ApiNewsMethods.class);\n newsTopHeadlines.getTopHeadlines(\"in\"/*country through voice command*/, newsApiKey).enqueue(new Callback<NewsModelClass>() {\n @Override\n public void onResponse(Call<NewsModelClass> call, Response<NewsModelClass> response) {\n if(response.isSuccessful()) {\n newsModelBody = response.body();\n //change UI\n newsUIChanges();\n //Prepare speech\n StringBuilder newsText = new StringBuilder();\n String[] numbers = {\"First\",\"Second\",\"Third\",\"Fourth\",\"Fifth\",\"Sixth\",\"Seventh\",\"Eighth\",\"Ninth\",\"Tenth\",};\n int i = 0,j=newsModelBody.getArticles().size()>10?10:newsModelBody.getArticles().size();\n newsText.append(\"Headlines fetched successfully\\n\\n\\n\");\n while(i<j){\n newsText.append(numbers[i]+\"\\n\"+newsModelBody.getArticles().get(i).getTitle()+\"\\n\\n\\n\");\n i++;\n }\n newsText.append(\"Swipe Right to go back\\n\\n\\n\");\n constants.speak(newsText.toString(),mTextToSpeechHelper);\n } else {\n Log.d(\"mySTRING\", \"DID NOT OCCUR\");\n }\n }\n\n @Override\n public void onFailure(Call<NewsModelClass> call, Throwable t) {\n }\n });\n }", "java.lang.String getFeed();", "@Override\n\tpublic Integer queryNewsCount(News params) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public int getCount() {\n return news.size();\n }", "public List<News> getNewsList(Integer id) {\n List<News> newsList = newsMapper.selectByAuthorId(id);\n newsList.sort((dt1,dt2) -> {\n if (dt1.getPubdate().getTime() < dt2.getPubdate().getTime()) {\n return 1;\n } else if (dt1.getPubdate().getTime() > dt2.getPubdate().getTime()) {\n return -1;\n } else {\n return 0;\n }\n });\n return newsList;\n }", "public void loadStoriesUrl(int lastN) {\r\n\t\tfin.clear();\r\n\t\tList<Reel> reels = new ArrayList<>();\r\n new FeedReelsTrayRequest().execute(client)\r\n \t.thenAccept(response -> {\r\n \t\treels.addAll(response.getTray()); \r\n }).join();\r\n String s = \"\";\r\n\t\t\r\n for(int y=0;y<lastN;y++) {\r\n \tReel reel = reels.get(y);\r\n \t\tfor(int j = 0; j<reel.getMedia_count(); j++) { \r\n \t\t\ts = reel.getMedia_ids()[j]+\"_\"+reel.getUser().getPk(); \t\t\r\n new MediaInfoRequest(s).execute(client)\r\n .thenAccept(r -> {\r\n \t//check if video or img\r\n \tswitch(textBetweenWords(r.toString(), \"media_type=\", \", code\")) {\r\n \t\t//image\r\n \t\tcase \"1\":\r\n \t\t\tfin.add(new Story(textBetweenWords(r.toString().substring(1000), \"candidates=[ImageVersionsMeta(url=\", \", width=\"), 1, reel.getUser()));\r\n \t\t\tbreak; \t\t\r\n \t\t//video\r\n \t\tcase \"2\":\r\n \t\t\tfin.add(new Story(textBetweenWords(r.toString(), \"type=101, url=\", \"), VideoVersionsMeta(height=\"), 2, reel.getUser()));\r\n \t\t\tbreak;\r\n \t} \t\r\n }).join();\r\n \t\t}\t\r\n }\r\n \t\r\n \t \r\n\t}", "public static Set<TopicBean> loadAllTopics(boolean onlyBasicInfo) {\r\n\t\tDBCollection topicsColl = getCollection(TOPICS_COLLECTION);\r\n\t\ttopicsColl.ensureIndex(new BasicDBObject(\"views\", 1));\r\n\t\t\r\n\t\tDBObject query = new BasicDBObject(\"deleted\", new BasicDBObject(\"$ne\", true));\r\n\t\tList<DBObject> topicsDBList = null;\r\n\t\tif (onlyBasicInfo) {\r\n\t\t\tDBObject fields = BasicDBObjectBuilder.start()\r\n\t\t\t\t.add(\"title\", 1)\r\n\t\t\t\t.add(\"fixed\", 1)\r\n\t\t\t\t.add(\"deleted\", 1)\r\n\t\t\t\t.add(\"main_url\", 1)\r\n\t\t\t\t.add(\"bitly\", 1)\r\n\t\t\t\t.add(\"views\", 1)\r\n\t\t\t\t.add(\"cr_date\", 1)\r\n\t\t\t\t.get();\r\n\t\t\t\r\n\t\t\ttopicsDBList=new ArrayList<DBObject>();//topicsDBList = topicsColl.find(query, fields).sort(new BasicDBObject(\"views\", -1)).toArray();\r\n\t\t\tDBCursor topicCur=topicsColl.find(query, fields).sort(new BasicDBObject(\"views\", -1));\r\n\t\t\twhile(topicCur.hasNext()){\r\n\t\t\t\ttopicsDBList.add(topicCur.next());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttopicsDBList=new ArrayList<DBObject>();//topicsDBList = topicsColl.find(query).sort(new BasicDBObject(\"views\", -1)).toArray();\r\n\t\t\tDBCursor topicCur= topicsColl.find(query).sort(new BasicDBObject(\"views\", -1));\r\n\t\t\twhile(topicCur.hasNext()){\r\n\t\t\t\ttopicsDBList.add(topicCur.next());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSet<TopicBean> topicsSet = new LinkedHashSet<TopicBean>();\r\n\t\tfor (DBObject topicDBObject : topicsDBList) {\r\n\t\t\tTopicBean topic = new TopicBean();\r\n\t\t\tif (onlyBasicInfo) {\r\n\t\t\t\ttopic.parseBasicFromDB(topicDBObject);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttopic.parseFromDB(topicDBObject);\r\n\t\t\t}\r\n\t\t\ttopicsSet.add(topic);\r\n\t\t}\r\n\t\treturn topicsSet;\r\n\t}", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tif (getNews() == null) {\n\t\t\t\t\tprocessNewsInitial();\n\t\t\t\t} else {\n\t\t\t\t\tprocessNews();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\n\t\tString url=\"http://pop.heraldcorp.com/view.php?ud=202105232102500066857_1&ACE_SEARCH=1\";\n\t\t\n\t\t\n\t\tDocument doc=null;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(url).get();\n\t\t}catch(IOException\t e) {\n\t\t\tthrow new RuntimeException(\"[Error: Crawling fail : \" + e.getMessage() + \"]\");\n\t\t}\n\t\tElements title=doc.select(\"#content > div.article > div.top > div.title > h1\");\n\t\tElements images=doc.select(\"#CmAdContent > div > div > img\");\n\t\tElements contents=doc.select(\"#CmAdContent\");\n\t\tNews n=new News();\n\t\t\n\t\t\n\t\n\t\t\n\t\tfor(Element el: contents) {\n\t\t\tn.setNewsContent(el.html());\n\t\t}\n\t\n\t\tSystem.out.println(n.getNewsContent());\n\t\t\n\t}", "public void fetchApiData(final String keyword) {\n final long DAY_IN_MILLI_SECONDS = 86400000;\n final String token = \"42e12e91-8641-4e59-aece-8b051e64acca\";\n final String format = \"json\";\n String timeStamp = String.valueOf(dataUpdateChecker.getCurrentTimeStamp() - DAY_IN_MILLI_SECONDS);\n final String sort = \"published\";\n String query = \"performance_score:>0 (title:\" + keyword + \")\";\n updateProgressBar.setProgressBarVisibility(true);\n APIService service = ApiUtils.getAPIService();\n service.getLatestNews(token,format,timeStamp,sort,query).enqueue(new Callback<NewsResultsResponse>(){\n @Override\n public void onResponse(@NonNull Call<NewsResultsResponse> call,@NonNull Response<NewsResultsResponse> response) {\n Log.e(TAG,response.toString());\n updateProgressBar.setProgressBarVisibility(false);\n storeKeyWord(keyword);\n dataUpdateChecker.updateSearchDate();\n LinkedList<NewsDetail> newsDetails;\n if (response.body() != null) {\n newsDetails = populateList(response.body());\n updateUi(response.body(),newsDetails);\n updateDatabase(newsDetails);\n }else {\n newsList.postValue(null);\n }\n\n }\n @Override\n public void onFailure(@NonNull Call<NewsResultsResponse> call,@NonNull Throwable t) {\n updateProgressBar.setProgressBarVisibility(false);\n Log.e(TAG,t.toString());\n newsList.postValue(null);\n }\n });\n }", "public void loadGangAoNews(RssNews rssNews) {\n\t\ttry {\n\t\t\tgnfn.getGangAo();\n\t\t\tloadRssNewsData(3);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void fetchFactFeeds();", "@Override\n public List<News> getTop(int top) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select top (?) * from news\\n\"\n + \"order by timePost desc\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setInt(1, top);\n result = statement.executeQuery();\n while (result.next()) {\n News news = new News(result.getInt(\"ID\"),\n result.getString(\"title\"),\n result.getString(\"description\"),\n result.getString(\"image\"),\n result.getString(\"author\"),\n result.getDate(\"timePost\"),\n result.getString(\"shortDes\"));\n list.add(news);\n }\n } catch (ClassNotFoundException | SQLException e) {\n throw e;\n } finally {\n closeResultSet(result);\n closePreparedStatement(statement);\n closeConnection(conn);\n }\n return list;\n }", "String retrieveSymbolNewsItems(String symbol);", "@Override\n public HashSet<News> getNewsFreeCriteria(String request) throws ServiceException {\n try {\n String [] parametersForTheSearch;\n parametersForTheSearch = RequestWorker.getSearchParametersInRequest(request);\n\n return dbWorker.searchNewsForFreeCriteria(parametersForTheSearch);\n\n } catch (DAOException e) {\n throw new ServiceException(e.getMessage(),e);\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"News [newsId=\" + newsId + \", title=\" + title + \", author=\" + author + \", description=\" + description\n\t\t\t\t+ \", content=\" + content + \", publishedAt=\" + publishedAt + \"]\";\n\t}", "public List<Integer> getNewsFeed(int userId) {\n\t\t\tint resultSize = 10;\n\t\t\tList<Integer> result = new ArrayList<>(resultSize);\n\t\t\tSet<Integer> followees = getFollowees(userId);\n\t\t\tint count = 0;\n\t\t\tfor (int i = tweets.size() - 1; i >= 0; i--) {\n\t\t\t\tif (count == resultSize)\n\t\t\t\t\tbreak;\n\t\t\t\tint tweet = tweets.get(i);\n\t\t\t\tint owner = tweetOwner.get(tweet);\n\t\t\t\tif (owner == userId || followees.contains(owner)) {\n\t\t\t\t\tresult.add(tweet);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public LabelItem GetTestdataByNewsID(long news_id, String news_source){\n\t\tqueryString = \"SELECT * FROM test_data where news_id=\"+news_id+\" and news_source=\\\"\"+news_source+\"\\\"\";\n\t\tSystem.out.println(queryString);\n\t\ttry{\n\t\t\tList rows = jdbcTemplate.queryForList(queryString);\n\t\t\tint isEvent = 0;\n\t\t\tString newsSource;\n\t\t\tString newsID ;\n\t\t\tString newsTitle ;\n\t\t\tString labelID;\n\t\t\tif(rows.size()>0){\n\t\t\t\tMap line = (Map)rows.get(0);\n\t\t\t\tlabelID = Long.toString((long)line.get(\"label_id\"));\n\t\t\t\tnewsSource = (String)line.get(\"news_source\");\n\t\t\t\tnewsID \t= Long.toString((long)line.get(\"news_id\"));\n\t\t\t\tnewsTitle = (String)line.get(\"news_title\");\n\t\t\t\tisEvent = (boolean)line.get(\"if_event\")==true?1:0;\n\t\t\t\t\n\t\t\t\tif(newsSource == null||newsID == null || newsTitle == null)\n\t\t\t\t\tSystem.out.println(\"Something null from DB\");\n\t\t\t\tLabelItem label;\n\t\t\t\tif(isEvent == 0)\n\t\t\t\t\tlabel= new LabelItem(labelID,newsSource,newsID,newsTitle);\n\t\t\t\telse\n\t\t\t\t//\tpublic LabelItem(String labelID,String newsSource,String newsID,String newsTitle,int eventType,\n\t\t\t\t//\t\t\tString sourceActor,String targetActor,String triggerWord,\n\t\t\t\t//\t\t\tString eventTime,String eventLocation)\n\t\t\t\t{\n\t\t\t\t\tlabel = new LabelItem(labelID,newsSource,newsID, newsTitle, (int)line.get(\"event_type\"),\n\t\t\t\t\t\t\t(String)line.get(\"source_actor\"), (String)line.get(\"target_actor\"), (String)line.get(\"trigger_word\"),\n\t\t\t\t\t\t\t(String)line.get(\"source_actorPro\"), (String)line.get(\"target_actorPro\"),\n\t\t\t\t\t\t\t(String)line.get(\"event_date\"), (String)line.get(\"event_location\"),(String)line.get(\"actor_index\"),\n\t\t\t\t\t\t\t(String)line.get(\"actor_len\"),(String)line.get(\"actor_Pro\"),(String)line.get(\"actor\"));\n\t\t\t\t}\n\t\t\t\tint if_remark=(boolean)line.get(\"if_remark\")==true?1:0;\n\t\t\t\tlabel.if_remark = if_remark;\n\t\t\t\treturn label;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private void extractFirstFivePubsCites() {\r\n try {\r\n List<String> citeMatches = new ArrayList<String>();\r\n // gets all matched objects for extracting publication citations.\r\n Matcher matcherObject = matcher.patternMatcher(\"FivePubsCites\");\r\n\r\n\r\n while (matcherObject.find()) {\r\n citeMatches.add(matcherObject.group(2));\r\n }\r\n\r\n int fiveCiteMatches;\r\n\r\n // adds the total according to if minimum five publications can be found\r\n if (citeMatches.size() < 5) {\r\n fiveCiteMatches = citeMatches.size();\r\n } else {\r\n fiveCiteMatches = 5;\r\n }\r\n\r\n if (citeMatches.size() != 0) {\r\n int count = 0;\r\n int total = 0;\r\n while (count < fiveCiteMatches) {\r\n total += Integer.parseInt(citeMatches.get(count));\r\n count++;\r\n }\r\n\r\n format.Formatter(5, total);\r\n\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out\r\n .println(\"Error has occured in extractFirstFivePubsCites method\");\r\n }\r\n }", "@Override\n public void onRefresh() {\n fetchNews();\n }" ]
[ "0.6663204", "0.6657093", "0.65745896", "0.64920706", "0.6488132", "0.6425512", "0.64194214", "0.6415668", "0.6269593", "0.6221803", "0.6173363", "0.6149091", "0.6080332", "0.6075241", "0.6073222", "0.60586643", "0.6052747", "0.60455364", "0.6015312", "0.598142", "0.5962067", "0.59507906", "0.5893538", "0.58869714", "0.5881853", "0.58706486", "0.5862823", "0.5857333", "0.5824875", "0.58239144", "0.5821899", "0.57929474", "0.57750916", "0.5769823", "0.5763791", "0.57624245", "0.57526076", "0.5701701", "0.5695142", "0.5694012", "0.568497", "0.5673027", "0.5661775", "0.56513935", "0.56417114", "0.562931", "0.56262934", "0.5610991", "0.5587705", "0.5586717", "0.55666625", "0.55616945", "0.5497947", "0.54950625", "0.549157", "0.54891044", "0.54828066", "0.547848", "0.5475229", "0.5474196", "0.5473371", "0.54676044", "0.54603976", "0.54577076", "0.54536265", "0.5441294", "0.54404616", "0.54386044", "0.54384583", "0.54365337", "0.5435272", "0.5425945", "0.54205126", "0.54169536", "0.541362", "0.5405761", "0.5383156", "0.53741693", "0.537331", "0.5370415", "0.5362265", "0.5362052", "0.5355737", "0.53530127", "0.5343927", "0.5340626", "0.53248405", "0.5324165", "0.5320882", "0.5320845", "0.5316196", "0.53142107", "0.53102297", "0.5307919", "0.5304113", "0.5301172", "0.5299268", "0.5293095", "0.52896935", "0.52882767" ]
0.6283631
8
To insert new Important News detail or Edit Particular Important News Detail
public String insertOrUpdateImportantNews() { try { if (important.getImportantNewsId() == null) { Map session = ActionContext.getContext().getSession(); EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT"); important.setCreated(DateUtils.getCurrentDateTime()); important.setEmpIdObj(oEmp); important.setCreatedBy(oEmp); important.setUpdatedBy(oEmp); important.setIsActive(1); impService.insertImportantNews(important); addActionMessage(getText("Added Successfully")); } else { Map session = ActionContext.getContext().getSession(); EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT"); important.setUpdatedBy(oEmp); important.setEmpIdObj(oEmp); impService.updateImportantNews(important); addActionMessage(getText("Updated Successfully")); } } catch (RuntimeException e) { ErrorsAction errAction = new ErrorsAction(); String sError = errAction.getError(e); addActionError(sError); throw e; } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insertSelective(NewsInfo record);", "@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "int insert(NewsInfo record);", "String addNew(News news) throws DAOException, ConnectionPoolDataSourceException;", "int insertSelective(News record);", "@Override\r\n\tpublic boolean addNews(News aNews) {\n\t\tConnection conn =null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tString sql=\"insert into news(title,content,createTime,fk_topic_id) value (?,?,?,?)\";\r\n\t\t\t\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setObject(1, aNews.getTitle());\r\n\t\t\tpstmt.setObject(2, aNews.getContent());\r\n\t\t\tpstmt.setObject(3, new java.sql.Date(System.currentTimeMillis()));\r\n\t\t\tpstmt.setObject(4, aNews.getFk_topic_id());\r\n\t\t\t\r\n\t\t\tint rows = pstmt.executeUpdate();\r\n\t\t\tflag = rows > 0 ? true : false;\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\tSimpleDBUtil.closeAll(null, pstmt, conn);\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void save(News news) {\n newsDao.save(news);\n }", "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "public boolean insertNews() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void insertNews(int uid, String title, String triptime,\r\n\t\t\tString people, String imgpath, String triptype, String content,\r\n\t\t\tString equipment, String notice, String summary, String spot,\r\n\t\t\tTimestamp cdate) {\n\t\tdao.insertNews(uid, title, triptime, people, imgpath, triptype, content, equipment, notice, summary, spot, cdate);\r\n\t\t\r\n\t}", "public int addNews(News news);", "int insertSelective(WxNews record);", "int insert(News record);", "@Override\r\n\tpublic void updateNewsById(News aNews) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"update news set title=?, content=?, fk_topic_id=? where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, aNews.getTitle());\r\n\t\t\tpstmt.setString(2, aNews.getContent());\r\n\t\t\tpstmt.setInt(3, aNews.getFk_topic_id());\r\n\t\t\tpstmt.setInt(4, aNews.getId());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(null, pstmt, conn);\r\n\t\t}\r\n\t}", "public void insertNote(NewsModel data) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(NewsModel.COLUMN_SOURCE, data.getSourceName());\n values.put(NewsModel.COLUMN_AUTHOR, data.getAuthor());\n values.put(NewsModel.COLUMN_CONTENT, data.getContent());\n values.put(NewsModel.COLUMN_DESCRIPTION, data.getDescription());\n values.put(NewsModel.COLUMN_PUBLISHEDAT, data.getPublishedAt());\n values.put(NewsModel.COLUMN_TITLE, data.getTitle());\n values.put(NewsModel.COLUMN_URL, data.getUrl());\n values.put(NewsModel.COLUMN_URLTOIMAGE, data.getUrlToImage());\n // insert row\n long id = db.insert(NewsModel.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n }", "int insert(NewsFile record);", "int insert(WxNews record);", "@Override\n\tpublic void detailProcess(Page page) throws RuntimeException{\n\t\tNewsAbstract newsabs = super.thv.getNewsabs();\n\t\tNewsDetails newsdet = super.thv.getNewsdet();\n\t\t\n\t\t// 分页处理 第一页时获取其他页面的url\n\t\tif(thv.getF() == 1){\n\t\t\tList<String> requesturl = getRequestUrl(page.getHtml().getDocument(),page.getRequest().getUrl());\n\t\t\tsuper.addTargetUrls(requesturl, page);\n\t\t}\n\t\t\n\t\t\n\t\t/** 获取新闻正文*/\n\t\tString temcontent = \"\";\n\t\tDocument doc = page.getHtml().getDocument();\n\t\ttemcontent = doc.select(\".TRS_Editor\").get(0).toString().trim();\n\t\t/*模拟获取分页信息,将内容存在静态变量{@code content}中*/\n\t\tthv.setContent(thv.getContent()+temcontent);\n\t\t\n\t\t\n\t\t// if(page.getTargetRequests().size() == 0){// 抓取到的每一个url都是一个不同的page对象,故不能通过此方法判断分页是否为最后一页\n\t\t// 根据{@Scheduler}判断是否还有分页,当没有分页时继续处理,此种方法也有缺陷,因为在处理倒数第二个时,{@Scheduler}的size已经为0了,具体见{@Spider#Run}循环的写法\n\t\tif(super.isLast()){\n\t\t\tnewsdet.setTableName(\"dgnewsdetail\");\n\t\t\tnewsdet.setUrl(newsabs.getUrl());\n\t\t\t// 获取日期\n\t\t\tif(newsabs.getDate() == null){\n\t\t\t\tString oridate = super.getOriginalDateOfNewsDetail(doc.toString());\n\t\t\t\tnewsabs.setOriginalDate(oridate);\n\t\t\t\tnewsabs.setDate(super.getPublishDate(oridate));\n\t\t\t}\n\t\t\tnewsdet.setDate(newsabs.getDate());\n\t\t\t\n\t\t\t// 正文内容与图片的处理\n\t\t\tString content = thv.getContent();\n\t\t\tcontent = this.imgRelativeToAbsolute(page.getRequest().getUrl(), content);\n\t\t\tnewsabs.setImgPath(super.getImgPath(newsdet.getUrl(), content));// 设置网络原图片访问路径\n\t\t\tnewsabs.setImgUuid(NewsUtils.getImgUuid(newsabs));\n\t\t\tnewsdet.setContent(content);\n\t\t\t/**可以由专有的image服务器处理**/\n\t\t\tcontent = super.contentAndImgProc(newsdet,newsabs);\n\t\t\t/**********************/\n\t\t\tnewsdet.setContent(content);\n\t\t\t\n//\t\t\tNewsUtils.checkAndPutNewsDetail(SpiderEntrance.AllNewsDetailList,SpiderEntrance.AllNewsByUrl,SpiderEntrance.AllNewsList,\n//\t\t\t\t\tnewsdet);\n\t\t\t\n\t\t\tsuper.checkAndPutNewsDetail(newsdet);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void updateDatabase(LinkedList<NewsDetail> newsDetails) {\n deletedAllNewsFromDatabase();\n addNewsAllToDatabase(newsDetails);\n }", "private void addNewsAllToDatabase(LinkedList<NewsDetail> newsDetails) {\n new InsertNewsAsyncTask(newsDao).execute(newsDetails);\n }", "public News save(News news)\n {\n news.setDateTime(new Date());\n newsRepository.save(news);\n return news;\n }", "@Override\n public String addNew(News news) throws DAOException, ConnectionPoolDataSourceException {\n PreparedStatement preparedStatement = null;\n Connection connection = connectionPool.takeConnection();\n String result;\n try {\n preparedStatement = connection.prepareStatement(SQL_INSERT_NEWS);\n preparedStatement.setString(1, news.getCategory());\n preparedStatement.setString(2, news.getTitle());\n preparedStatement.setString(3, news.getAuthor());\n preparedStatement.setString(4, news.getDate());\n preparedStatement.executeUpdate();\n result = \"Your new added!\";\n news = new News(news.getCategory(), news.getTitle(), news.getAuthor(), news.getDate());\n System.out.println(result);\n connectionPool.closeConnection(connection, preparedStatement);\n } catch (SQLException e) {\n throw new DAOException(e);\n }\n return result;\n }", "@Override\r\n\tpublic void insert_story_detail(String member_cd) {\n\t\tsst.insert(namespace+\".insert_story_detail\",member_cd);\r\n\t}", "private void insert(SfJdDocAudit inData, RequestMeta requestMeta) {\n jdDocAuditMapper.insert(inData);\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 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 }", "public int insert(NewsNotice newsNotice) {\n\t\treturn getSqlSession().insert(getStatementName(\"insertSelective\"),newsNotice);\r\n\t}", "protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}", "@Override\n\tpublic int insert(TNews record) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "@InsertProvider(type=NewsSqlProvider.class, method=\"insertSelective\")\n int insertSelective(News record);", "@Override\n\tpublic boolean modify(News news) {\n\t\ttry\n\t\t{\n\t\t\topenCurrentSessionWithTransaction();\n\t\t\tgetCurrentSession().update(news);\n\t\t\tcloseCurrentSessionWithTransaction();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public String insertInfo(String title,String date,String details)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n\n try\n {\n String INSERT_DATA =\"INSERT INTO news_table(title,date,details)\"+\"VALUES('\"+title+\"','\"+date+\"','\"+details+\"')\";\n db.execSQL(INSERT_DATA);\n\n return \"Data Inserted Successfully!\";\n }\n catch (Exception ex)\n {\n return \"Error!! \"+ ex.getMessage();\n }\n\n }", "@SkipValidation\n public String deleteImportantNews() {\n Map session = ActionContext.getContext().getSession();\n EmployeesVO oEmp = (EmployeesVO) session.get(\"EMPLOYEE_OBJECT\");\n\n // To Delete Important News.\n important.setUpdatedBy(oEmp);\n impService.deleteImportantNews(important);\n addActionMessage(getText(\"Deleted Successfully\"));\n\n return SUCCESS;\n }", "int insert(Storydetail record);", "private void addArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tQuotationDetailsDTO detail = new QuotationDetailsDTO();\n\t\ttry {\n\t\t\tdetail = createQuotationDetail(detail);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (validateMandatoryParameters(detail)) {\n\t\t\taddToArticleTable(detail);\n\t\t}\n\t}", "@Override\r\n\tpublic boolean updateNewsById(ENews news,int id) {\n\t\treturn new ENDaoImpl().updateNewsById(news, id) ;\r\n\t}", "@Override\n\tpublic int update(News news) throws Exception {\n\t\treturn 0;\n\t}", "int updateByPrimaryKey(NewsInfo record);", "public News (\n\t\t Long in_newsId\n ) {\n\t\tthis.setNewsId(in_newsId);\n }", "@Override\n\tpublic long add(News news) throws Exception {\n\t\topenCurrentSessionWithTransaction();\n\t\tgetCurrentSession().save(news);\n\t\tcloseCurrentSessionWithTransaction();\n\t\treturn news.getIdNews();\n\t}", "private ItemNews modifyItem(ItemNews itemNews) {\n itemNews.setTitle(\"Title: \" + itemNews.getTitle());\n if (itemNews.getAuthor() != null && itemNews.getAuthor() != \"\") {\n if (itemNews.getAuthor().contains(\"By \"))\n itemNews.setAuthor(itemNews.getAuthor().replace(\"By \", \"\").trim());\n }\n return itemNews;\n }", "public void insertInfo(editUserSetGet eu);", "@Override\r\n\tpublic void onMpnews(HttpRequest request, Mpnews news) {\n\r\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\tif (requestCode == 333 && resultCode == RESULT_OK) {\n\t\t\tDtb_OneNewsObject c = (Dtb_OneNewsObject) data.getExtras().get(\n\t\t\t\t\t\"congviec\");\n\t\t\t// sua lai thong tin sqlite\n\t\t\tqlb.editNews(c);\n\t\t\t// hien thi lai tin\n\t\t\tdisplayDataUpListView();\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@RequestMapping(value = \"/edit/update\", method = RequestMethod.POST)\n public String updateArticle(@ModelAttribute final NewsArticle newsArticle, final Model model, final HttpServletRequest request) {\n newsService.editNewsArticle(newsArticle);\n request.getSession().setAttribute(ARTICLE_LIST, null);\n PagedListHolder<NewsArticle> pagedListHolder = populatePagedListHolder(request);\n\n request.getSession().setAttribute(ARTICLE_LIST, pagedListHolder);\n\n model.addAttribute(ARTICLE_LIST, pagedListHolder);\n\n return REDIRECT_NEWS;\n }", "int insertSelective(ArticleDo record);", "int updateByPrimaryKey(News record);", "@Override\n\tpublic void loadNews() {\n\t\tif(newsUrl.contains(\"xyz\")) {\n\t\t\tnewsUrl = \"abc\";\n\t\t}\n\t\t\n\t\tif(realNews==null) {\n\t\t\trealNews = new RealNews(newsUrl);\n\t\t}\n\t\trealNews.loadNews();\n\t}", "@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }", "@SkipValidation\n public String getAllImportantNews() {\n impList = impService.getAllImportantNews();\n return SUCCESS;\n }", "int updateByExample(@Param(\"record\") News record, @Param(\"example\") NewsExample example);", "public Boolean insert(final ArrayList<Article> news) {\n ioExecutor.execute(new Runnable() {\n @Override\n public void run() {\n Log.d(\"my_tag\", \"inserting\" + news.size() + \"articles\");\n for (Article article : news) {\n newsDao.insert(article);\n }\n }\n });\n return true;\n }", "@Override\n public void onClick(View v) {\n if (from == Constant.NEW_NEWS) {\n insertNews();\n } else {\n deleteNews();\n }\n floatingActionButtonSave.setVisibility(View.GONE);\n }", "int insertSelective(AnnouncementDO record);", "int insertSelective(FinMonthlySnapModel record);", "public String saveNewsAndEvents() throws POLLINGBusinessException{\n\t\t\t\n\t\tthis.populateMenu();\n\t\t\t\tSystem.out.println(\"hello 1\");\n\t\t String flag = CommonConstants.FAILURE_ERROR;\n\t\t if(request.getSession().getAttribute(\"adminDetailDto\") == null) {\n\t\t\t\t\treturn \"login\";\n\t\t\t\t}\n\t\t\t\tAdminDetailDto adminDetailDto = new AdminDetailDto();\n\t\t\t\tadminDetailDto = (AdminDetailDto) request.getSession().getAttribute(\"adminDetailDto\");\n\t\t\t\t\n\t\t Pattern p = Pattern.compile(\"^[a-z0-9@._,&:-]\", Pattern.CASE_INSENSITIVE);\n\t\t\t String headline = newsAndEventsDto.getGstr_headline();\n\t\t\t String content = newsAndEventsDto.getGstr_content();\n\t\t\t String gnum_slno = request.getParameter(\"newsAndEventsDto.gnum_slno\");\n\t\t\t Matcher headlineDesc = p.matcher(headline); \n\t\t\t boolean name = headlineDesc.find();\n\t\t\t Matcher contentDesc = p.matcher(content);\n\t\t\t boolean desciption = contentDesc.find();\n\t\t\t \n\t\t\t if(headline!=null && content!=null){\n\t\t\t\t if(name == false){\n\t\t\t\t\t showNewsAndEvents();\n\t\t\t\t\t info = \"<div class='message error'><h5>Error!</h5><p>Scriptlet Characters are not allowed</p></div>\";\n\t\t\t\t flag = CommonConstants.FAILURE_ERROR;\n\t\t\t\t } else {\n\t\t\t \tif(desciption == false){\n\t\t\t \t\tshowNewsAndEvents();\n\t\t\t \t\tinfo = \"<div class='message error'><h5>Error!</h5><p>Scriptlet Characters are not allowed</p></div>\";\n\t\t\t \t\tflag = CommonConstants.FAILURE_ERROR;\n\t\t\t \t} else {\n\t\t\t \t\tif(gnum_slno.equals(\"\")) {\n\t\t\t \t\t\t checkAvailNewsAndEventsList = this.getNewsAndEventsServices().checkAvailNewsAndEvents(headline);\n\t\t\t \t\t \tif(checkAvailNewsAndEventsList!=null && checkAvailNewsAndEventsList.size()>0){\n\t\t\t\t\t\t \t\n\t\t\t\t\t\t \t\tshowNewsAndEvents();\n\t\t\t\t\t\t \t\tnewsAndEventsDto = new NewsAndEventsDto();\n \t\t\t\t \t info = \"<div class='message error'><h5>Error!</h5><p>Record is already exist, Try Again</p></div>\";\n\t\t\t\t\t\t \t\tflag = CommonConstants.FAILURE_ALREADY_EXIST;\n\t\t\t\t\t\t \t} else {\n\t\t\t \t\t \tnewsAndEventsDto.setGnum_is_active(1);\n\t\t\t \t\t \tnewsAndEventsDto.setAdminDetailDto(adminDetailDto);\n\t\t\t\t\t \t\t \t\tthis.getNewsAndEventsServices().updateNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t \t\t \tnewsAndEventsDtoList = null;\n\t\t\t\t\t \t\t \tnewsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t \t\t \tnewsAndEventsDto = new NewsAndEventsDto();\n\t\t\t\t\t \t\t \tshowNewsAndEvents();\n\t\t\t\t\t \t\t \tinfo = \"<div class='message success'><h5>Success!</h5><p>Record Insert successfully.</p></div>\";\n\t\t\t\t\t\t flag = CommonConstants.SUCCESS_FLAG;\n\t\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t \t } else {\n\t\t\t\t\t\t \t\t newsAndEventsDto.setGnum_is_active(1); \n\t\t\t\t\t\t \t\t newsAndEventsDto.setAdminDetailDto(adminDetailDto);\n\t\t\t\t\t newsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t this.getNewsAndEventsServices().updateNewsAndEventsDto(newsAndEventsDto);\n\t\t\t\t\t showNewsAndEvents();\n\t\t\t\t\t \t info = \"<div class='message success'><h5>Success!</h5><p>Record Has been updated successfully.</p></div>\";\n\t\t\t\t\t newsAndEventsDto = new NewsAndEventsDto();\n\t\t\t\t\t \t\t flag = CommonConstants.SUCCESS_FLAG;\n\t\t\t \t\t }\n\t\t\t \t }\n\t\t\t }\n\t\t\t } else {\n\t\t\t\t newsAndEventsDto = null;\n\t\t\t showNewsAndEvents();\n\t\t\t info = \"<div class='message error'><h5>Error!</h5><p>Try Again Because Values are Null.</p></div>\";\n\t\t\t flag = CommonConstants.FAILURE_ERROR;\n\t\t\t }\n\t\t\t return flag;\n\t}", "@Override\n public void addNews(String request) throws ServiceException {\n try {\n dbWorker.addItem(request);\n } catch (DAOException e) {\n throw new ServiceException(e.getMessage());\n }\n\n }", "int updateByExampleSelective(@Param(\"record\") News record, @Param(\"example\") NewsExample example);", "void updateNotSeen( Long userId, Long newsId );", "@Override\n\tpublic void insertIPODetail(IPODetail ipo) throws SQLException {\n\t\t\n\t}", "@RequestMapping(value=\"/add\", method = RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\n\t@ResponseBody\n\tpublic ArticleEntity add(@RequestBody ArticleEntity detail) {\n\t\tArticleEntity newEntity = convertVo2Entity(serviceFactory.getArticleService().create(convertEntity2Vo(detail)));\n\t\treturn newEntity;\n\t}", "@PostMapping(\"/news/add\")\n public NewsServiceModel saveNews(@RequestBody NewsServiceModel newsServiceModel) {\n LocalDate date = LocalDate.now();\n newsServiceModel.setDate(date);\n return this.newsService.saveNews(newsServiceModel);\n }", "public int getNewsId() {\n\t\treturn newsId;\n\t}", "private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }", "public void saveArticlesList();", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(context, NewsDetails.class);\n intent.putExtra(\"desc\", desc.getText().toString()); // here key is = desc\n intent.putExtra(\"pubdate\", pub.getText().toString()); //key is = pubdate ,, nd in next activity key must be same\n intent.putExtra(\"title\", txtTitle.getText().toString());\n intent.putExtra(\"shdesc\", shdesc.getText().toString());\n intent.putExtra(\"postedby\", uname.getText().toString());\n context.startActivity(intent);\n }", "public void addNote(@NonNull Note_Model newNote) {\n noteModelSection.add(0, newNote);\n if (noteModelSection.size() > 1) {\n noteScreenRecycler.smoothScrollToPosition(0);\n }\n for (int position = 0; position < noteModelSection.size(); position++) {\n noteModelSection.get(position).setActualPosition(position);\n }\n mainActivity.get().getNoteScreen().get().getAdapter().updateNotesAdapter(noteModelSection);\n // new Thread(() -> everDataBase.noteManagement().insert(transformNoteModelToNoteDatabase(newNote))).start();\n }", "@RequestMapping(value = \"/newsAdmin\", method = RequestMethod.GET)\n public String loadFormPage(final Model model) {\n LOGGER.log(Level.INFO, \"in loadFormPage\");\n model.addAttribute(NEWS_ARTICLE, new NewsArticle());\n return NEWS_ADMIN_PAGE;\n }", "int insert(AnnouncementDO record);", "int updateByPrimaryKey(WxNews record);", "int updateByExample(@Param(\"record\") NewsInfo record, @Param(\"example\") NewsInfoExample example);", "public interface NewsNotificationsDao {\n\n\n public String addNewsNotifications(NewsNotifications newsNotifications);\n\n //ADMIN ADD NEWS\n public String addNews(NewsNotifications newsNotifications);\n\n //ADMIN EDIT NEWS\n public String editNewsNotification(NewsNotifications newsNotifications);\n\n //ADMIN DELETE NEWS\n public String deleteNewsNotification(int notificationId);\n\n //ADMIN GET SINGLE NOTIFICATION DATA\n public NewsNotifications getSingleNewsNotificationByNewsNotificationId(int newsNotificationId);\n\n //Student Home Page\n public List<NewsNotifications> getStudentFocusedNotifications(int limit);\n\n //STUDENT ACTIVITY NEWS FEED\n public List<NewsNotifications> getNewsFeed(int limit);\n\n\n\n}", "int updateByExampleSelective(@Param(\"record\") NewsInfo record, @Param(\"example\") NewsInfoExample example);", "int updateByPrimaryKey(NewsFile record);", "public void updateNews(MainEntity mainEntity) {\n\t\tnew UpdateAsyncTask(mainDao).execute(mainEntity);\n\t}", "int updateByPrimaryKeySelective(NewsInfo record);", "int insert(ArticleDo record);", "@Update({\n \"update NEWS\",\n \"set TITLE = #{title,jdbcType=VARCHAR},\",\n \"BODY = #{body,jdbcType=VARCHAR},\",\n \"IMG_URL = #{imgUrl,jdbcType=VARCHAR},\",\n \"URL = #{url,jdbcType=VARCHAR},\",\n \"CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(News record);", "public static void notifyLatestNews(@NonNull final Context context) {\n Uri articlesUri = NewsContract.NewsEntry.CONTENT_URI;\n\n Cursor articlesCursor = context.getContentResolver().query(\n articlesUri,\n NEWS_NOTIFICATION_PROJECTION,\n null,\n null,\n NewsContract.NewsEntry.COLUMN_PUBLISHED_AT + \" DESC\");\n\n if(articlesCursor.moveToFirst()) {\n long articleId = articlesCursor.getLong(INDEX_ARTICLE_ID);\n String articleTitle = articlesCursor.getString(INDEX_ARTICLE_TTITLE);\n String articleAuthor = articlesCursor.getString(INDEX_ARTICLE_AUTHOR);\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)\n .setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n .setSmallIcon(R.drawable.ic_sms_black_24dp)\n .setContentText(\"By \" + articleAuthor)\n .setContentTitle(articleTitle)\n .setAutoCancel(true);\n\n Intent intentForLatestArticle = new Intent(context, DetailActivity.class);\n intentForLatestArticle.setData(NewsContract.NewsEntry.buildUriWithId(articleId));\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context)\n .addNextIntentWithParentStack(intentForLatestArticle);\n PendingIntent resultPendingIntent = taskStackBuilder\n .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notificationBuilder.setContentIntent(resultPendingIntent);\n\n NotificationManager notificationManager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(NEWS_NOTIFICATION_ID, notificationBuilder.build());\n\n PreferencesUtils.saveLastNotificationTime(context, System.currentTimeMillis());\n }\n\n articlesCursor.close();\n }", "@Given(\"an Article exists under the Section\")\r\n\tpublic void createArticle(){\n\t\ttestArticle = new ArticleModel();\r\n\t\ttestArticle.setId(\"3236549\");\r\n\t\ttestArticle.setDefaultValues(baseFeedDomain);\r\n\t\ttestArticle.setTitle(\"automation 3 article title\");\r\n\t\ttestArticle.setState(\"published\");\r\n\t\ttestArticle.setParentName(\"automation3published\");\r\n\t\ttestArticle.setAuthorFirstName(\"tto\");\r\n\t\ttestArticle.setAuthorLastName(\"Administrator\");\r\n\t\t\t\r\n\t\ttestArticle.setStandFirst(\"automation 3 article standfirst\");\r\n\t\ttestArticle.setSectionNameOverride(\"automation 3 article section name override\");\r\n\t\ttestArticle.setTitleprefix(\"automation 3 article times sport title prefix\");\r\n\t\ttestArticle.setHeadlineTitleOverride(\"automation 3 article headline changed\");\r\n\t\ttestArticle.setArticleStandFirstOverride(\"automation 3 article standfirst changed\");\r\n\t\ttestArticle.setArticleBodyOverride(\"automation 3 article body - changed \");\r\n\t\t\r\n\t\ttestArticle.setFeedLink(baseFeedDomain + \"article/\" + 3236549);\r\n\t\ttestArticle.setArticleBodyOverride(\"<p>\\nautomation 3 article body - changed \\n</p>\\n\");\r\n\t\ttestArticle.setBody(\"<p>\\nautomation 3 article body\\n</p>\\n\");\r\n\t\ttestArticle.setCategory(\"article\");\r\n\t\ttestArticle.setAuthorFirstName(\"tto\");\r\n\t\ttestArticle.setAuthorLastName(\"Administrator\");\r\n\t\ttestArticle.setAuthorId(\"2\");\r\n\t\ttestArticle.setFeedLink(baseFeedDomain + \"article/3236549\");\r\n\t\ttestArticle.setHeadline(\"automation 3 article headline\");\r\n\t\ttestArticle.setAuthorUri(baseFeedDomain + \"author/\" + testArticle.getAuthorId());\r\n\t\t\r\n\t\t//TODO re-implement this once cms asset creation/teardown is available\r\n//\t\tString articleId = cmsHelper.createArticle(testArticle);\r\n//\t\ttestArticle.setArticleId(articleId);\r\n\t\t\t\t\r\n\t}", "@Override\n public void update(News item) {\n }", "com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail getNewsindentifydetail(int index);", "public void insertarNota(Note nota){\n ContentValues valores = new ContentValues();\n valores.put(\"fecha\",nota.obtenerFechaFormateada());\n valores.put(\"titulo\",nota.getTitulo());\n valores.put(\"nota\",nota.getNota());\n if(nota.getIdExamenAsociado()!=-1){\n valores.put(\"examenAsociado\",nota.getIdExamenAsociado());\n }\n db.insert(\"nota\",null,valores);\n }", "int insert(FinMonthlySnapModel record);", "int insert(BlogDetails record);", "@PostMapping(value = \"/update\")\n public String addAndFlushNewsType(@RequestBody NewsType newsType/**@RequestParam long newsTypeId, @RequestParam String newsTypeName*/) {\n newsTypeService.addAndFlushNewsType(newsType);\n return \"修改成功!\";\n }", "@Override\n\tpublic void insert(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tIntent i = new Intent(MainActivity.this,NewsDetailActivity.class);\n\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\n\t\t\t\tTextView title=(TextView)view.findViewById(R.id.title);\n\t\t\t\tTextView snapShot=(TextView)view.findViewById(R.id.snap_shot);\n\t\t\t\tTextView newsSource=(TextView)view.findViewById(R.id.news_source);\n\t\t\t\tTextView date=(TextView)view.findViewById(R.id.date);\n\t\t\t\tbundle.putInt(\"news_id\",(Integer) NewsTest.get(position).get(\"news_id\"));\n\t\t\t\tbundle.putString(\"title\", title.getText().toString());\n\t\t\t\tbundle.putString(\"snapShot\", snapShot.getText().toString());\n\t\t\t\tbundle.putString(\"newsSource\", newsSource.getText().toString());\n\t\t\t\tbundle.putString(\"date\", date.getText().toString());\n\t\t\t\tbundle.putString(\"body\",(String)NewsTest.get(position).get(\"body\"));\n\t\t\t\t\n\t\t\t\ti.putExtras(bundle);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "private void switchBetweenAddEdit() {\n String uid = getIntent().getStringExtra(NOTE_UID);\n if (uid != null) {\n\n Objects.requireNonNull(getSupportActionBar()).setTitle(R.string.edit_note);\n\n Note note = Arrays.stream(firebase.getNotes().getValue()).filter(note1 -> uid.equals(note1.getUid())).findFirst().get();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(note.getDate());\n\n date.init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null);\n title.setText(note.getTitle());\n body.setText(note.getBody());\n\n addBtn.setVisibility(View.GONE);\n editBtnsLyot.setVisibility(View.VISIBLE);\n\n saveBtn.setOnClickListener(view -> {\n prepareNote(note1 -> {\n note1.setUid(uid);\n setNoteOnFirebaseManager(note1, true);\n });\n });\n\n deleteBtn.setOnClickListener(view -> {\n deleteNoteOnFirebaseManager(note);\n });\n }\n\n addBtn.setOnClickListener(view -> {\n prepareNote(note -> {\n setNoteOnFirebaseManager(note, false);\n });\n });\n }", "int updateByPrimaryKeySelective(News record);", "public interface News2Dao {\r\n\r\n News2 persist(News2 news);\r\n\r\n boolean delete(int id);\r\n\r\n boolean update(News2 news);\r\n\r\n List<News2> getAll();\r\n\r\n News2 findById(int id);\r\n}", "public Enterprise exnterInfoEdit(Enterprise enter) {\n\t\treturn enterInfoEditDao.enterInfoEdit(enter);\n\t}", "public int update(NewsNotice newsNotice) {\n\t\treturn getSqlSession().insert(getStatementName(\"updateByPrimaryKey\"),newsNotice);\r\n\t}", "int insertSelective(FeiWenComment record);", "@Insert({\n \"insert into NEWS (NEWS_ID, TITLE, \",\n \"BODY, IMG_URL, URL, \",\n \"CREATE_TIME)\",\n \"values (#{newsId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, \",\n \"#{body,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP})\"\n })\n int insert(News record);", "int insertSelective(Notice record);", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "@Override\n public void loadNews(boolean forceUpdate) {\n if(forceUpdate) {\n newsRequestTask = new NewsRequestTask(this, context);\n newsRequestTask.execute(URL_NEWS);\n } else {\n List<News> newsList = dbDao.load();\n view.onRefreshList(newsList);\n }\n }", "@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString sql = \"create table tb_newsItem( _id integer primary key autoincrement, title text, link text, date text, imgLink text, content text, newstype integer );\";\n\t\tdb.execSQL(sql);\n\t}", "public void insertRecord(InterestedInfo intrest, HttpServletRequest request) {\n\t\t\r\n\t\tHttpSession httpSession = request.getSession();\r\n\t\tList list = (List) httpSession.getAttribute(\"state\");\r\n\t\t\r\n Iterator ir = list.iterator();\r\n \r\n if (ir.hasNext())\r\n {\r\n \t PersonalInfo personal = (PersonalInfo) ir.next();\r\n \t //emp.setPersonalEmploymentId(personal.getPersonalId());\r\n \t \r\n \t intrest.setPersonalInterestedId(personal.getPersonalId());\r\n \t \r\n \t interestRepo.save(intrest);\r\n }\r\n \r\n\t\t\r\n\t}", "private void handleActionSites(Site site, boolean refresh) {\n if(!refresh)\n return;\n Site[]sitesArr=new Site[]{site};\n int startPage=0;\n int pageSize=1;\n ArticleFetcher fetcher=new ArticleFetcher(this,sitesArr,startPage,pageSize);\n int newItems=getContentResolver().bulkInsert(Contracts.ArticleEntry.CONTENT_URI,fetcher.getContentValues());\n if(newItems>0) {\n Intent dataUpdatedIntent = new Intent(ACTION_DATA_UPDATED);\n this.sendBroadcast(dataUpdatedIntent);\n }\n Log.d(\"FFFF Inserted Items\",newItems+\"\");\n }" ]
[ "0.6467231", "0.6435484", "0.6340061", "0.62865907", "0.62674403", "0.62497354", "0.6236093", "0.6228636", "0.622723", "0.6221159", "0.6189905", "0.617601", "0.6139169", "0.6110049", "0.6093529", "0.60094994", "0.5814327", "0.5812254", "0.57757086", "0.57653666", "0.5762222", "0.57474166", "0.57407457", "0.56665844", "0.5645491", "0.5632566", "0.55949455", "0.5584234", "0.5573757", "0.54980475", "0.5479654", "0.5465319", "0.54269564", "0.5417399", "0.5411759", "0.54075897", "0.5407486", "0.54040974", "0.5396402", "0.5386264", "0.5376642", "0.53747874", "0.5372505", "0.5362809", "0.5362264", "0.53572047", "0.5339668", "0.5338153", "0.53379166", "0.53348035", "0.53234965", "0.5320448", "0.53188777", "0.5310314", "0.5302062", "0.52885926", "0.52875507", "0.5286323", "0.5281336", "0.52542514", "0.52469945", "0.52350664", "0.5232059", "0.52292407", "0.5224404", "0.5207301", "0.51988536", "0.5185069", "0.518288", "0.51794076", "0.5174477", "0.516416", "0.5162186", "0.51596063", "0.5156183", "0.51527953", "0.5138587", "0.51251113", "0.5122542", "0.5119552", "0.5110863", "0.5110572", "0.5109435", "0.5106804", "0.50970536", "0.5096724", "0.5091104", "0.5088181", "0.5086819", "0.5073879", "0.50703907", "0.5067668", "0.50546825", "0.5049585", "0.50439626", "0.5043295", "0.50406724", "0.503735", "0.50370014", "0.5036374" ]
0.6980524
0
To delete Particular Important News Detail
@SkipValidation public String deleteImportantNews() { Map session = ActionContext.getContext().getSession(); EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT"); // To Delete Important News. important.setUpdatedBy(oEmp); impService.deleteImportantNews(important); addActionMessage(getText("Deleted Successfully")); return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByExample(NewsInfoExample example);", "@Delete({\n \"delete from NEWS\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer newsId);", "int deleteByExample(NewsExample example);", "@Override\r\n\tpublic void deleteNews(int id) {\n\t\tdao.deleteNews(id);\r\n\t\t\r\n\t}", "int deleteByExample(WxNewsExample example);", "void deleleNews(String id);", "public void deleteArticle(Article article);", "@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}", "@Override\r\n\tpublic void deleteNewsById(int id) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"delete from news where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, id);\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(null, pstmt, conn);\r\n\t\t}\r\n\t}", "public String deleteByExample(BsNewsExample example) {\n BEGIN();\n DELETE_FROM(\"bs_news\");\n applyWhere(example, false);\n return SQL();\n }", "@Override\r\n\tprotected boolean deleteDetail(Object curMaster) {\n\t\treturn true;\r\n\t}", "@RequestMapping(value = \"/delete/{story_id:\\\\d+}\", method = RequestMethod.GET)\n public String deleteNewsArticle(final HttpServletRequest request, @PathVariable(\"story_id\") final Integer storyId, final Model model) {\n LOGGER.log(Level.INFO, \"in deleteContact {0}\", storyId);\n newsService.removeNewsArticles(storyId);\n\n // Set the articleList attribute to null to force refresh of the PagedLstHolder\n request.getSession().setAttribute(ARTICLE_LIST, null);\n PagedListHolder<NewsArticle> pagedListHolder = populatePagedListHolder(request);\n\n request.getSession().setAttribute(ARTICLE_LIST, pagedListHolder);\n model.addAttribute(ARTICLE_LIST, pagedListHolder);\n\n // Redirect so page reloads\n return REDIRECT_NEWS;\n }", "@Override\n\tpublic boolean delete(News news) {\n\t\ttry\n\t\t{\n\t\t\topenCurrentSessionWithTransaction();\n\t\t\tgetCurrentSession().delete(news);\n\t\t\tcloseCurrentSessionWithTransaction();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic boolean delete(ArticleInfo a) {\n\t\treturn false;\n\t}", "@Override\n\tpublic String deleteNoticeByID(int nid,Model model) {\n\t\tnoticeDao.deleteNoticeByID(nid);\n\t\tList<Notice> notice=noticeDao.selectAllNotice();\n\t\tmodel.addAttribute(\"Notice\", notice);\n\t return \"admin/showNotice\";\n\t}", "public void deleteArtista(int codiceArtista) throws RecordNonPresenteException,\n RecordCorrelatoException;", "@DeleteProvider(type=NewsSqlProvider.class, method=\"deleteByExample\")\n int deleteByExample(NewsExample example);", "private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }", "@Override\n public void remove(News item) {\n }", "void removeDetail(String id);", "@Override\r\n\tpublic boolean delNewsById(int id) {\n\t\treturn new ENDaoImpl().delNewsById(id);\r\n\t}", "void deleteBypostno(int postno);", "@Override\r\n\tpublic void newsremove(int cbid) throws Exception {\n\t\tdao.newsremove(cbid);\r\n\t}", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "void deleteArt(Art art);", "int deleteByExample(ArticleDoExample example);", "public void deleteArticleById(int i) {\n\t\tObjectSet result = db.queryByExample(new Article(i, null, null, null, 0));\n\n\t\tArticle aEsborrar = (Article) result.next();\n\t\tdb.delete(aEsborrar);\n\n\t\tSystem.out.println(\"\\nEsborrat l'article \" + aEsborrar);\n\t}", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "@Override\r\n\tpublic void deleteSingle(Article article01) {\n\t\tarticleDao.deleteSingle(article01);\r\n\t}", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "public void deleteArticle(View v)\n\t{\n\t\tSavedArticle article = (SavedArticle) v.getTag();\n\t\tdatasource.deleteArticle(article);\n\t\tadapter.delete(article);\n\t}", "int deleteByPrimaryKey(Integer announceid);", "@Override\r\npublic int deleteByPrimaryKey(Integer possalesdetailid) {\n\treturn possalesdetail.deleteByPrimaryKey(possalesdetailid);\r\n}", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "int deleteByExample(ComplainNoteDOExample example);", "public void delete( int nRssFileId )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_DELETE );\n daoUtil.setInt( 1, nRssFileId );\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }", "public void deleteArticle(DetailDevisClient selected)\n\t{\n\t\tlistedetaildevis.remove(selected);\n\t\t\n\t\tdevis=getDevisActuel();\n\t\tif(devis.getMtTotalVente()==null) devis.setMtTotalVente(BigDecimal.ZERO);\n\t\tdevis.setMtTotalVente(devis.getMtTotalVente().subtract(selected.getMtTotalPrixVente()));\n\t\tif(devis.getMtTotalHt()==null) devis.setMtTotalHt(BigDecimal.ZERO);\n\t\tdevis.setMtTotalHt(devis.getMtTotalHt().subtract(selected.getMtTotalHt()));\n\t\tif(devis.getMtTotalTva()==null) devis.setMtTotalTva(BigDecimal.ZERO);\n\t\tdevis.setMtTotalTva(devis.getMtTotalTva().subtract(selected.getMtTotalTva()));\n\t\tif(devis.getMtTotalRemises()==null) devis.setMtTotalRemises(BigDecimal.ZERO);\n\t\tdevis.setMtTotalRemises(devis.getMtTotalRemises().subtract(selected.getMtTotalRemise()));\n\t\tif(devis.getMtTotalFodec()==null) devis.setMtTotalFodec(BigDecimal.ZERO);\n\t\tdevis.setMtTotalFodec(devis.getMtTotalFodec().subtract(selected.getMtTotalFodec()));\n\t\tif(devis.getMtTotalTtc()==null) devis.setMtTotalTtc(BigDecimal.ZERO);\n\t\tdevis.setMtTotalTtc(devis.getMtTotalTtc().subtract(selected.getMtTotalTtc()));\n\t\tif(devis.getNetApayer()==null) devis.setNetApayer(BigDecimal.ZERO);\n\t\tdevis.setNetApayer(devis.getNetApayer().subtract(selected.getMtTotalTtc()));\n\t\tif(devis.getPoidsTotalNet()==null) devis.setPoidsTotalNet(BigDecimal.ZERO);\n\t\tdevis.setPoidsTotalNet(devis.getPoidsTotalNet().subtract(selected.getPoidsTotalNet()));\n\t\tif(devis.getPoidsTotalBrut()==null) devis.setPoidsTotalBrut(BigDecimal.ZERO);\n\t\tdevis.setPoidsTotalBrut(devis.getPoidsTotalBrut().subtract(selected.getPoidsTotalBrut()));\n\t\t\n\t\t\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tcontext.update(\"formPrincipal:pnl_totaux\");\n\t}", "int deleteByExample(MenuInfoExample example);", "int deleteByExample(TopicFragmentExample example);", "public Builder removeNewsindentifydetail(int index) {\n ensureNewsindentifydetailIsMutable();\n newsindentifydetail_.remove(index);\n\n return this;\n }", "int deleteByExample(FinMonthlySnapModelExample example);", "int deleteByExample(FeiWenCommentExample example);", "@Transactional\n\t@Override\n\tpublic String delete(Detail t) {\n\t\treturn null;\n\t}", "int deleteByExample(SysNoticeExample example);", "void supprimerMenu(int numeroArticle);", "public String deleteParagraphMasterDetail() throws Exception{\n\t\t\t\t\n\t\t\t\tString flag = CommonConstants.ERROR_FLAG;\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tString slno = request.getParameter(\"slno\");\n\t\t\t\t\tSystem.out.println(\"ID : \"+slno);\n\t\t\t\t\t\n\t\t\t\t\tparagraphDetailsDto = this.getMasterDetailsServices().findParagraphDetailsById(Integer.parseInt(slno));\n\t\t\t\t\n\t\t\t\t\tparagraphDetailsDto.setOnum_is_active(0);\n\t\t\t\t\tparagraphDetailsDto.setOdt_entry_date(new Date());\n\t\t\t\t\t\n\t\t\t\t\tthis.getMasterDetailsServices().updateParagraphDetailsDto(paragraphDetailsDto);\n\t\t\t\t\t\n\t\t\t\t\tparagraphDetailsDto = null;\n\t\t\t\t\tinfo = \"Paragraph details has been deleted successfully\";\n\t\t\t\t\tthis.showParagraphDetails();\n\t\t\t\t\tflag = CommonConstants.SUCCESS_FLAG;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception er){\n\t\t\t\t\ter.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn flag;\n\t\t\t}", "int deleteByExample(PublicDoctorNoticeExample example);", "int deleteByExample(EventDetail eventDetail);", "int deleteByExample(AutoAssessDetailExample example);", "int deleteByExample(DashboardGoodsExample example);", "int deleteByExample(ActivityHongbaoPrizeExample example);", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "@Override\r\n\tpublic void ad_no_delete(int an_no) {\n\t\tadao.ad_no_Delete(an_no);\r\n\t}", "int deleteByPrimaryKey(String detailId);", "public void removeByArticle(java.lang.String articleId);", "public void removeByArticle(java.lang.String articleId);", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "int deleteByExample(OnlineExample example);", "@Delete\n void deleteEggDaily(EggDaily eggDaily);", "@Override\r\n\tpublic void delete(String kodeDetail) {\n\t\tString query = \"delete from TR_DETAIL_PENJUALAN where kode_detail=?\";\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\ttry {\r\n\t\t\tcon = dataSource.getConnection();\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\tps.setString(1, kodeDetail);\r\n\r\n\t\t\tint out = ps.executeUpdate();\r\n\t\t\tif (out != 0) {\r\n\t\t\t\tSystem.out.println(\"delete berhasil\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"not found\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "int deleteByExample(TourstExample example);", "@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}", "@Override\n\tpublic void delete(WorkSummary workSummary) {\n\n\t}", "private static void deleteTest(int no) {\n\t\tboolean result=new CartDao().delete(no);\r\n\t\tif(!result) System.out.println(\"deleteTest fail\");\r\n\t}", "int deleteByExample(TNavigationExample example);", "int deleteByExample(SecondSlideshowExample example);", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "public void eliminarNotas(int id ){\n String[] campos = {Integer.toString(id)};\n db.delete(\"nota\",\"_id=?\",campos);\n }", "int deleteByPrimaryKey(Long articleTagId);", "public void deleteAllArticles();", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "int deleteContent(@Param(\"id\") long id);", "@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}", "int deleteByExample(DiscussExample example);", "int deleteByExample(NjOrderAttachmentExample example);", "private void buttonToDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToDeleteMouseClicked\n ActivityService activityService = new ActivityService();\n activityService\n .setId(this.id)\n .setUser(this.dashboard.user);\n try {\n activityService.delete();\n this.setVisible(false);\n this.dashboard.refreshUI();\n }catch (Exception err) {\n this.alert.showMessageDialog(null, \"gagal menghapus data\");\n }\n }", "@Override\r\n\t@Transactional\r\n\tpublic void delete(TopicContent entity) {\n\t\ttopicContentDao.delete(entity);\r\n\t}", "public void delete(MainItemOrdered mainItemOrdered);", "@Query(value = \"{'dni._id' : ?0}\", delete = true)\r\n\tpublic void deleteByDni(String dni);", "public void deleteTopic(String nume) throws RemoteException;", "public void delete(Premie premie){\n premieRepository.delete(premie);\n }", "@Override\n\tpublic int deletenetinfo(String id) {\n\t\treturn personmanagemarticleMapper.deleteByPrimaryKey(id);\n\t}", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "int deleteByExample(cskaoyan_mall_order_goodsExample example);", "@Override\r\n\tpublic void k_delete(String MF_NO) {\n\t\t\r\n\t}", "public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}", "int deleteByExample(CrawlExample example);", "int deleteByExample(trackcommentExample example);", "void deleteBlogPost(BlogPost blogPost);", "int deleteByExample(NotifictionExample example);", "@Override\n\tpublic void delete(int articleId) throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"delete from article where article_id = ?\");\n\t\t\n\t\tjdbcTemplate.update(sql.toString(), articleId);\n\t}", "int deleteByExample(BasicInfoPrecursorProcessTypeExample example);", "int deleteByExample(BpmInstanciaHistoricaExample example);", "@Test\n\tpublic void deleteTest() throws ParseException {\n\t\t\n\t\tSystem.out.println(\"-----Delete announcement by user test. Positive 0 to 1, Negative 2 to 4.\");\n\t\t\n\t\tObject testingData[][]= {\n\t\t\t\t//Positive cases\n\t\t\t\t{\"announcement1-1\", \"user1\", null},\n\t\t\t\t{\"announcement1-2\", \"user1\", null},\n\t\t\t\t\n\t\t\t\t//Negative cases\n\t\t\t\t//Without announcement\n\t\t\t\t{null, \"user1\", NullPointerException.class},\n\t\t\t\t//Without user\n\t\t\t\t{\"announcement2-1\", null, IllegalArgumentException.class},\n\t\t\t\t//With rendezvous not from the user\n\t\t\t\t{\"announcement2-1\", \"user1\", IllegalArgumentException.class}\n\t\t\t\t};\n\t\t\n\t\t\n\t\tfor (int i = 0; i< testingData.length; i++) {\n\t\t\ttemplateDeleteTest(\n\t\t\t\t\ti,\n\t\t\t\t\t(Integer) this.getEntityIdNullable((String) testingData[i][0]),\n\t\t\t\t\t(String) testingData[i][1],\n\t\t\t\t\t(Class<?>) testingData[i][2]\n\t\t\t\t\t);\n\t\t}\n\t}", "int deleteByExample(TSubjectInfoExample example);", "@Override\r\n\tpublic int fileDelete(int no) {\n\t\treturn sqlSession.delete(namespace + \"fileDelete\", no);\r\n\t}", "@Override\n\tpublic void delete(DhtmlxGridForm f) throws Exception {\n\t}", "int deleteByExample(TourExample example);", "public static int remove(NewsList newslist, Context context) throws JSONException, IOException {\n if (newslist.getId() < 0 || newslist.getName().equals(\"\")) {\n return INVALID_LIST;\n }\n // Read file\n JSONObject json;\n InputStreamReader in = new InputStreamReader(context.openFileInput(FILE_NAME));\n try(Scanner scanner = new Scanner(in)) {\n StringBuilder sb = new StringBuilder();\n // Get next line\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n sb.append(line).append(System.lineSeparator());\n }\n json = new JSONObject(sb.toString());\n }\n // Overwrite object\n JSONArray array = json.getJSONArray(NEWS_LIST);\n int index = -1;\n for (int i = 0; i < array.length(); i++) {\n JSONObject jo = array.getJSONObject(i);\n if (jo.getInt(ID) == newslist.getId()) {\n index = i;\n break;\n }\n }\n if (index > -1) {\n array.remove(index);\n // Write file\n OutputStreamWriter out = new OutputStreamWriter(context.openFileOutput(FILE_NAME,\n Context.MODE_PRIVATE));\n try (PrintWriter pw = new PrintWriter(out)) {\n pw.write(json.toString());\n pw.flush();\n }\n return LIST_REMOVED;\n }\n return LIST_NOT_REMOVED;\n }" ]
[ "0.73071486", "0.7090343", "0.7055751", "0.6886736", "0.67770505", "0.6725309", "0.64760876", "0.64055663", "0.63971484", "0.63687927", "0.62881494", "0.6237643", "0.6172028", "0.6139781", "0.6133236", "0.611649", "0.6082495", "0.60507363", "0.60398597", "0.6016609", "0.5937063", "0.59238744", "0.59188855", "0.5908971", "0.59042794", "0.5886157", "0.5883878", "0.5874878", "0.5866596", "0.5861046", "0.58607686", "0.5860269", "0.5846759", "0.5830901", "0.5829686", "0.58126915", "0.5790624", "0.57867867", "0.57842743", "0.5758481", "0.57563037", "0.5744033", "0.5737778", "0.5721654", "0.57126623", "0.5710144", "0.56990206", "0.56929433", "0.56922966", "0.5684495", "0.56831306", "0.56755877", "0.5668657", "0.56628954", "0.56598675", "0.56598675", "0.5654867", "0.5654867", "0.56523424", "0.56415373", "0.5629228", "0.56231505", "0.5613166", "0.5609216", "0.56078905", "0.56049895", "0.5604898", "0.5601175", "0.5597486", "0.55962336", "0.55896777", "0.558963", "0.5583454", "0.5581727", "0.55782163", "0.5576174", "0.5571973", "0.5566344", "0.5565102", "0.5562365", "0.5562143", "0.5555474", "0.55525255", "0.5548555", "0.5547766", "0.55374396", "0.55341244", "0.5530242", "0.5528281", "0.55262154", "0.5518217", "0.55166215", "0.5514717", "0.5514489", "0.55144453", "0.55108005", "0.55094707", "0.5507934", "0.5504638", "0.5504339" ]
0.75061387
0
To View the Important News Search Form
@SkipValidation public String importantNewsSearchForm() { return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showSearch() {\n\t\tonSearchRequested();\n\t}", "public Form getSearchForm() throws PublicationTemplateException;", "private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true);\n } else {\n search_Attendance.setVisible(true);\n }\n }", "protected void showSearch() {\n \t\tIntent search = new Intent(this, SearchActivity.class);\t\t\t\t\n \t\tthis.startActivity(search);\n \t}", "public insearch() {\n initComponents();\n }", "void searchUI();", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }", "@RequestMapping(value = \"/newsAdmin\", method = RequestMethod.GET)\n public String loadFormPage(final Model model) {\n LOGGER.log(Level.INFO, \"in loadFormPage\");\n model.addAttribute(NEWS_ARTICLE, new NewsArticle());\n return NEWS_ADMIN_PAGE;\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "public SearchPage() {\n\t\tdoRender();\n\t}", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n MenuItem item = menu.findItem(R.id.action_search);\n mSearchView = (android.support.v7.widget.SearchView) item.getActionView();\n mSearchView.setQueryHint(\"Enter Article title\");\n mSearchView.setSubmitButtonEnabled(true);\n mSearchView.setOnQueryTextListener(new android.support.v7.widget.SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(final String s) {\n if(isNetworkAvailable()) {\n mProgress.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n new Thread(new Runnable() {\n @Override\n public void run() {\n Log.d(\"123\", \"zfhkjzflk\");\n searchAPICall(s);\n }\n }).start();\n } else {\n Toast.makeText(MainActivity.this, \"Internet connection not available\", Toast.LENGTH_LONG).show();\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(final String s) {\n return false;\n }\n });\n mSearchView.setOnCloseListener(() -> {\n NewsAdapter newsAdapter = new NewsAdapter(MainActivity.this, articles, false);\n recyclerView.setAdapter(newsAdapter);\n return false;\n });\n\n return true;\n }", "void searchView(String name);", "@Execute\n public HtmlResponse index(final SearchForm form) {\n return search(form);\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n topStories = false;\n filter.setQuery(query);\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n findViewById(R.id.relativeLayout).setVisibility(View.GONE);\n findViewById(R.id.tvHeading).setVisibility(View.GONE);\n fetchArticles(0,true);\n searchView.clearFocus();\n return true;\n }", "private SearchBar() {\n controller = FilterController.getInstance();\n initComponents();\n createNewQueryPanel();\n }", "private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }", "public DisputeSearchPanel() {\n initComponents();\n }", "Search getSearch();", "@RequestMapping(value = \"/search\", method = RequestMethod.GET)\n public String renderSearchPage(Model model) {\n model.addAttribute(\"nosites\", true);\n model.addAttribute(\"siteList\", new ArrayList<Site>());\n model.addAttribute(\"statisticsUtils\", new StatisticsUtils());\n return \"search/search-page\";\n }", "private void openSearch() {\n\t\tString message = \"This would be search.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}", "public Show search(String title){\n return super.search(title);\n }", "public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}", "private Search() {}", "private void addSearchFieldAndButton() {\n\t\tsearchButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.SEARCH);\n\t\tsearchButton.setEnabled(false);\n searchField = new JTextField(20);\n searchField.setEnabled(false);\n\t\tsearchField.setToolTipText(\"Search...\");\n\t\ttoolPanel.add(searchField);\n\t\ttoolPanel.add(searchButton);\n\n ActionListener queryListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString query = searchField.getText();\n controller.getViewController().addView(\"query\", \"q\"+query, false);\n\t\t\t}\n\t\t};\n\n searchField.addActionListener(queryListener);\n\t\tsearchButton.addActionListener(queryListener);\n }", "public SearchByName() {\n initComponents();\n }", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "@NonNull public abstract SearchView view();", "public void search() {\r\n \t\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_search, menu);\n MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n // When a search is made, calls fetchArticles to make new request\n @Override\n public boolean onQueryTextSubmit(String query) {\n topStories = false;\n filter.setQuery(query);\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n findViewById(R.id.relativeLayout).setVisibility(View.GONE);\n findViewById(R.id.tvHeading).setVisibility(View.GONE);\n fetchArticles(0,true);\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n return super.onCreateOptionsMenu(menu);\n }", "private void searchMenu(){\n\t\t\n\t}", "@Override\n public void onSearchOpened() {\n }", "@Override\n public void onSearchOpened() {\n }", "@Override\n public void onSearchOpened() {\n }", "@RequestMapping(method = RequestMethod.GET)\n\tpublic String get(@ModelAttribute(\"search\") Search search) {\n\t\treturn \"searchForm\";\n\t}", "public boolean openSearch(){\n return true;\n }", "public search_package() {\n initComponents();\n }", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public void bestInfo(ActionEvent actionEvent)\n {\n try {\n Desktop.getDesktop().browse(new URL(\"https://en.wikipedia.org/wiki/Best-first_search\").toURI());\n } catch (IOException e) {\n e.printStackTrace();\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n }", "private void toggleSearchButton() {\n\t\t// Enable \"Search\" button when both input fields are filled in\n\t\tview.toggleSearch(!view.getStartStation().equals(\"\")\n\t\t\t\t&& !view.getEndStation().equals(\"\"));\n\t}", "@Override\n \tpublic void setSearchVisible(boolean searchVisible) {\n \t\tif (DisplayUtils.isInTestWebsite(cookies))\n \t\t\tsearchBox.setVisible(searchVisible);\n \t}", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "TextBox getSearchContent();", "public GUISearch() {\n initComponents();\n }", "@Optional\r\n @OnClick(R.id.recipe_search_more)\r\n void searchMore() {\n Intent intent = new Intent(this, ActivitySearch.class);\r\n\r\n // Retrieve the user-added search term\r\n String searchTerm = mSearchView != null ? mSearchView.getText().toString() : null;\r\n\r\n if (searchTerm != null && !searchTerm.trim().isEmpty()) {\r\n // Pass the search term as an extra within the Intent\r\n intent.putExtra(ActivitySearch.SEARCH_TERM, searchTerm);\r\n // Start ActivitySearch with the Bundle\r\n startActivity(intent);\r\n }\r\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "private void displaySearch() throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"\\nPlease enter the name of the club you would \" +\r\n \"like to search for or 'back' to return to initial prompt:\");\r\n \r\n // club name that user searches for\r\n String club = in.nextLine();\r\n \r\n // exit if user chooses to do so, otherwise search database\r\n if (\"back\".equalsIgnoreCase(club))\r\n displayOpen();\r\n else\r\n searchClub(club);\r\n }", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "@Override\r\n\tpublic void getNewsList(Page page, String query) {\n\t\t\r\n\t}", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "@Test\n\tpublic void searchPage() throws Exception {\n\t\tgetRequest().andExpect(content().string(CoreMatchers.containsString(\"searchForm\")));\n\t}", "private void initSearchView() {\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n //listening to search query text change\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n machineAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n machineAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }", "public SearchEntry() {\n initComponents();\n }", "public SOASearchPage() {\r\n\t\tsuper();\r\n\t}", "private void emptySearchFields() {\n view.setMinPrice(-1);\n view.setMaxPrice(-1);\n view.setMinSQM(-1);\n view.setMaxSQM(-1);\n view.setBedrooms(-1);\n view.setBathrooms(-1);\n view.setFloor(-1);\n view.setHeating(false); //Is supposed to be a checkbox so even unchecked it is false not empty\n view.setLocation(\"Athens\"); //Is supposed to get a string from a dropdown so it wil never be empty\n }", "public QueryController(String[] args){\n // Parse Args\n QueryArgs queryArgs = new QueryArgs();\n try {\n queryArgs.parseArgs(args);\n } catch (FileNotFoundException e) {\n //e.printStackTrace();\n System.err.println(\"Invalid Arguments received. Please check your arguments passed to ./search\");\n return;\n }\n\n // Run the Term Normaliser\n TermNormalizer normalizer = new TermNormalizer();\n String[] queryTerms = normalizer.transformedStringToTerms(queryArgs.queryString);\n\n //create the model\n Model model = new Model();\n model.loadCollectionFromMap(queryArgs.mapPath);\n model.loadLexicon(queryArgs.lexiconPath);\n model.loadInvertedList(queryArgs.invlistPath);\n if(queryArgs.stopListEnabled)\n {\n model.loadStopList(queryArgs.stopListPath);\n }\n if(queryArgs.printSummary && queryArgs.collectionPath != \"\")\n {\n model.setPathToCollection(queryArgs.collectionPath);\n }\n\n\n //fetch the top results from the query module\n QueryModule queryModule = new QueryModule();\n queryModule.doQuery(queryTerms, model, queryArgs.bm25Enabled);\n List<QueryResult> topResults = queryModule.getTopResult(queryArgs.maxResults);\n\n\n\n ResultsView resultsView = new ResultsView();\n if(queryArgs.printSummary)\n {\n\n DocSummary docSummary = new DocSummary();\n for(QueryResult result:topResults)\n {\n // retrieve the actualy text from the document collection\n result.setDoc(model.getDocumentCollection().getDocumentByIndex(result.getDoc().getIndex(), true));\n\n //set the summary on the result object by fetching it from the docSummary object\n result.setSummaryNQB(docSummary.getNonQueryBiasedSummary(result.getDoc(), model.getStopListModule()));\n result.setSummaryQB(docSummary.getQueryBiasedSummary(result.getDoc(), model.getStopListModule(), Arrays.asList(queryTerms)));\n }\n resultsView.printResultsWithSummary(topResults,queryArgs.queryLabel);\n }else\n {\n resultsView.printResults(topResults,queryArgs.queryLabel);\n }\n\n }", "@RequestMapping(method = RequestMethod.POST)\n\tpublic String processSearch(@ModelAttribute(\"search\") Search search) {\n\t\tSystem.out.println(\"SearchController.processSearch()\");\n\t\t\n\t\t// Retrieve search keyword\n\t\tString searchFor = search.getKeyword();\n\t\t\n\t\t// search & set results\n\t\tsearch.setResults(cat.findByKeyword(searchFor));\n\t\t\n\t\t// return to search results view\n\t\treturn \"searchResults\";\n\t}", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "private void display()\n {\n //Displaying the posts\n newsFeed.show();\n \n }", "private void toggleSearch () {\n\t\tsearchMode = !searchMode;\n\t\t\n\t\tif (searchMode) {\n\t\t\t// Go into search mode\n\t\t\t/*\n\t\t\t * Tween in the search bar and keep visible\n\t\t\t */\n\t\t\tif (flyRevealDown == null)\n\t\t\t\tflyRevealDown = AnimationUtils.loadAnimation(this, R.anim.fly_reveal_down);\n\t\t\tsearch.startAnimation(flyRevealDown);\n\t\t\tsearch.setVisibility(View.VISIBLE);\n\t\t\tfilter.requestFocus();\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the new memo bar\n\t\t\t */\n\t\t\tif (fadeOut == null)\n\t\t\t\tfadeOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);\n\t\t\tnewMemo.startAnimation(fadeOut);\n\t\t\tnewMemo.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Show the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.showSoftInput(filter, 0);\n\t\t} else {\n\t\t\t// Go out of search mode\n\t\t\t/*\n\t\t\t * Hide the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.hideSoftInputFromInputMethod(filter.getWindowToken(), 0);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the search bar and keep invisible\n\t\t\t */\n\t\t\tif (flyConcealUp == null)\n\t\t\t\tflyConcealUp = AnimationUtils.loadAnimation(this, R.anim.fly_conceal_up);\n\t\t\tfilter.setText(\"\");\n\t\t\tsearch.startAnimation(flyConcealUp);\n\t\t\tsearch.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween in the new memo bar\n\t\t\t */\n\t\t\tif (fadeIn == null)\n\t\t\t\tfadeIn = AnimationUtils.loadAnimation(this, R.anim.fade_in);\n\t\t\tnewMemo.startAnimation(fadeIn);\n\t\t\tnewMemo.setVisibility(View.VISIBLE);\n\t\t}\n\t}", "private void showSponsorSearch(){\r\n String sponsorCode;\r\n// boolean replaceInfo = false;\r\n try{\r\n edu.mit.coeus.search.gui.CoeusSearch coeusSearch =\r\n new edu.mit.coeus.search.gui.CoeusSearch(dlgWindow,\r\n \"sponsorSearch\",1);\r\n coeusSearch.showSearchWindow();\r\n edu.mit.coeus.search.gui.SearchResultWindow resWindow =\r\n coeusSearch.getResultWindow();\r\n if (!coeusSearch.getSelectedValue().equals(null) ){\r\n txtSponsorCode.setText(coeusSearch.getSelectedValue());\r\n txtSponsorCode.requestFocusInWindow();\r\n sponsorCode = txtSponsorCode.getText();\r\n getSponsorInfo(sponsorCode);\r\n }\r\n }catch(Exception e) {\r\n }\r\n }", "public void initSearchWidget(){\n\n searchview.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n //Closes the keyboard once query is submitted\n searchview.clearFocus();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n\n //New arraylist for filtered products\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }\n });\n }", "private String getSearchUrl(String url ){\n String params = searchEditText.getText().toString();\n params = params.replace(\" \",\"+\");\n url += params + \"&filter=ebooks&prettyPrint=false\";\n return url;\n }", "public JPanel getSearchJPanel(){\n\t\treturn searchResults;//Return the search results\n\t}", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_home, container, false);\n\n rview = (RecyclerView) rootView.findViewById(R.id.news_ap);\n searchView = (SearchView) rootView.findViewById(R.id.searchview_home);\n rview.setLayoutManager(new LinearLayoutManager(getContext()));\n view_page = new View_Page(getArticle(), getContext());\n rview.setAdapter(view_page);\n//\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n view_page.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n view_page.getFilter().filter(newText);\n return false;\n }\n });\n\n return rootView;\n\n }", "public static AssessmentSearchForm openFillSearchForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Search);\n\n Logger.getInstance().info(\"Fill out some search criteria fields with any data\");\n AssessmentSearchForm searchPage = new AssessmentSearchForm();\n searchPage.fillSearchForm(assm);\n\n return new AssessmentSearchForm();\n }", "public SearchResultPanel()\n\t{\n\t\tcreateComponents();\n\t\tdesignComponents();\n\t\taddComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n photo = new javax.swing.JLabel();\n initials = new javax.swing.JLabel();\n address = new javax.swing.JLabel();\n tp = new javax.swing.JLabel();\n bday = new javax.swing.JLabel();\n gender = new javax.swing.JLabel();\n sem = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n first = new javax.swing.JLabel();\n index = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n date = new javax.swing.JLabel();\n\n jButton3.setText(\"jButton3\");\n\n jButton4.setText(\"jButton4\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Search\");\n\n initials.setText(\"niw\");\n\n address.setText(\"hm\");\n\n tp.setText(\"tp\");\n\n bday.setText(\"bda\");\n\n gender.setText(\"gen\");\n\n sem.setText(\"sem\");\n\n jLabel16.setText(\"Photograph\");\n\n jLabel17.setText(\"Name With Initials\");\n\n jLabel18.setText(\"First Name\");\n\n jLabel19.setText(\"Index Number\");\n\n jLabel20.setText(\"Home Address\");\n\n jLabel21.setText(\"Telephone No\");\n\n jLabel22.setText(\"Date Of Birth\");\n\n jLabel23.setText(\"Gender\");\n\n jLabel24.setText(\"Semester\");\n\n first.setText(\"fn\");\n\n index.setText(\"in\");\n\n jButton2.setText(\"Close\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Registered Date\");\n\n date.setText(\"jLabel3\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(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)\n .addComponent(jLabel21)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20)\n .addComponent(jLabel22)\n .addComponent(jLabel23)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bday, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(initials, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(first, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(photo, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(address, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(index, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE))\n .addComponent(tp, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(date, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sem, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(gender, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(photo, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel16)))\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(initials, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(first, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(index, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(address, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(tp, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(bday, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(gender, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sem, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(date))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private FormMediator() {\n queryViews = new LinkedList<QueryView>();\n searchAction = Actions.SEARCH_ACTION;\n }", "@RequestMapping(\"/search\")\n public ModelAndView showResult(@RequestParam( value = \"search_name\") String search_name, Model model){\n Collection<Node> nodes= nodeService.findNodesByNameLike(search_name);\n //Collection<Node> nodelist = nodeService.findByName(search_name);\n if (!nodes.isEmpty()){\n model.addAttribute(\"name\",search_name);\n model.addAttribute(\"infolist\",nodes);\n if(nodes.size() == 1) {\n Node node = nodes.iterator().next();\n model.addAttribute(\"node\",node );\n model.addAttribute(\"id\",node.getId());\n return new ModelAndView(\"show_result\", \"model\", model);\n }\n else{\n model.addAttribute(\"nodelist\", nodes);\n return new ModelAndView(\"index2\",\"model\",model);\n }\n }\n else{\n return new ModelAndView(\"error\",\"model\",model);\n }\n\n }", "public SearchPanel(PonyUi ponyUi) {\n initComponents();\n ListManager.AbstractToDefaultListModelConverter(sp_RelatedQueriesList);\n this.ponyUi = ponyUi;\n }", "public void search() {\n }", "private void showSponsorInfo(){\r\n if (txtSponsorCode.getText().equals(\"\") ){\r\n showSponsorSearch();\r\n }else {\r\n SponsorMaintenanceForm frmSponsor = new SponsorMaintenanceForm('D',\r\n txtSponsorCode.getText().toString().trim());\r\n frmSponsor.showForm(mdiForm,DISPLAY_TITLE,true);\r\n \r\n }\r\n isSponsorSearchRequired =false;\r\n }", "void searchStarted (Search search);", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "@Override\n public void onSearchOpened() {\n Log.v(\"SearchBox\", \"onSearchOpened()\");\n }", "private void showSearchResults(String query){\n searchResultGV = (GridView) findViewById(R.id.searchResultGV);\n setTitle(\"Search Result for: \" + query);\n query = query.toLowerCase();\n\n getPhotoList(query);\n\n searchResultGV.setAdapter(adapter);\n }", "public void openSearchView() {\n if (isSearchViewOpen) {\n return;\n }\n\n searchEditText.requestFocus();\n\n AnimatorListenerAdapter listenerAdapter = new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n if (backgroundView != null) {\n backgroundView.setVisibility(VISIBLE);\n backgroundView.requestFocus();\n }\n //After SearchBar is revealed if keyword is not empty then open suggestions section\n if (!searchEditText.getText().toString().isEmpty()) {\n suggestionsAdapter.filterSuggestions(searchEditText.getText());\n FloatingSearchView.this.onTextChanged(searchEditText.getText());\n }\n }\n };\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n rootView.setVisibility(View.VISIBLE);\n AnimationUtils.circleRevealView(searchBar, listenerAdapter);\n } else {\n AnimationUtils.fadeInView(rootView);\n }\n\n // Call listener if we have one\n if (searchViewListener != null) {\n searchViewListener.onSearchViewOpen();\n }\n\n isSearchViewOpen = true;\n }", "private void showSearchDialog() {\n\t\tSearchDialog searchDialog = new SearchDialog(lastText);\n\t\tsearchDialog.show(getSupportFragmentManager(), \"fragment_search_keyword\");\n\t}", "@Override\n\tpublic Page<News> findNews(News searchModel, int pageNum, int pageSize) {\n\t\tList<News> allStudentList = getAllNews(searchModel);\n\t\tPage<News> page = new Page<News>(allStudentList, pageNum, pageSize);\n\t\treturn page;\n\t}", "public search_user() {\n initComponents();\n }", "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\n\t\t\t\tList<StoreArticle> list = getShop().searchByArticle(filter);\n\t\t\t\tStoreArticle[] array = list.toArray(new StoreArticle[0]);\n\t\t\t\tadapter = new SearchByArticleAdapter(SearchActivity.this, R.layout.search_view, array);\n\t\t\t\treturn null;\n\t\t\t}", "private void createSearch(boolean realSearch) {\n\n\t\tString sqlQuery = new String();\n\n\t\tif (useLucene.isSelected()) {\n\n\t\t\tif (datachoose.getSelectedIndex() == data_ABOVE) {\n\t\t\t\t// need to reference the above data.\n\t\t\t\tString usp = (String) winG.getSelectedUser();\n\t\t\t\tString dates[] = winG.getDateRange_toptoolbar();\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where sender = '\" + usp + \"' or rcpt = '\" + usp\n\t\t\t\t\t\t+ \"' and dates BETWEEN '\" + dates[winGui.startDate] + \"' AND '\" + dates[winGui.endDate]\n\t\t\t\t\t\t+ \"' \";\n\n\t\t\t} else if (datachoose.getSelectedIndex() == data_ALL) {\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where type like 'text%'\";\n\t\t\t} else {\n\t\t\t\t// need to pop up sql\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email \" + queryText.getText().trim();\n\t\t\t}\n\n\t\t\tString results[][];\n\t\t\t// actual fetch of data\n\t\t\ttry {\n\t\t\t\tsynchronized (DBConnect) {\n\t\t\t\t\tresults = DBConnect.getSQLData(sqlQuery);\n\t\t\t\t}\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tsqle.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!realSearch) {\n\n\t\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"The number of returned mailrefs are: \" + results.length);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBusyWindow bw = new BusyWindow(\"Search Engine Setup\", \"Running\",true);\n\t\t\tbw.setMax(results.length);\n\t\t\tbw.setVisible(true);\n\t\t\t// need to setup prefetch cache\n\t\t\ttry {\n\t\t\t\tPreparedStatement ps = DBConnect\n\t\t\t\t\t\t.prepareStatementHelper(\"select hash,filename,type,body from message where mailref=?\");\n\n\t\t\t\t// real search need to build index here\n\t\t\t\t// TODO: see about adding path between folder and name\n\t\t\t\tIndexWriter writer = null;\n\t\t\t\t// stopanalyzer\n\t\t\t\t//writer = new IndexWriter(indexfolder + indexName.getText().trim(), new StandardAnalyzer(), true);\n\t\t\t\twriter = new IndexWriter(getIndexFileName(indexName.getText()), analyzer, true);\n\n\t\t\t\tDate start = new Date();\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tbw.progress(i);\n\n\t\t\t\t\tps.setString(1, results[i][0]);\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tString type = rs.getString(3).toLowerCase();\n\n\t\t\t\t\t\tif (type.startsWith(\"image\") || type.startsWith(\"video\") || type.startsWith(\"audio\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString hash = rs.getString(1);\n\t\t\t\t\t\tString name = rs.getString(2);\n\n\t\t\t\t\t\t// make a new, empty document\n\t\t\t\t\t\tDocument doc = new Document();\n\n\t\t\t\t\t\t// Add the path of the file as a field named \"path\". Use\n\t\t\t\t\t\t// a Text field, so\n\t\t\t\t\t\t// that the index stores the path, and so that the path\n\t\t\t\t\t\t// is searchable\n\t\t\t\t\t\tdoc.add(new Field(\"path\", hash,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Date\", results[i][1],Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Type\", type,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Name\", name,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Mailref\", new String(results[i][0]),Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\t// Add the last modified date of the file a field named\n\t\t\t\t\t\t// \"modified\". Use a\n\t\t\t\t\t\t// Keyword field, so that it's searchable, but so that\n\t\t\t\t\t\t// no attempt is made\n\t\t\t\t\t\t// to tokenize the field into words.\n\t\t\t\t\t\t// doc.add(Field.Keyword(\"modified\",\n\t\t\t\t\t\t// DateField.timeToString(f.lastModified())));\n\n\t\t\t\t\t\t// Add the contents of the file a field named\n\t\t\t\t\t\t// \"contents\". Use a Text\n\t\t\t\t\t\t// field, specifying a Reader, so that the text of the\n\t\t\t\t\t\t// file is tokenized.\n\t\t\t\t\t\t// ?? why doesn't FileReader work here ??\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjava.sql.Blob blob = rs.getBlob(4);\n\t\t\t\t\t\t\tint c;\n\t\t\t\t\t\t\tbyte buf[] = new byte[512];//\n\n\t\t\t\t\t\t\tInputStream is = blob.getBinaryStream();\n\t\t\t\t\t\t\tStringBuffer small2 = new StringBuffer(256);\n\t\t\t\t\t\t\twhile ((c = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tsmall2.append(new String(buf, 0, c));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString bodytext = small2.toString();\n\n\t\t\t\t\t\t\tdoc.add(new Field(\"contents\", bodytext,Field.Store.YES, Field.Index.TOKENIZED));\n\n\t\t\t\t\t\t\t// now to insert this doc.\n\t\t\t\t\t\t\twriter.addDocument(doc);\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.setTitle(\"optimizing\");\n\t\t\t\twriter.optimize();\n\t\t\t\twriter.close();\n\n\t\t\t\tDate end = new Date();\n\n\t\t\t\tSystem.out.print(end.getTime() - start.getTime());\n\t\t\t\tSystem.out.println(\" total milliseconds\");\n\n\t\t\t\tbw.setVisible(false);\n\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException eio) {\n\t\t\t\teio.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// we use emt indexing\n\t\t\t// TODO: create code here\n\n\t\t}\n\t}", "private SearchUI()\n\t{\n\t}", "@PostMapping(\"/search\")\n public Object fetchNews(@RequestParam(\"id\") String id, @RequestParam(name = \"page\", required = false) Integer page) {\n return newsService.getNewsData(id, page);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jLabel3 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Georgia\", 1, 14)); // NOI18N\n jLabel1.setText(\"Mountain Project For Sale Search Engine\");\n\n jButton1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton1.setText(\"GO\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jLabel2.setText(\"Seach for a Key-Word\");\n\n jScrollPane2.setViewportView(jTextPane1);\n\n jLabel3.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jLabel3.setText(\"Search Results (Tile of Post, URL)\");\n\n jTextField1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jTextField1.setText(\"jTextField1\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton2.setText(\"X\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addComponent(jButton2))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(120, 120, 120))\n .addGroup(layout.createSequentialGroup()\n .addGap(145, 145, 145)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))\n .addComponent(jLabel2))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(32, 32, 32)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "public String btnAdvSearch_action()\n {\n boolean advanced = getgermplasm$SementalSessionBean().isAdvancedSearch();\n if(advanced==false){ //Mostrar panel de busqueda avanzada\n getgermplasm$SementalSessionBean().setAdvancedSearch(true);\n //Deshabilitar busqueda simple\n this.getTxSimpleSearch().setRendered(false);\n this.getBtnSimpleSearch().setRendered(false);\n //Cambia el text del boton de busqueda avanzada\n this.getBtnAdvSearch().setValue(BundleHelper.getDefaultBundleValue(\"advanced_search_specimen_back\",getMyLocale()));\n return null;\n }\n else if(advanced==true){\n this.getgermplasm$SementalSessionBean().setAdvancedSearch(false);\n //Ocultar el panel\n this.gridpAdvancedSearch.setRendered(false);\n //Habilitar busqueda simple\n this.getTxSimpleSearch().setRendered(true);\n this.getBtnSimpleSearch().setRendered(true);\n //Cambia el text del boton de busqueda avanzada\n this.getBtnAdvSearch().setValue(BundleHelper.getDefaultBundleValue(\"advanced_search\",getMyLocale()));\n \n //Reestablecer los valores por defecto de los textfields\n getgermplasm$SementalSessionBean().setQuerySementalDTO(new SementalDTO());\n }\n return null;\n }" ]
[ "0.6649456", "0.6607834", "0.6416285", "0.6415012", "0.6323998", "0.6273183", "0.62325954", "0.6120333", "0.60536283", "0.6053514", "0.6052907", "0.6041827", "0.6020118", "0.6000986", "0.59814316", "0.59159386", "0.589049", "0.5885983", "0.5877601", "0.5859834", "0.5851154", "0.5839823", "0.5805874", "0.5800132", "0.5733348", "0.5719048", "0.5694191", "0.56856424", "0.56837744", "0.5677611", "0.56502515", "0.56409395", "0.5626558", "0.56259286", "0.5613485", "0.5603347", "0.55972284", "0.5595516", "0.5595516", "0.5595516", "0.55820143", "0.55738103", "0.55656254", "0.5558155", "0.5536134", "0.55233526", "0.5518885", "0.551461", "0.5510606", "0.55100447", "0.5502014", "0.5498423", "0.5496066", "0.5488336", "0.54775405", "0.5464264", "0.5461924", "0.5459448", "0.54486454", "0.54399997", "0.5420055", "0.5416199", "0.54134434", "0.5405305", "0.54017556", "0.5384524", "0.53751487", "0.53705716", "0.536568", "0.53573763", "0.53523403", "0.53476423", "0.5346288", "0.5340856", "0.53381574", "0.53323346", "0.5332186", "0.5331197", "0.5330795", "0.53304046", "0.5314966", "0.5314516", "0.5311589", "0.5307891", "0.5307635", "0.53000885", "0.5296124", "0.52914715", "0.5288248", "0.52816856", "0.52803373", "0.5278584", "0.5278255", "0.52699107", "0.5268688", "0.5267876", "0.52674484", "0.5266906", "0.52505404", "0.5247827" ]
0.6605603
2
To Search Important News
@SkipValidation public String importantNewsSearchResult() { impList = impService.importantNewsSearchResult(important); return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public HashSet<News> getNewsFreeCriteria(String request) throws ServiceException {\n try {\n String [] parametersForTheSearch;\n parametersForTheSearch = RequestWorker.getSearchParametersInRequest(request);\n\n return dbWorker.searchNewsForFreeCriteria(parametersForTheSearch);\n\n } catch (DAOException e) {\n throw new ServiceException(e.getMessage(),e);\n }\n }", "@Override\n\tpublic List<News> queryNewsList(News params) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public List<News> search(String txt, int pageIndex, int pageSize) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select *from(\"\n + \"select ROW_NUMBER() over (order by ID ASC) as rn, *\\n\"\n + \"from news where title \\n\"\n + \"like ?\"\n + \")as x\\n\"\n + \"where rn between ?*?-2\"\n + \"and ?*?\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setString(1, \"%\" + txt + \"%\");\n statement.setInt(2, pageIndex);\n statement.setInt(3, pageSize);\n statement.setInt(4, pageIndex);\n statement.setInt(5, pageSize);\n result = statement.executeQuery();\n while (result.next()) {\n News news = new News(result.getInt(\"ID\"),\n result.getString(\"title\"),\n result.getString(\"description\"),\n result.getString(\"image\"),\n result.getString(\"author\"),\n result.getDate(\"timePost\"),\n result.getString(\"shortDes\"));\n list.add(news);\n }\n } catch (ClassNotFoundException | SQLException e) {\n throw e;\n } finally {\n closeResultSet(result);\n closePreparedStatement(statement);\n closeConnection(conn);\n }\n return list;\n }", "@Override\r\n\tpublic List<Product> findNews() throws Exception {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Set<Article> search(String keyworkds) {\n\t\treturn null;\r\n\t}", "public void search() {\r\n \t\r\n }", "@Override\r\n\tpublic void getNewsList(Page page, String query) {\n\t\t\r\n\t}", "public void fetchArticles(int page, boolean newSearch) {\n if(newSearch) { articles.clear(); }\n\n AsyncHttpClient client = new AsyncHttpClient();\n String url;\n RequestParams params = new RequestParams();\n params.put(\"api-key\", \"ed5753fe0329424883b2a07a7a7b4817\");\n params.put(\"page\", page);\n\n // If top stories, different parameters\n if(topStories) {\n url = \"https://api.nytimes.com/svc/topstories/v2/home.json\";\n } else {\n url = \"https://api.nytimes.com/svc/search/v2/articlesearch.json\";\n params.put(\"q\",filter.getQuery());\n if(filter.getSort() != null) {\n params.put(\"sort\",filter.getSort());\n }\n if(filter.getBegin_date() != null) {\n params.put(\"begin_date\",filter.getBegin_date());\n }\n if(filter.getNewsDeskOpts().size() > 0) {\n for(int i=0; i<filter.getNewsDeskOpts().size(); i++) {\n params.put(\"fq\",String.format(\"news_desk:(%s)\",filter.getNewsDeskOpts().get(i)));\n }\n }\n Log.d(\"DEBUG\",params.toString());\n }\n\n client.get(url, params, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.d(\"DEBUG\",response.toString());\n JSONArray articleJsonResults = null;\n try {\n if(!topStories) {\n articleJsonResults = response.getJSONObject(\"response\").getJSONArray(\"docs\");\n } else {\n articleJsonResults = response.getJSONArray(\"results\");\n }\n\n // Every time data is changed, notify adapter; can also do by article.addAll and use adapter.notifyDataSetChanged\n articles.addAll(Article.fromJsonArray(articleJsonResults, topStories));\n adapter.notifyDataSetChanged();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n Log.d(\"DEBUG\",\"JSON response failed\");\n super.onFailure(statusCode, headers, throwable, errorResponse);\n }\n });\n }", "private void searchFunction() {\n\t\t\r\n\t}", "Search getSearch();", "public ArrayList<String> search(String url) {\n Pattern msnPattern = Pattern.compile(\".*msn.com.*\");\n Pattern foolPattern = Pattern.compile(\".*fool.com.*\");\n Matcher foolMatcher = foolPattern.matcher(url);\n Matcher msnMatcher = msnPattern.matcher(url);\n\n ArrayList<String> stockArticles = new ArrayList<String>();\n if (foolMatcher.matches()) {\n Connection connection = Jsoup.connect(\"https://www.fool.com/market-movers/\");\n try {\n Document htmlDocument = connection.get();\n Elements linksOnPage = htmlDocument.select(\"h4\");\n for (Element link : linksOnPage) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n } else if (msnMatcher.matches()) {\n Connection connection2 = Jsoup.connect(\"http://www.msn.com/en-us/money/investing\");\n try {\n Document htmlDocument2 = connection2.get();\n Elements linksOnPage2 = htmlDocument2.select(\"h3\");\n for (Element link : linksOnPage2) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n } else {\n Connection connection3 = Jsoup.connect(\"https://www.nytimes.com/topic/organization/new-york-stock-exchange\");\n try {\n Document htmlDocument3 = connection3.get();\n Elements linksOnPage3 = htmlDocument3.select(\"h2\");\n for (Element link : linksOnPage3) {\n stockArticles.add(link.text());\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n return stockArticles;\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "abstract public void search();", "public List<News> query(Route route);", "void search();", "void search();", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public void search() {\n }", "private void articleSearch(final String query, final int page) {\n Log.d(\"DEBUG\", \"Search query: \" + query + \"; page: \"+ page);\n if (query.isEmpty() || page == PAGE_MAX || !isOnline()) {\n return;\n }\n if (page == FIRST_PAGE) {\n articles.clear();\n articleArrayAdapter.notifyDataSetChanged();\n }\n this.client.getArticles(page, query, this.filterSettings, new JsonHttpResponseHandler\n () {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n JSONArray articleJsonResults = null;\n try {\n articleJsonResults = response.getJSONObject(RESPONSE_KEY)\n .getJSONArray(DOCS_KEY);\n articles.addAll(Article.fromJSONArray(articleJsonResults));\n articleArrayAdapter.notifyDataSetChanged();\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n super.onFailure(statusCode, headers, throwable, errorResponse);\n if (statusCode == 429 && errorResponse.toString().equals(\"{\\\"message\\\":\\\"API rate limit exceeded\\\"}\")) {\n Log.d(\"DEBUG\", \"API rate limit exceeded. Retrying in 2s.\");\n Handler handler = new Handler();\n handler.postDelayed(() -> articleSearch(query, page), RETRY_DELAY_MILLIS);\n }\n }\n });\n }", "@Override\n\tpublic Page<News> findNews(News searchModel, int pageNum, int pageSize) {\n\t\tList<News> allStudentList = getAllNews(searchModel);\n\t\tPage<News> page = new Page<News>(allStudentList, pageNum, pageSize);\n\t\treturn page;\n\t}", "@Override\n\tpublic void search() {\n\t}", "void searchProbed (Search search);", "private Search() {}", "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\n\t\t\t\tList<StoreArticle> list = getShop().searchByArticle(filter);\n\t\t\t\tStoreArticle[] array = list.toArray(new StoreArticle[0]);\n\t\t\t\tadapter = new SearchByArticleAdapter(SearchActivity.this, R.layout.search_view, array);\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n MenuItem item = menu.findItem(R.id.action_search);\n mSearchView = (android.support.v7.widget.SearchView) item.getActionView();\n mSearchView.setQueryHint(\"Enter Article title\");\n mSearchView.setSubmitButtonEnabled(true);\n mSearchView.setOnQueryTextListener(new android.support.v7.widget.SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(final String s) {\n if(isNetworkAvailable()) {\n mProgress.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n new Thread(new Runnable() {\n @Override\n public void run() {\n Log.d(\"123\", \"zfhkjzflk\");\n searchAPICall(s);\n }\n }).start();\n } else {\n Toast.makeText(MainActivity.this, \"Internet connection not available\", Toast.LENGTH_LONG).show();\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(final String s) {\n return false;\n }\n });\n mSearchView.setOnCloseListener(() -> {\n NewsAdapter newsAdapter = new NewsAdapter(MainActivity.this, articles, false);\n recyclerView.setAdapter(newsAdapter);\n return false;\n });\n\n return true;\n }", "public NewsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@In String search();", "List<WxNews> selectByExample(WxNewsExample example);", "@Override\n public String execute(String request) {\n String author = request.substring(request.indexOf(separator) + 1);\n\n ServiceFactory service = ServiceFactory.getInstance();\n NewsService newsService = service.getNewsService();\n\n String response;\n try {\n newsService.findByAuthor(author);\n response = \"It is search results.\"; ///look it\n } catch (ServiceException e) {\n response = \"News not found.\";\n }\n return response;\n }", "public Show search(String title){\n return super.search(title);\n }", "private static List<ArticleBean> transactionSearchSuggestedArticles(Transaction tx, String username, int limit)\n {\n List<ArticleBean> articles = new ArrayList<>();\n HashMap<String,Object> parameters = new HashMap<>();\n int quantiInflu = 0;\n parameters.put(\"username\", username);\n parameters.put(\"role\", \"influencer\");\n parameters.put(\"limit\", limit);\n\n String conInflu = \"MATCH (u:User{username:$username})-[f:FOLLOW]->(i:User{role:$role})-[p:PUBLISHED]-(a:Article) \" +\n \" RETURN a, i, p ORDER BY p.timestamp LIMIT $limit\";\n\n String nienteInflu = \"MATCH (i:User)-[p:PUBLISHED]->(a:Article)-[r:REFERRED]->(g:Game), (u:User) \" +\n \" WHERE NOT(i.username = u.username) AND \" +\n \" u.username=$username AND ((g.category1 = u.category1 OR g.category1 = u.category2) \" +\n \" OR (g.category2 = u.category1 OR g.category2 = u.category2))\" +\n \" RETURN distinct(a),i,p ORDER BY p.timestamp LIMIT $limit \";\n\n Result result;\n quantiInflu = UsersDBManager.transactionCountUsers(tx,username,\"influencer\");\n if(quantiInflu < 3)\n {\n result = tx.run(nienteInflu, parameters);\n }\n else\n {\n result = tx.run(conInflu, parameters);\n }\n while(result.hasNext())\n {\n Record record = result.next();\n List<Pair<String, Value>> values = record.fields();\n ArticleBean article = new ArticleBean();\n String author;\n String title;\n for (Pair<String,Value> nameValue: values) {\n if (\"a\".equals(nameValue.key())) {\n Value value = nameValue.value();\n title = value.get(\"title\").asString();\n article.setTitle(title);\n article.setId(value.get(\"idArt\").asInt());\n\n }\n if (\"i\".equals(nameValue.key())) {\n Value value = nameValue.value();\n author = value.get(\"username\").asString();\n article.setAuthor(author);\n\n }\n if (\"p\".equals(nameValue.key())) {\n Value value = nameValue.value();\n String timestamp = value.get(\"timestamp\").asString();\n article.setTimestamp(Timestamp.valueOf(timestamp));\n\n }\n }\n articles.add(article);\n }\n\n return articles;\n\n }", "private void searchWeb()\n {\n searchWeb = true;\n search();\n }", "List<SearchResult> search(SearchQuery searchQuery);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "private void doSearch(String query, boolean art,\n boolean music,\n boolean tech,\n boolean careers,\n boolean culture,\n boolean sports,\n boolean science,\n boolean education){\n ArrayList<String> categories = new ArrayList<String>();\n if(art) categories.add(\"Art\");\n if(music) categories.add(\"Music\");\n if(tech) categories.add(\"Tech\");\n if(careers) categories.add(\"Careers\");\n if(culture) categories.add(\"Culture\");\n if(sports) categories.add(\"Sports\");\n if(science) categories.add(\"Science\");\n if(education) categories.add(\"Education\");\n\n //if none selected search for all categories\n if(!art && !music && !tech && !careers && !culture && !sports && !science && !education){\n categories.add(\"Art\");\n categories.add(\"Music\");\n categories.add(\"Tech\");\n categories.add(\"Careers\");\n categories.add(\"Culture\");\n categories.add(\"Sports\");\n categories.add(\"Science\");\n categories.add(\"Education\");\n }\n eventServices.searchEventFeed(query, null, null, categories, new AppCallback<List<Event>>() {\n @Override\n public void call(final List<Event> events) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n eventList.addAll(events);\n adapter.notifyDataSetChanged();\n }\n });\n }\n\n @Override\n public void call() {\n\n }\n });\n\n// Log.d(TAG, \"doSearch: \" + query + \" \" + SearchActivity.DATE_RANGE_LABELS[dateRange] + \" \");\n adapter.notifyDataSetChanged();\n }", "private void search() {\n if (isConnected()) {\r\n query = searchField.getText().toString();\r\n mLoader.setVisibility(View.VISIBLE);\r\n emptyStateTextView.setText(\"\");\r\n //restart the loader with the new data\r\n loaderManager.restartLoader(1, null, this);\r\n } else {\r\n String message = getString(R.string.no_internet);\r\n new AlertDialog.Builder(this).setMessage(message).show();\r\n }\r\n }", "ArtistCommunitySearch getArtistSearch();", "List<News> selectByExample(NewsExample example);", "@SkipValidation\n public String getAllImportantNews() {\n impList = impService.getAllImportantNews();\n return SUCCESS;\n }", "public static boolean runSample(BingNewsSearchAPI client) {\n try {\n\n //=============================================================\n // This will search news for (Quantum Computing) with market and count parameters then verify number of\n // results and print out total estimated matches, name, url, description, published time and name of provider\n // of the first item in the list of news result list.\n\n System.out.println(\"Search news for query \\\"Quantum Computing\\\" with market and count\");\n NewsModel newsResults = client.bingNews().search()\n .withQuery(\"Quantum Computing\")\n .withMarket(\"en-us\")\n .withCount(100)\n .execute();\n\n PrintNewsResult(newsResults);\n\n\n //=============================================================\n // This will search most recent news for (Artificial Intelligence) with freshness and sort-by parameters then\n // verify number of results and print out totalEstimatedMatches, name, url, description, published time and\n // name of provider of the first news result\n\n System.out.println(\"Search most recent news for query \\\"Artificial Intelligence\\\" with freshness and sortBy\");\n newsResults = client.bingNews().search()\n .withQuery(\"Artificial Intelligence\")\n .withMarket(\"en-us\")\n .withFreshness(Freshness.WEEK)\n .withSortBy(\"Date\")\n .execute();\n\n PrintNewsResult(newsResults);\n\n\n //=============================================================\n // This will search category news for movie and TV entertainment with safe search then verify number of results\n // and print out category, name, url, description, published time and name of provider of the first news result\n\n System.out.println(\"Search category news for movie and TV entertainment with safe search\");\n newsResults = client.bingNews().category()\n .withMarket(\"en-us\")\n .withCategory(\"Entertainment_MovieAndTV\")\n .withSafeSearch(SafeSearch.STRICT)\n .execute();\n\n PrintNewsResult(newsResults);\n\n\n //=============================================================\n // This will search news trending topics in Bing then verify number of results and print out name, text of query,\n // webSearchUrl, newsSearchUrl and image Url of the first news result\n\n System.out.println(\"Search news trending topics in Bing\");\n TrendingTopics trendingTopics = client.bingNews().trending()\n .withMarket(\"en-us\")\n .execute();\n\n if (trendingTopics != null) {\n if (trendingTopics.value().size() > 0) {\n NewsTopic firstTopic = trendingTopics.value().get(0);\n\n System.out.println(String.format(\"Trending topics count: %s\", trendingTopics.value().size()));\n System.out.println(String.format(\"First topic name: %s\", firstTopic.name()));\n System.out.println(String.format(\"First topic query: %s\", firstTopic.query().text()));\n System.out.println(String.format(\"First topic image url: %s\", firstTopic.image().url()));\n System.out.println(String.format(\"First topic webSearchUrl: %s\", firstTopic.webSearchUrl()));\n System.out.println(String.format(\"First topic newsSearchUrl: %s\", firstTopic.newsSearchUrl()));\n } else {\n System.out.println(\"Couldn't find news trending topics!\");\n }\n } else {\n System.out.println(\"Didn't see any news trending topics..\");\n }\n\n return true;\n } catch (Exception f) {\n System.out.println(f.getMessage());\n f.printStackTrace();\n }\n return false;\n }", "@PostMapping(\"/search\")\n public Object fetchNews(@RequestParam(\"id\") String id, @RequestParam(name = \"page\", required = false) Integer page) {\n return newsService.getNewsData(id, page);\n }", "SearchResultCompany search(String keywords);", "public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n }\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n topStories = false;\n filter.setQuery(query);\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n findViewById(R.id.relativeLayout).setVisibility(View.GONE);\n findViewById(R.id.tvHeading).setVisibility(View.GONE);\n fetchArticles(0,true);\n searchView.clearFocus();\n return true;\n }", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "List<NewsInfo> selectByExample(NewsInfoExample example);", "@Override\n\tpublic List<ServiceInfo> search(String keywords) {\n\t\treturn null;\n\t}", "private void searchSong() {\n String keyword = keywordEdt.getText().toString().trim();\n if (TextUtils.isEmpty(keyword)) {\n } else {\n keyword = keyword.toLowerCase();\n\n }\n\n midiRecommendAdapter.notifyDataSetChanged();\n }", "public MagicSearch createMagicSearch();", "@Override\n public void search(Uri uri) {\n }", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "void searchStarted (Search search);", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "String getNews();", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "private String getSearchUrl(String url ){\n String params = searchEditText.getText().toString();\n params = params.replace(\" \",\"+\");\n url += params + \"&filter=ebooks&prettyPrint=false\";\n return url;\n }", "public List<NewsItem> filter(List<NewsItem> newsItems)\n {\n List<NewsItem> results = new ArrayList<NewsItem>();\n for (NewsItem newsItem : newsItems)\n {\n if (match(newsItem))\n {\n results.add(newsItem);\n }\n }\n return results;\n }", "public abstract S getSearch();", "@Override\n \tpublic ArrayList<Object> searchPostByName(String search) {\n\t\t\n\t\tSystem.out.println(\"i am in service search looking for cool posts\" + search);\n\t\t\n\t\tif(search == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<Object> list = null; //postRepository.findPostByName(search); ****Nick set this to null; otherwise it failed. Needs corrected in future\n\t\t\n\t\t//System.out.println(Arrays.toString(list));\n\t\treturn list;\n\t}", "@Override\n\tpublic Integer queryNewsCount(News params) throws Exception {\n\t\treturn null;\n\t}", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "@Override\n\tpublic ArrayList<BlogArticle> searchArts(String title) {\n\t\treturn blogArticleDao.searchArts(title);\n\t}", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "abstract public boolean performSearch();", "List<Topic> searchTopicBySTag(String[] keywords);", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "entities.Torrent.LocalSearchRequest getLocalSearchRequest();", "public ArrayList<Article> search(String keyword, int pageIndex, int pageSize)\n throws Exception {\n String sql = \"WITH t AS (\\n\"\n + \"SELECT ROW_NUMBER() OVER (ORDER BY [time] DESC) rownum,* \"\n + \"FROM dbo.Article \\n\"\n + \"WHERE title LIKE '%' + ? + '%' OR content LIKE '%' + ? + '%'\\n\"\n + \")\\n\"\n + \"SELECT * FROM t \"\n + \"WHERE t.rownum >= (? - 1) * ? + 1 AND t.rownum <= ? * ?\";\n ArrayList<Article> articles = new ArrayList<>();\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n st = con.prepareStatement(sql);\n st.setString(1, keyword);\n st.setString(2, keyword);\n st.setInt(3, pageIndex);\n st.setInt(4, pageSize);\n st.setInt(5, pageIndex);\n st.setInt(6, pageSize);\n rs = st.executeQuery();\n while (rs.next()) {\n Article a = new Article();\n a.setId(rs.getInt(\"id\"));\n a.setTitle(rs.getString(\"title\"));\n a.setContent(rs.getString(\"content\"));\n a.setDescription(rs.getString(\"description\"));\n a.setImage(getImgPath() + rs.getString(\"image\"));\n a.setTime(rs.getTimestamp(\"time\"));\n a.setAuthor(rs.getString(\"author\"));\n articles.add(a);\n }\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(st);\n closeConnection(con);\n }\n return articles;\n }", "List<Codebadge> search(String query);", "int countByExample(NewsInfoExample example);", "List<Cemetery> search(String query);", "public List<Recipe> search(String[] keywords, boolean searchLocally, boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}", "private void searchByTitle(String title){\n Query query = null;\n if(mTipoCuenta.equals(\"ADMINISTRADOR\")){\n query = mPostProvider.getPostByTitle(title);\n }else{\n query = mPostProvider.getPostByTitleTipocuenta(mTipoCuenta,title);\n }\n FirestoreRecyclerOptions<Post> options = new FirestoreRecyclerOptions.Builder<Post>()\n .setQuery(query, Post.class)\n .build();\n mPostAdapterSearch = new PostsAdapter(options, getContext());\n mPostAdapter.notifyDataSetChanged();\n mRecycleView.setAdapter(mPostAdapterSearch);\n mPostAdapterSearch.startListening();\n }", "public search() {\n }", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "public List<Product> search(String searchString);", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "@Override\n public ArrayList<ItemBean> searchAll(String keyword)\n {\n String query= \"SELECT * FROM SilentAuction.Items WHERE Item_ID =?\";\n //Seacrh by Category Query\n String query1=\"SELECT * FROM SilentAuction.Items WHERE Category LIKE?\";\n //Seaches and finds items if Category is inserted\n ArrayList<ItemBean> resultsCat = searchItemsByCategory(query1,keyword);\n //Searches and finds items if number is inserted \n ArrayList<ItemBean> resultsNum= searchItemsByNumber(query,keyword);\n resultsCat.addAll(resultsNum);\n return resultsCat;\n }", "@Override\n\tpublic Result getNewsByPage(Page page) {\n\t\tList<News> newsList = indexMapper.selectAll();\n\t\tResult result = new Result(1,\"success\",newsList);\n//\t\tSystem.out.println(\"indexService\"+newsList);\n\t\treturn result;\n\t}", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "private void createSearch(boolean realSearch) {\n\n\t\tString sqlQuery = new String();\n\n\t\tif (useLucene.isSelected()) {\n\n\t\t\tif (datachoose.getSelectedIndex() == data_ABOVE) {\n\t\t\t\t// need to reference the above data.\n\t\t\t\tString usp = (String) winG.getSelectedUser();\n\t\t\t\tString dates[] = winG.getDateRange_toptoolbar();\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where sender = '\" + usp + \"' or rcpt = '\" + usp\n\t\t\t\t\t\t+ \"' and dates BETWEEN '\" + dates[winGui.startDate] + \"' AND '\" + dates[winGui.endDate]\n\t\t\t\t\t\t+ \"' \";\n\n\t\t\t} else if (datachoose.getSelectedIndex() == data_ALL) {\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where type like 'text%'\";\n\t\t\t} else {\n\t\t\t\t// need to pop up sql\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email \" + queryText.getText().trim();\n\t\t\t}\n\n\t\t\tString results[][];\n\t\t\t// actual fetch of data\n\t\t\ttry {\n\t\t\t\tsynchronized (DBConnect) {\n\t\t\t\t\tresults = DBConnect.getSQLData(sqlQuery);\n\t\t\t\t}\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tsqle.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!realSearch) {\n\n\t\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"The number of returned mailrefs are: \" + results.length);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBusyWindow bw = new BusyWindow(\"Search Engine Setup\", \"Running\",true);\n\t\t\tbw.setMax(results.length);\n\t\t\tbw.setVisible(true);\n\t\t\t// need to setup prefetch cache\n\t\t\ttry {\n\t\t\t\tPreparedStatement ps = DBConnect\n\t\t\t\t\t\t.prepareStatementHelper(\"select hash,filename,type,body from message where mailref=?\");\n\n\t\t\t\t// real search need to build index here\n\t\t\t\t// TODO: see about adding path between folder and name\n\t\t\t\tIndexWriter writer = null;\n\t\t\t\t// stopanalyzer\n\t\t\t\t//writer = new IndexWriter(indexfolder + indexName.getText().trim(), new StandardAnalyzer(), true);\n\t\t\t\twriter = new IndexWriter(getIndexFileName(indexName.getText()), analyzer, true);\n\n\t\t\t\tDate start = new Date();\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tbw.progress(i);\n\n\t\t\t\t\tps.setString(1, results[i][0]);\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tString type = rs.getString(3).toLowerCase();\n\n\t\t\t\t\t\tif (type.startsWith(\"image\") || type.startsWith(\"video\") || type.startsWith(\"audio\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString hash = rs.getString(1);\n\t\t\t\t\t\tString name = rs.getString(2);\n\n\t\t\t\t\t\t// make a new, empty document\n\t\t\t\t\t\tDocument doc = new Document();\n\n\t\t\t\t\t\t// Add the path of the file as a field named \"path\". Use\n\t\t\t\t\t\t// a Text field, so\n\t\t\t\t\t\t// that the index stores the path, and so that the path\n\t\t\t\t\t\t// is searchable\n\t\t\t\t\t\tdoc.add(new Field(\"path\", hash,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Date\", results[i][1],Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Type\", type,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Name\", name,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Mailref\", new String(results[i][0]),Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\t// Add the last modified date of the file a field named\n\t\t\t\t\t\t// \"modified\". Use a\n\t\t\t\t\t\t// Keyword field, so that it's searchable, but so that\n\t\t\t\t\t\t// no attempt is made\n\t\t\t\t\t\t// to tokenize the field into words.\n\t\t\t\t\t\t// doc.add(Field.Keyword(\"modified\",\n\t\t\t\t\t\t// DateField.timeToString(f.lastModified())));\n\n\t\t\t\t\t\t// Add the contents of the file a field named\n\t\t\t\t\t\t// \"contents\". Use a Text\n\t\t\t\t\t\t// field, specifying a Reader, so that the text of the\n\t\t\t\t\t\t// file is tokenized.\n\t\t\t\t\t\t// ?? why doesn't FileReader work here ??\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjava.sql.Blob blob = rs.getBlob(4);\n\t\t\t\t\t\t\tint c;\n\t\t\t\t\t\t\tbyte buf[] = new byte[512];//\n\n\t\t\t\t\t\t\tInputStream is = blob.getBinaryStream();\n\t\t\t\t\t\t\tStringBuffer small2 = new StringBuffer(256);\n\t\t\t\t\t\t\twhile ((c = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tsmall2.append(new String(buf, 0, c));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString bodytext = small2.toString();\n\n\t\t\t\t\t\t\tdoc.add(new Field(\"contents\", bodytext,Field.Store.YES, Field.Index.TOKENIZED));\n\n\t\t\t\t\t\t\t// now to insert this doc.\n\t\t\t\t\t\t\twriter.addDocument(doc);\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.setTitle(\"optimizing\");\n\t\t\t\twriter.optimize();\n\t\t\t\twriter.close();\n\n\t\t\t\tDate end = new Date();\n\n\t\t\t\tSystem.out.print(end.getTime() - start.getTime());\n\t\t\t\tSystem.out.println(\" total milliseconds\");\n\n\t\t\t\tbw.setVisible(false);\n\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException eio) {\n\t\t\t\teio.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// we use emt indexing\n\t\t\t// TODO: create code here\n\n\t\t}\n\t}", "@Override\n\tpublic void searchMembers(String keyword) {\n\t}", "@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }", "@Override\n public SearchResult search_hunter(String keyword, int page, int rows ,int search_type) throws Exception{\n\n return null;\n }", "List<DataTerm> search(String searchTerm);", "entities.Torrent.SearchRequest getSearchRequest();", "@Override\r\n\tpublic List<News> findAllNews() {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<News> newsList = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"select * from news\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tnewsList = new ArrayList<>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tNews aNews = new News();\r\n\t\t\t\taNews.setId(rs.getInt(1));\r\n\t\t\t\taNews.setTitle(rs.getString(2));\r\n\t\t\t\taNews.setContent(rs.getString(\"content\"));\r\n\t\t\t\taNews.setCreateTime(rs.getDate(\"createTime\"));\r\n\t\t\t\taNews.setFk_topic_id(rs.getInt(\"fk_topic_id\"));\r\n\t\t\t\t\r\n\t\t\t\tnewsList.add(aNews);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tSimpleDBUtil.closeAll(rs, pstmt, conn);\r\n\t\t}\r\n\t\t\r\n\t\treturn newsList;\r\n\t}", "int countByExample(NewsExample example);", "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }", "public void onSearchStarted();", "@Override\n protected void onPostExecute(ArrayList<News> newsArrayList) {\n super.onPostExecute(newsArrayList);\n newsList=new ArrayList<>();\n if(textQuery.equals(\"\")){\n newsAdapter=new NewsAdapter(getContext(),newsArrayList);\n } else {\n for(int i=0;i<newsArrayList.size();i++){\n if(newsArrayList.get(i).getTitle().contains(textQuery)){\n News news=newsArrayList.get(i);\n newsList.add(new News(news.getTitle(),news.getDescription(),news.getTime(),news.getImage(),news.getLink()));\n }\n }\n newsAdapter=new NewsAdapter(getContext(),newsList);\n }\n\n LinearLayoutManager linearLayoutManager=new LinearLayoutManager(getActivity());\n rcvListNews.setHasFixedSize(true);\n rcvListNews.setLayoutManager(linearLayoutManager);\n rcvListNews.setAdapter(newsAdapter);\n\n\n\n\n }", "@GET(\"user-news-article-content?expand=newsArticle,newsArticle.newsArticleType,newsArticle.translations,newsArticle.like,newsArticle.liked,newsArticle.comments_count&per-page=1000\")\n Call<UserNewsResponse>getUserNews();", "List<SongVO> searchSong(String searchText) throws Exception;", "public void searchFor(View view) {\n // Get a handle for the editable text view holding the user's search text\n EditText userInput = findViewById(R.id.user_input_edit_text);\n // Get the characters from the {@link EditText} view and convert it to string value\n String input = userInput.getText().toString();\n\n // Search filter for search text matching book titles\n RadioButton mTitleChecked = findViewById(R.id.title_radio);\n // Search filter for search text matching authors\n RadioButton mAuthorChecked = findViewById(R.id.author_radio);\n // Search filter for search text matching ISBN numbers\n RadioButton mIsbnChecked = findViewById(R.id.isbn_radio);\n\n if (!input.isEmpty()) {\n // On click display list of books matching search criteria\n // Build intent to go to the {@link QueryResultsActivity} activity\n Intent results = new Intent(MainActivity.this, QueryListOfBookActivity.class);\n\n // Get the user search text to {@link QueryResultsActivity}\n // to be used while creating the url\n results.putExtra(\"topic\", mUserSearch.getText().toString().toLowerCase());\n\n // Pass search filter, if any\n if (mTitleChecked.isChecked()) {\n // User is searching for book titles that match the search text\n results.putExtra(\"title\", \"intitle=\");\n } else if (mAuthorChecked.isChecked()) {\n // User is searching for authors that match the search text\n results.putExtra(\"author\", \"inauthor=\");\n } else if (mIsbnChecked.isChecked()) {\n // User is specifically looking for the book with the provided isbn number\n results.putExtra(\"isbn\", \"isbn=\");\n }\n\n // Pass on the control to the new activity and start the activity\n startActivity(results);\n\n } else {\n // User has not entered any search text\n // Notify user to enter text via toast\n\n Toast.makeText(\n MainActivity.this,\n getString(R.string.enter_text),\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public void LoadNews()\n {\n String url = \"https://newsapi.org/v1/articles?source=the-next-web&apiKey=533af958594143758318137469b41ba9\";\n Load_News = new StringRequest(Request.Method.GET,url,Success,Error);\n rQueue = ApplicationSingleton.getInstance().getQueue();\n rQueue.add(Load_News);\n\n\n }", "boolean getSearchable();", "@Override\n\tpublic List<BoardVO> searchArticle(String keyword) {\n\t\t\n\t\tString sql = \"SELECT * FROM board WHERE board_writer LIKE ?\";\n\t\treturn template.query(sql,new BoardMapper(), keyword);\n\t}" ]
[ "0.6697991", "0.6435053", "0.64349586", "0.64197856", "0.63381267", "0.6316216", "0.63066643", "0.6296526", "0.6263584", "0.62532", "0.6213936", "0.6176544", "0.61669785", "0.6155457", "0.6087727", "0.6087727", "0.6085978", "0.60724634", "0.60342914", "0.6026345", "0.60209775", "0.60119224", "0.6001866", "0.59909743", "0.5963091", "0.59284043", "0.59257734", "0.5924708", "0.5916308", "0.5908462", "0.5907596", "0.5905259", "0.59031254", "0.59009755", "0.58904535", "0.5884461", "0.587033", "0.58607936", "0.5830664", "0.58270913", "0.5797326", "0.578887", "0.5785145", "0.5758706", "0.57529455", "0.5747973", "0.57460374", "0.57083404", "0.56842744", "0.56837136", "0.56820357", "0.5663155", "0.5658686", "0.5653671", "0.56518537", "0.5642854", "0.56426847", "0.5635572", "0.56310064", "0.5625533", "0.5604566", "0.5597899", "0.55841416", "0.55832213", "0.55675894", "0.55671287", "0.556192", "0.55481195", "0.5548085", "0.5539327", "0.5527725", "0.5523215", "0.55227226", "0.55203396", "0.55136824", "0.5509946", "0.55076826", "0.55049235", "0.5503935", "0.55007744", "0.5493003", "0.5492186", "0.54888123", "0.5488664", "0.54876393", "0.54864526", "0.54857063", "0.5485145", "0.54816324", "0.5481035", "0.54778814", "0.54774386", "0.54769653", "0.5471078", "0.54662085", "0.54639804", "0.5459062", "0.5458109", "0.5450469", "0.5449294" ]
0.69708425
0
To Change Show Messages Check box in List of Important News Page
@SkipValidation public String makeChangesToShowMessage() { important = impService.getImportantNews(important.getImportantNewsId()); if (important.isShowMessage() == false) { important.setShowMessage(true); impService.updateImportantNews(important); } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> showNewsAndMessages();", "void showLoadingMoreMessages(boolean show);", "private void showAllTwoots() {\n if (onlyShowFollowing) {\n messages.setItems(feed.getFollowingMessages());\n stage.setTitle(\"Twooter - following only\");\n } else {\n messages.setItems(feed.getMessages());\n stage.setTitle(\"Twooter - all twoots\");\n }\n }", "private void gestionDefaultLMessage(){\n\n TextView TV_MessageDefaut = (TextView) findViewById(R.id.id_messagebalise);\n ListView LV_ListAmis = (ListView) findViewById(R.id.LV_listeMessages);\n if (listeDiscussion!=null){\n if (listeDiscussion.isEmpty()){\n // Affiche le message par defaut\n TV_MessageDefaut.setText(R.string.MesDiscussions_noResutat);\n TV_MessageDefaut.setVisibility(View.VISIBLE);\n LV_ListAmis.setVisibility(View.GONE);\n\n }\n else{\n // Affiche la liste de discussion\n TV_MessageDefaut.setText(\"\");\n TV_MessageDefaut.setVisibility(View.GONE);\n LV_ListAmis.setVisibility(View.VISIBLE);\n\n }\n }\n\n }", "@SkipValidation\n public String importantNewsView() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "public void showNoNotifications(){\n noNotificationsTitle.setVisibility(View.VISIBLE);\n noNotificationsText.setVisibility(View.VISIBLE);\n noNotificationsImage.setVisibility(View.VISIBLE);\n }", "protected boolean processMessagesInfo(int allMessages, int unreadMessages){\n return false;\n \n }", "private void updateMenuTitles() {\n boolean isFollow = MainActivity.discussionsImIn.contains(discussionTableName);\n menu.findItem(R.id.settings_follow).setVisible(!isFollow);\n menu.findItem(R.id.settings_unfollow).setVisible(isFollow);\n }", "void setShowedWelcomeMessage(boolean showedWelcomeMessage);", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void updateNewsMessages() {\n getNewsMessages().clear();\n getNewsMessages().addAll(getNewsMap().values());\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tprefs.edit().putBoolean(\"Message\", messageCheck.isChecked()).commit();\n\n\t\t\t\tif (isChecked)\n \t\t\t{\n\t\t\t\tmessage.setVisibility(View.VISIBLE);\n\t\t\t\tsave.setVisibility(View.VISIBLE);\n \t\t\t}\n\t\t\t\telse \n \t\t\t{\n\t\t\t\tmessage.setVisibility(View.GONE);\n\t\t\t\tsave.setVisibility(View.GONE);\n \t\t\t}\n\t\n\t\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(messageCheck.isChecked())\n\t\t\t\tprefs.edit().putString(\"MessageText\",message.getText()+\" \").commit();\n\t\t\t\t\t\n\n\t\t\t}", "private void showInboxNotification() {\n if (mInboxList == null) {\n mInboxList = new ArrayList<String>();\n }\n\n //Add an item to the list\n mInboxList.add(getString(R.string.nf_inbox_item));\n int count = mInboxList.size();\n String inboxTitle = getResources().getQuantityString(R.plurals.nf_inbox_count, count, count);\n\n //Create the inbox compat\n NotificationCompat.InboxStyle inbox = new NotificationCompat.InboxStyle();\n\n String summaryText = getString(R.string.nf_inbox_summary, count);\n //Set the summary text for the inbox item\n inbox.setSummaryText(summaryText);\n\n //Add a line for each item in the list - you have to do this manually, the notification\n //won't build this automatically.\n for (String item : mInboxList) {\n inbox.addLine(item);\n }\n\n //Set the big content title for when the inbox is expanded\n inbox.setBigContentTitle(inboxTitle);\n\n String mostRecentInboxItem = mInboxList.get(mInboxList.size() - 1);\n Notification notification = new NotificationCompat.Builder(getActivity())\n .setContentTitle(inboxTitle)\n //This will show on devices that don't support the inbox and if further notifications\n //come in after the inbox notification.\n .setContentText(summaryText)\n //This will only show when the first inbox item arrives - subsequent items will just be added.\n .setTicker(mostRecentInboxItem)\n .setSmallIcon(R.drawable.ic_notify)\n .setLargeIcon(BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_launcher))\n .setContentIntent(pendingIntentForNotification())\n //This will show on devices that do support the inbox style.\n .setStyle(inbox)\n .build();\n\n //Same deal as the simple notification.\n notification.flags |= Notification.FLAG_AUTO_CANCEL;\n NotificationManager notificationManager = (NotificationManager)\n getActivity().getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Here the tag is used to figure out what notification to add all these items to.\n notificationManager.notify(TAG_INBOX_NOTIFICATION, notification);\n }", "@Override\n\t\t\tpublic void handleMessage(final Message msg){\n\t\t\t\t\t\t if(msg.what<listno){ \n\t\t\t loadData(); \n\t\t\t \n\t\t\t adapter.notifyDataSetChanged(); //数据集变化后,通知adapter \n\t\t\t listView.setSelection(visibleLastIndex - visibleItemCount + 1); //设置选中项 \n\t\t\t loadmoretext.setText(\"Load More\");\n\t\t\t } else{\n\t\t\t \t if(listno>3){\n\t\t\t\t\t \t loadmoretext.setText(\"All Loaded\");\n\t\t\t\t\t \t }else{\n\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t loadmoretext.setText(\"\");\n\t\t\t\t\t\t\t \n\t\t\t\t\t \t }\n\t\t\t }\n\t\t\t \n\t\t\t loadMorepb.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\n\t\t \t }", "private void updateLists(){\n subjects.clear();\n for(Message m : user.getMessages()){\n subjects.add(String.format(\"From - %-\" + (40 - m.getFrom().length()) +\"s %20s\", m.getFrom(), m.getTimestamp().substring(0,16)));\n }\n listViewAdapter.notifyDataSetChanged();\n }", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "private void showAddFeed() {\n addfeed.setVisible(true);\n\n if (Preferences.builtfeedsEnabled(getBaseContext())) {\n\n //show built in feeds menu if enabled\n default_feeds.setVisible(true);\n } else {\n\n //show xda menu item\n xda.setVisible(true);\n }\n }", "public boolean isInAppMessageShowing() {\n return false;\n }", "public void handleMessageAction(ActionEvent event) {\n if (action.getSelectedToggle() == sendMessage){\n sendPane.setVisible(true);\n reviewPane.setVisible(false);\n }\n else{ //action.getSelectedToggle() == reviewMessage\n sendPane.setVisible(false);\n reviewPane.setVisible(true);\n\n StringBuilder builder = new StringBuilder();\n\n for ( String i : messageController.getMessageForMe(this.sender)){\n builder.append(i).append(\"\\n\");\n }\n this.inbox.setText(String.valueOf(builder));\n\n }\n }", "@SkipValidation\n public String getAllImportantNews() {\n impList = impService.getAllImportantNews();\n return SUCCESS;\n }", "@Override\n\tpublic void setVisible(java.lang.String visible) {\n\t\t_news_Blogs.setVisible(visible);\n\t}", "@Override\n public void showMessage(String msg) {\n String pesan = msg;\n if (pesan.equals(\"Post tidak ditemukan\")){\n txtNoData.setVisibility(View.VISIBLE);\n }\n }", "private BukkitTask initiateNewsTask(@NonNull ListIterator<String> msgs) {\n return getScheduler().runTaskTimer(getPlugin(), () -> {\n if (!msgs.hasNext()) { recycleList(msgs); } sendActionBar(msgs.next()); }, getDelay(), getDelay());\n }", "private void checkNewNotification() {\n toolbar.setTitle(R.string.notification);\n NotificationFragment notificationFragment = new NotificationFragment();\n displaySelectedFragment(notificationFragment);\n }", "public void updateUnreadLabel() {\n int count = getUnreadMsgCountTotal();\n if (count > 0) {\n// unreadLabel.setText(String.valueOf(count));\n// unreadLabel.setVisibility(View.VISIBLE);\n mTab.showBadgeAtIndex(1, count, getResources().getColor(R.color.red));\n } else {\n// unreadLabel.setVisibility(View.INVISIBLE);\n }\n }", "private void setTVnotication()\n {\n if(countnoti == 0)\n {\n tv_none_notification.setVisibility(View.VISIBLE);\n }\n else\n if(countnoti > 0)\n {\n tv_none_notification.setVisibility(View.GONE);\n }\n }", "public void showOutdatedMessages(final boolean show) {\n\t // ignore\n\t}", "public boolean loadMessageBox(){\n boolean isMessagebox = true;\n byte tempType = CustomCanvas.msgType;\n CustomCanvas.msgType = -1;\n \n if(tempType == 0){\n tempType = 1;\n } else if(tempType == 20) {\n tempType = 16;\n }\n if (tempType == 1 || tempType == 2 || tempType == 3 || tempType == 16) {\n isMessagebox = false;\n }\n handleSmartPopup(tempType);\n return isMessagebox;\n }", "public void subscribeNewsLetter()\n\t{\n\t\trefApplicationGenericUtils.checkForElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//scroll till the new letter section\n\t\trefApplicationGenericUtils.scrollToViewElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//Click on the subscribe\n\t\t\n\t\t\n\t}", "private void sendActionBar(@NonNull final String message) {\n for(UUID playerID : getNewsRecipient()) {\n if(isOnline(playerID)) {\n @NonNull final CraftPlayer player = (CraftPlayer) Bukkit.getPlayer(playerID);\n final String actionMsg = \"{\\\"text\\\":\\\"\" + message + \"\\\"}\";\n final PacketPlayOutChat PACKET = new PacketPlayOutChat(IChatBaseComponent.ChatSerializer.a(actionMsg), (byte) 2);\n player.getHandle().playerConnection.sendPacket(PACKET);\n } else {\n getNewsRecipient().remove(playerID);\n }}\n\n }", "@Test(priority = 10)\n public void checkboxLogsTest() {\n List<WebElement> logsList = driver.findElements(By\n .cssSelector(\"ul.panel-body-list.logs li\"));\n assertTrue(logsList.get(0).getText().contains(\"Wind: condition changed to true\"));\n assertTrue(logsList.get(1).getText().contains(\"Water: condition changed to true\"));\n }", "public String showList() {\n String listMessage = \"Here yer go! These are all your tasks!\";\n return listMessage;\n }", "public interface IsShowMessage\n {\n /**\n * not show\n */\n String UN_SHOW = \"0\";\n\n /**\n * show\n */\n String SHOW = \"1\";\n }", "@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }", "public static void messagesEnabled(boolean enable){\n\t\tmessages = enable;\n\t}", "private void getMarkAsTopNewsLinkPanel() {\n\t\ttry{\n\t\t\tMarkAsTopNewsLinkPanel asTopNewsLinkPanel = new MarkAsTopNewsLinkPanel(newsItem,feedNewsPresenter);\n\t\t\toptionPanel.add(asTopNewsLinkPanel);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void afficher_les_messages() {\n List<Message> liste_message = ticket_courant.getMessage();\n String texte = \"\";\n for(Message mess: liste_message){\n texte += mess.getExpediteur()+ \" : \"+mess.getTexte()+\"\\n\";\n }\n aff_message.setText(texte);\n /*String[] tab_messages_brut = {\"\"};\n int incr = 0;\n for (Message message : liste_message) {\n tab_messages_brut[incr] = message.getTexte();\n incr++;\n }\n /*JList<String> Liste_messages = new JList<>(tab_messages_brut);\n Conteneur_liste.removeAll();\n Conteneur_liste.add(Liste_messages);\n Liste_messages.setVisible(true);\n Conteneur_liste.updateUI();*/\n }", "private void showListSelectCheckBox(){\n DisplayListWithCheckBox();\n //wordList.setSelection(FirstVisiblePosition);\n\n FloatingActionButton fab_plus = findViewById(R.id.fab_plus);\n fab_plus.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_play = findViewById(R.id.fab_play);\n fab_play.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_delete = findViewById(R.id.fab_delete);\n fab_delete.setVisibility(View.VISIBLE);\n }", "private String getUnexpandedContentText(int numOfNotifications) {\n /*switch (numOfNotifications) {\n case 0:\n return \"\";\n case 1:\n return \"\";\n default:*/\n return numOfNotifications + \" news received\";\n }", "protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }", "public void toggleChat() {\n chatVisible = !chatVisible;\n }", "public void showmessagesinlist() {\n\n showmessagesinlistlistener=new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n\n Date date=new Date();\n messages.clear();\n Message unreadmessage=new Message(\"Unread Messages\",\"dummy\",date.getTime());\n unreadmessage.setStatus(\"sent\");\n unreadmessage.setType(\"unread\");\n\n for(DataSnapshot snapshot1 : snapshot.getChildren())\n {\n message = snapshot1.getValue(Message.class);\n\n try{\n\n if(message.getStatus()!=null){\n\n Log.e(\"seen\",\"not null\");\n\n if(!message.getStatus().equals(\"seen\") && !message.getSenderId().equals(FirebaseAuth.getInstance().getUid()) ){\n\n\n unseenmessages.add(message);\n\n if(messages.contains(unreadmessage)){}else {\n messages.add(unreadmessage);\n }\n\n Log.e(\"seen705\",message.getStatus());\n message.setStatus(\"seen\");\n\n database.getReference().child(\"chats\")\n .child(receiverRoom)\n .child(\"messages\")\n .child(message.getMessageId()).setValue(message).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.e(\"seen on receive success\",message.getStatus());\n }\n });\n\n }\n }\n\n }catch (Exception e){Log.e(\"seenexception\",e.getMessage());}\n\n message.setMessageId(snapshot1.getKey());\n messages.add(message);\n }\n\n\n\n listadapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n };\n\n database.getReference().child(\"chats\")\n .child(senderRoom)\n .child(\"messages\")\n .addValueEventListener(showmessagesinlistlistener);\n\n\n\n\n }", "private void showInbox(){\n getInbox();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }", "void updateCommonToggleStatus(boolean shown);", "private void updateNewsTicker() {\n createExchangeLabel();\n }", "public void setMessage(String setMessage)\n\t{\n\t\tif(this.status == 1) {\n\t\t\tthis.message = setMessage;\n\t\t}else{System.out.println(\"it's already in published state, cannnot change the message\");}\n\t}", "private void carregaLista(Boolean mensagemPrivada) {\n\t\trecuperarListaDeMensagens();\n\t}", "public void readMore1(View view) {\n String readMore1 = \"Founder: Johann Kok\" + \"\\nWebsite: http://www.seebox.co.za\";\n displayMessage(readMore1);\n }", "public void readMore11(View view) {\n String readMore11 = \"Website: http://www.settic.sn/\";\n displayMessage11(readMore11);\n }", "public void actionPerformed(ActionEvent e)\n {\n JCheckBoxMenuItem item = (JCheckBoxMenuItem)e.getSource();\n \n if (item.getName().equals(\"typingNotifications\"))\n { \n ConfigurationManager.setSendTypingNotifications(item.isSelected());\n }\n else if (item.getName().equals(\"sendingMessageCommand\"))\n { \n chatWindow.getCurrentChatPanel().getChatWritePanel()\n .changeSendCommand(!item.isSelected());\n \n if(!item.isSelected())\n ConfigurationManager.setSendMessageCommand(\n ConfigurationManager.ENTER_COMMAND);\n else\n ConfigurationManager.setSendMessageCommand(\n ConfigurationManager.CTRL_ENTER_COMMAND);\n }\n else if (item.getName().equals(\"autopopup\"))\n {\n ConfigurationManager.setAutoPopupNewMessage(item.isSelected());\n }\n }", "private List<ReportMessageTO> setDisplayFlags(List<ReportMessageTO> allReportMessages, Map<String, String> hiddenReportTypes) {\r\n\t\tfor (Entry<String, String> hiddenReportType : hiddenReportTypes.entrySet()) {\r\n\t\t\tfor (ReportMessageTO reportMessageTO : allReportMessages) {\r\n\t\t\t\tString messageType = reportMessageTO.getMessageType();\r\n\t\t\t\tString messageName = reportMessageTO.getMessageName();\r\n\t\t\t\tif ((messageType != null) && (messageType.equals(hiddenReportType.getKey()))) {\r\n\t\t\t\t\tif ((messageName != null) && (messageName.equals(hiddenReportType.getValue()))) {\r\n\t\t\t\t\t\treportMessageTO.setDisplayFlag(IApplicationConstants.FLAG_N);\r\n\t\t\t\t\t\tlogger.log(IAppLogger.INFO, \"Hiding MessageName: \" + messageName);\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 allReportMessages;\r\n\t}", "private boolean allowsInstantMessage()\n {\n for(ChatTransport tr : transportMenuItems.keySet())\n {\n if(tr.allowsInstantMessage())\n {\n return true;\n }\n }\n\n return false;\n }", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "private void onCheckBoxTeilungLinks()\n\t{\n\t\tif (istBeimTaktLaden)\n\t\t\treturn;\n\n\t\tistBeimTaktLaden = true;\n\t\t\n\t\thandleTeilung(getJCheckBoxTeilungLinks().isSelected(),\n\t\t\t\t\t\tgetJCheckBoxTeilungMitte().isSelected(),\n\t\t\t\t\t\tgetJCheckBoxTeilungRechts().isSelected());\n\t\t\t\t\n\t\tistBeimTaktLaden = false;\n\t}", "public void printDisabledRss() {\n for (Map.Entry<String, ParseFeedTask> task : tasks.entrySet()) {\n if (!task.getValue().getConfiguration().getTurnOn()) {\n System.out.println(String.format(\"off RSS : %s\", task.getKey()));\n }\n }\n }", "boolean isDisplayMessageOnRedeem();", "protected boolean notificationEnabled(SessionState state)\n\t{\n\t\treturn true;\n\n\t}", "private void jButtonMessageActionPerformed(ActionEvent e)\n {\n \tif(bSupMessage)\n \t bSupMessage=false;\n \telse\n \t bSupMessage=true;\n \t\n \t\n }", "private void hideAddFeed() {\n addfeed.setVisible(false);\n\n if (Preferences.builtfeedsEnabled(getBaseContext())) {\n\n //hide built in feeds menu if enabled\n default_feeds.setVisible(false);\n\n } else {\n\n //hide xda menu item\n xda.setVisible(false);\n }\n\n }", "@Override\n\tpublic java.lang.String getVisible() {\n\t\treturn _news_Blogs.getVisible();\n\t}", "void showOthersActions(String message);", "boolean displayScheduleMessage();", "private void updateReceiveMessageNotification(String ticker,\n boolean isNewMessageNotification) {\n Logger.d(\n TAG,\n \"updateReceiveMessageNotification() two parameters entry\" +\n \" isNewMessageNotification is \"\n + isNewMessageNotification);\n Context context = ApiManager.getInstance().getContext();\n if (context != null) {\n if (mUnReadMessagesChatInfos.size() == 0) {\n Logger.d(TAG,\n \"updateReceiveMessageNotification() the size is 0\");\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n if (notificationManager != null) {\n notificationManager.cancel(UNREAD_MESSAGE,\n NOTIFICATION_ID_UNREAD_MESSAGE);\n }\n } else {\n String notifyTitle = null;\n String description = null;\n Intent intent = new Intent();\n intent.setClass(context, ChatScreenActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n if (mUnReadMessagesChatInfos.size() > 1) {\n Logger.d(TAG,\n \"updateReceiveMessageNotification() the size >1\");\n intent.setClass(context, ChatMainActivity.class);\n intent.putExtra(FORCE_SCROLLTO_CHAT, true);\n notifyTitle = context\n .getString(\n R.string.notification_multipleChats_title,\n Integer.toString(mUnReadMessagesChatInfos\n .size()));\n int count = 0;\n Collection<ChatReceivedInfo> chatInfos = mUnReadMessagesChatInfos\n .values();\n Iterator<ChatReceivedInfo> iterator = chatInfos\n .iterator();\n while (iterator.hasNext()) {\n ChatReceivedInfo chatInfo = iterator.next();\n count += chatInfo.getMessageNum();\n }\n if (count > 1) {\n description = context.getString(\n R.string.notification_multiple,\n Integer.toString(count));\n }\n } else if (mUnReadMessagesChatInfos.size() == 1) {\n Logger.d(TAG,\n \"updateReceiveMessageNotification() the size = 1\");\n Object tag = mUnReadMessagesChatInfos.keys()\n .nextElement();\n if (tag == null) {\n Logger.e(TAG,\n \"updateReceiveMessageNotification the chat tag is null\");\n return;\n }\n if (tag instanceof UUID) {\n ParcelUuid parcelUuid = new ParcelUuid(\n (UUID) tag);\n intent.putExtra(\n ChatScreenActivity.KEY_CHAT_TAG,\n parcelUuid);\n } else {\n intent.putExtra(\n ChatScreenActivity.KEY_CHAT_TAG,\n (ParcelUuid) tag);\n }\n ChatReceivedInfo chatInfo = mUnReadMessagesChatInfos\n .get(tag);\n if (chatInfo == null) {\n Logger.e(TAG,\n \"updateReceiveMessageNotification return chatInfo is null\");\n return;\n }\n notifyTitle = chatInfo.getDisplayName();\n description = chatInfo.getFirstMessage();\n int count = chatInfo.getMessageNum();\n if (count > 1) {\n description = context.getString(\n R.string.notification_multiple,\n Integer.toString(count));\n }\n }\n int requestCode = 0;\n int icon = R.drawable.rcs_notify_chat_message;\n Logger.d(TAG,\n \"updateReceiveMessageNotification() mode: \"\n + Logger.getIsIntegrationMode());\n if (!Logger.getIsIntegrationMode()) {\n updateReceiveMessageNotification(context,\n requestCode, intent, ticker, notifyTitle,\n description, icon,\n isNewMessageNotification);\n }\n }\n } else {\n Logger.d(TAG,\n \"updateReceiveMessageNotification() the context is null\");\n }\n }", "@Override\n public void actionPerformed(ActionEvent e){\n \tframe.getNotif().update();\n ArrayList<Notification> newNotif;\n if (Application.getApplication().getCurrentUser() != null)\n newNotif = Application.getApplication().getCurrentUser().getNotifications();\n else\n newNotif = Application.getApplication().getAdmin().getNotifications();\n frame.getNotif().setNotifications(newNotif);\n this.frame.showPanel(\"notif\");\n }", "@Override\n public void addToWatchListClick(boolean isAddedOrNot, ContentDatum contentDatum) {\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_PAGE_LOADING_ACTION));\n if (isUserLoggedIn()) {\n editWatchlist(contentDatum.getGist().getId() != null ? contentDatum.getGist().getId() : contentDatum.getId(), appCMSAddToWatchlistResult -> {\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_STOP_PAGE_LOADING_ACTION));\n Toast.makeText(currentContext, \"Updated Successfully :\", Toast.LENGTH_LONG);\n }, isAddedOrNot);\n } else {\n if (isAppSVOD() && isUserLoggedIn()) {\n showEntitlementDialog(AppCMSPresenter.DialogType.SUBSCRIPTION_REQUIRED, null);\n } else {\n showEntitlementDialog(AppCMSPresenter.DialogType.LOGIN_REQUIRED, null);\n }\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_STOP_PAGE_LOADING_ACTION));\n }\n }", "public void hideNoNotifications(){\n noNotificationsTitle.setVisibility(View.GONE);\n noNotificationsText.setVisibility(View.GONE);\n noNotificationsImage.setVisibility(View.GONE);\n }", "public static void getChannelsSuccess(List<ChannelInfo> channels) {\n\n\n rssListview.setItems(list);\n // rssListviewItem.setItems(list);\n\n }", "private void displayMessage18(String message) {\n TextView wecyclersReadMore = (TextView) findViewById(R.id.read_more18);\n wecyclersReadMore.setTextColor(Color.BLACK);\n wecyclersReadMore.setText(message);\n wecyclersReadMore.setGravity(Gravity.CENTER);\n }", "public void m() {\n String str;\n d a2 = d.a((Context) this);\n int c2 = a2.c();\n String d2 = a2.d();\n if (c2 > 0 && !TextUtils.isEmpty(d2)) {\n a2.a();\n this.f6131d.setVisibility(0);\n if (c2 > 1) {\n str = getString(R.string.recently_reject_message, new Object[]{d2, Integer.valueOf(c2)});\n } else {\n str = getString(R.string.recently_reject_message_one, new Object[]{d2});\n }\n this.e.setText(str);\n }\n }", "private void showNotification() {\n }", "public void showCollectWeb() {\n mActivity.mHolder.mWebLayout.setVisibility(View.VISIBLE);\n isCollectWebPage = true;\n }", "public void readMore6(View view) {\n String readMore6 = \"Founder: Chinazo Ikenna\" + \"\\nWebsite: http://www.solarkobo.com\";\n displayMessage6(readMore6);\n }", "private void showInboxDetails(){\r\n InboxDetailForm inboxDtlForm = null;\r\n try{\r\n if( ( inboxDtlForm = (InboxDetailForm)mdiForm.getFrame(\r\n \"Inbox\" ))!= null ){\r\n if( inboxDtlForm.isIcon() ){\r\n inboxDtlForm.setIcon(false);\r\n }\r\n inboxDtlForm.setSelected( true );\r\n return;\r\n }\r\n System.out.println(\"In showInboxDetails function\");\r\n inboxDtlForm = new InboxDetailForm(mdiForm);\r\n inboxDtlForm.setVisible(true);\r\n }catch(Exception exception){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tloadmsg();\n\t\t\t\t\tsm.toggle();\n\t\t\t\t\t\n\t\t\t\t}", "private void displayMessage21(String message) {\n TextView flyingDocReadMore = (TextView) findViewById(R.id.read_more21);\n flyingDocReadMore.setTextColor(Color.BLACK);\n flyingDocReadMore.setText(message);\n flyingDocReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage12(String message) {\n TextView jokkoReadMore = (TextView) findViewById(R.id.read_more12);\n jokkoReadMore.setTextColor(Color.BLACK);\n jokkoReadMore.setText(message);\n jokkoReadMore.setGravity(Gravity.CENTER);\n }", "public void updateTurnNotification(boolean b){\n if(b){\n gameNotificationL.setText(\"It's your turn!\");\n }\n else\n gameNotificationL.setText(\"It's not your turn.\");\n }", "public void setShowCommunicationSessions( boolean show )\r\n {\r\n showCommunicationSessions = show;\r\n }", "public void publishStatusMessage(String message,\n Object menuItem,\n boolean saveIfNewMessage)\n {\n new PublishStatusMessageThread(message, menuItem, saveIfNewMessage)\n .start();\n }", "private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }", "public void onMonthlyCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n TextView send_btn = (TextView) findViewById(R.id.send_donation_text);\n\n int string_id = (checked)? R.string.huhi_ui_do_monthly : R.string.huhi_ui_send_tip;\n String btn_text = getResources().getString(string_id);\n send_btn.setText(btn_text);\n }", "private void notifyWishlists(String title) {\n\t\tfor(User u:LibrarySystem.getInstance().users) {\n\t\t\tfor(String wish:u.getWishlist()) {\n\t\t\t\tif(wish.equalsIgnoreCase(title)) {\n\t\t\t\t\tu.notify(\"An item from your wishlist had been added: \" + title + \"!\");\n\t\t\t\t\t//u.getWishlist().remove(title);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void setMessages(List<String> messages) {\n if (this.mMessageView != null) {\n this.mMessageView.setText(TextUtils.join(\"\\n\", messages));\n this.mMessageView.setVisibility(View.VISIBLE);\n }\n }", "public void updateVisible(){\n if (serviceManager.isCustomerQueMode() == true && serviceManager.isManagerMode() == false) {\n this.setVisible(true);\n } else {\n this.setVisible(false);\n }\n// System.out.println(serviceManager.isCustomerQueMode());\n }", "public void readMore21(View view) {\n String readMore21 = \"Website: http://www.flyingdoctorsnigeria.com/\";\n displayMessage21(readMore21);\n }", "boolean hasTopicView();", "public String showNewsAndEvents() throws POLLINGBusinessException\n\t{\n\t\tString flag = CommonConstants.FAILURE_ERROR; \n\t\tthis.populateMenu();\n\t\ttry {\n\t\t\tSystem.out.println(\"Enter in showNewsAndEvents action\");\n\t\t\t\n\t\t\tnewsAndEventsDtoList = new ArrayList<NewsAndEventsDto>();\n\t\t\tnewsAndEventsDtoList = this.getNewsAndEventsServices().getNewsAndEventsDto(newsAndEventsDto);\n\t\t\tSystem.out.println(newsAndEventsDtoList.size());\n\t\t\tflag = CommonConstants.SUCCESS_FLAG;\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"helloooooooooo\");\n\t\treturn flag;\t\t\n\t}", "private void showNotification() {\n\n }", "private void setDefulatMessage(){\n message.setText(\" Chess game is ready to play! White's turn \");\n }", "public void showEmptyListMessage() {\n Toast.makeText(getBaseContext(), \"Lista de opiniones vacia!\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void requestNews() {\n\t\tSystem.out.println(\"xiaoming-requestNews\");\n\t}", "private void showText(String msg)\n {\n\n popup.setText(msg);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }", "private void enableChat()\r\n\t{\r\n\t\ttextFieldMessageSaisie.setDisable(false);\r\n\t\tlistViewConversation.setDisable(false);\r\n\t\tbuttonChoisirFichier.setDisable(false);\r\n\t\ttextFieldFichier.setDisable(false);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jNewsArea = new javax.swing.JTextArea();\n jDontShowAgain = new javax.swing.JCheckBox();\n jButtonClose = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(icontrol.IcontrolApp.class).getContext().getResourceMap(WhatsNew.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(800, 450));\n\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n jNewsArea.setColumns(80);\n jNewsArea.setEditable(false);\n jNewsArea.setLineWrap(true);\n jNewsArea.setRows(5);\n jNewsArea.setText(resourceMap.getString(\"jNewsArea.text\")); // NOI18N\n jNewsArea.setWrapStyleWord(true);\n jNewsArea.setName(\"jNewsArea\"); // NOI18N\n jScrollPane1.setViewportView(jNewsArea);\n\n jDontShowAgain.setText(resourceMap.getString(\"jDontShowAgain.text\")); // NOI18N\n jDontShowAgain.setName(\"jDontShowAgain\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(icontrol.IcontrolApp.class).getContext().getActionMap(WhatsNew.class, this);\n jButtonClose.setAction(actionMap.get(\"Close\")); // NOI18N\n jButtonClose.setText(resourceMap.getString(\"jButtonClose.text\")); // NOI18N\n jButtonClose.setName(\"jButtonClose\"); // NOI18N\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, 0, 0, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(jDontShowAgain)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 454, Short.MAX_VALUE)\n .add(jButtonClose))\n .add(jLabel1))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .add(20, 20, 20)\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 292, Short.MAX_VALUE)\n .add(24, 24, 24)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButtonClose)\n .add(jDontShowAgain))\n .addContainerGap())\n );\n\n pack();\n }", "private void highlightSelectedMessage(boolean ensureSelectionVisible) {\n if (!isViewCreated()) {\n return;\n }\n\n final ListView lv = getListView();\n if (mSelectedMessageId == -1) {\n // No message selected\n lv.clearChoices();\n return;\n }\n\n final int count = lv.getCount();\n for (int i = 0; i < count; i++) {\n if (lv.getItemIdAtPosition(i) != mSelectedMessageId) {\n continue;\n }\n lv.setItemChecked(i, true);\n if (ensureSelectionVisible) {\n Utility.listViewSmoothScrollToPosition(getActivity(), lv, i);\n }\n break;\n }\n }", "private void displayMessage6(String message) {\n TextView solarKoboReadMore = (TextView) findViewById(R.id.read_more6);\n solarKoboReadMore.setTextColor(Color.BLACK);\n solarKoboReadMore.setText(message);\n solarKoboReadMore.setGravity(Gravity.CENTER);\n }", "@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}", "@Override\n\tpublic List<NoticeView> getViewList(boolean pub) {\n\t\treturn getViewList(1, \"title\", \"\", pub);\n\t}" ]
[ "0.64580274", "0.6384877", "0.60067767", "0.5870288", "0.57827866", "0.5670705", "0.56108725", "0.560864", "0.5573449", "0.5532912", "0.55295086", "0.5524892", "0.55160403", "0.54788315", "0.5434118", "0.5418406", "0.5391835", "0.539005", "0.53650135", "0.53558666", "0.5352613", "0.5345985", "0.53426737", "0.53270966", "0.52940726", "0.5285147", "0.52792805", "0.52603835", "0.52303755", "0.5225378", "0.5223408", "0.52233565", "0.522141", "0.5218832", "0.5208166", "0.5206153", "0.52044207", "0.5203165", "0.51883197", "0.5176247", "0.5155099", "0.51532155", "0.5151883", "0.5144459", "0.5142361", "0.51051635", "0.5094051", "0.50932044", "0.5092462", "0.50847954", "0.5081446", "0.50735414", "0.50633234", "0.5057436", "0.50488985", "0.5045997", "0.50444704", "0.5037315", "0.5032773", "0.5029968", "0.50081277", "0.50018233", "0.500181", "0.49997336", "0.49946707", "0.49870002", "0.49841782", "0.4983949", "0.49747652", "0.49734965", "0.4972226", "0.49692947", "0.49686703", "0.4959738", "0.49566165", "0.49534616", "0.49532503", "0.49458537", "0.49454904", "0.49385187", "0.49355295", "0.4932196", "0.49294525", "0.49266857", "0.49219522", "0.4920518", "0.49125078", "0.49124056", "0.49060455", "0.4904272", "0.49026412", "0.49015152", "0.4901102", "0.48979634", "0.48938143", "0.48875943", "0.48856303", "0.4877656", "0.48765138", "0.48738265" ]
0.7008839
0
Start monitor threads, wait for inputs
public synchronized void start() { if (!isRunning) { isRunning = true; inputCount += inputQueue.size(); if (isPausing) { isPausing = false; controlSync.release(numComputeTasks); } else { threads = new Thread[numComputeTasks]; for (int i = 0; i < numComputeTasks; i++) { threads[i] = new Thread(computeTasks[i]); threads[i].start(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitForThread() {\n monitorState = true;\n while (monitorState) {\n synchronized (monitor) {\n try {\n monitor.wait(); // wait until notified\n } catch (Exception e) {}\n }\n }\n }", "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "void runMonitor() {\n threadMonitor.run();\n }", "public void doMonitor();", "public void run() {\n\t\t\tsynchronized (lock) {\n\t\t\t\tfor(int i=0;i<10;i++) {\n\t\t\t\t\twhile(startSemaphore.availablePermits()!=0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Manager:\\t\"+i);\n\t\t\t\t\tstartSemaphore.release(3);\n\t\t\t\t\tlock.notifyAll();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\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}\n\t\t\t}\n\t\t}", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\t\r\n\ttry {\r\n\t System.out.println(\"Creating input pipe\");\r\n\t // create the input pipe\r\n\t pipeIn = pipeSvc.createInputPipe(pipeAdv,this);\r\n\t} \r\n\tcatch (Exception e) {\r\n\t System.out.println(\"Error creating input pipe.\");\r\n\t return;\r\n\t}\r\n\tif (pipeIn == null) {\r\n\t System.out.println(\"Error: cannot open InputPipe\");\r\n\t System.exit(-1);\r\n\t}\r\n\tSystem.out.println(\"Listener waiting for messages...\");\r\n\ttry {\r\n\t Thread.sleep(Integer.MAX_VALUE);\r\n\t} catch (Exception e) {\r\n\t System.out.println(\"Program interrupted\");\r\n\t}\r\n }", "public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }", "public void run() {\n\t\tboolean flag = true;\n\t\t\n\t\t//Testing if all the threads are initialized with some random value.\n\t\twhile(flag) {\n\t\t\tflag = false;\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tif(GlobalInfo.inputs[i]==-1)\n\t\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] snapshot = new int[10];\n\t\tint[] sortedSnapshot;\n\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\t//Checking if queue is empty or not\n\t\t\tif(GlobalInfo.pipeLine.peek() != null)\n\t\t\t{\n\t\t\t\tsnapshot = GlobalInfo.pipeLine.poll();\n\t\t\t\t\n\t\t\t\t//printing snapshot\n\t\t\t\tSystem.out.format(\"The snapshot is: \");\n\t\t\t\tfor (int i = 0; i < snapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", snapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsortedSnapshot = Arrays.copyOf(snapshot, snapshot.length);\n\t\t\t\t\n\t\t\t\tSortHelper.sortForkAndJoin(sortedSnapshot);\n\t\t\t\t\n\t\t\t\t//printing sorted snapshot\n\t\t\t\tSystem.out.format(\"The sorted snapshot is: \");\n\t\t\t\tfor (int i = 0; i < sortedSnapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", sortedSnapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tGlobalInfo.completeThreads=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Performing fusion of data and validating results\n\t\t\t\tfuseAdd1 adder = new fuseAdd1(sortedSnapshot);\n\t\t\t\tThread adderThread = new Thread(adder);\n\t\t\t\tadderThread.start();\n\t\t\t\t\n\t\t\t\tfuseMultiply1 multiplier = new fuseMultiply1(sortedSnapshot);\n\t\t\t\tThread multiplierThread = new Thread(multiplier);\n\t\t\t\tmultiplierThread.start();\n\t\t\t\t\n\t\t\t\tfuseAverage1 averager = new fuseAverage1(sortedSnapshot);\n\t\t\t\tThread averagerThread = new Thread(averager);\n\t\t\t\taveragerThread.start();\n\t\t\t\t\n\t\t\t\twhile(GlobalInfo.completeThreads < 3){\n\t\t\t\t\t//wait for all three fusions to take place.\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void start() {\n\t\tdata = new SharedData(output, input); // handles all shared data\n\t\ttimer = new Thread(new TimeHandler(data)); \n\t\tbuttons = new Thread(new ButtonHandler(input, data, signal));\n\n\t\ttimer.start();\n\t\tbuttons.start();\n\t}", "public void run() {\n\t\tsynchronized (lock) {\n\t\t\tfor(int i=0;i<10;i++) {\n\t\t\t\ttry {\n\t\t\t\t\tstartSemaphore.acquire();\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\tSystem.out.println(Thread.currentThread().getName()+\":\\t\"+i);\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t\tSystem.out.println(\"notified\");\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}\n\n\t}", "void waitAll();", "Monitor createMonitor();", "@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}", "private void waitForWatcherToStart(FileModificationEventWatcher watcher) throws InterruptedException {\n for (int i = 0; i < 10; i++) {\n if (watcher.isWatchRegistered()) {\n break;\n } else {\n Thread.sleep(100);\n }\n }\n if (!watcher.isWatchRegistered()) {\n throw new RuntimeException(\"Failed to start the watcher\");\n }\n }", "void waitToRead();", "public synchronized void waitingToThraeds()\n\t{\n\t\twhile (countOfThreads<numberOfThreads)\n\t\t\n\t\ttry \n\t\t{\n\t\t\twait();\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\tSystem.out.println(\"Interrupted while waiting\");\n\t\t}\n\t \t\n\t\t\n \t\n\t}", "private void waitUntilAllThreadsAreFinished() {\n int index = 1;\n\n while (true) {\n while (index <= noThread) {\n if (carry[index] == -1) {\n index = 1;\n } else {\n index++;\n }\n }\n break;\n }\n }", "public void pollAndProcessInput() {\n\tlong time ;\n int index ;\n\n\t// Set button values. In the Trackd implementation there is only one\n\t// set of buttons for all sensors and valuators.\n for (int i = 0 ; i < buttons.length ; i++) {\n buttons[i] = getButton(i) ;\n }\n\n\t// Set 6DOF sensor values.\n for (index = 0 ; index < trackerCount ; index++) {\n getMatrix(trackerMatrix, index) ;\n t3d[index].set(trackerMatrix) ;\n\t time = System.currentTimeMillis() ;\n sensors[index].setNextSensorRead(time, t3d[index], buttons) ;\n }\n\n\t// Set 2D/3D sensor values from available valuators.\n\tif (valuatorCount > 0) {\n\t for (int i = 0 ; i < valuatorCount && i < 3 ; i++) {\n\t\t// Put values in matrix translational components.\n\t\tvaluatorMatrix[(i*4) + 3] = getValuator(i) ;\n\t }\n\n t3d[index].set(valuatorMatrix) ;\n\t time = System.currentTimeMillis() ;\n sensors[index].setNextSensorRead(time, t3d[index], buttons) ;\n }\n }", "public synchronized void start()\r\n/* 62: */ {\r\n/* 63:185 */ if (this.monitorActive) {\r\n/* 64:186 */ return;\r\n/* 65: */ }\r\n/* 66:188 */ this.lastTime.set(milliSecondFromNano());\r\n/* 67:189 */ long localCheckInterval = this.checkInterval.get();\r\n/* 68:191 */ if ((localCheckInterval > 0L) && (this.executor != null))\r\n/* 69: */ {\r\n/* 70:192 */ this.monitorActive = true;\r\n/* 71:193 */ this.monitor = new TrafficMonitoringTask(null);\r\n/* 72: */ \r\n/* 73:195 */ this.scheduledFuture = this.executor.schedule(this.monitor, localCheckInterval, TimeUnit.MILLISECONDS);\r\n/* 74: */ }\r\n/* 75: */ }", "public static void main(String[] args) {\n SharedBoundedStack buffer = new SharedBoundedStackMonitorIncomplete(MainMonitorIncomplete.bufferSize);\n\n // starting consumer thread\n new Consumer(buffer, MainMonitorIncomplete.consumerServiceTime);\n\n // starting producer thread\n new Producer(buffer, MainMonitorIncomplete.producerServiceTime);\n }", "@Test\n public void waitNotifyTest() throws InterruptedException {\n EventStorage storage=new EventStorage();\n\n // Creates a Producer and a Thread to run it\n Producer producer=new Producer(storage);\n Thread thread1=new Thread(producer);\n\n // Creates a Consumer and a Thread to run it\n Consumer consumer=new Consumer(storage);\n Thread thread2=new Thread(consumer);\n\n // Starts the thread\n thread2.start();\n thread1.start();\n\n\n thread1.join();\n thread2.join();\n\n }", "protected void onThreadStart() {\n\t\tparent.startLock.countDown();\n\t\t//wait for all other threads ready\n\t\ttry {\n\t\t\tparent.startLock.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthreadStartTime = new Date();\n\t}", "public void startResourcesThread() {\r\n\t\t\r\n\t\t//Check lock\r\n\t\tif (resourcesThreadRunning)\r\n\t\t\tlogger.log(Level.INFO, \"Resources Thread already running...\\n\");\r\n\t\telse\r\n\t\t\t//Submit to ExecutorService\r\n\t\t\teventsExecutorService.submit(() -> {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Lock\r\n\t\t\t\t\tresourcesThreadRunning = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Detect if the microphone is available\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Is the Microphone Available\r\n\t\t\t\t\t\tif (!AudioSystem.isLineSupported(Port.Info.MICROPHONE))\r\n\t\t\t\t\t\t\tlogger.log(Level.INFO, \"Microphone is not available.\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Sleep some period\r\n\t\t\t\t\t\tThread.sleep(350);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\tlogger.log(Level.WARNING, null, ex);\r\n\t\t\t\t\tresourcesThreadRunning = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}", "public void run() {\n\t\t// Child threads start here to begin testing-- tests are below\n\t\n\t\t// We suggest writing a series of zero-sum tests,\n\t\t// i.e. lists should be empty between tests. \n\t\t// The interimBarr enforces this.\n\t\ttry {\n\t\t\tcontainsOnEmptyListTest();\n\t\t\tinterimBarr.await();\n\t\t\tsentinelsInEmptyListTest();\n\t\t\tprintResBarr.await();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}", "public synchronized void startWatching(){\n\t\twhile(true) {\n\t\t\tif(Clock.moviesLeft >0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((long)(Math.random() * 1000));\n\t\t\t\t} catch (InterruptedException 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\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\t//if the session is over\n\t\t\t\t\tif(canWatch()){\n\t\n\t\t\t\t\t\t//TODO: What happens when the theater is open or has seats\n\t\t\t\t\t\t// waiting for signal from the clock thread\n\t\t\t\t\t\tDriver.currentVisitors++;\n\t\t\t\t\t\t//Clock.movieScreening();\n\t\t\t\t\t\tSystem.out.println( name + \" Im going into the theater my ticket is \" + Driver.currentVisitors);\n\t\n\t\t\t\t\t}else { // we cannot watch yet \n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(name + \", Leaving the room and waiting in the lobby\");\n\t\t\t\t\t\tDriver.waitingQ++;\n\t\t\t\t\t\tSystem.out.println(\"WAITING Q Before the can watch lock: \"+ Driver.waitingQ);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDriver.canWatchLock.wait();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(name + \", Am off the waiting queue\");\n\t\t\t\t\t\t//end of waiting \n\t\t\t\t\t}//end of else\n\t\t\t\t}//end of the synchronized scope\n\t\t\t\t\n\t\t\t\tif(Driver.currentVisitors == 8 ) {\n\t\t\t\t\tSystem.out.println(\"IM GONNA TRY TO START THE MOVIE\");\n\t\t\t\t\tsynchronized(Driver.startTheMovie) {\n\t\t\t\t\t\tDriver.startTheMovie.notify();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsynchronized(Driver.inTheaterLock) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDriver.inTheaterLock.wait();\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}\n\t\t\t\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\tDriver.canWatchLock.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDriver.currentVisitors = 0;\n\t\t\t\tDriver.waitingQ--;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "public void startWatching(){\n this.listWatcher.start();\n }", "private void startRead() {\n ExecutorService service = Executors.newFixedThreadPool(this.countReadThreads);\n while (!this.files.isEmpty() || !this.isWorkSearch()) {\n service.submit(this.threads.getReadThread());\n }\n service.shutdown();\n }", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void monitor() {\n monitoringActor.tell(new Monitor(), ActorRef.noSender());\n }", "@Override\n\t\tpublic void run() {\n\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\tint detectDistanceFeedback = getDetectDistanceFeedback();\n\t\t\t\twhile (true) {\n\t\t\t\t\tSystemClock.sleep(50);\n\n\t\t\t\t\tdetectDistanceFeedback = getDetectDistanceFeedback();\n\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 2;\n\t\t\t\t\tmsg.obj = detectDistanceFeedback;\n\n\t\t\t\t\tif (detectDistanceFeedback != 2) {\n\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (count++ >= 1) {\n\t\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tLog.i(TAG, \"MDetectDistanceFeedback 333333\");\n\t\t\t}\n\n\t\t}", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "public void monitor() {\n moveTo(1.0, 10);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n }", "public void startThreads() {\n\t\ttry {\n\t\t\tthis.resetTimer();\n\t\t\tIterator<String> it = this.getTimerTaskMap().keySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tString taskId = it.next();\n\t\t\t\tthis.startThread(taskId);\n\t\t\t}\n\t\t} catch (Throwable t) {\n\t\t\t_logger.error(\"error in startThreads\", t);\n\t\t\tthrow new RuntimeException(t);\n\t\t}\n\t}", "public void run() {\n\t\tGenRandomString generator = new GenRandomString();\n\t\tStringToInt converter = new StringToInt();\n\t\t\n\t\tint rawData;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\trawData = converter.convert(generator.generate());\n\t\t\t\n\t\t\t//synchronization to make sure that queue is filled up in the correct order.\n\t\t\tsynchronized(GlobalInfo.enqueueLock){\n\t\t\t\tSystem.out.format(\"%d got the lock.\\n\",deviceNumber);\n\t\t\t\tGlobalInfo.inputs[deviceNumber] = rawData;\n\t\t\t\tGlobalInfo.pipeLine.add(GlobalInfo.inputs);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void handleStartMonitor(SomeArgs args) {\n try {\n if (this.mStartTime == 0) {\n this.mStartTime = ((Long) args.arg1).longValue();\n this.mWakeSource = (String) args.arg2;\n this.mTimeStamp = ((Long) args.arg3).longValue();\n this.mStopTime = 0;\n this.mBlockScreenOnBegin = 0;\n this.mKeyguardDrawn = 0;\n this.mBlockScreenOnEnd = 0;\n this.mSetDisplayStateBegin = 0;\n this.mSetDisplayStateEnd = 0;\n if (!this.mWakeLock.isHeld()) {\n this.mWakeLock.acquire();\n }\n this.mHandler.sendEmptyMessageDelayed(4, 1000);\n args.recycle();\n }\n } finally {\n args.recycle();\n }\n }", "private void askForMonitorValues() throws IOException {\n\t\tString monitorCommand=createCommand(0);\n\t\tSystem.err.println(\"monitorCommand is \"+monitorCommand);\n\t\t\n\t\t\n\t\t\n\t\t//TODO: - how long should we stay synchronized on output?\n\t\t/*\n\t\t * There shouldn't be anything else trying to use output stream at this point\n\t\t */\n\t\tSystem.err.println(\"askForMonitorValues entering sync block at \"+System.currentTimeMillis());\n\t\tsynchronized (toDevice) {\n\t\t\tString cmdLength=String.format(\"%08d\", monitorCommand.length());\n\t\t\tString finalCmdToSend=cmdLength+monitorCommand;\n\t\t\ttoDevice.write(finalCmdToSend.getBytes());\n\t\t\ttoDevice.flush();\n\t\t\tSystem.err.println(\"askForMonitorValues write and flush at \"+System.currentTimeMillis());\n\t\t\tlastCommandSent=finalCmdToSend;\n\t\t}\n\t\tSystem.err.println(\"askForMonitorValues exited sync block at \"+System.currentTimeMillis());\n\t\t\t\t\n\t}", "void startStatisticsMonitor();", "public void start() {\n new Thread(new Runnable() {\n public void run() {\n while (true) {\n // TODO: we may want a way to stop the thread\n try {\n // block until a request arrives\n int x = in.take();\n // compute the answer and send it back\n int y = x * x;\n out.put(new SquareResult(x, y));\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n }\n }).start();\n }", "private void startSearch() {\n for (int i = 0; i < this.threadsSaerch.length; i++) {\n this.threadsSaerch[i] = this.threads.getSearchThread();\n this.threadsSaerch[i].start();\n }\n }", "@Override\r\n public void run() {\n try {\r\n synchronized (lock) {\r\n System.out.println(\"begin wait\");\r\n lock.wait();\r\n System.out.println(\"end wait\");\r\n }\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "public synchronized void start()\n {\n pluginMonitor.start();\n }", "private void waitForAll(CountDownLatch latch) {\n\t\ttry {\n\t\t\tlatch.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void status() {\n Thread blockTread = new Thread() {\n @Override\n public void run() {\n synchronizedMethod();\n }\n };\n blockTread.start();\n\n Thread blockTread2 = new Thread() {\n @Override\n public void run() {\n synchronizedMethod();\n waitWithTimeMethod();\n }\n };\n log.info(blockTread2.getState().name());\n blockTread2.start();\n log.info(blockTread2.getState().name());\n while (true) {\n State state = blockTread2.getState();\n if (state == State.BLOCKED) {\n log.info(state.name());\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.TIMED_WAITING) {\n log.info(state.name());\n notifyMethod();\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.WAITING) {\n log.info(state.name());\n notifyMethod();\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.TERMINATED) {\n log.info(state.name());\n break;\n }\n }\n }", "protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }", "@Override\n\tpublic void run() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tSystem.out.println(\"Reading current input status message\");\n\n\t\t\tBufferedReader br = null;\n\t\t\tStatusInputMsg newMsg = new StatusInputMsg();\n\t\t\ttry {\n\n\t\t\t\tString currentLine;\n\t\t\t\tint inputType = 0;\n\n\t\t\t\tURL filePath = Producer.class.getResource(\"input.txt\");\n\t\t\t\tFile f = new File(filePath.getFile());\n\t\t\t\tbr = new BufferedReader(new FileReader(f));\n\t\t\t\t\n\t\t\t\twhile ((currentLine = br.readLine()) != null) {\n\t\t\t\t\tSystem.out.println(currentLine);\n\t\t\t\t\tif (\"# Section: Conveyor System\".equals(currentLine )) {\n\t\t\t\t\t\tif(!newMsg.isEmpty()){\n\t\t\t\t\t\t\tnewMsg.createFlightToGateMapping();\n\t\t\t\t\t\t\tStatusInputMsg pCopy = new StatusInputMsg();\n\t\t\t\t\t\t\tpCopy.copy(newMsg);\n\t\t\t\t\t\t\tqueue.put(pCopy);\n\t\t\t\t\t\t\tnewMsg.clear();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Following Sleep can be varied to see the effect of processing speed\n\t\t\t\t\t\t\t//on the input capacity planning. Basically we can vary the speed with which\n\t\t\t\t\t\t\t//input is coming.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinputType = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"# Section: Departures\".equals(currentLine )) {\n\t\t\t\t\t\tinputType = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (\"# Section: Bags\".equals(currentLine )) {\n\t\t\t\t\t\tinputType = 3;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch(inputType){\n\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tString[] line1 = currentLine.split(\" \");\n\t\t\t\t\t\tPath path = new Path(line1[0], line1[1], Integer.parseInt(line1[2]));\n\t\t\t\t\t\tnewMsg.getCurrEdge().add(path);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tString[] line2 = currentLine.split(\" \");\n\t\t\t\t\t\tDepartureFlight dp = new DepartureFlight(line2[0], line2[1], line2[2], line2[3]);\n\t\t\t\t\t\tnewMsg.getCurrFlightStatus().add(dp);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tString[] line3 = currentLine.split(\" \");\n\t\t\t\t\t\tBaggage baggage = new Baggage(line3[0], line3[1], line3[2]);\n\t\t\t\t\t\tnewMsg.getCurrBaggage().add(baggage);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (br != null)br.close();\n\t\t\t\t\tif(!newMsg.isEmpty()){\n\t\t\t\t\t\tnewMsg.createFlightToGateMapping();\n\t\t\t\t\t\tStatusInputMsg pCopy = new StatusInputMsg();\n\t\t\t\t\t\tpCopy.copy(newMsg);\n\t\t\t\t\t\tqueue.put(pCopy);\n\t\t\t\t\t\tnewMsg.clear();\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[]args) {\n \n new Thread(\n new Runnable()\n {\n public void run()\n {\n for(int i=0;i<50;i++)\n {\n synchronized(ThreadTest3.class) {\n if(bShouldMain)\n {\n try {\n ThreadTest3.class.wait();}\n catch(InterruptedException e) {\n e.printStackTrace();\n }\n }\n for(int j=0;j<10;j++)\n {\n System.out.println(\n Thread.currentThread().getName()+\n \"i=\"+ i + \",j=\" + j);\n }\n bShouldMain= true;\n ThreadTest3.class.notify();\n } \n } \n }\n }\n ).start();\n \n for(int i=0;i<50;i++)\n {\n synchronized (ThreadTest3.class){\n if(!bShouldMain)\n {\n try {\n ThreadTest3.class.wait();}\n catch(InterruptedException e) {\n e.printStackTrace();\n }\n } \n for(int j=0;j<5;j++)\n {\n System.out.println(\n Thread.currentThread().getName()+ \n \"i=\" + i +\",j=\" + j);\n }\n bShouldMain =false;\n ThreadTest3.class.notify(); \n } \n }\n }", "public static void main(String[] args) {\n MonitorQueue queue = new MonitorQueue(10);\n AtomicInteger num = new AtomicInteger(0);\n IntStream.rangeClosed(0, 5).forEach(\n i -> new Thread(() -> {\n for (; ; ) {\n int andIncrement = num.getAndIncrement();\n queue.produce(andIncrement);\n System.out.println(Thread.currentThread() + \"<---> produce: \" + andIncrement);\n try {\n TimeUnit.MILLISECONDS.sleep(5);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start()\n );\n\n IntStream.rangeClosed(0, 2).forEach(\n i -> new Thread(\n () -> {\n for (; ; ) {\n int consume = queue.consume();\n System.out.println(Thread.currentThread() + \"<---> consume: \" + consume);\n try {\n TimeUnit.MILLISECONDS.sleep(5);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n ).start()\n );\n\n }", "private void listen() {\n doneSignal.reset();\n mouseListener.startListening();\n\n try { doneSignal.await(); }\n catch (InterruptedException ex) { }\n catch (BrokenBarrierException ex) { }\n\n execute(mouseListener.getLastX(), mouseListener.getLastY());\n }", "public void startThreads() {\n\n //Start a new sender thread\n new Thread(new ClientSenderThread(sequenceNumber, eventQueue, socketsForBroadcast, incomingQueue, curTimeStamp, waitToResendQueue)).start();\n //Start a new listener thread\n //new Thread(new ClientListenerThread(socketsForBroadcast, clientTable,receivedQueue,displayQueue, incomingQueue,actionHoldingCount)).start();\n new ConfirmationBroadcast(sequenceNumber, confirmationQueue, socketsForBroadcast, waitToResendQueue, (BlockingQueue) incomingQueue).start();\n new ResendThread(150, timeout, waitToResendQueue, socketsForBroadcast).start();\n\n new IncomingMessageHandleThread(incomingQueue, receivedQueue, waitToResendQueue, confirmationQueue,\n actionHoldingCount, socketsForBroadcast, curTimeStamp, avoidRepeatenceHelper, numberOfPlayers, playerName, sequenceNumber, this).start();\n new ReceivedThread(receivedQueue, displayQueue, waitToResendQueue, incomingQueue, curTimeStamp, socketsForBroadcast,\n localPlayers, actionHoldingCount, playerName, sequenceNumber, numberOfPlayers).start();\n new DisplayThread(displayQueue, clientTable).start();\n new BulletSender(eventQueue).start();\n\n\n }", "public void waitUntilStarted() {\n mStarted.block();\n }", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "public synchronized void startUpdates(){\n mStatusChecker.run();\n }", "public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }", "public void run() {\n Object monitor = new Object();\n\n\n while (true) {\n ResultHolder<VmBindings> resultBindings = null;\n try {\n resultBindings = SynchronousPattern.getBindings(vmProxy, this.desiredBindings.keySet(), TIMEOUT);\n } catch (TimeoutException e) {\n LOGGER.warning(e.getMessage());\n }\n\n if (resultBindings != null) {\n if (!resultBindings.wasSuccessful()) {\n this.errorHandler.handle(resultBindings.getLopError());\n break;\n } else {\n if (this.bindingsChecker.areEquivalent(resultBindings.getSuccess(), this.desiredBindings)) {\n successHandler.handle(resultBindings.getSuccess());\n break;\n } else {\n monitorSleep(monitor, this.pollingInterval);\n }\n }\n }\n }\n\n\n }", "public void startWaitTime(){\r\n\t\twaitTime.start();\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (a) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.wait();\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}\n\t\t\t}", "@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\tlog.info(\"***** 连接池监控 *****\");\r\n\t\t\ttry {\r\n\t\t\t\tmonitor();\r\n\t\t\t\tThread.sleep(1000 * 60L);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void runThreads() {\n\t\tinsertionSort = new InsertionSortDemo(insertionData);\n\t\tquickSort = new QuickSortDemo(quickData);\n\t\t// add change listener\n\t\tinsertionSort.addPropertyChangeListener(this);\n\t\tquickSort.addPropertyChangeListener(this);\n\t\t//start the thread\n\t\tinsertionSort.execute();\n\t\tquickSort.execute();\n\t}", "synchronized void systemStartThreads() throws Exception {\n myHiddenPause = false;\n if (!myGamePause) {\n startThreads();\n }\n }", "private void waitForStart(IOThread iot, IOThread eot) throws InterruptedException {\n while (true) {\n String out = iot.getNext();\n String err = eot.getAvailable();\n if (mVerbose) {\n debugOutput(out, err);\n }\n if ((out == null) && (err == null)) {\n Thread.sleep(10);\n } else if (\"START\".equals(out)) {\n break;\n } else {\n throw new RuntimeException(\"jumble.fast.FastJumbler returned \" + ((out != null) ? out : err + \" on stderr\") + \" instead of START\");\n }\n }\n }", "public void onMonitor(double timestamp, double startTime){\n\t\n\t\tif(timestamp < startTime) {\n\t\t\t//don't start lagging before the start time\n\t\t\t//clear the logs\n\t\t\tlog.clear(); \n\t\t\treturn;\n\t\t}\n\n\t\t//count the number of waiting requests\n\t\tdouble w = 0;\n\t\tfor(Request r: queue){\n\t\t\tif(r.isWaiting()) w++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Monitor Event at time:\" + timestamp);\n\t\tSystem.out.println(\"---------------------\");\n\t\tdouble[] qAndW = new double[2];\n\t\tqAndW[0] = queue.size();\n\t\tqAndW[1] = w;\n\t\t\n\t\tQandW.add(qAndW);\n\t\t\t\t\n\t}", "public void start() {\n\t\ttrackerThread.start();\n\t}", "public synchronized void run() {\n\n boolean keepGoing = true;\n\n while (keepGoing) {\n\n try {\n sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n int count = 0;\n\n try {\n\n count = sInput.available();\n\n if (count > 0) {\n message = sInput.readUTF();\n }\n\n if (isWait) {\n synchronized (this) {\n try {\n wait();\n\n } catch (InterruptedException e) {\n System.out.println(\"Error in waiting\");\n e.printStackTrace();\n }\n }\n }\n\n } catch (IOException e) {\n display(username + \" Exception reading Streams: \" + e);\n e.printStackTrace();\n }\n\n if(count == 0){\n continue;\n }\n\n String[] splitMessage = message.split(\" \");\n\n if(message.equalsIgnoreCase(\"!LOGOUT\")){\n //display(username + \" disconnected with a LOGOUT message.\");\n gameManager.disconnected(this);\n //keepGoing = false;\n break;\n }else if(message.equalsIgnoreCase(\"!WhoIsIn\")){\n writeMsg(\"List of the users connected at \" + simpleDateFormat.format(new Date()) + \"\\n\");\n // send list of active clients\n for (int i = 0; i < clientThreads.size(); ++i) {\n Server.ClientThread ct = clientThreads.get(i);\n writeMsg((i + 1) + \") \" + ct.username + \" since \" + ct.date);\n }\n }else if(canTalk) {\n if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo()\n + \" number of players are ready so far\" + RESET, getClientThreads());\n }else{\n writeMsg(RED + \"you said you are ready before!\" + RESET);\n }\n }else if (!waitingToGo && !isLastMoment) {\n if (message.length() > 0 && message.charAt(0) == '@') {\n Player curPlayer = gameManager.getPlayer(this);\n //String[] decodedMsg = message.split(\" \");\n if (curPlayer instanceof GodFather) {\n gameManager.godFatherShot(message.substring(1), this);\n } else if (curPlayer instanceof LectorDoctor) {\n gameManager.lectorHill(message.substring(1), this);\n } else if (curPlayer instanceof Doctor) {\n gameManager.doctorHill(message.substring(1), this);\n } else if (curPlayer instanceof Detective) {\n gameManager.detectiveAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Professional) {\n gameManager.professionalShot(message.substring(1), this);\n } else if (curPlayer instanceof Psychologist) {\n gameManager.psychologistAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Invulnerable) {\n if (message.substring(1).equalsIgnoreCase(\"!RESULT\")) {\n gameManager.invulnerableAttempt(this);\n }\n } else if (curPlayer instanceof Mayor) {\n if (message.substring(1).equalsIgnoreCase(\"!CANCEL\")) {\n gameManager.mayorAttempt(this);\n }\n }\n }\n else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\")) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n } else {\n boolean confirmation = broadcast(username + \": \" + message, activeClients);\n if (!confirmation) {\n String msg = RED + notification + \"Sorry. No such user exists.\" + notification + RESET;\n writeMsg(msg);\n }\n }\n\n }\n }else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\") && !isLastMoment && !waitingToGo) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n }else if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo() + \" number of players are ready so far\"\n + RESET, getClientThreads());\n }else{\n writeMsg(\"you said you are ready before!\");\n }\n }\n\n }\n // if out of the loop then disconnected and remove from client list\n remove(id);\n close();\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsemaphore.acquire();\n\t\t\t\t\t\tSystem.out.println(\"获得一个信号量,线程\"+Thread.currentThread().getName()+\"准备执行中....\");\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\tSystem.out.println(\"线程\"+Thread.currentThread().getName()+\"执行完毕\");\n\t\t\t\t\t\tsemaphore.release();\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}", "public static void main(String[] args)\n throws InterruptedException\n {\n // Defining threads to accept the jobs\n // ----------------------------------------------------------\n Thread thread1 = new Intermediate(10, \"INT01\");// Instantiate thread1\n Thread thread2 = new Intermediate(50, \"INT02\");// Instantiate thread2\n Thread thread3 = new CPUBound(60, \"CPU01\");// Instantiate thread3\n Thread thread4 = new CPUBound(70, \"CPU02\");// Instantiate thread4\n Thread thread5 = new IOBound(System.in, \"IO01\");// Instantiate thread5\n Thread thread6 = new IOBound(System.in, \"IO02\");// Instantiate thread6\n Thread thread7 = new Intermediate(82, \"INT03\");// Instantiate thread7\n Thread thread8 = new CPUBound(80, \"CPU03\");// Instantiate thread8\n\n // Creating a ArrayList of threads and adding the jobs to the ArrayList\n // ----------------------------------------------------------\n ArrayList<Thread> threadList = new ArrayList<Thread>();\n threadList.add(thread1);\n threadList.add(thread2);\n threadList.add(thread3);\n threadList.add(thread4);\n threadList.add(thread5);\n threadList.add(thread6);\n threadList.add(thread7);\n threadList.add(thread8);\n\n // Creating a FCFS object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n FCFS fcfs = new FCFS(threadList);\n fcfs.run();\n\n // Displaying the results of the FCFS run\n // ----------------------------------------------------------\n\n System.out.println(\"----------------FCFS-----------------------------\");\n for (String key : fcfs.getRun_times().keySet())\n System.out.println(key + \" => \" + fcfs.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Defining a Hash Map with key Long and value Thread. To pair\n // each unique time with a process\n // ----------------------------------------------------------\n Map<Long, Thread> threadList2 = new HashMap<Long, Thread>();\n threadList2.put(fcfs.getRun_times().get(thread1.getName()), thread1);\n threadList2.put(fcfs.getRun_times().get(thread2.getName()), thread2);\n threadList2.put(fcfs.getRun_times().get(thread3.getName()), thread3);\n threadList2.put(fcfs.getRun_times().get(thread4.getName()), thread4);\n threadList2.put(fcfs.getRun_times().get(thread5.getName()), thread5);\n threadList2.put(fcfs.getRun_times().get(thread6.getName()), thread6);\n threadList2.put(fcfs.getRun_times().get(thread7.getName()), thread7);\n threadList2.put(fcfs.getRun_times().get(thread8.getName()), thread8);\n\n // Creating a SJF object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n SJF sjf = new SJF(threadList2);\n sjf.run();\n\n // Displaying the results of the SJF run\n // ----------------------------------------------------------\n System.out.println(\"-----------------SJF-----------------------------\");\n for (String key : sjf.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Creating a RoundRobin object and running it with the previously\n // created ArrayList object holding our processes.\n // ----------------------------------------------------------\n RoundRobin roundRobin = new RoundRobin(threadList);\n roundRobin.run();\n\n // Displaying the results of the RoundRobin run\n // ----------------------------------------------------------\n System.out.println(\"-----------------Round Robin---------------------\");\n for (String key : roundRobin.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n }", "public void initMonitor()\n {\n monitor.stop();\n monitor = new Timeline(new KeyFrame(Duration.millis(100000 / speed), ae ->\n {\n if(lastScore >= score)\n {\n nng.updateFitnessOfCurrent(score);\n loadStart();\n }\n lastScore = score;\n }));\n monitor.setCycleCount(Animation.INDEFINITE);\n if(currentPlayer.equals(\"Trening\"))\n monitor.play();\n }", "public void handleStartedWakingUp() {\n Trace.beginSection(\"KeyguardUpdateMonitor#handleStartedWakingUp\");\n Assert.isMainThread();\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onStartedWakingUp();\n }\n }\n this.mMiuiFaceUnlockManager.setWakeupByNotification(false);\n Trace.endSection();\n }", "@Override\n\t\tpublic void run() {\n\t\t\tfor(int i=1;i<=100;i=i+2){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tlock.lock();\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+i);\n\t\t\t\t\tc1.await();\n\t\t\t\t\tc2.signal();\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}finally{\n\t\t\t\t\tlock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "public void watchAsync() {\n Thread thread = new Thread(this::watch);\n thread.start();\n }", "public void run() {\n\t\tthis.checkConnectedList();\n\t}", "public void executeMonitorsConcurrently(ServerDetail serverDetail) throws InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ClassNotFoundException {\n List<Monitor> monitorList = retrieveMonitorsForServer(serverDetail);\n if (monitorList.size() == 0) {\n System.out.println(\"No monitors found for server (\" + serverDetail.getName() + \") port(\" + serverDetail.getPort() + \") coreName(\" + serverDetail.getCore() + \"). Skipping ...\");\n\n } else {\n System.out.println(\"Found \"+monitorList.size()+\" monitor/s for server (\" + serverDetail.getName() + \") port(\" + serverDetail.getPort() + \") coreName(\" + serverDetail.getCore() + \")\");\n List<Future<MonitorResult>> futures = new ArrayList<Future<MonitorResult>>();\n // Create a pool of threads, numberOfMonitors max jobs will execute in parallel\n ExecutorService monitorsThreadPool = Executors.newFixedThreadPool(monitorList.size());\n for (Monitor monitor : monitorList) {\n futures.add(monitorsThreadPool.submit(monitor));\n }\n\n for (Future f : futures) {\n try {\n // Check if all the threads are finished.\n MonitorResult monitorResult = (MonitorResult) f.get(); // TODO\n } catch (ExecutionException e) {\n System.out.println(\"Exception in executeMonitorsConcurrently, while checking the threads status\");\n e.getCause().printStackTrace();\n }\n }\n }\n System.out.println(\"Finished monitoring server (\" + serverDetail.getName() + \") port(\" + serverDetail.getPort() + \") coreName(\" + serverDetail.getCore() + \")\");\n }", "public static void main(String[] args) {\n\n ArrayList<String> lstNames = null;\n try {\n\n lstNames = readFromFile_getNamesList();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n CountDownLatch latch = new CountDownLatch(1);\n MyThread threads[] = new MyThread[1000];\n for(int i = 0; i<threads.length; i++){\n\n threads[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads.length; i++){\n threads[i].start();\n }\n latch.countDown();\n for(int i = 0; i<threads.length; i++){\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n try {\n System.out.println(\"Sleeeeeeeping....\");\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n latch = new CountDownLatch(1);\n MyThread threads2[] = new MyThread[1000];\n for(int i = 0; i<threads2.length; i++){\n threads2[i] = new MyThread(latch, lstNames);\n }\n for(int i = 0; i<threads2.length; i++){\n threads2[i].start();\n }\n latch.countDown();\n }", "private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }", "private void startServiceThreads() {\n // Do after main thread name has been set\n this.metrics = new MasterMetrics();\n try {\n regionManager.start();\n serverManager.start();\n // Put up info server.\n int port = this.conf.getInt(\"hbase.master.info.port\", 60010);\n if (port >= 0) {\n String a = this.conf.get(\"hbase.master.info.bindAddress\", \"0.0.0.0\");\n this.infoServer = new InfoServer(MASTER, a, port, false);\n this.infoServer.setAttribute(MASTER, this);\n this.infoServer.start();\n }\n // Start the server so everything else is running before we start\n // receiving requests.\n this.server.start();\n } catch (IOException e) {\n if (e instanceof RemoteException) {\n try {\n e = RemoteExceptionHandler.decodeRemoteException((RemoteException) e);\n } catch (IOException ex) {\n LOG.warn(\"thread start\", ex);\n }\n }\n // Something happened during startup. Shut things down.\n this.closed.set(true);\n LOG.error(\"Failed startup\", e);\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Started service threads\");\n }\n }", "@Override\n public synchronized void start() {\n pauseLoop = false;\n if (running) {\n synchronized (unchecked) {\n unchecked.notify();\n }\n } else {\n running = true;\n super.start();\n }\n }", "private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}", "void notifyStart();", "public void startListener(){\n new Thread(() -> this.run()).start();\n }", "public static void main(String... args) {\n ReentrantLock lock = new ManagedReentrantLock();\n Condition condition = lock.newCondition();\n int upto = Runtime.getRuntime().availableProcessors() * 10;\n IntStream.range(0, upto).parallel().forEach(\n i -> {\n lock.lock();\n try {\n System.out.println(i + \": Got lock, now waiting - \" +\n Thread.currentThread().getName());\n condition.awaitUninterruptibly();\n } finally {\n lock.unlock();\n }\n }\n );\n }", "public void run(){\n \t\t\n \t\t//make a fresh list, set gate as closed, register listener\n \t\tmeasurements = new myLL();\n \t\tgate = new CountDownLatch(1);\n \t\tmSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_FASTEST);\t\n \t\t\t\n \t\t//Wait until the stop-measuring-signal. In the mean time,\n \t\t//onSensorChanged events should be firing and measuring.\n\t\t/*\n \t\ttry {\n \t\t\tgate.await();\n \t\t} catch (InterruptedException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n\t\t*/\n \t\t\n \t\t//stop measuring\n \t\tmSensorManager.unregisterListener(this);\n \t\t\n \t\tdouble x = Distance(measurements.getxData(), \n \t\t\t\t\t\tmeasurements.getyData(),\n \t\t\t\t\t\tmeasurements.getzData(),\n \t\t\t\t\t\tmeasurements.gettData());\n \t\t\n \t\t}", "@Override\n\tpublic void run(){\n\t\tLog.v(\"measure\",\"Thread started\");\n\t\t\n\t\twhile(mRun){\n try { \t\n \tsynchronized(this){wait(500);}\n \t\n \t\t\tfor(int i=0;i<numMeasurements;i++){\n \t\t\t\tfloat val=0;\n \t\t\t\tfloat diff=0;\n \t\t\t\tint timeDiv = measurementArray[i].mSource.getTimeDiv();\n \t\t\t\tint voltDiv = measurementArray[i].mSource.getVoltDiv();\n \t\t\t\tString result=null;\n \t\t\t\tMessage msg = new Message();\n \tmsg.what=MSG_MEASUREMENTS;\n \tmsg.arg1=-1;\n \tmsg.arg2=-1;\n \tBundle msgData = new Bundle();\n \t\t\t\t\n \t// Check measurement type, set correct result\n \t\t\t\tswitch(measurementArray[i].mType){\n \t\t\t\tcase 0: \t//delta-T measurement\n \t\t\t\t\tdiff = curt2.getPos()-curt1.getPos();//reversed, because of coordinate system on tablet\n \t\t\t\t\tval = diff/scrnWidth*mTimeConversion[timeDiv]; \n \t\t\t\t\t\n \t\t\t\t\tif(timeDiv<2)\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + \" ns\";\n \t\t\t\t\tif(timeDiv>=2 && timeDiv<=10)\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + \" us\";\n \t\t\t\t\tif(timeDiv>=11 && timeDiv<=19)\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + \" ms\";\n \t\t\t\t\tif(timeDiv>19)\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" s\";\n \t\t\t\t\t\n \t\t\t\t\tbreak;\n \t\t\t\tcase 1: \t//delta-V measurement\n \t\t\t\t\tdiff = curv2.getPos()-curv1.getPos(); //reversed, because of coordinate system on tablet \n \t\t\t\t\tval = diff/scrnHeight*mVoltConversion[voltDiv];\n \t\t\t\t\t\n \t\t\t\t\tif(voltDiv<6)\n \t\t\t\t\t\tresult = String.format(\"%.2f\", val) + \" mV\";\n \t\t\t\t\tif(voltDiv>=6)\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" V\";\n \t\t\t\t\t\n \t\t\t\t\tbreak;\n \t\t\t\tcase 2: \t//maximum\t\n \t\t\t\t\tsynchronized(measurementArray[i].mSource){\n \t\t\t\t\t\tval = measurementArray[i].mSource.getMaximum();\n\t \t\t\t\t\t}\n \t\t\t\t\tval = val/255*mVoltConversion[voltDiv];\n \t\t\t\t\tif(voltDiv<6)\n \t\t\t\t\t\tresult = String.format(\"%.2f\", val) + \" mV\";\n \t\t\t\t\tif(voltDiv>=6)\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" V\";\n \t\t\t\t\t\n \t\t\t\t\tbreak;\n \t\t\t\tcase 3: \t//minimum\n \t\t\t\t\tsynchronized(measurementArray[i].mSource){\n \t\t\t\t\t\tval = measurementArray[i].mSource.getMinimum();\n\t \t\t\t\t\t}\n \t\t\t\t\tval = val/255*mVoltConversion[voltDiv];\n \t\t\t\t\tif(voltDiv<6)\n \t\t\t\t\t\tresult = String.format(\"%.2f\", val) + \" mV\";\n \t\t\t\t\tif(voltDiv>=6)\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" V\";\n \t\t\t\t\tbreak;\n \t\t\t\tcase 4:\t\t//Pk-Pk\n \t\t\t\t\tsynchronized(measurementArray[i].mSource){\n \t\t\t\t\t\tval = measurementArray[i].mSource.getPkPk();\n\t \t\t\t\t\t}\n \t\t\t\t\tval = val/255*mVoltConversion[voltDiv];\n \t\t\t\t\tif(voltDiv<6)\n \t\t\t\t\t\tresult = String.format(\"%.2f\", val) + \" mV\";\n \t\t\t\t\tif(voltDiv>=6)\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" V\";\n \t\t\t\t\tbreak;\n \t\t\t\tcase 5:\t\t//Frequency\t\t\t\t\n \t\t\t\t\tval = measurementArray[i].mSource.getFreq();\n \t\t\t\t\tString append =\" Hz\";\n \t\t\t\t\tif(val/1000<1){\n \t\t\t\t\t\tappend = \" Hz\";\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + append;\n \t\t\t\t\t} else if (val/1000000<1){\n \t\t\t\t\t\tval=val/1000;\n \t\t\t\t\t\tappend = \" kHz\";\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + append;\n \t\t\t\t\t} else if(val/1000000>1){\n \t\t\t\t\t\tval=val/1000000;\n \t\t\t\t\t\tappend = \" MHz\";\n \t\t\t\t\t\tresult=String.format(\"%.2f\",val) + append;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tappend=\" Hz\";\n \t\t\t\t\t\tresult=String.format(\"%.2f\", val)+append;\n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 6:\t\t//Average\n \t\t\t\t\tval = measurementArray[i].mSource.getAverage();\n \t\t\t\t\tval = val/255*mVoltConversion[voltDiv];\n \t\t\t\t\tif(voltDiv<6)\n\t\t\t\t\t\tresult = String.format(\"%.2f\", val) + \" mV\";\n \t\t\t\t\tif(voltDiv>=6)\n\t\t\t\t\t\tresult=String.format(\"%.2f\", val) + \" V\";\n \t\t\t\t\tbreak;\n \t\t\t\tdefault:\n \t\t\t\t\tresult=\"...\";\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tsynchronized(measurementArray[i].mSource){\n\t\t\t\t\t\tmsg.arg1= measurementArray[i].mType;\n\t\t\t\t\t\tmsg.arg2=i;\n\t\t\t\t\t\t\n \t\t\t\t\tmsgData.putString(MEASUREMENT_RESULT, result);\n \t\t\t\t\tmsgData.putInt(SOURCE, measurementArray[i].mChan);\n \t\t\t\t}\n \t\t\t\tmsg.setData(msgData);\n \t\t\tif(msg.arg1!=-1)\n \t\t\t\tmHandler.sendMessage(msg);\n \t\t\t} \t\n }catch(Exception e){Log.e(TAG,e.toString());}\n\t\t}\n\t}", "protected void started() {\n for(MinMaxListener listener : listeners) {\n listener.started();\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\t\n\t\t\t\tThread.sleep(10);\n\t\t\t\tSystem.out.println(\"INicioooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\");\n\t\t\t\trobot1.tomarPiezaImput(GdeMonitor);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tonWakeUp();\n\t\tnextInterval = false;\n\t\twhile (!startEnable) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t\tif (!configData.getChildNodes().isEmpty()) {\n\t\t\tfor (MeshNode i : configData.getChildNodes()) {\n\t\t\t\tmeshNetwork.sendStartData(this, i, new StartMeshData(highestStartNumber));\n\t\t\t}\n\t\t}\n\t\tTimer t = new Timer();\n\t\tt.schedule(new NodeTimerTask(this), MONOTONIC_INTERVAL, MONOTONIC_INTERVAL);\n\t\tdo {\n\t\t\tsetSleeping(false);\n\t\t\twaitForDataFromMesh();\n\t\t\tforwardDataToMesh();\n\t\t\tsetSleeping(true);\n\t\t\tlog(\"Next interval pending!\");\n\t\t\twhile (!nextInterval) {\n\t\t\t\tsleep(10);\n\t\t\t}\n\t\t\tnextInterval = false;\n\t\t} while (true);\n\t}", "@Override\n\tpublic void run() {\n\t\twhile(true){\n \tlock.lock();\n \ttry{\n\t \tif(observers.isEmpty()){\n\t \t\treturn;\n\t \t}\n \t}\n \tfinally{\n \t\tlock.unlock();\n \t}\n }\n\t}", "ProcessRunner waitFor();", "@Override\n public void run() {\n //start the threads\n t1.start();\n t2.start();\n\n LOGGER.log(Level.FINE, \"Starting Server...\");\n\n //wait for the threads to exit.\n try {\n t1.join();\n t2.join();\n } catch (InterruptedException ex) {\n }\n\n //halt (clean up resources).\n halt();\n }", "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}", "public static void main(String[] args) throws InterruptedException {\n Thread t1 = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (MONITOR1) {\n try {\n System.out.println(\"Thread1: MONITOR1 locked\");\n Thread.sleep(1000);\n System.out.println(\"Thread1: trying to lock MONITOR2\");\n synchronized (MONITOR2) {\n System.out.println(\"Thread1: MONITOR2 locked\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n });\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (MONITOR2) {\n try {\n System.out.println(\"Thread2: MONITOR2 locked\");\n Thread.sleep(1000);\n System.out.println(\"Thread2: trying to lock MONITOR3\");\n synchronized (MONITOR3) {\n System.out.println(\"Thread2: MONITOR3 locked\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n });\n Thread t3 = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (MONITOR3) {\n try {\n System.out.println(\"Thread3: MONITOR3 locked\");\n Thread.sleep(1000);\n System.out.println(\"Thread3: trying to lock MONITOR4\");\n synchronized (MONITOR4) {\n System.out.println(\"Thread3: MONITOR4 locked\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n });\n Thread t4 = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (MONITOR4) {\n try {\n System.out.println(\"Thread4: MONITOR4 locked\");\n Thread.sleep(1000);\n System.out.println(\"Thread4: trying to lock MONITOR1\");\n synchronized (MONITOR1) {\n System.out.println(\"Thread4: MONITOR1 locked\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n });\n t1.start();\n t2.start();\n t3.start();\n t4.start();\n t1.join();\n t2.join();\n t3.join();\n t4.join();\n }", "@Override\n\tpublic void run() {\n\t\tthis.avancaPessoa(200, 4, 6);\n\t\ttry {\n\t\t\tsemaforo.acquire();\n\t\t\tthis.portaPessoa(1, 2);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsemaforo.release();\n\t\t\tthis.passaPessoa();\n\t\t}\n\t}", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }", "public void run() {\n long num = numEvents.get();\n long lastnum = lastNumEvents.get();\n long evps = (num-lastnum)/App.METRICS_PER_SECOND;\n lastNumEvents.set(num);\n System.out.println(\"Consumer[\"+\n nnaammee+\"]: cursorRestarts=\"+cursorRestarts.get()\n +\" numEvents=\"+num\n +\" events/second=\"+evps\n +\" totalNumEvents=\"+totalNumEvents.get());\n }", "@Override\n\t\tpublic void run() {\n\t\t\tfor(int i=2;i<=100;i=i+2){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tlock.lock();\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+i);\n\t\t\t\t\tc1.signal();\n\t\t\t\t\tc2.await();\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}finally{\n\t\t\t\t\tlock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "public synchronized void start() throws Exception {\r\n\t\twhile (true) {\r\n\t\t\tterminal.println(\"Waiting for contact\");\r\n\t\t\tsendQueue();\r\n\t\t\tthis.wait();\r\n\t\t}\r\n\t}", "public synchronized void start_scn_updates() {\r\n \tif (scn_update_thread == null){\r\n scn_update_thread = new Thread(this);\r\n scn_update_thread.start();\r\n \t}\r\n \tscn_ready = true;\r\n \trepaint();\r\n \tscn_repaint = true;\r\n }" ]
[ "0.66223353", "0.63439006", "0.6275542", "0.5986141", "0.58877003", "0.58487505", "0.58393437", "0.5833714", "0.57352436", "0.5712914", "0.5693452", "0.56528467", "0.56422853", "0.56370467", "0.56056714", "0.55962735", "0.5592272", "0.55875385", "0.5586645", "0.5566652", "0.5563783", "0.556239", "0.5555502", "0.55489933", "0.5547955", "0.5541125", "0.55395555", "0.5526986", "0.5512848", "0.55114233", "0.5502453", "0.5500019", "0.5470857", "0.5456557", "0.54555476", "0.5431609", "0.54233676", "0.5414267", "0.5404242", "0.5394703", "0.5366701", "0.5351842", "0.53471285", "0.53463596", "0.53451115", "0.5343633", "0.53414214", "0.53404903", "0.53268003", "0.53252715", "0.5322959", "0.5305733", "0.52950215", "0.5287285", "0.52856976", "0.5285519", "0.52638716", "0.52598476", "0.5254406", "0.5252265", "0.5249308", "0.52357465", "0.5233145", "0.5228046", "0.52156305", "0.521186", "0.5210774", "0.5203788", "0.5194078", "0.5189522", "0.518626", "0.51858664", "0.51838905", "0.5172896", "0.51693803", "0.51674044", "0.51671815", "0.5165127", "0.5164156", "0.51639646", "0.51634043", "0.5159154", "0.51538813", "0.5148212", "0.51451665", "0.5144029", "0.51432836", "0.51405", "0.51346225", "0.5118316", "0.51164883", "0.51155776", "0.51123875", "0.5109984", "0.51089966", "0.5106212", "0.5103705", "0.50948566", "0.5092902", "0.5092783" ]
0.58149296
8
Stop submission Send StopSign to the queue based on the number of tasks
public synchronized void stop() { if (isPausing) { start(); } if (isRunning) { isRunning = false; for (int i = 0; i < numComputeTasks; i++) { inputQueue.addLast(new ComputeStopSign()); } ComputeUtil.acquire(taskSync, numComputeTasks); for (int i = 0; i < threads.length; i++) { boolean isFailed = false; do { isFailed = false; try { threads[i].join(); } catch (Exception e) { isFailed = true; } } while (isFailed); } threads = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendStopMessage() {\n // A default stop type message\n FirebaseMessage stopMessage = new FirebaseMessage(\"STOP\", null, \"STOP\");\n if (!messageQueue.offer(stopMessage)) {\n logger.error(\"The stop message could not be sent\");\n }\n }", "public void stopSending ();", "void stopReportingTask();", "public void stop() {\n if (!sequencer.tryAcquire())\n throw new IllegalStateException(\"Can't acquire lock\");\n int errcount = 0;\n final StringBuilder b = new StringBuilder();\n\n try {\n switchState(STOPPED,\"stop\");\n\n errcount += cancelSessionTasks(b);\n errcount += stopDirectoryScanners(b);\n } finally {\n sequencer.release();\n }\n\n sendQueuedNotifications();\n if (errcount > 0) {\n b.insert(0,\"stop partially failed with \"+errcount+\" error(s):\");\n throw new RuntimeException(b.toString());\n }\n }", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "public void stopTask() {\r\n\t\tquit = true;\r\n\t}", "public void stopSending() {\n shouldSend = false;\n connection.getChannel()\n .getApi()\n .getThreadPool()\n .removeAndShutdownSingleThreadExecutorService(threadName);\n }", "private int cancelSessionTasks(StringBuilder b) {\n int errcount = 0;\n // Stops scheduled tasks if any...\n //\n for (SessionTask task : tasklist) {\n try {\n task.cancel();\n tasklist.remove(task);\n } catch (Exception ex) {\n errcount++;\n append(b,\"\\t\",ex);\n }\n }\n return errcount;\n }", "public void stop(){\r\n\t\tmyTask.cancel();\r\n\t\ttimer.cancel();\r\n\t}", "public void submitWorkTasks(WorkflowDefine workflowDefine) {\n\t\t\n\t\t\n\t}", "@Override\n public void stop() {\n Thread t = new Thread(server::stopOrderProcess);\n t.setName(\"Server close task\");\n t.start();\n serverFrame.enableControls(false, false);\n enableControls(false, false);\n }", "public void Stop(){\r\n\t\trunning = false;\r\n\t\thelp.print(\"Closing server, waiting for workers to complete\");\r\n\t}", "private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as possible to avoid thread lock.\n // Note: the method removeRequest from SendQ is synchronized.\n // fix bug jaw.00392.B\n //\n synchronized(this){\n setRequestStatus(stAborted);\n }\n informSession.getSnmpQManager().removeRequest(this);\n synchronized(this){\n requestId=0;\n }\n }", "public void stopWork() {\n stopWork = true;\n }", "@Override\n public void cleanUpPendingTask(String workflowExtRef) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Starting cleanup task for APIStateChangeWSWorkflowExecutor for :\" + workflowExtRef);\n }\n String errorMsg;\n super.cleanUpPendingTask(workflowExtRef);\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n apiMgtDAO.deleteWorkflowRequest(workflowExtRef);\n } catch (APIManagementException axisFault) {\n errorMsg = \"Error sending out cancel pending application approval process message. cause: \" + axisFault\n .getMessage();\n throw new WorkflowException(errorMsg, axisFault);\n }\n }", "void endTask();", "void queueShrunk();", "private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }", "public long stop() {\n return timer.stop(task);\n }", "@Override\n\tpublic void stop() {\n\t\tstopTask();\n\t\tmPlaybillPath = null;\n\t\tmResPlaybill = null;\n\t}", "public abstract void reportStop(PendingTransactionActions pendingActions);", "public String Signoff(String clientsName) {\n \t\tint size = jobsent.size();\n \t\tint fetch = 0;\n \t\tif (size > 0) {\n \t\t\tfetch = JobSearch(clientsName, jobsent);\n \n \t\t\t// If fetch is 0 or -1 than no jobs have been assigned to that\n \t\t\t// client\n \t\t\tif (fetch < 0) {\n \t\t\t\treturn \"Failed\";\n \t\t\t} else {\n \t\t\t\tjobsent.remove(fetch); // Remove it from the queue\n \t\t\t\treturn \"Done\";\n \t\t\t}\n \t\t}\n \t\treturn \"Failed\";\n \t}", "@Override\n\tpublic void run() {\n\t\tNewDeliverTaskManager ndtm = NewDeliverTaskManager.getInstance();\n\t\tif(ndtm != null && ndtm.isNewDeliverTaskAct) {\n\t\t\tNewDeliverTaskManager.logger.error(\"[旧的任务库删除线程启动成功][\" + this.getName() + \"]\");\n\t\t\twhile(isStart) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tint count2 = 0;\n\t\t\t\tif(needRemoveList != null && needRemoveList.size() > 0) {\n\t\t\t\t\tList<DeliverTask> rmovedList = new ArrayList<DeliverTask>();\n\t\t\t\t\tfor(DeliverTask dt : needRemoveList) {\n\t\t\t\t\t\tDeliverTaskManager.getInstance().notifyDeleteFromCache(dt);\n\t\t\t\t\t\trmovedList.add(dt);\n\t\t\t\t\t\tcount1++;\n\t\t\t\t\t\tif(count1 >= 300) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.needRemoveList) {\n\t\t\t\t\t\tfor(DeliverTask dt : rmovedList) {\n\t\t\t\t\t\t\tneedRemoveList.remove(dt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(heartBeatTime);\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\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错1:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(teRemoveList != null && teRemoveList.size() > 0) {\n\t\t\t\t\tList<TaskEntity> teRemovedList = new ArrayList<TaskEntity>();\n\t\t\t\t\tfor(TaskEntity te : teRemoveList) {\n\t\t\t\t\t\tTaskEntityManager.getInstance().notifyDeleteFromCache(te);\n\t\t\t\t\t\tteRemovedList.add(te);\n\t\t\t\t\t\tcount2++;\n\t\t\t\t\t\tif(count2 >= 100) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.teRemoveList) {\n\t\t\t\t\t\tfor(TaskEntity te : teRemovedList) {\n\t\t\t\t\t\t\tteRemoveList.remove(te);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(30000);\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\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错2:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tTransitRobberyManager.logger.error(\"[旧的任务库删除线程关闭][\" + this.getName() + \"]\");\n\t}", "void stop(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "public static void cancelAll() {\n\n ImageDownloadTask[] taskArray = new ImageDownloadTask[sInstance.downloadWorkQueue.size()];\n\n // Populates the array with the task objects in the queue\n sInstance.downloadWorkQueue.toArray(taskArray);\n\n /*\n * Locks on the singleton to ensure that other processes aren't mutating Threads, then\n * iterates over the array of tasks and interrupts the task's current Thread.\n */\n synchronized (sInstance) {\n for (ImageDownloadTask imageDownloadTask : taskArray) {\n Thread thread = imageDownloadTask.getCurrentThread();\n if (null != thread) {\n thread.interrupt();\n }\n }\n }\n }", "public void removeTasks() {\n\t\t\r\n\t}", "public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}", "@Test\n public void abortAllPendingSisImportsTest() {\n String accountId = null;\n // Boolean response = api.abortAllPendingSisImports(accountId);\n\n // TODO: test validations\n }", "public ActionForward killBatch( ActionMapping mapping, ActionForm form, HttpServletRequest request,\r\n HttpServletResponse response )\r\n throws IOException, ServletException\r\n {\r\n String id = request.getParameter( \"taskId\" );\r\n\r\n WatchedTaskManager.getInstance( request ).killTask( id );\r\n\r\n return mapping.findForward( \"success\" );\r\n }", "public void resendRequestingQueue() {\n Logger.m1416d(TAG, \"Action - resendRequestingQueue - size:\" + this.mRequestingQueue.size());\n printRequestingQueue();\n printRequestingCache();\n while (true) {\n Requesting requesting = (Requesting) this.mRequestingQueue.pollFirst();\n if (requesting == null) {\n return;\n }\n if (requesting.request.getCommand() == 2) {\n this.mRequestingQueue.remove(requesting);\n this.mRequestingCache.remove(requesting.request.getHead().getRid());\n } else {\n requesting.retryAgain();\n sendCommandWithLoggedIn(requesting);\n }\n }\n }", "private void doStop()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n \"STOP\", \r\n null,\r\n null,\r\n null, \r\n null,\r\n false,\r\n null,\r\n null ) );\r\n }", "public void stop() {\n \t\t\tif (isJobRunning) cancel();\n \t\t}", "@PostMapping(value = \"/stop\")\n public ResponseEntity stop(){\n try {\n CommandExecutor.execute(Commands.shutdown);\n return ResponseEntity.ok().build();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return ResponseEntity.status(500).build();\n }", "void stopTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "public void stopIntake(){\n\t\tintake.set(0);\n }", "private void IntervalEndMessageAndSend0() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tString topic;\n\t\t\tIterator<String> ier = TopicMap.keySet().iterator();\n\t\t\twhile(ier.hasNext()){\n\t\t\t\ttopic = ier.next();\n\t\t\t\t//AsyncPushOneFlow(topic, new byte[](new Key(new byte[]{0,0,0}),Sub4SketchingKVStream.endSignal));\n\t\t\t}\n\t\t\t}", "Integer deleteAllCompletedJobs() throws GWTJahiaServiceException;", "public void stopTask()\n {\n viewer.stopViewer(); \n }", "private void stopQueuedItemsSender() {\n if (ctrlSenderTimerRunning) {\n ctrlSenderTimer.cancel();\n }\n\n ctrlSenderTimerRunning = false;\n }", "public void stopTask() {\n if(canRunTaskThread != null)\n canRunTaskThread.set(false);\n }", "private int exec_cleanup_pdl_stop (PendingTask task) {\n\n\t\t//--- Get payload\n\n\t\tOpCleanupPDLStop payload = new OpCleanupPDLStop();\n\n\t\ttry {\n\t\t\tpayload.unmarshal_task (task);\n\t\t}\n\n\t\t// Invalid task\n\n\t\tcatch (Exception e) {\n\n\t\t\t// Display the error and log the task\n\n\t\t\tsg.task_sup.display_invalid_task (task, e);\n\t\t\treturn RESCODE_TASK_CORRUPT;\n\t\t}\n\n\t\t//--- Poll status\n\n\t\t// Disable cleanup\n\n\t\tsg.cleanup_sup.set_cleanup_disabled();\n\n\t\t//--- Final steps\n\n\t\t// Log the task\n\n\t\treturn RESCODE_SUCCESS;\n\t}", "public void stopTask(Version v) {\n\t_stoppedTasks.add(v);\n\t_log.stopTaskLocal(v);\n }", "public void triggerTimeout(List<TOMMessage> requestList) {\n\n ObjectOutputStream out = null;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n int regency = lcManager.getNextReg();\n \n requestsTimer.stopTimer();\n requestsTimer.Enabled(false);\n\n\t// still not in the leader change phase?\n if (lcManager.getNextReg() == lcManager.getLastReg()) {\n\n lcManager.setNextReg(lcManager.getLastReg() + 1); // define next timestamp\n\n regency = lcManager.getNextReg(); // update variable \n\n // store messages to be ordered\n lcManager.setCurrentRequestTimedOut(requestList);\n\n // store information about messages that I'm going to send\n lcManager.addStop(regency, this.controller.getStaticConf().getProcessId());\n\n //execManager.stop(); // stop consensus execution\n\n //Get requests that timed out and the requests received in STOP messages\n //and add those STOPed requests to the client manager\n addSTOPedRequestsToClientManager();\n List<TOMMessage> messages = getRequestsToRelay();\n\n try { // serialize content to send in STOP message\n out = new ObjectOutputStream(bos);\n\n if (messages != null && messages.size() > 0) {\n\n\t\t\t\t\t//TODO: If this is null, then there was no timeout nor STOP messages.\n //What to do?\n byte[] serialized = bb.makeBatch(messages, 0, 0, controller.getStaticConf().getUseSignatures() == 1);\n out.writeBoolean(true);\n out.writeObject(serialized);\n } else {\n out.writeBoolean(false);\n logger.warn(\"Strange... did not include any request in my STOP message for regency \" + regency);\n }\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n\n out.close();\n bos.close();\n\n // send STOP-message \n logger.info(\"Sending STOP message to install regency \" + regency + \" with \" + (messages != null ? messages.size() : 0) + \" request(s) to relay\");\n \n LCMessage stop = new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.STOP, regency, payload);\n requestsTimer.setSTOP(regency, stop); // make replica re-transmit the stop message until a new regency is installed\n communication.send(this.controller.getCurrentViewOtherAcceptors(), stop);\n\n } catch (IOException ex) {\n logger.error(\"Could not serialize STOP message\", ex);\n } finally {\n try {\n out.close();\n bos.close();\n } catch (IOException ex) {\n logger.error(\"Could not serialize STOP message\", ex);\n }\n }\n\n }\n\n processOutOfContextSTOPs(regency); // the replica might have received STOPs\n // that were out of context at the time they\n // were received, but now can be processed\n \n startSynchronization(regency); // evaluate STOP messages\n \n }", "void Ending(long t) //to be called after each second, decrements\r\n {\n boolean check = false;\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n //move deadlines of migrating tasks\r\n Job temp = servers[i].migratingPool.front;\r\n\r\n while (temp != null) {\r\n temp.deadline--;\r\n temp = temp.next;\r\n\r\n }\r\n //fixed tasks\r\n temp = servers[i].pool.front;\r\n while (temp != null) {\r\n temp.deadline--;\r\n temp = temp.next;\r\n\r\n }\r\n\r\n if (servers[i].checkDeadlineEDFOS(t) == true) { //if something empties\r\n check = true; //call event later\r\n }\r\n\r\n }//end of server num looop\r\n\r\n if (check == true) {\r\n event(t);\r\n }\r\n\r\n }", "private void stopRecording(){\n String postString = ConvertToJSON();\n\n // SendToServer sender = new SendToServer();\n // try {\n // sender.Send(postString,\"\");\n // } catch (IOException e) {\n // e.printStackTrace();\n //}\n }", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }", "public void ClearSentQueue() {\n \t\tjobsent.clear();\n \t}", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "public void finishRequest ()\r\n\t{\r\n\t\tthis.simTime = this.sim.getTimer();\r\n\t\t//Debug/System.out.println(Fmt.time(this.simTime)\r\n\t\t//Debug/\t+ \": <finishRequest> \" + this.request);\r\n\r\n\t\t//\tRemove request from the queue.\r\n\t\tthis.removeRequest();\r\n\t\t//\tGet the next request from the queue.\r\n\t\tthis.nextRequest();\r\n\t\t//\tIf there is one, process it.\r\n\t\t//\tIf not, then the next request scheduled will begin immediately.\r\n\t\tif (this.request != null) this.procRequest();\r\n\t}", "private void deleteQueue(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteQueue method started;\");\n JsonObject requestJson = new JsonObject();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/queue\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n String queueId = routingContext.request().getParam(\"queueId\");\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson, authenticationInfo, authHandler -> {\n LOGGER.debug(\"Info: Authenticating response ;\".concat(authHandler.result().toString()));\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult = managementApi.deleteQueue(queueId, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: Deleting Queue\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "@Stop(priority = 99)\n void stop() {\n for (List<ListenerInvocation> list : listenersMap.values()) {\n if (list != null) list.clear();\n }\n\n if (syncProcessor != null) syncProcessor.shutdownNow();\n }", "public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }", "public String stop()\r\n {\r\n return \"{ \\\"action\\\": \\\"stop\\\" }\";\r\n }", "public void decrease() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count--;\r\n\t\t\t\tLog.d(LOGTAG, \"Decremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}", "public synchronized void abort() {\r\n\t\tif (done) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdone = true;\r\n\r\n\t\tabortScheduledTasks();\r\n\t}", "void cancelAllSimulations(String jobId);", "public void stop() {\r\n isRunning = false;\r\n System.out.println(\"Stop sim\");\r\n }", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "public void stopMAS(int deadline) throws Exception;", "void cronTrimActivityQueue();", "public static void submitPendingOperations()\n {\n DELEGATE.submitPendingOperations();\n }", "private void finishRequests(){\n\t\tpeer.getRequests().removeAll(finishedRequestsList);\n\t\tfinishedRequestsList.clear();\n\t}", "void topQueue(int job, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "public abstract void stopThreadsAtSafePoint();", "public void stopIt() {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_stop_cpm__FINEST\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(killed) });\n\n dumpState();\n\n stopped = true;\n killed = true;\n if (!isRunning) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_already_stopped__FINEST\",\n new Object[] { Thread.currentThread().getName() });\n // Already stopped\n return;\n }\n // try {\n // Change global status\n isRunning = false;\n // terminate this thread if the thread has been previously suspended\n synchronized (lockForPause) {\n if (pause) {\n pause = false;\n lockForPause.notifyAll();\n }\n }\n // Let processing threads finish their work by emptying all queues. Even during a hard\n // stop we should try to clean things up as best as we can. First empty process queue or work\n // queue, dump result of analysis into output queue and let the consumers process that.\n // When all queues are empty we are done.\n\n // The logic below (now commented out) has a race condition -\n // The workQueue / outputQueue can become (temporarily) empty, but then\n // can be filled with the eof token\n // But this code proceeds to stop all the CAS processors,\n // which results in a hang because the pool isn't empty and the process thread waits for\n // an available cas processor forever.\n\n // Fix is to not kill the cas processors. Just let them finish normally. The artifact producer\n // will stop sending new CASes and send through an eof token, which causes normal shutdown to\n // occur for all the threads.\n\n /*\n * if (workQueue != null) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_consuming_queue__FINEST\", new Object[]\n * { Thread.currentThread().getName(), workQueue.getName(),\n * String.valueOf(workQueue.getCurrentSize()) });\n * \n * } int cc = workQueue.getCurrentSize(); while (workQueue.getCurrentSize() > 0) {\n * sleep(MAX_WAIT_ON_QUEUE); if (System.getProperty(\"DEBUG\") != null) { if (cc <\n * workQueue.getCurrentSize()) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_wait_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName(), workQueue.getName(),\n * String.valueOf(workQueue.getCurrentSize()) });\n * \n * } cc = workQueue.getCurrentSize(); } } } } if (outputQueue != null) { while\n * (outputQueue.getCurrentSize() > 0) { sleep(MAX_WAIT_ON_QUEUE); if\n * (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb( Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_wait_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName(), outputQueue.getName(),\n * String.valueOf(outputQueue.getCurrentSize()) }); } } if\n * (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_done_consuming_queue__FINEST\", new\n * Object[] { Thread.currentThread().getName() }); } }\n * \n * for (int i = 0; processingUnits != null && i < processingUnits.length && processingUnits[i]\n * != null; i++) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n * UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n * \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_stop_processors__FINEST\", new Object[]\n * { Thread.currentThread().getName(), String.valueOf(i) }); }\n * processingUnits[i].stopCasProcessors(false); }\n * \n * } catch (Exception e) { if (UIMAFramework.getLogger().isLoggable(Level.FINER)) {\n * e.printStackTrace(); } UIMAFramework.getLogger(this.getClass()).logrb(Level.FINER,\n * this.getClass().getName(), \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n * \"UIMA_CPM_exception__FINER\", new Object[] { Thread.currentThread().getName(), e.getMessage()\n * }); }\n */\n }", "public void stopPropose(int instanceId, int destination);", "public synchronized void requestStop() \n\t{\n\t\tstoprequested = true;\n\t}", "public void finishJob(View v) {\n JobScheduler jobScheduler = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n List<JobInfo> allPendingJobs = jobScheduler.getAllPendingJobs();\n if (allPendingJobs.size() > 0) {\n // Finish the last one\n int jobId = allPendingJobs.get(0).getId();\n jobScheduler.cancel(jobId);\n Toast.makeText(\n MainActivity.this, String.format(getString(R.string.cancelled_job), jobId),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(\n MainActivity.this, getString(R.string.no_jobs_to_cancel),\n Toast.LENGTH_SHORT).show();\n }\n }", "public void stopBurst() {\n this.mHasBurstStoped = true;\n Log.d(TAG, \"stopBurst\");\n this.mAppController.setShutterEnabled(true);\n int receivedCount = this.mReceivedBurstNum;\n this.mReceivedBurstNum = 0;\n this.mHandler.removeMessages(3);\n updateParametersFlashMode();\n clearFocusWithoutChangingState();\n if (this.mCameraState == 8 || this.mCameraState == 9 || this.mCameraState == 10) {\n abortOptimizedBurstShot();\n Log.w(TAG, \"parameters post update\");\n if (receivedCount != 0) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Burst current burst num is \");\n stringBuilder.append(this.mBurstNumForOneSingleBurst);\n Log.w(tag, stringBuilder.toString());\n if (this.mBurstShotCheckQueue.setCapacity(receivedCount)) {\n showSavingHint(receivedCount);\n }\n this.mHandler.post(new Runnable() {\n public void run() {\n PhotoModule.this.mUI.updateBurstCount(0);\n }\n });\n }\n }\n setCameraState(1);\n HelpTipsManager helpTipsManager = this.mAppController.getHelpTipsManager();\n if (!(this.mBurstShotNotifyHelpTip || helpTipsManager == null)) {\n helpTipsManager.onBurstShotResponse();\n this.mBurstShotNotifyHelpTip = true;\n }\n this.mHandler.removeMessages(8);\n Message msg = Message.obtain();\n msg.what = 8;\n this.mHandler.sendMessageDelayed(msg, 500);\n }", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "public final void stopAll() {\n for (BotTaskInterface bt : TASKS) {\n LOG.info(\"Stoping BotTask {}\", bt.getName());\n bt.stop();\n }\n EXECUTOR_SERVICE.shutdown();\n }", "private void doBack() {\n\t\tif (!haveTaskRunning) {\r\n\t\t\tfinish();\r\n\t\t} else if (mStep == READ_BAGLOACK) { // 读袋锁阶段,初始化信息,启用码\r\n\t\t\tmVReadBagLock.setDoing(false);\r\n\t\t\tmBagInItTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == READ_UHF) { // 读TID\r\n\t\t\tmVReadUhfLock.setDoing(false);\r\n\t\t\tmReadInitEPCTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmStep = READ_BAGLOACK;\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == NET_CHECK ) { \r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmVNetCheck.setDoing(false);\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t\t//更新袋锁,索引,条码,封签信息,标志位\r\n\t\t} else if (mStep == UPDATE_BAGLOCK) { // \r\n\t\t\tmVUpdateBagLock.setDoing(false);\r\n\t\t\tmWriteRfidTask.stop();\r\n\t\t\thaveTaskRunning = false;\r\n\t\t// 将条码等数据发送到服务器验证,是否已经封签过\r\n\t\t} \r\n\t}", "protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}", "void shutdown()\n {\n run = false;\n try\n {\n join();\n }\n catch (InterruptedException ex)\n {\n Activator.getLogger().log(Level.WARNING, \"JCACommandThread shutdown\", ex);\n }\n Activator.getLogger().log(Level.FINE, \"JCACommandThread queue reached up to {0} entries\", max_size_reached);\n }", "public void sendStop(){\n if (isNetworkGame()){\n sender.println(\"stop\");\n sender.flush();\n }\n }", "public void stopRequest()\r\n\t{\r\n\t\tnoStopRequested = false;\r\n\t\tinternalThread.interrupt();\r\n\t}", "@Override\n public void stop() throws IOException {\n ToDoData.getInstance().storeTasks();\n }", "private static synchronized void requestStop() {\n stopRequested = true;\n }", "@Override\n public void noMoreTasks(Long appId, boolean terminate) {\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.Event.NO_MORE_TASKS.getId(), Tracer.Event.NO_MORE_TASKS.getType());\n }\n\n LOGGER.info(\"No more tasks for app \" + appId);\n // Wait until all tasks have finished\n ap.noMoreTasks(appId);\n // Retrieve result files\n LOGGER.debug(\"Getting Result Files \" + appId);\n ap.getResultFiles(appId);\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n }", "@Test\r\n public void test_stop() throws InterruptedException {\r\n final CountDownLatch expectedTimeoutReceivedLatch = new CountDownLatch(1);\r\n final CountDownLatch timeoutWhichShouldNeverBeReceivedLatch = new CountDownLatch(2);\r\n final IExpiryAction<Long> timeoutAction = new IExpiryAction<Long>() {\r\n @Override\r\n public void onTimeout(final Long payload) {\r\n //\r\n // count-down our latches. The first latch only requires one\r\n // invocation, the second expects two (though the second should\r\n // never be received)\r\n //\r\n expectedTimeoutReceivedLatch.countDown();\r\n timeoutWhichShouldNeverBeReceivedLatch.countDown();\r\n }\r\n };\r\n\r\n final int taskTimeout = 100;\r\n final ExpiryViceroy<Long> timeoutManager = ExpiryViceroy.start(timeoutAction, taskTimeout,\r\n TimeUnit.MILLISECONDS);\r\n\r\n //\r\n // ensure it's running - add a task which will expire\r\n //\r\n timeoutManager.onStartTask(Long.valueOf(1));\r\n final boolean timeoutReached = expectedTimeoutReceivedLatch.await(1, TimeUnit.SECONDS);\r\n Assert.assertTrue(\"timeout reached\", timeoutReached);\r\n\r\n //\r\n // now kill the timeout manager ...\r\n //\r\n timeoutManager.stop();\r\n\r\n //\r\n // ... and submit another task.\r\n //\r\n timeoutManager.onStartTask(Long.valueOf(2));\r\n final boolean timeoutNeverReceived = timeoutWhichShouldNeverBeReceivedLatch.await(taskTimeout + 100,\r\n TimeUnit.MILLISECONDS);\r\n Assert.assertFalse(\"a second timeout should never have been called\", timeoutNeverReceived);\r\n }", "private void runWithoutJobId() {\n if (numJobsToDelete.isPresent() && numJobsToDelete.get() <= 0) {\n handleBadRequest(ERROR_NON_POSITIVE_JOBS_TO_DELETE);\n return;\n }\n int defaultedDaysOld = daysOld.orElse(DEFAULT_DAYS_OLD);\n // Only generate the detailed response payload if there aren't too many jobs involved.\n boolean verbose =\n numJobsToDelete.isPresent() && (numJobsToDelete.get() <= DEFAULT_MAX_NUM_JOBS_TO_DELETE);\n StringBuilder payload = new StringBuilder();\n\n // Since findEligibleJobsByJobName returns only a certain number of jobs, we must loop through\n // until we find enough, requesting deletion as we go.\n int numJobsProcessed = 0;\n DateTime cutoffDate = clock.nowUtc().minusDays(defaultedDaysOld);\n Optional<String> cursor = Optional.empty();\n do {\n Optional<Integer> numJobsToRequest =\n Optional.ofNullable(\n numJobsToDelete.isPresent() ? numJobsToDelete.get() - numJobsProcessed : null);\n EligibleJobResults batch =\n mapreduceEntityCleanupUtil.findEligibleJobsByJobName(\n jobName.orElse(null), cutoffDate, numJobsToRequest, force.orElse(false), cursor);\n cursor = batch.cursor();\n // Individual batches can come back empty if none of the returned jobs meet the requirements\n // or if all jobs have been exhausted.\n if (!batch.eligibleJobs().isEmpty()) {\n String payloadChunk = requestDeletion(batch.eligibleJobs(), verbose);\n if (verbose) {\n payload.append(payloadChunk);\n }\n numJobsProcessed += batch.eligibleJobs().size();\n }\n // Stop iterating when all jobs have been exhausted (cursor is absent) or enough have been\n // processed.\n } while (cursor.isPresent()\n && (!numJobsToDelete.isPresent() || (numJobsProcessed < numJobsToDelete.get())));\n\n if (numJobsProcessed == 0) {\n logger.atInfo().log(\n \"No eligible jobs found with name '%s' older than %d days old.\",\n jobName.orElse(\"(any)\"), defaultedDaysOld);\n payload.append(\"No eligible jobs found\");\n } else {\n logger.atInfo().log(\"A total of %d job(s) processed.\", numJobsProcessed);\n payload.append(String.format(\"A total of %d job(s) processed\", numJobsProcessed));\n }\n response.setPayload(payload.toString());\n }", "private void cancelAllTasks() {\n if(artistTask != null) {\n artistTask.cancel(true);\n artistTask = null;\n }\n }", "long getExcutorTasksInWorkQueueCount();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlong nowTime = System.currentTimeMillis();\n\t\t\t\t\t//Logger.debug(\"测试主动回答线程================================系统时间\" + nowTime);\n\t\t\t\t\tif (nowTime - mIStartTime <= timeNum + 1000 && nowTime - mIStartTime >= timeNum) {\n\t\t\t\t\t\tmICount++;\n\t\t\t\t\t\tcall.OnEnd();\n\t\t\t\t\t\tsetStartTime(nowTime);\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t}", "public void stop() {}", "public void finishTask() {\n\t\t\n\t}", "public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}", "public int getPauseAfterSendAllParameters() \n {\n return 0;\n }", "public void stopWaitTime(){\r\n\t\twaitTime.stop();\r\n\t}", "void releaseTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);", "public void finish() {\n\t\ttask.run();\n\t\ttask.cancel();\n\t}", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tVolleyHelper.cancelRequest(Constants.badgeList);\n\t}", "public void halt() {\n\t\t// Task can not currently be halted.\n\t}", "public void killIt() {\n isRunning = false;\n killed = true;\n hardKill = true;\n\n dumpState();\n if (UIMAFramework.getLogger().isLoggable(Level.INFO)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_killing_cpm__INFO\",\n new Object[] { Thread.currentThread().getName() });\n }\n if (workQueue != null) {\n while (workQueue.getCurrentSize() > 0) {\n workQueue.dequeue();\n }\n }\n if (outputQueue != null) {\n while (outputQueue.getCurrentSize() > 0) {\n outputQueue.dequeue();\n }\n }\n if (casPool != null) {\n synchronized (casPool) {\n casPool.notifyAll();\n }\n }\n if (workQueue != null) {\n Object[] eofToken = new Object[1];\n // only need one member in the array\n eofToken[0] = new EOFToken();\n workQueue.enqueue(eofToken);\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_terminate_pipelines__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(killed) });\n // synchronized (workQueue) { // redundant - enqueue call above does this\n // workQueue.notifyAll();\n // }\n }\n\n }", "public static void banker(){\n while(terminatedCount < taskList.size()){\n releaseArr = new int [numResources];\n\n // first address any blocked tasks\n addressWaitingBanker();\n // address any unblocked tasks\n addressNonWaitingBanker();\n // update released resources\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n\n }", "@FXML\n public void stopCapture(ActionEvent event) throws IOException {\n \t// disable stop and enable start\n \tstopButton.setDisable(true);\n startButton.setDisable(false);\n \n // show inspection size until shutdown\n sizeOfQueueTitle.setVisible(true);\n sizeOfQueueValue.setVisible(true);\n sizeOfQueueValue.setText(String.valueOf(Capture.getInspectionQueue().size()));\n \n Stopper stop = new Stopper(handle);\n \n ex.shutdown();\n allThreads.execute(stop);\n allThreads.shutdown();\n\n editRuleFileButton.setDisable(false);\n editRuleFilePath.setDisable(false);\n \n }", "@Override\n public boolean onStopJob(JobParameters job) {\n if (mTasksData != null) {\n mTasksData.cancel(true);\n }\n return true;\n }", "public void stopSpinning()\n {\n scheduler.shutdown();\n startupLock.lock();\n spinning = false;\n }", "public void stopPropose(int instanceId);" ]
[ "0.58734095", "0.56234145", "0.5535843", "0.54784185", "0.54487544", "0.54211646", "0.5378747", "0.53591096", "0.5323122", "0.53134197", "0.5300729", "0.52753204", "0.5274664", "0.52628154", "0.5260014", "0.5245087", "0.5240846", "0.523213", "0.5216457", "0.5167944", "0.51434726", "0.5143077", "0.51381105", "0.5137466", "0.5135537", "0.512471", "0.51131904", "0.51111716", "0.51008654", "0.50980675", "0.50974786", "0.5084737", "0.50845635", "0.50816685", "0.50802493", "0.50756514", "0.50691295", "0.5061583", "0.50589645", "0.5056124", "0.50537735", "0.5047573", "0.5035905", "0.50275964", "0.5020414", "0.5015255", "0.500537", "0.4999993", "0.49928454", "0.49887034", "0.4983824", "0.49812317", "0.49800795", "0.4980005", "0.49762255", "0.49751627", "0.49745226", "0.4971378", "0.49685222", "0.49648437", "0.4960987", "0.49586177", "0.49558032", "0.49556544", "0.4954378", "0.49529728", "0.4943304", "0.49399146", "0.49306026", "0.49298704", "0.49251685", "0.49249512", "0.49066368", "0.49046877", "0.49018902", "0.49002016", "0.48943532", "0.48926312", "0.48909107", "0.48890343", "0.4881958", "0.48707741", "0.4870214", "0.48677048", "0.48621774", "0.48617175", "0.48616675", "0.48589647", "0.48586586", "0.4858624", "0.48546338", "0.48473302", "0.4841463", "0.4838376", "0.4821749", "0.48128194", "0.48119703", "0.4810385", "0.4808772", "0.48069206" ]
0.5259808
15
If no output is available, wait for one
public synchronized Object waitOutput() { Object output = null; if (hasOutput()) { boolean isFailed = false; do { try { output = outputQueue.take(); isFailed = false; } catch (Exception e) { if (output == null) { isFailed = true; } else { isFailed = false; } // Interrupt may happen when waiting for // an element is available e.printStackTrace(); } } while (isFailed); outputCount++; } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void waitUntilCommandFinished() {\n }", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "ProcessRunner waitFor();", "void waitToRead();", "void suspendOutput();", "@Override\n \tprotected void doWaitExecution() throws CoreException {\n \t\ttry {\n \t\t\tstderrObserver.join();\n \t\t} catch (InterruptedException e1) {\n \t\t\te1.printStackTrace();\n \t\t}\n //\t\tSystem.err.println(\"stderr finished\");\n \t\ttry {\n \t\t\tstdoutObserver.join();\n \t\t} catch (InterruptedException e1) {\n \t\t\te1.printStackTrace();\n \t\t}\n //\t\tSystem.err.println(\"stdout finished\");\n \t\t/*\n \t\t * Still experience has shown that remote process might not have yet terminated, although stdout and stderr is closed.\n \t\t */\n \t\ttry {\n \t\t\tprocess.waitFor();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Ignore\n \t\t}\n \t}", "public Status waitUntilFinished();", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "public void waitForData() {\n waitForData(1);\n }", "public void waitMainMessStringInOutput() {\n for (String mainStringsMes : mainStringsMess) {\n try {\n IDE.OUTPUT.waitForSubTextPresent(mainStringsMes);\n } catch (Exception e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n }", "void waitToWrite();", "boolean waitForProcessOutput (Process proc, String pattern) {\r\n\r\n\t\tBufferedReader stdInput = new BufferedReader(new \r\n\t\t InputStreamReader(proc.getInputStream()));\r\n\r\n\t\twhile (true) {\r\n\t\t\tString s;\r\n\t\t\ttry {\r\n\t\t\t\ts = stdInput.readLine();\r\n\t\t\t\tif (s.contains(\"pattern\"))\r\n\t\t\t\t\treturn true;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "boolean hasOutput();", "protected void waitForProgress(PrintWriter out, ProgressObject po) {\n po.addProgressListener(new ProgressListener() {\n String last = null;\n public void handleProgressEvent(ProgressEvent event) {\n String msg = event.getDeploymentStatus().getMessage();\n if(last != null && !last.equals(msg)) {\n emit(last);\n }\n last = msg;\n }\n });\n while(po.getDeploymentStatus().isRunning()) {\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace(out);\n }\n }\n return;\n }", "public void waitCommandEnd()\n {\n System.out.println(\"Wait cmd\");\n //Set a flag in order to informe that we wait a end command\n ContextManager.getCMDHandler().setWaiting(true);\n //Wait the command end\n ContextManager.getCMDHandler().waitEndCmd();\n //Remove the flag\n ContextManager.getCMDHandler().setWaiting(false);\n System.out.println(\"End Wait cmd\");\n }", "private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "private String waitPrint(){return \"waiting for other players...\";}", "public boolean processOutput();", "int waitFor(String variable);", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "public boolean hasOutput() {\n return output_ != null;\n }", "protected void notifyResult(OUTPUT output)\n {\n if (!resultProduced)\n {\n mListener.onResult(mContext, output);\n futureValue.setValue(output);\n\n resultProduced = true;\n\n if (chained != null)\n {\n chained.execute(output);\n }\n }\n\n }", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }", "private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "void requestOutput();", "private void askForMonitorValues() throws IOException {\n\t\tString monitorCommand=createCommand(0);\n\t\tSystem.err.println(\"monitorCommand is \"+monitorCommand);\n\t\t\n\t\t\n\t\t\n\t\t//TODO: - how long should we stay synchronized on output?\n\t\t/*\n\t\t * There shouldn't be anything else trying to use output stream at this point\n\t\t */\n\t\tSystem.err.println(\"askForMonitorValues entering sync block at \"+System.currentTimeMillis());\n\t\tsynchronized (toDevice) {\n\t\t\tString cmdLength=String.format(\"%08d\", monitorCommand.length());\n\t\t\tString finalCmdToSend=cmdLength+monitorCommand;\n\t\t\ttoDevice.write(finalCmdToSend.getBytes());\n\t\t\ttoDevice.flush();\n\t\t\tSystem.err.println(\"askForMonitorValues write and flush at \"+System.currentTimeMillis());\n\t\t\tlastCommandSent=finalCmdToSend;\n\t\t}\n\t\tSystem.err.println(\"askForMonitorValues exited sync block at \"+System.currentTimeMillis());\n\t\t\t\t\n\t}", "private native int waitUntilMessageAvailable0(int port, int handle)\n throws IOException;", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "public void processOutput() {\n\n\t}", "@Override\n\tpublic Future<RpcResult<Void>> noinputOutput() {\n\t\tLOG.info(\"noinputOutput is called.\");\n\t\treturn Futures.immediateFuture( RpcResultBuilder.<Void> success().build() );\n\t}", "int waitFor(String variable, int count);", "private void waitForConnection() throws IOException {\n\n\t\t\tSystem.out.println(\"Waiting for connection\" + myConID + \"\\n\");\n\t\t\tconnection = server.accept(); // allow server to accept connection\n\t\t\tSystem.out.println(\"Connection \" + myConID + \" received from: \"\n\t\t\t\t\t+ connection.getInetAddress().getHostName());\n\t\t}", "protected void finalizeSystemOut() {}", "public void waitFor() {\n try {\n myProcess.waitFor();\n }\n catch (final InterruptedException ie) {\n final AssertionError error = new AssertionError(\n \"Failed to wait for the process to exit gracefully.\");\n error.initCause(ie);\n\n throw error;\n }\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "protected int waitUntilMessageAvailable00(int handle) \n throws IOException {\n return waitUntilMessageAvailable0(m_iport, handle);\n }", "public abstract void onWait();", "public void readWait()\n {\n try{\n waitLock.lock();\n while(readSector != -1){\n \t readDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "private void waitForResponse(InputStream mmInputStream, long timeout) throws IOException {\n int bytesAvailable;\n\n while (true) {\n bytesAvailable = mmInputStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n byte[] readBuffer = new byte[1024];\n mmInputStream.read(packetBytes);\n\n for (int i = 0; i < bytesAvailable; i++) {\n byte b = packetBytes[i];\n\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length);\n final String data = new String(encodedBytes, \"US-ASCII\");\n\n writeOutput(\"Received:\" + data);\n\n return;\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n }\n }\n }", "private boolean waitForAcknowledgement(InputStream input) throws IOException {\r\n byte[] ack = new byte[1];\r\n int result = input.read(ack);\r\n return result == 1;\r\n }", "public void logReadWait()\n {\n try{\n waitLock.lock();\n while(logReadSector != -1){\n \t logReadDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "private static void ensurePrintOrder() throws InterruptedException {\n\t\t// Pause the thread to allow output to catch up\n\t\tSystem.out.flush();\n\t\tSystem.err.flush();\n\t\tTimeUnit.MILLISECONDS.sleep(1);\n\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "private ShellStatus getCmdOutput() {\n ShellStatus status = RUNNING;\n\n while (!stdOut.buffer.isEmpty()) {\n String line = stdOut.buffer.remove(0);\n LOG.trace(String.format(\"lockId=%s, shell line:=%s \", lockId, line));\n\n if (\"END_OF_SCRIPT\".equals(line)) {\n if (!hasErrors()) {\n status = SUCCESS;\n } else {\n status = PSSHELL_ERROR;\n }\n } else {\n command.addOutputLine(line);\n }\n }\n\n if (!stdErr.buffer.isEmpty()) {\n while (!stdErr.buffer.isEmpty()) {\n String errorLine = stdErr.buffer.remove(0);\n LOG.trace(\"CallerId: \" + lockId + \" error line: \" + errorLine);\n command.addErrorLine(errorLine);\n }\n status = PSSHELL_ERROR;\n }\n\n command.setReturnCode(status);\n return status;\n }", "public void waitForConnection() throws IOException {\n if(this.createThread == null) {\n /* in unit tests there is a race condition between the test\n thread and those newly created tests to establish a connection.\n\n Thus, this call could be in the right order - give it a\n second chance\n */\n\n try {\n Thread.sleep(this.waitInMillis);\n } catch (InterruptedException ex) {\n // ignore\n }\n\n if(this.createThread == null) {\n // that's probably wrong usage:\n throw new IOException(\"must start TCPStream thread first by calling start()\");\n }\n }\n\n\n while(!this.fatalError && this.socket == null) {\n try {\n Thread.sleep(this.waitInMillis);\n } catch (InterruptedException ex) {\n // ignore\n }\n }\n }", "public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }", "public final void run() {\n int breaked = 0;\n\n while (!isFinish()) {\n try {\n wait(100);\n } catch (InterruptedException e) {\n // ignore\n } catch (Exception e) {\n // ignore\n }\n try {\n System.out.println(\"Exit value: \" + process.exitValue());\n finish = true;\n } catch (Exception e) {\n // ignore\n }\n\n if (getInputStream() != null) {\n try {\n byte[] byt = new byte[process.getInputStream().available()];\n int readed = process.getInputStream().read(byt);\n if (readed > 0) {\n getInputStream().write(byt, 0, readed);\n getInputStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n\n if (getErrorStream() != null) {\n try {\n byte[] byt = new byte[process.getErrorStream().available()];\n int readed = process.getErrorStream().read(byt);\n if (readed > 0) {\n getErrorStream().write(byt, 0, readed);\n getErrorStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n }\n }", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "public void waitUntilStarted() {\n mStarted.block();\n }", "private void printCommandOutput(InputStream in, Channel channel,boolean showOutput) throws Exception\n\t{\n\t\tbyte[] tmp = new byte[1024];\n\t\twhile(true)\n\t\t{\twhile(in.available() > 0)\n\t\t\t{\tint i = in.read(tmp, 0, 1024);\n\t\t\t\tif (i < 0) break;\n\t\t\t\tif(showOutput) soutConsole.appendLine(new String(tmp, 0, i));\n\t\t\t}\n\t\t\tif (channel.isClosed())\n\t\t\t{\tif(showOutput)\n\t\t\t\t\tsoutConsole.appendLine(\"exit-status: \"+ channel.getExitStatus());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tsoutConsole.appendLine(\"Error: \"+e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void waitForStart(IOThread iot, IOThread eot) throws InterruptedException {\n while (true) {\n String out = iot.getNext();\n String err = eot.getAvailable();\n if (mVerbose) {\n debugOutput(out, err);\n }\n if ((out == null) && (err == null)) {\n Thread.sleep(10);\n } else if (\"START\".equals(out)) {\n break;\n } else {\n throw new RuntimeException(\"jumble.fast.FastJumbler returned \" + ((out != null) ? out : err + \" on stderr\") + \" instead of START\");\n }\n }\n }", "final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }", "private void waitConfigData() {\n\t\tstartListening();\n\t\twhile (!configDataSet) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t}", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "private boolean no_output() {\n\t\treturn _outcaptures.size() > 0 || _outhides.size() > 0;\n\t}", "public static void idle(){\n Logger.getGlobal().log(Level.INFO,\" Waiting....\");\n }", "public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }", "protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }", "private synchronized void process()\n{\n boolean waiter = process_set.isEmpty();\n\n while (waiter || process_set.size() > 0) {\n try {\n\t wait(0);\n }\n catch (InterruptedException e) { }\n if (process_set.size() > 0) waiter = false;\n dumpProcesses();\n }\n}", "private void readIt() throws IOException, InterruptedException\n {\n //resets the buffer and reads from it\n outVideo.println(\"==>\");\n outVideo.flush();\n if(!initializationMode)\n while (!inKeyboard.ready())\n {\n Thread.sleep(50);\n }\n msgIN = inKeyboard.readLine();\n }", "public abstract InputStream stdout();", "public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }", "int poll();", "void waitAll();", "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "public void waitForClients() throws IOException {\r\n try {\r\n while (this.running) {\r\n System.out.println(\"Waiting for a client ...\");\r\n Socket socket = serverSocket.accept();\r\n new ClientThread(socket).start();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n } finally {\r\n serverSocket.close();\r\n }\r\n }", "private void waitForConnection() throws IOException{\n\t\tshowMessage(\"\\n Waiting for a Punk Ass Bitch to connection... \\n \");\n\t\tConnection = server.accept();\n\t\tshowMessage(\"Now connected to \" + Connection.getInetAddress().getHostName() + \". Punk.\");\n\t\t//this is your own IP address, the machine running the the code\n\t\t//\n\t\t\n\t}", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "public void ex02() {\n\n boolean hasFinished = false;\n\n\n if (hasFinished==true) {\n printResults();\n }\n\n\n }", "public void waitForEndOfVerticalBlank();", "void redirectOutput() {\n Process process = _vm.process();\n _errThread = new StreamRedirectThread(\"error reader\", process.getErrorStream(), System.err);\n _outThread = new StreamRedirectThread(\"output reader\", process.getInputStream(), System.out);\n _errThread.start();\n _outThread.start();\n }", "private void watch() {\n ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE);\n while (true) {\n try {\n int numSelected = selector.select();\n if (numSelected == 0) {\n continue;\n }\n Set<SelectionKey> selectedKeys = selector.selectedKeys();\n Iterator<SelectionKey> iterator = selectedKeys.iterator();\n while (iterator.hasNext()) {\n SelectionKey key = iterator.next();\n iterator.remove();\n SocketChannel channel = ((SocketChannel) key.channel());\n int numReadBytes = channel.read(buffer);\n boolean noMessage = numReadBytes == 0;\n if (noMessage) {\n continue;\n }\n\n String message = new String(buffer.array(), StandardCharsets.UTF_8).replace(\"\\u0000\", \"\");\n System.out.print(message);\n Arrays.fill(buffer.array(), (byte) 0);\n buffer.clear();\n }\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n }\n }", "void reportOutput()\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal())\n {\n FBUtilities.sleepQuietly(csvUpdatePeriodMs);\n doReportOutput(false);\n }\n\n doReportOutput(true);\n }", "@Override\n\tpublic void run() {\n\t\twhile(!exit) {\n\t\t\t//Do something\n\t\t\tgetInput();\n\t\t}\n\t}", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "@Override\n public void run() {\n\n while (true){\n\n try {\n String serverOutput = fromServer.readLine(); // Attempt to read from the server\n if (serverOutput != null && !serverOutput.trim().equals(\"\\n\") && !serverOutput.trim().equals(\"\")){\n //System.out.println(\"[server] \" + serverOutput); // If we have something that's not nonsense, print it\n Text output = new Text(\"[server] \"+ serverOutput);\n feed.getChildren().add(output);\n }\n sleep(200); // Wait .2 seconds to print something again\n } catch (InterruptedException e){\n e.printStackTrace();\n } catch (IOException e){\n }\n catch (NullPointerException e){\n }\n }\n }", "@Override\n public int checkStatus(){\n return InputOutputController.STATUS_READY;\n }", "public void receive() throws IOException, InterruptedException\n {\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Send string from external nc process\n new Thread( new Runnable()\n {\n @Override\n public void run()\n {\n try {\n process.getOutputStream().write( inputFromProcess.getBytes() );\n process.getOutputStream().flush();\n if( netCat instanceof UdpNetCat ) {\n Thread.sleep( 500 );\n process.getOutputStream().write( UdpNetCat.DISCONNECT_SEQUENCE.getBytes() );\n process.getOutputStream().flush();\n }\n process.getOutputStream().close();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }\n } ).start();\n\n // Receive string from external nc process\n netCat.createOutput();\n netCat.execute( RECEIVE.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertThat( result.op, is( RECEIVE ));\n String line = netCat.getOutputString();\n Log.i( CLASS_NAME, line );\n assertThat( line, is( INPUT_NC ));\n }", "public String read() {\n synchronized (this) {\n while (!answerReady) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "private void askForCurrentSettings() throws IOException {\n\t\tString monitorCommand=createCommand(4);\n\t\tSystem.err.println(\"monitorCommand is \"+monitorCommand);\n\t\t//TODO: - how long should we stay synchronized on output?\n\t\t/*\n\t\t * There shouldn't be anything else trying to use output stream at this point\n\t\t */\n\t\tSystem.err.println(\"askForCurrentSettings entering sync block at \"+System.currentTimeMillis());\n\t\tsynchronized (toDevice) {\n\t\t\tString cmdLength=String.format(\"%08d\", monitorCommand.length());\n\t\t\tString finalCmdToSend=cmdLength+monitorCommand;\n\t\t\ttoDevice.write(finalCmdToSend.getBytes());\n\t\t\ttoDevice.flush();\n\t\t\tSystem.err.println(\"askForCurrentSettings write and flush at \"+System.currentTimeMillis());\n\t\t\tlastCommandSent=finalCmdToSend;\n\t\t}\n\t\tSystem.err.println(\"askForCurrentSettings exited sync block at \"+System.currentTimeMillis());\n\t\t\n\t}", "public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}", "@After\n\tpublic void backOutput() {\n\t\tSystem.setOut(this.stdout);\n\t}", "protected abstract long waitOnQueue();", "@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }", "protected void waitForTracingEvents()\n {\n try\n {\n Stage.TRACING.executor().submit(() -> {}).get();\n }\n catch (Throwable t)\n {\n JVMStabilityInspector.inspectThrowable(t);\n logger.error(\"Failed to wait for tracing events\", t);\n }\n }", "public static void waitForIdle() {\n waitForIdle(null);\n }", "public void runUntilExit() {\n boolean isExit = false;\n while (!isExit) {\n try {\n ui.showLine();\n String fullCommand = ui.readCommand();\n Command c = Parser.parseCommand(fullCommand);\n agent.handleCommand(c, ui, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n ui.showError(e.getMessage());\n } finally {\n ui.showLine();\n }\n }\n }", "private void WaitTalk() {\n // to restart as touched screen.\n if (this.mRestartF) this.RestartTalk();\n }", "public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }", "void waitStartGameString();" ]
[ "0.6533618", "0.6510953", "0.64324206", "0.63818383", "0.6376951", "0.6207946", "0.62063193", "0.6095573", "0.6079499", "0.60733134", "0.60272574", "0.5983817", "0.5973005", "0.5881891", "0.58096784", "0.5779502", "0.57679456", "0.5767849", "0.57381713", "0.570961", "0.5709167", "0.5672987", "0.56571716", "0.5649477", "0.56096464", "0.55963016", "0.55572134", "0.5544558", "0.5538797", "0.5522618", "0.5516829", "0.54931915", "0.54823756", "0.54743326", "0.54561466", "0.54452634", "0.5410336", "0.54057914", "0.5392173", "0.5377794", "0.5374006", "0.5370441", "0.5361876", "0.5356504", "0.53479844", "0.53231525", "0.5322356", "0.5305961", "0.53030646", "0.5301174", "0.52945334", "0.5290796", "0.5282602", "0.5264776", "0.5249597", "0.52348894", "0.5208622", "0.5208118", "0.52004594", "0.5191061", "0.51748365", "0.5174277", "0.5168933", "0.515019", "0.51484793", "0.5136931", "0.5116197", "0.510948", "0.510399", "0.5096923", "0.50948185", "0.509424", "0.5080815", "0.5075614", "0.5072847", "0.506923", "0.5062763", "0.5052548", "0.5050209", "0.50431997", "0.5039328", "0.50381863", "0.5033928", "0.50335604", "0.5023453", "0.501738", "0.5012324", "0.5010562", "0.49985838", "0.49973533", "0.4992327", "0.49892855", "0.4987812", "0.49875143", "0.49874192", "0.49864247", "0.49842685", "0.49813905", "0.49768835", "0.49759257" ]
0.7732471
0
Default Constructor for a scale Initializes all variables to valid but bad values Used for later customization
public Scale() { this.scaleName = "no scale"; this.scaleDegrees = "no degrees"; this.degreeCount = -99; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "public ScaleControl() {\n super();\n }", "public void setScale(Scale scale) {\n this.scale = scale;\n }", "public HeatedObjectScale() {\n colors = new java.awt.Color[256];\n colors[ 0] = new java.awt.Color(0, 0, 0);\n colors[ 1] = new java.awt.Color(35, 0, 0);\n colors[ 2] = new java.awt.Color(52, 0, 0);\n colors[ 3] = new java.awt.Color(60, 0, 0);\n colors[ 4] = new java.awt.Color(63, 1, 0);\n colors[ 5] = new java.awt.Color(64, 2, 0);\n colors[ 6] = new java.awt.Color(68, 5, 0);\n colors[ 7] = new java.awt.Color(69, 6, 0);\n colors[ 8] = new java.awt.Color(72, 8, 0);\n colors[ 9] = new java.awt.Color(74, 10, 0);\n colors[ 10] = new java.awt.Color(77, 12, 0);\n colors[ 11] = new java.awt.Color(78, 14, 0);\n colors[ 12] = new java.awt.Color(81, 16, 0);\n colors[ 13] = new java.awt.Color(83, 17, 0);\n colors[ 14] = new java.awt.Color(85, 19, 0);\n colors[ 15] = new java.awt.Color(86, 20, 0);\n colors[ 16] = new java.awt.Color(89, 22, 0);\n colors[ 17] = new java.awt.Color(91, 24, 0);\n colors[ 18] = new java.awt.Color(92, 25, 0);\n colors[ 19] = new java.awt.Color(94, 26, 0);\n colors[ 20] = new java.awt.Color(95, 28, 0);\n colors[ 21] = new java.awt.Color(98, 30, 0);\n colors[ 22] = new java.awt.Color(100, 31, 0);\n colors[ 23] = new java.awt.Color(102, 33, 0);\n colors[ 24] = new java.awt.Color(103, 34, 0);\n colors[ 25] = new java.awt.Color(105, 35, 0);\n colors[ 26] = new java.awt.Color(106, 36, 0);\n colors[ 27] = new java.awt.Color(108, 38, 0);\n colors[ 28] = new java.awt.Color(109, 39, 0);\n colors[ 29] = new java.awt.Color(111, 40, 0);\n colors[ 30] = new java.awt.Color(112, 42, 0);\n colors[ 31] = new java.awt.Color(114, 43, 0);\n colors[ 32] = new java.awt.Color(115, 44, 0);\n colors[ 33] = new java.awt.Color(117, 45, 0);\n colors[ 34] = new java.awt.Color(119, 47, 0);\n colors[ 35] = new java.awt.Color(119, 47, 0);\n colors[ 36] = new java.awt.Color(120, 48, 0);\n colors[ 37] = new java.awt.Color(122, 49, 0);\n colors[ 38] = new java.awt.Color(123, 51, 0);\n colors[ 39] = new java.awt.Color(125, 52, 0);\n colors[ 40] = new java.awt.Color(125, 52, 0);\n colors[ 41] = new java.awt.Color(126, 53, 0);\n colors[ 42] = new java.awt.Color(128, 54, 0);\n colors[ 43] = new java.awt.Color(129, 56, 0);\n colors[ 44] = new java.awt.Color(129, 56, 0);\n colors[ 45] = new java.awt.Color(131, 57, 0);\n colors[ 46] = new java.awt.Color(132, 58, 0);\n colors[ 47] = new java.awt.Color(134, 59, 0);\n colors[ 48] = new java.awt.Color(134, 59, 0);\n colors[ 49] = new java.awt.Color(136, 61, 0);\n colors[ 50] = new java.awt.Color(137, 62, 0);\n colors[ 51] = new java.awt.Color(137, 62, 0);\n colors[ 52] = new java.awt.Color(139, 63, 0);\n colors[ 53] = new java.awt.Color(139, 63, 0);\n colors[ 54] = new java.awt.Color(140, 65, 0);\n colors[ 55] = new java.awt.Color(142, 66, 0);\n colors[ 56] = new java.awt.Color(142, 66, 0);\n colors[ 57] = new java.awt.Color(143, 67, 0);\n colors[ 58] = new java.awt.Color(143, 67, 0);\n colors[ 59] = new java.awt.Color(145, 68, 0);\n colors[ 60] = new java.awt.Color(145, 68, 0);\n colors[ 61] = new java.awt.Color(146, 70, 0);\n colors[ 62] = new java.awt.Color(146, 70, 0);\n colors[ 63] = new java.awt.Color(148, 71, 0);\n colors[ 64] = new java.awt.Color(148, 71, 0);\n colors[ 65] = new java.awt.Color(149, 72, 0);\n colors[ 66] = new java.awt.Color(149, 72, 0);\n colors[ 67] = new java.awt.Color(151, 73, 0);\n colors[ 68] = new java.awt.Color(151, 73, 0);\n colors[ 69] = new java.awt.Color(153, 75, 0);\n colors[ 70] = new java.awt.Color(153, 75, 0);\n colors[ 71] = new java.awt.Color(154, 76, 0);\n colors[ 72] = new java.awt.Color(154, 76, 0);\n colors[ 73] = new java.awt.Color(154, 76, 0);\n colors[ 74] = new java.awt.Color(156, 77, 0);\n colors[ 75] = new java.awt.Color(156, 77, 0);\n colors[ 76] = new java.awt.Color(157, 79, 0);\n colors[ 77] = new java.awt.Color(157, 79, 0);\n colors[ 78] = new java.awt.Color(159, 80, 0);\n colors[ 79] = new java.awt.Color(159, 80, 0);\n colors[ 80] = new java.awt.Color(159, 80, 0);\n colors[ 81] = new java.awt.Color(160, 81, 0);\n colors[ 82] = new java.awt.Color(160, 81, 0);\n colors[ 83] = new java.awt.Color(162, 82, 0);\n colors[ 84] = new java.awt.Color(162, 82, 0);\n colors[ 85] = new java.awt.Color(163, 84, 0);\n colors[ 86] = new java.awt.Color(163, 84, 0);\n colors[ 87] = new java.awt.Color(165, 85, 0);\n colors[ 88] = new java.awt.Color(165, 85, 0);\n colors[ 89] = new java.awt.Color(166, 86, 0);\n colors[ 90] = new java.awt.Color(166, 86, 0);\n colors[ 91] = new java.awt.Color(166, 86, 0);\n colors[ 92] = new java.awt.Color(168, 87, 0);\n colors[ 93] = new java.awt.Color(168, 87, 0);\n colors[ 94] = new java.awt.Color(170, 89, 0);\n colors[ 95] = new java.awt.Color(170, 89, 0);\n colors[ 96] = new java.awt.Color(171, 90, 0);\n colors[ 97] = new java.awt.Color(171, 90, 0);\n colors[ 98] = new java.awt.Color(173, 91, 0);\n colors[ 99] = new java.awt.Color(173, 91, 0);\n colors[100] = new java.awt.Color(174, 93, 0);\n colors[101] = new java.awt.Color(174, 93, 0);\n colors[102] = new java.awt.Color(176, 94, 0);\n colors[103] = new java.awt.Color(176, 94, 0);\n colors[104] = new java.awt.Color(177, 95, 0);\n colors[105] = new java.awt.Color(177, 95, 0);\n colors[106] = new java.awt.Color(179, 96, 0);\n colors[107] = new java.awt.Color(179, 96, 0);\n colors[108] = new java.awt.Color(180, 98, 0);\n colors[109] = new java.awt.Color(182, 99, 0);\n colors[110] = new java.awt.Color(182, 99, 0);\n colors[111] = new java.awt.Color(183, 100, 0);\n colors[112] = new java.awt.Color(183, 100, 0);\n colors[113] = new java.awt.Color(185, 102, 0);\n colors[114] = new java.awt.Color(185, 102, 0);\n colors[115] = new java.awt.Color(187, 103, 0);\n colors[116] = new java.awt.Color(187, 103, 0);\n colors[117] = new java.awt.Color(188, 104, 0);\n colors[118] = new java.awt.Color(188, 104, 0);\n colors[119] = new java.awt.Color(190, 105, 0);\n colors[120] = new java.awt.Color(191, 107, 0);\n colors[121] = new java.awt.Color(191, 107, 0);\n colors[122] = new java.awt.Color(193, 108, 0);\n colors[123] = new java.awt.Color(193, 108, 0);\n colors[124] = new java.awt.Color(194, 109, 0);\n colors[125] = new java.awt.Color(196, 110, 0);\n colors[126] = new java.awt.Color(196, 110, 0);\n colors[127] = new java.awt.Color(197, 112, 0);\n colors[128] = new java.awt.Color(197, 112, 0);\n colors[129] = new java.awt.Color(199, 113, 0);\n colors[130] = new java.awt.Color(200, 114, 0);\n colors[131] = new java.awt.Color(200, 114, 0);\n colors[132] = new java.awt.Color(202, 116, 0);\n colors[133] = new java.awt.Color(202, 116, 0);\n colors[134] = new java.awt.Color(204, 117, 0);\n colors[135] = new java.awt.Color(205, 118, 0);\n colors[136] = new java.awt.Color(205, 118, 0);\n colors[137] = new java.awt.Color(207, 119, 0);\n colors[138] = new java.awt.Color(208, 121, 0);\n colors[139] = new java.awt.Color(208, 121, 0);\n colors[140] = new java.awt.Color(210, 122, 0);\n colors[141] = new java.awt.Color(211, 123, 0);\n colors[142] = new java.awt.Color(211, 123, 0);\n colors[143] = new java.awt.Color(213, 124, 0);\n colors[144] = new java.awt.Color(214, 126, 0);\n colors[145] = new java.awt.Color(214, 126, 0);\n colors[146] = new java.awt.Color(216, 127, 0);\n colors[147] = new java.awt.Color(217, 128, 0);\n colors[148] = new java.awt.Color(217, 128, 0);\n colors[149] = new java.awt.Color(219, 130, 0);\n colors[150] = new java.awt.Color(221, 131, 0);\n colors[151] = new java.awt.Color(221, 131, 0);\n colors[152] = new java.awt.Color(222, 132, 0);\n colors[153] = new java.awt.Color(224, 133, 0);\n colors[154] = new java.awt.Color(224, 133, 0);\n colors[155] = new java.awt.Color(225, 135, 0);\n colors[156] = new java.awt.Color(227, 136, 0);\n colors[157] = new java.awt.Color(227, 136, 0);\n colors[158] = new java.awt.Color(228, 137, 0);\n colors[159] = new java.awt.Color(230, 138, 0);\n colors[160] = new java.awt.Color(230, 138, 0);\n colors[161] = new java.awt.Color(231, 140, 0);\n colors[162] = new java.awt.Color(233, 141, 0);\n colors[163] = new java.awt.Color(233, 141, 0);\n colors[164] = new java.awt.Color(234, 142, 0);\n colors[165] = new java.awt.Color(236, 144, 0);\n colors[166] = new java.awt.Color(236, 144, 0);\n colors[167] = new java.awt.Color(238, 145, 0);\n colors[168] = new java.awt.Color(239, 146, 0);\n colors[169] = new java.awt.Color(241, 147, 0);\n colors[170] = new java.awt.Color(241, 147, 0);\n colors[171] = new java.awt.Color(242, 149, 0);\n colors[172] = new java.awt.Color(244, 150, 0);\n colors[173] = new java.awt.Color(244, 150, 0);\n colors[174] = new java.awt.Color(245, 151, 0);\n colors[175] = new java.awt.Color(247, 153, 0);\n colors[176] = new java.awt.Color(247, 153, 0);\n colors[177] = new java.awt.Color(248, 154, 0);\n colors[178] = new java.awt.Color(250, 155, 0);\n colors[179] = new java.awt.Color(251, 156, 0);\n colors[180] = new java.awt.Color(251, 156, 0);\n colors[181] = new java.awt.Color(253, 158, 0);\n colors[182] = new java.awt.Color(255, 159, 0);\n colors[183] = new java.awt.Color(255, 159, 0);\n colors[184] = new java.awt.Color(255, 160, 0);\n colors[185] = new java.awt.Color(255, 161, 0);\n colors[186] = new java.awt.Color(255, 163, 0);\n colors[187] = new java.awt.Color(255, 163, 0);\n colors[188] = new java.awt.Color(255, 164, 0);\n colors[189] = new java.awt.Color(255, 165, 0);\n colors[190] = new java.awt.Color(255, 167, 0);\n colors[191] = new java.awt.Color(255, 167, 0);\n colors[192] = new java.awt.Color(255, 168, 0);\n colors[193] = new java.awt.Color(255, 169, 0);\n colors[194] = new java.awt.Color(255, 169, 0);\n colors[195] = new java.awt.Color(255, 170, 0);\n colors[196] = new java.awt.Color(255, 172, 0);\n colors[197] = new java.awt.Color(255, 173, 0);\n colors[198] = new java.awt.Color(255, 173, 0);\n colors[199] = new java.awt.Color(255, 174, 0);\n colors[200] = new java.awt.Color(255, 175, 0);\n colors[201] = new java.awt.Color(255, 177, 0);\n colors[202] = new java.awt.Color(255, 178, 0);\n colors[203] = new java.awt.Color(255, 179, 0);\n colors[204] = new java.awt.Color(255, 181, 0);\n colors[205] = new java.awt.Color(255, 181, 0);\n colors[206] = new java.awt.Color(255, 182, 0);\n colors[207] = new java.awt.Color(255, 183, 0);\n colors[208] = new java.awt.Color(255, 184, 0);\n colors[209] = new java.awt.Color(255, 187, 7);\n colors[210] = new java.awt.Color(255, 188, 10);\n colors[211] = new java.awt.Color(255, 189, 14);\n colors[212] = new java.awt.Color(255, 191, 18);\n colors[213] = new java.awt.Color(255, 192, 21);\n colors[214] = new java.awt.Color(255, 193, 25);\n colors[215] = new java.awt.Color(255, 195, 29);\n colors[216] = new java.awt.Color(255, 197, 36);\n colors[217] = new java.awt.Color(255, 198, 40);\n colors[218] = new java.awt.Color(255, 200, 43);\n colors[219] = new java.awt.Color(255, 202, 51);\n colors[220] = new java.awt.Color(255, 204, 54);\n colors[221] = new java.awt.Color(255, 206, 61);\n colors[222] = new java.awt.Color(255, 207, 65);\n colors[223] = new java.awt.Color(255, 210, 72);\n colors[224] = new java.awt.Color(255, 211, 76);\n colors[225] = new java.awt.Color(255, 214, 83);\n colors[226] = new java.awt.Color(255, 216, 91);\n colors[227] = new java.awt.Color(255, 219, 98);\n colors[228] = new java.awt.Color(255, 221, 105);\n colors[229] = new java.awt.Color(255, 223, 109);\n colors[230] = new java.awt.Color(255, 225, 116);\n colors[231] = new java.awt.Color(255, 228, 123);\n colors[232] = new java.awt.Color(255, 232, 134);\n colors[233] = new java.awt.Color(255, 234, 142);\n colors[234] = new java.awt.Color(255, 237, 149);\n colors[235] = new java.awt.Color(255, 239, 156);\n colors[236] = new java.awt.Color(255, 240, 160);\n colors[237] = new java.awt.Color(255, 243, 167);\n colors[238] = new java.awt.Color(255, 246, 174);\n colors[239] = new java.awt.Color(255, 248, 182);\n colors[240] = new java.awt.Color(255, 249, 185);\n colors[241] = new java.awt.Color(255, 252, 193);\n colors[242] = new java.awt.Color(255, 253, 196);\n colors[243] = new java.awt.Color(255, 255, 204);\n colors[244] = new java.awt.Color(255, 255, 207);\n colors[245] = new java.awt.Color(255, 255, 211);\n colors[246] = new java.awt.Color(255, 255, 218);\n colors[247] = new java.awt.Color(255, 255, 222);\n colors[248] = new java.awt.Color(255, 255, 225);\n colors[249] = new java.awt.Color(255, 255, 229);\n colors[250] = new java.awt.Color(255, 255, 233);\n colors[251] = new java.awt.Color(255, 255, 236);\n colors[252] = new java.awt.Color(255, 255, 240);\n colors[253] = new java.awt.Color(255, 255, 244);\n colors[254] = new java.awt.Color(255, 255, 247);\n colors[255] = new java.awt.Color(255, 255, 255);\n }", "@Override\n protected void onSetInitialValues(final Shape pShape, final float pScaleA, final float pScaleB) {\n pShape.setScale(pScaleA, pScaleB);\n }", "public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "public ScaleRuleMetricDimension() {\n }", "public ScaleAnimation(int startTime, int endTime, String shapeID, double fromSx, double fromSy,\n double toSx, double toSy)\n throws IllegalArgumentException {\n //throws exception if startTime >= endTime\n super(startTime, endTime, shapeID, AnimType.SCALE);\n if (fromSx < 0 || fromSy < 0 || toSx < 0 || toSy < 0) {\n throw new IllegalArgumentException(\"scale parameter cannot be negative!\");\n }\n\n this.fromSx = fromSx;\n this.fromSy = fromSy;\n this.toSx = toSx;\n this.toSy = toSy;\n }", "public void setScale(float scale);", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public void setScale(float scale) {\n this.scale = scale;\n }", "public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}", "public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}", "public UserDefinedScaleCalculator( double userDefinedMinimum, double userDefinedIncrement )\r\n\t{\r\n\t\tthis.userDefinedMinimum = userDefinedMinimum;\r\n\t\tthis.userDefinedIncrement = userDefinedIncrement;\r\n\t}", "public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}", "protected void validate() {\n Preconditions.checkArgument(\n dim > 0,\n \"Cannot compute scale along dim = 0 (batch dimension), please provide dim > 0\");\n }", "public void setScale(double value) {\n this.scale = value;\n }", "public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }", "Rectangle()\n {\n this(1.0,1.0);\n }", "Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}", "public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }", "public void setScale(double n) {\n\n\t}", "public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public Box() {\n \tsuper();\n \tthis.max = new Point3d( 1, 1, 1 );\n \tthis.min = new Point3d( -1, -1, -1 );\n }", "private void setXscale() {\n\t}", "public RaiseToScale() {\n super(\"RaiseToScale\", kP, kI, kD);\n requires(this.elevator = Elevator.getInstance());\n requires(this.intake = Intake.getInstance());\n this.getPIDController().setOutputRange(-RobotMap.ELEVATOR_SPEED,\n RobotMap.ELEVATOR_SPEED);\n setInterruptible(true);\n }", "public Rectangle() {\n super();\n properties = new HashMap<String, Double>();\n properties.put(\"Width\", null);\n properties.put(\"Length\", null);\n }", "public double getScale() {\n\t\treturn 0;\n\t}", "public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}", "public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }", "@Override\n public float getScale() {\n return scale;\n }", "public double getScale() {\n return scale;\n }", "public Slider(double scaleEnd) throws GUIException {\n\t\tthis(0, scaleEnd);\n\t}", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public double getScale(){\n\t\treturn scale;\n\t}", "public AxesTransform() {\n\n\t}", "public ScaleImpl(int elevatorNumber) throws RemoteException {\n super();\n number = elevatorNumber;\n }", "public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}", "public void setScale(float scale) {\n setLocalScale(scale);\n }", "public PDRectangle()\n {\n this(0.0f, 0.0f, 0.0f, 0.0f);\n }", "public Circle() {\n this( 1.0 ); \n }", "public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}", "void setScale(ScaleSelector sensor, int scaleNo);", "public int getScale(){\n return scale;\n }", "private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}", "public PointDetails setScaling(double scale){\n\t\t\treturn setScaling(()->scale);\n\t\t}", "protected SquareDungeon() throws IllegalMaximumDimensionsException {\r\n\t\tthis(Point.CUBE);\r\n\t}", "protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }", "public ScaleDefDAOImpl() {\r\n super();\r\n }", "protected Shape() {}", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "protected Goodie(float width, float height, String imgName) {\n super(imgName, width, height);\n mScore[0] = 1;\n mScore[1] = 0;\n mScore[2] = 0;\n mScore[3] = 0;\n }", "@Test\n public void testConstructorInvalidInputs() {\n try {\n Rectangle r5 = new Rectangle(-7, 4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r6 = new Rectangle(7, -4, new Color(255, 0, 0),\n new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r7 = new Rectangle(7, 4, null, new Position2D(50, 75));\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r8 = new Rectangle(7, 4, new Color(255, 0, 0), null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n try {\n Rectangle r9 = new Rectangle(-7, 4, null, null);\n fail();\n } catch (IllegalArgumentException e) {\n // pass!\n }\n }", "public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}", "ScaleType getScale();", "public void setParamScale(String paramScale) {\n this.paramScale = paramScale == null ? null : paramScale.trim();\n }", "@Test\n public void scale() {\n assertEquals(\"Wrong vector scale\", new Vector(1,1,1).scale(2), new Vector(2,2,2));\n }", "PointDouble() {\n x = y = 0.0;\n }", "TwoDShape5() {\n width = height = 0.0;\n }", "public double getScale() {\r\n return scale;\r\n }", "private void setStartValues() {\n startValues = new float[9];\n mStartMatrix = new Matrix(getImageMatrix());\n mStartMatrix.getValues(startValues);\n calculatedMinScale = minScale * startValues[Matrix.MSCALE_X];\n calculatedMaxScale = maxScale * startValues[Matrix.MSCALE_X];\n }", "public void initialiseExtremeValues() {\n for (int i = 0; i < numberOfObj; i++) {\n minimumValues[i] = Double.MAX_VALUE;\n maximumValues[i] = -Double.MAX_VALUE;\n }\n }", "public void initX(String label, double start, double range, double scale)\r\n {\r\n xName = label;\r\n xStart = start;\r\n xRange = range;\r\n xScale = scale;\r\n }", "public void InitScaling() {\n\tc2.InitScaling();\n\tc3.InitScaling();\n\tc1.InitScaling();\n\tc3.CalcPrev();\n\tc3.UpdateAllNoCoord();\n }", "public Circle(){ // 1 constructor\n this.radius = DEFAULT_RADIUS;\n this.color = DEFAULT_COLOR;\n }", "public void setToScale(double Sx, double Sy, double Sz) {\r\n\t\tthis.M11 = Sx;\r\n\t\tthis.M22 = Sy;\r\n\t\tthis.M33 = Sz;\r\n\t\tthis.M44 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t}", "private Exemplar (NNge nnge, Instances inst, int size, double classV){\n\n super(inst, size);\n m_NNge = nnge;\n m_ClassValue = classV;\n m_MinBorder = new double[numAttributes()];\n m_MaxBorder = new double[numAttributes()];\n m_Range = new boolean[numAttributes()][];\n for(int i = 0; i < numAttributes(); i++){\n\tif(attribute(i).isNumeric()){\n\t m_MinBorder[i] = Double.POSITIVE_INFINITY;\n\t m_MaxBorder[i] = Double.NEGATIVE_INFINITY;\n\t m_Range[i] = null;\n\t} else {\n\t m_MinBorder[i] = Double.NaN;\n\t m_MaxBorder[i] = Double.NaN;\n\t m_Range[i] = new boolean[attribute(i).numValues() + 1];\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t m_Range[i][j] = false;\n\t }\n\t}\n }\n }", "Rectangle(){\n height = 1;\n width = 1;\n }", "public double getScale() {\n return scale;\n }", "public DiscMesh() {\n this(1f, 25);\n }", "public int getScale() {\n return scale_;\n }", "public Paper(double _height, double _width)\n {\n // initialise instance variables\n height = _height;\n width = _width;\n }", "public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public void setScale(float scaleX, float scaleY) {\n internalGroup.setScale(scaleX, scaleY);\n dataTrait.scaleX = scaleX;\n dataTrait.scaleY = scaleY;\n resetSprite();\n }", "public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}", "public double getScale(\n )\n {return scale;}", "public Intervals() {\n }", "void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }", "public Metric(){\n\t}", "void setMaxScale(int value);", "public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}", "public Platform()\n\t{\n\t\t//Add code to scale image here\n\t\tgetImage().scale(100, 16);\n\t}", "public ScatterPlotChart(float[][] data, \n ValueAxis domainAxis, ValueAxis rangeAxis) {\n\t\t \n\t\tsuper(data,domainAxis,rangeAxis);\n\t\tsetPaint(Color.BLACK);\n\t\t\n }", "public Rectangle() {\n this(50, 40);\n }", "public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }", "public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }", "public Scale getScale() {\n return this.scale;\n }", "public boolean hasScale() { return hasScale; }", "public Valvula(){}", "protected Plot() {\r\n }", "public Image()\r\n {\r\n super();\r\n setBounds( 0, 0, 10, 10 );\r\n }" ]
[ "0.7452639", "0.69786537", "0.68769366", "0.64343566", "0.6420506", "0.6341273", "0.6333438", "0.63159454", "0.6187722", "0.6168889", "0.61548316", "0.61525464", "0.6146269", "0.613912", "0.61134535", "0.6099475", "0.60969114", "0.60647744", "0.60478806", "0.60332286", "0.6031277", "0.5984126", "0.5968858", "0.5949694", "0.5912381", "0.59035915", "0.5895712", "0.58811545", "0.5853301", "0.585241", "0.58356273", "0.58214974", "0.58143455", "0.5805809", "0.57966346", "0.57763535", "0.57708", "0.57584924", "0.5751244", "0.57467824", "0.57373005", "0.5728902", "0.5711866", "0.5708993", "0.570456", "0.5701895", "0.56968915", "0.5692393", "0.568089", "0.56804186", "0.56771183", "0.5674861", "0.56747353", "0.56686515", "0.5665468", "0.5663923", "0.56625575", "0.564692", "0.5641835", "0.5638857", "0.56296253", "0.5603453", "0.55825233", "0.5582207", "0.55769104", "0.55658317", "0.5563921", "0.5560269", "0.55545187", "0.5544215", "0.5542", "0.5534674", "0.5530029", "0.5529561", "0.55125403", "0.55096215", "0.55004764", "0.5500196", "0.5496374", "0.54913175", "0.54902136", "0.548836", "0.5481291", "0.5480635", "0.54738873", "0.5468415", "0.546752", "0.546254", "0.54587287", "0.5458596", "0.5455716", "0.54530996", "0.5452289", "0.5435668", "0.5435668", "0.54355586", "0.54330176", "0.5430557", "0.54254365", "0.54239446" ]
0.81388116
0
Initializes a Scale Instance.
public Scale(String scaleName, String scaleDegrees, int degreeCount) { this.scaleName = scaleName; this.scaleDegrees = scaleDegrees; this.degreeCount = degreeCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scale()\n\t{\n\t\tthis.scaleName = \"no scale\";\n\t\tthis.scaleDegrees = \"no degrees\";\n\t\tthis.degreeCount = -99;\n\t}", "public ScaleControl() {\n super();\n }", "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public void setScale(Scale scale) {\n this.scale = scale;\n }", "protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }", "public Platform()\n\t{\n\t\t//Add code to scale image here\n\t\tgetImage().scale(100, 16);\n\t}", "public void setScale(float scale);", "void setScale(ScaleSelector sensor, int scaleNo);", "public void setScale(float scale) {\n this.scale = scale;\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "public ScaleDefDAOImpl() {\r\n super();\r\n }", "public void InitScaling() {\n\tc2.InitScaling();\n\tc3.InitScaling();\n\tc1.InitScaling();\n\tc3.CalcPrev();\n\tc3.UpdateAllNoCoord();\n }", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "ScaleType getScale();", "@Override\n protected void onSetInitialValues(final Shape pShape, final float pScaleA, final float pScaleB) {\n pShape.setScale(pScaleA, pScaleB);\n }", "public void init() {\n\t\tBitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sb_thumb);\n\t\tLinearGradient colorGradient = new LinearGradient(0.f, 0.f, this.getMeasuredWidth() - bitmap.getWidth(), 0.f, new int[] { 0xFF000000,\n\t\t\t\t0xFF0000FF, 0xFF00FF00, 0xFF00FFFF, 0xFFFF0000, 0xFFFF00FF, 0xFFFFFF00, 0xFFFFFFFF }, null, Shader.TileMode.CLAMP);\n\t\tShapeDrawable shape = new ShapeDrawable(new RectShape(mContext));\n\t\tshape.getPaint().setShader(colorGradient);\n\t\tthis.setProgressDrawable(shape);\n\t\tthis.setMax(256 * 7 - 1);\n\t}", "public ScaleImpl(int elevatorNumber) throws RemoteException {\n super();\n number = elevatorNumber;\n }", "public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}", "public HeatedObjectScale() {\n colors = new java.awt.Color[256];\n colors[ 0] = new java.awt.Color(0, 0, 0);\n colors[ 1] = new java.awt.Color(35, 0, 0);\n colors[ 2] = new java.awt.Color(52, 0, 0);\n colors[ 3] = new java.awt.Color(60, 0, 0);\n colors[ 4] = new java.awt.Color(63, 1, 0);\n colors[ 5] = new java.awt.Color(64, 2, 0);\n colors[ 6] = new java.awt.Color(68, 5, 0);\n colors[ 7] = new java.awt.Color(69, 6, 0);\n colors[ 8] = new java.awt.Color(72, 8, 0);\n colors[ 9] = new java.awt.Color(74, 10, 0);\n colors[ 10] = new java.awt.Color(77, 12, 0);\n colors[ 11] = new java.awt.Color(78, 14, 0);\n colors[ 12] = new java.awt.Color(81, 16, 0);\n colors[ 13] = new java.awt.Color(83, 17, 0);\n colors[ 14] = new java.awt.Color(85, 19, 0);\n colors[ 15] = new java.awt.Color(86, 20, 0);\n colors[ 16] = new java.awt.Color(89, 22, 0);\n colors[ 17] = new java.awt.Color(91, 24, 0);\n colors[ 18] = new java.awt.Color(92, 25, 0);\n colors[ 19] = new java.awt.Color(94, 26, 0);\n colors[ 20] = new java.awt.Color(95, 28, 0);\n colors[ 21] = new java.awt.Color(98, 30, 0);\n colors[ 22] = new java.awt.Color(100, 31, 0);\n colors[ 23] = new java.awt.Color(102, 33, 0);\n colors[ 24] = new java.awt.Color(103, 34, 0);\n colors[ 25] = new java.awt.Color(105, 35, 0);\n colors[ 26] = new java.awt.Color(106, 36, 0);\n colors[ 27] = new java.awt.Color(108, 38, 0);\n colors[ 28] = new java.awt.Color(109, 39, 0);\n colors[ 29] = new java.awt.Color(111, 40, 0);\n colors[ 30] = new java.awt.Color(112, 42, 0);\n colors[ 31] = new java.awt.Color(114, 43, 0);\n colors[ 32] = new java.awt.Color(115, 44, 0);\n colors[ 33] = new java.awt.Color(117, 45, 0);\n colors[ 34] = new java.awt.Color(119, 47, 0);\n colors[ 35] = new java.awt.Color(119, 47, 0);\n colors[ 36] = new java.awt.Color(120, 48, 0);\n colors[ 37] = new java.awt.Color(122, 49, 0);\n colors[ 38] = new java.awt.Color(123, 51, 0);\n colors[ 39] = new java.awt.Color(125, 52, 0);\n colors[ 40] = new java.awt.Color(125, 52, 0);\n colors[ 41] = new java.awt.Color(126, 53, 0);\n colors[ 42] = new java.awt.Color(128, 54, 0);\n colors[ 43] = new java.awt.Color(129, 56, 0);\n colors[ 44] = new java.awt.Color(129, 56, 0);\n colors[ 45] = new java.awt.Color(131, 57, 0);\n colors[ 46] = new java.awt.Color(132, 58, 0);\n colors[ 47] = new java.awt.Color(134, 59, 0);\n colors[ 48] = new java.awt.Color(134, 59, 0);\n colors[ 49] = new java.awt.Color(136, 61, 0);\n colors[ 50] = new java.awt.Color(137, 62, 0);\n colors[ 51] = new java.awt.Color(137, 62, 0);\n colors[ 52] = new java.awt.Color(139, 63, 0);\n colors[ 53] = new java.awt.Color(139, 63, 0);\n colors[ 54] = new java.awt.Color(140, 65, 0);\n colors[ 55] = new java.awt.Color(142, 66, 0);\n colors[ 56] = new java.awt.Color(142, 66, 0);\n colors[ 57] = new java.awt.Color(143, 67, 0);\n colors[ 58] = new java.awt.Color(143, 67, 0);\n colors[ 59] = new java.awt.Color(145, 68, 0);\n colors[ 60] = new java.awt.Color(145, 68, 0);\n colors[ 61] = new java.awt.Color(146, 70, 0);\n colors[ 62] = new java.awt.Color(146, 70, 0);\n colors[ 63] = new java.awt.Color(148, 71, 0);\n colors[ 64] = new java.awt.Color(148, 71, 0);\n colors[ 65] = new java.awt.Color(149, 72, 0);\n colors[ 66] = new java.awt.Color(149, 72, 0);\n colors[ 67] = new java.awt.Color(151, 73, 0);\n colors[ 68] = new java.awt.Color(151, 73, 0);\n colors[ 69] = new java.awt.Color(153, 75, 0);\n colors[ 70] = new java.awt.Color(153, 75, 0);\n colors[ 71] = new java.awt.Color(154, 76, 0);\n colors[ 72] = new java.awt.Color(154, 76, 0);\n colors[ 73] = new java.awt.Color(154, 76, 0);\n colors[ 74] = new java.awt.Color(156, 77, 0);\n colors[ 75] = new java.awt.Color(156, 77, 0);\n colors[ 76] = new java.awt.Color(157, 79, 0);\n colors[ 77] = new java.awt.Color(157, 79, 0);\n colors[ 78] = new java.awt.Color(159, 80, 0);\n colors[ 79] = new java.awt.Color(159, 80, 0);\n colors[ 80] = new java.awt.Color(159, 80, 0);\n colors[ 81] = new java.awt.Color(160, 81, 0);\n colors[ 82] = new java.awt.Color(160, 81, 0);\n colors[ 83] = new java.awt.Color(162, 82, 0);\n colors[ 84] = new java.awt.Color(162, 82, 0);\n colors[ 85] = new java.awt.Color(163, 84, 0);\n colors[ 86] = new java.awt.Color(163, 84, 0);\n colors[ 87] = new java.awt.Color(165, 85, 0);\n colors[ 88] = new java.awt.Color(165, 85, 0);\n colors[ 89] = new java.awt.Color(166, 86, 0);\n colors[ 90] = new java.awt.Color(166, 86, 0);\n colors[ 91] = new java.awt.Color(166, 86, 0);\n colors[ 92] = new java.awt.Color(168, 87, 0);\n colors[ 93] = new java.awt.Color(168, 87, 0);\n colors[ 94] = new java.awt.Color(170, 89, 0);\n colors[ 95] = new java.awt.Color(170, 89, 0);\n colors[ 96] = new java.awt.Color(171, 90, 0);\n colors[ 97] = new java.awt.Color(171, 90, 0);\n colors[ 98] = new java.awt.Color(173, 91, 0);\n colors[ 99] = new java.awt.Color(173, 91, 0);\n colors[100] = new java.awt.Color(174, 93, 0);\n colors[101] = new java.awt.Color(174, 93, 0);\n colors[102] = new java.awt.Color(176, 94, 0);\n colors[103] = new java.awt.Color(176, 94, 0);\n colors[104] = new java.awt.Color(177, 95, 0);\n colors[105] = new java.awt.Color(177, 95, 0);\n colors[106] = new java.awt.Color(179, 96, 0);\n colors[107] = new java.awt.Color(179, 96, 0);\n colors[108] = new java.awt.Color(180, 98, 0);\n colors[109] = new java.awt.Color(182, 99, 0);\n colors[110] = new java.awt.Color(182, 99, 0);\n colors[111] = new java.awt.Color(183, 100, 0);\n colors[112] = new java.awt.Color(183, 100, 0);\n colors[113] = new java.awt.Color(185, 102, 0);\n colors[114] = new java.awt.Color(185, 102, 0);\n colors[115] = new java.awt.Color(187, 103, 0);\n colors[116] = new java.awt.Color(187, 103, 0);\n colors[117] = new java.awt.Color(188, 104, 0);\n colors[118] = new java.awt.Color(188, 104, 0);\n colors[119] = new java.awt.Color(190, 105, 0);\n colors[120] = new java.awt.Color(191, 107, 0);\n colors[121] = new java.awt.Color(191, 107, 0);\n colors[122] = new java.awt.Color(193, 108, 0);\n colors[123] = new java.awt.Color(193, 108, 0);\n colors[124] = new java.awt.Color(194, 109, 0);\n colors[125] = new java.awt.Color(196, 110, 0);\n colors[126] = new java.awt.Color(196, 110, 0);\n colors[127] = new java.awt.Color(197, 112, 0);\n colors[128] = new java.awt.Color(197, 112, 0);\n colors[129] = new java.awt.Color(199, 113, 0);\n colors[130] = new java.awt.Color(200, 114, 0);\n colors[131] = new java.awt.Color(200, 114, 0);\n colors[132] = new java.awt.Color(202, 116, 0);\n colors[133] = new java.awt.Color(202, 116, 0);\n colors[134] = new java.awt.Color(204, 117, 0);\n colors[135] = new java.awt.Color(205, 118, 0);\n colors[136] = new java.awt.Color(205, 118, 0);\n colors[137] = new java.awt.Color(207, 119, 0);\n colors[138] = new java.awt.Color(208, 121, 0);\n colors[139] = new java.awt.Color(208, 121, 0);\n colors[140] = new java.awt.Color(210, 122, 0);\n colors[141] = new java.awt.Color(211, 123, 0);\n colors[142] = new java.awt.Color(211, 123, 0);\n colors[143] = new java.awt.Color(213, 124, 0);\n colors[144] = new java.awt.Color(214, 126, 0);\n colors[145] = new java.awt.Color(214, 126, 0);\n colors[146] = new java.awt.Color(216, 127, 0);\n colors[147] = new java.awt.Color(217, 128, 0);\n colors[148] = new java.awt.Color(217, 128, 0);\n colors[149] = new java.awt.Color(219, 130, 0);\n colors[150] = new java.awt.Color(221, 131, 0);\n colors[151] = new java.awt.Color(221, 131, 0);\n colors[152] = new java.awt.Color(222, 132, 0);\n colors[153] = new java.awt.Color(224, 133, 0);\n colors[154] = new java.awt.Color(224, 133, 0);\n colors[155] = new java.awt.Color(225, 135, 0);\n colors[156] = new java.awt.Color(227, 136, 0);\n colors[157] = new java.awt.Color(227, 136, 0);\n colors[158] = new java.awt.Color(228, 137, 0);\n colors[159] = new java.awt.Color(230, 138, 0);\n colors[160] = new java.awt.Color(230, 138, 0);\n colors[161] = new java.awt.Color(231, 140, 0);\n colors[162] = new java.awt.Color(233, 141, 0);\n colors[163] = new java.awt.Color(233, 141, 0);\n colors[164] = new java.awt.Color(234, 142, 0);\n colors[165] = new java.awt.Color(236, 144, 0);\n colors[166] = new java.awt.Color(236, 144, 0);\n colors[167] = new java.awt.Color(238, 145, 0);\n colors[168] = new java.awt.Color(239, 146, 0);\n colors[169] = new java.awt.Color(241, 147, 0);\n colors[170] = new java.awt.Color(241, 147, 0);\n colors[171] = new java.awt.Color(242, 149, 0);\n colors[172] = new java.awt.Color(244, 150, 0);\n colors[173] = new java.awt.Color(244, 150, 0);\n colors[174] = new java.awt.Color(245, 151, 0);\n colors[175] = new java.awt.Color(247, 153, 0);\n colors[176] = new java.awt.Color(247, 153, 0);\n colors[177] = new java.awt.Color(248, 154, 0);\n colors[178] = new java.awt.Color(250, 155, 0);\n colors[179] = new java.awt.Color(251, 156, 0);\n colors[180] = new java.awt.Color(251, 156, 0);\n colors[181] = new java.awt.Color(253, 158, 0);\n colors[182] = new java.awt.Color(255, 159, 0);\n colors[183] = new java.awt.Color(255, 159, 0);\n colors[184] = new java.awt.Color(255, 160, 0);\n colors[185] = new java.awt.Color(255, 161, 0);\n colors[186] = new java.awt.Color(255, 163, 0);\n colors[187] = new java.awt.Color(255, 163, 0);\n colors[188] = new java.awt.Color(255, 164, 0);\n colors[189] = new java.awt.Color(255, 165, 0);\n colors[190] = new java.awt.Color(255, 167, 0);\n colors[191] = new java.awt.Color(255, 167, 0);\n colors[192] = new java.awt.Color(255, 168, 0);\n colors[193] = new java.awt.Color(255, 169, 0);\n colors[194] = new java.awt.Color(255, 169, 0);\n colors[195] = new java.awt.Color(255, 170, 0);\n colors[196] = new java.awt.Color(255, 172, 0);\n colors[197] = new java.awt.Color(255, 173, 0);\n colors[198] = new java.awt.Color(255, 173, 0);\n colors[199] = new java.awt.Color(255, 174, 0);\n colors[200] = new java.awt.Color(255, 175, 0);\n colors[201] = new java.awt.Color(255, 177, 0);\n colors[202] = new java.awt.Color(255, 178, 0);\n colors[203] = new java.awt.Color(255, 179, 0);\n colors[204] = new java.awt.Color(255, 181, 0);\n colors[205] = new java.awt.Color(255, 181, 0);\n colors[206] = new java.awt.Color(255, 182, 0);\n colors[207] = new java.awt.Color(255, 183, 0);\n colors[208] = new java.awt.Color(255, 184, 0);\n colors[209] = new java.awt.Color(255, 187, 7);\n colors[210] = new java.awt.Color(255, 188, 10);\n colors[211] = new java.awt.Color(255, 189, 14);\n colors[212] = new java.awt.Color(255, 191, 18);\n colors[213] = new java.awt.Color(255, 192, 21);\n colors[214] = new java.awt.Color(255, 193, 25);\n colors[215] = new java.awt.Color(255, 195, 29);\n colors[216] = new java.awt.Color(255, 197, 36);\n colors[217] = new java.awt.Color(255, 198, 40);\n colors[218] = new java.awt.Color(255, 200, 43);\n colors[219] = new java.awt.Color(255, 202, 51);\n colors[220] = new java.awt.Color(255, 204, 54);\n colors[221] = new java.awt.Color(255, 206, 61);\n colors[222] = new java.awt.Color(255, 207, 65);\n colors[223] = new java.awt.Color(255, 210, 72);\n colors[224] = new java.awt.Color(255, 211, 76);\n colors[225] = new java.awt.Color(255, 214, 83);\n colors[226] = new java.awt.Color(255, 216, 91);\n colors[227] = new java.awt.Color(255, 219, 98);\n colors[228] = new java.awt.Color(255, 221, 105);\n colors[229] = new java.awt.Color(255, 223, 109);\n colors[230] = new java.awt.Color(255, 225, 116);\n colors[231] = new java.awt.Color(255, 228, 123);\n colors[232] = new java.awt.Color(255, 232, 134);\n colors[233] = new java.awt.Color(255, 234, 142);\n colors[234] = new java.awt.Color(255, 237, 149);\n colors[235] = new java.awt.Color(255, 239, 156);\n colors[236] = new java.awt.Color(255, 240, 160);\n colors[237] = new java.awt.Color(255, 243, 167);\n colors[238] = new java.awt.Color(255, 246, 174);\n colors[239] = new java.awt.Color(255, 248, 182);\n colors[240] = new java.awt.Color(255, 249, 185);\n colors[241] = new java.awt.Color(255, 252, 193);\n colors[242] = new java.awt.Color(255, 253, 196);\n colors[243] = new java.awt.Color(255, 255, 204);\n colors[244] = new java.awt.Color(255, 255, 207);\n colors[245] = new java.awt.Color(255, 255, 211);\n colors[246] = new java.awt.Color(255, 255, 218);\n colors[247] = new java.awt.Color(255, 255, 222);\n colors[248] = new java.awt.Color(255, 255, 225);\n colors[249] = new java.awt.Color(255, 255, 229);\n colors[250] = new java.awt.Color(255, 255, 233);\n colors[251] = new java.awt.Color(255, 255, 236);\n colors[252] = new java.awt.Color(255, 255, 240);\n colors[253] = new java.awt.Color(255, 255, 244);\n colors[254] = new java.awt.Color(255, 255, 247);\n colors[255] = new java.awt.Color(255, 255, 255);\n }", "public ScaleAnimation(int startTime, int endTime, String shapeID, double fromSx, double fromSy,\n double toSx, double toSy)\n throws IllegalArgumentException {\n //throws exception if startTime >= endTime\n super(startTime, endTime, shapeID, AnimType.SCALE);\n if (fromSx < 0 || fromSy < 0 || toSx < 0 || toSy < 0) {\n throw new IllegalArgumentException(\"scale parameter cannot be negative!\");\n }\n\n this.fromSx = fromSx;\n this.fromSy = fromSy;\n this.toSx = toSx;\n this.toSy = toSy;\n }", "public Scale getScale() {\n return this.scale;\n }", "public int getScale() {\n return scale_;\n }", "void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }", "public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }", "@Override public void init()\n\t\t{\n\t\t}", "public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}", "public ScaleRuleMetricDimension() {\n }", "public void setScale(float scale) {\n setLocalScale(scale);\n }", "public static Transform newScale(float sx, float sy, float sz){\n return new Transform(new float[][]{\n {sx, 0.0f, 0.0f, 0.0f},\n {0.0f, sy, 0.0f, 0.0f},\n {0.0f, 0.0f, sz, 0.0f},\n {0.0f, 0.0f, 0.0f, 1.0f}\n\n });\n }", "public double getScale() {\n return scale;\n }", "public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}", "public int getScale(){\n return scale;\n }", "public Integer getScale() {\n return _scale;\n }", "public Integer getScale() {\n return _scale;\n }", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "public ImageProperties setScale(ImageScale scale) {\n this.scale = scale;\n return this;\n }", "public void setScale(double value) {\n this.scale = value;\n }", "BasicScalingType createBasicScalingType();", "public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }", "public Lives()\n {\n lives.scale(19, 19);\n setImage(lives);\n\n }", "public int getScale() {\r\n return scale;\r\n }", "public RangeSlider() {\n initSlider();\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public double getScale() {\r\n return scale;\r\n }", "public double getScale() {\n\t\treturn 0;\n\t}", "public Volume()\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn);\n soundtrack.playLoop();\n }", "public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }", "public double getScale(){\n\t\treturn scale;\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public float getScale() {\n return scale;\n }", "public Configuration getScale() {\n return scale;\n }", "public Thumbnail() {\n this(100, 100);\n }", "public void initialize(PrescaleTable prescaleTable) {\n\t\tthis.prescaleTable = prescaleTable;\n\t\tfireTableDataChanged();\n\t}", "public SceneGraphNode setScale(double sx, double sy, double sz) {\n\t\tscaleX = sx;\n\t\tscaleY = sy;\n\t\tscaleZ = sz;\n\t\treturn this;\n\t}", "int getScale();", "public double getScale() {\n return scale;\n }", "protected void init(Rectangle2D.Float collider) {\r\n this.collider = collider;\r\n this.width = this.collider.width;\r\n this.height = this.collider.height;\r\n this.sprite = new BufferedImage((int) this.width, (int) this.height, BufferedImage.TYPE_INT_ARGB);\r\n }", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "public static Scale of(Tone tone, ScaleType type) {\n return new AutoValue_Scale(tone, type);\n }", "@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}", "public Slider(double scaleEnd) throws GUIException {\n\t\tthis(0, scaleEnd);\n\t}", "public float getScale();", "public double getScale() {\n return this.scale;\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}", "public void setScale(double n) {\n\n\t}", "public Circle() {\n this( 1.0 ); \n }", "public void init() {\n \n }", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "public Rate() {\n this(\"Rate\", null);\n }", "@Override\n public void init() {\n GetSprite(\"/images/bullet.png\");\n MusicUtils.StopASounds(\"/music/Laser_Shoot.wav\");\n Level().play(\"/music/Laser_Shoot.wav\");\n }", "@Override\r\n\tpublic void init() {}", "public Prism(){//consturctor for Cube class with h initialzed to 10.0.\r\n super();//constructor of superclass called.\r\n h = 10.0;\r\n }", "public int getScaleValue() {\r\n return ScaleValue;\r\n }", "public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }", "public float getScale() {\n return this.scale;\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public Image()\r\n {\r\n super();\r\n setBounds( 0, 0, 10, 10 );\r\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "public double getScale(\n )\n {return scale;}", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public SpriteRenderer() {\n this(1000);\n }", "public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }", "public static Transform newScale(Vec3 sc){\n return newScale(sc.x, sc.y, sc.z);\n }", "public Sample(double qX, double qY, double qZ, double aX, double aY, double aZ, double mX, double mY, double mZ, boolean scale) {\n setRotation(qX, qY, qZ);\n setAcceleration(aX, aY, aZ);\n setCompass(mX, mY, mZ);\n setTimeNow();\n }", "public Metric(){\n\t}", "public float getScale()\n\t{\n\t\treturn scale;\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "public void init() {\n\t\tCircleShape circleShape = new CircleShape();\n\t\tcircleShape.m_radius = Utils.pixelsToMeters(super.WIDTH)/2;\n\t\tsuper.fixDef.shape = circleShape;\n\t\tsuper.body.createFixture(super.fixDef);\n\t}", "public void init() { }", "public void init() { }", "public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "@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}" ]
[ "0.7395691", "0.703097", "0.6874789", "0.6775952", "0.6770504", "0.6192979", "0.60976595", "0.6085091", "0.59856445", "0.58630836", "0.5856599", "0.5836647", "0.57826084", "0.5780567", "0.5775278", "0.57565606", "0.572738", "0.5725233", "0.57244354", "0.56968516", "0.5658223", "0.5646037", "0.56392473", "0.5626843", "0.56144786", "0.5588557", "0.5581314", "0.5561552", "0.5552712", "0.55434835", "0.5531674", "0.5529671", "0.5528623", "0.55266464", "0.5525464", "0.55232704", "0.55232704", "0.551981", "0.5480804", "0.54786223", "0.54771197", "0.5474958", "0.54592246", "0.5453417", "0.5450896", "0.54370254", "0.5435619", "0.5429101", "0.5428138", "0.5425772", "0.54256344", "0.5423563", "0.54202455", "0.5418933", "0.54148144", "0.54111075", "0.5404971", "0.5400798", "0.5395037", "0.5394072", "0.53918564", "0.53914535", "0.5386772", "0.5363115", "0.53623646", "0.53617096", "0.53592855", "0.5355166", "0.5351193", "0.53379893", "0.53353965", "0.53321075", "0.53318846", "0.53289336", "0.5326767", "0.5321675", "0.5316918", "0.53087074", "0.5308577", "0.5307856", "0.53011507", "0.5296558", "0.5294104", "0.528325", "0.5279685", "0.52772385", "0.5273896", "0.5265211", "0.5264233", "0.52628374", "0.5261512", "0.5259391", "0.52556723", "0.52535504", "0.52510005", "0.52510005", "0.5243942", "0.5243794", "0.5241693", "0.5241693", "0.5241693" ]
0.0
-1
Excluir de para secundario do de para.
public void excluirDeParaSecundarioDoDePara(List<Long> idsDePara) throws DAOException { try { String qlString = new StringBuilder() .append("DELETE FROM DeParaSecundario dps WHERE dps.dePara.id in (:idDePara)") .toString(); getEntityManager().createQuery(qlString).setParameter("idDePara", idsDePara).executeUpdate(); } catch (final PersistenceException e) { LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "void remover(Professor p)throws ProfessorNExisteException;", "public void despegar(){\n if(this.posicion == 1){\n this.setPosicion(2);\n this.indicarEstado(\"Volando\");\n } else{\n System.out.println(\"No estoy preparado para el despegue\");\n }\n }", "public CensoPSAMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}", "private void enviarRequisicaoRemover() {\n servidor.removerPalito(nomeJogador);\n atualizarPalitos();\n }", "public void incluirDescendiente(INodo INodo) {\n\t\tif (this.getDescendientes().size() > numArg) {\n\t\t\treturn;\n\t\t}\n\t\tsuper.incluirDescendiente(INodo);\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "public void imprimirSubdominios(String dominio,Pila pila){\n\t\t\tmodCons.imprimirSubdominios(dominio,pila);\n\t}", "@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }", "public void removeBydescricao(String descricao);", "private void supprimerPion(Position unePosition) {\n\t\tmesPions.remove(unePosition); \n }", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "public void deleteCargaConsultorasNivel1ByEtapa(String codigoPais,String codigoEtapa);", "public void excluirDeParaSecundarios(List<Long> idsDeParaSecundarios) throws DAOException {\n try {\n\n String qlString = new StringBuilder()\n .append(\"DELETE FROM DeParaSecundario dpp WHERE dpp.id in (:idsDeParaSecundarios)\")\n .toString();\n\n getEntityManager().createQuery(qlString).setParameter(\"idsDeParaSecundarios\", idsDeParaSecundarios).executeUpdate();\n\n } catch (final PersistenceException e) {\n LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);\n throw new DAOException(e);\n }\n }", "public void deletar() {\n if(Sessao.isConfirm()){\n Usuario use = new Usuario();\n use.setId(Sessao.getId());\n Delete_Banco del = new Delete_Banco();\n del.Excluir_Usuario(use);\n this.setVisible(false);\n Sessao.setId(0);\n tela_Principal prin = Sessao.getPrin();\n prin.atualizar_Tela();\n }\n }", "public void eliminarVideojuegoPorPlataforma(String plataforma)\n {\n Iterator<Videojuegos> iteration = listaDeVideojuegos.iterator();\n while(iteration.hasNext()){\n Videojuegos iter = iteration.next();\n String plataformaVideojuego = iter.getPlataforma();\n if(plataformaVideojuego.equals(plataforma)){\n iteration.remove();\n }\n }\n }", "public boolean excluir(String _cpfProfessor) throws BDException {\n\t\tint idx = this.busca(_cpfProfessor);\r\n\t\tboolean result = false;\r\n\t\tif (idx != -1) {\r\n\t\t\tthis.professores.remove(idx);\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "public void deleteBeneficioDeuda(Map parametros);", "public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"Não é possível excluir um cliente que tenha uma venda associado!\");\n e.printStackTrace();\n }\n }", "public void excluirInteresse(String nome, String tituloImovel) {\n\t\tString sql = \"DELETE FROM interesse WHERE titulo ='\" +tituloImovel+\"' AND nomeInteressado ='\"+nome+\"'\";\n\t\ttry{\n\t\t\tPreparedStatement stmt = conexaoBD.prepareStatement(sql); \n\t\t\tstmt.execute();\n\t\t\tstmt.close();\n\t\t\tJOptionPane.showMessageDialog(null, \"Interesse excluído\");\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e.getMessage()); \n\t\t}\n\t}", "@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}", "void remover(String cpf)throws ProfessorCpfNExisteException;", "@Override\n public void excluir(Pessoa pessoa) {\n String sql = \"DELETE FROM pessoa WHERE uuid=?\";\n try {\n this.conexao = Conexao.abrirConexao();\n PreparedStatement statement = conexao.prepareStatement(sql);\n statement.setLong(1, pessoa.getId());\n statement.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n\n }", "public void eliminarPais(String txtPais);", "public static void delete(String titulo) {\n\t\tif (pelisList.containsKey(titulo)) {\n\t\t\tSystem.out.println(\"Haz borrado \" + pelisList.remove(titulo) + \" de la cartelera\");\n\t\t} else {\n\t\t\tSystem.out.println(\"El título de esa película no está registrado\\nNo se ha realizado ninguna modificación\");\n\t\t}\n\t\twriteTxt(\"peliculas.txt\", pelisList);\n\t}", "private void removePreference(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tLong userId = Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER));\n\t\t\tLong contentId = Long.parseLong(req.getParameter(Constants.CONTENT));\n\t\t\tString nameOfContent = ContentDB.getTitleOfContent(contentId);\n\t\t\tif (userId != null && contentId != null) {\n\t\t\t\tif (PreferenceDB.userHaveContent(userId, contentId)) {\n\t\t\t\t\tmyRecommender.removePreference(contentId, userId);\n\t\t\t\t\tLOGGER.info(\"Eliminamos la valoración del usuario \" + UserDB.getnameOfUser(userId)\n\t\t\t\t\t\t\t+ \" para el contenido \" + nameOfContent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLOGGER.warning(\"Usuario u objeto no encontrado\");\n\t\t\t}\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void supprimerJoueur() {\n cercle.setStroke(Color.TRANSPARENT);\n isVisible = false;\n }", "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 }", "public int eliminar(int pasoSolicitado ){\n if(tipoTraductor.equals(\"Ascendente\"))\n eliminarAsc(pasoSolicitado);\n else \n eliminarDesc(pasoSolicitado);\n cadena.actualizarCadena(pasoSolicitado);\n contador=pasoSolicitado;\n return contador-1;\n }", "public ExcluirFilme() {\n initComponents();\n setTitle(\"LocVideo\");\n AtualizarCombo();\n }", "@Transactional\n\tpublic void excluir(Fabricante fabricanteSelecionado) throws NegocioException{\n\t\tFabricante fabricanteTemp= em.find(Fabricante.class, fabricanteSelecionado.getCodigo());\n\t\t\n\t\tem.remove(fabricanteTemp);\n\t\tem.flush();\n\t}", "public void descolaPosicao();", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void excluir(Telefone vo) throws Exception {\n\t\t\r\n\t}", "private void doExcluir() {\n ClearMsgsEvent.fire(this);\n if (Window.confirm(\"Tem certeza que deseja excluir o contato \" + contato.getNome() + \"?\")) {\n dispatcher\n .execute(new ExcluirContatoAction(contato), new AsyncCallback<ExcluirContatoResult>() {\n @Override\n public void onFailure(Throwable caught) {\n ShowMsgEvent\n .fire(CadastroContatoPresenter.this, \"Erro: \" + caught.getLocalizedMessage(),\n AlertType.ERROR);\n }\n\n @Override\n public void onSuccess(ExcluirContatoResult result) {\n if (result.isOk()) {\n doNovo();\n AtualizarListaDeContatosEvent.fire(CadastroContatoPresenter.this);\n }\n for (String msg : result.getMensagens()) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, msg,\n result.isOk() ? AlertType.SUCCESS : AlertType.ERROR);\n }\n }\n });\n }\n }", "@Override\r\n\tpublic void excluir(int id) throws Exception {\n\t\t\r\n\t}", "public void excluirDados() {\n\n int linha;\n\n if (verificarAbaAtiva() == 0) {\n linha = HorarioDeTrabalho.getSelectedRow();\n modHT = (DefaultTableModel) HorarioDeTrabalho.getModel();\n tratDados.excluirDadosTabela(modHT, linha);\n txtEntrada_Horario.requestFocus();\n } else {\n linha = MarcacoesFeitas.getSelectedRow();\n modMF = (DefaultTableModel) MarcacoesFeitas.getModel();\n tratDados.excluirDadosTabela(modMF, linha);\n txtEntrada_Marcacoes.requestFocus();\n }\n \n //Limpa as tabelas de Atraso e Extras\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n }", "public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }", "public void sairdaPrisao(Jogador jogador) {\n print(\"\\tA prisao tinha \" + listaJogadoresNaPrisao);\n listaJogadoresNaPrisao.remove(jogador.getNome());\n\n print(\"\\tmas saiu prisioneiro e prisao agora tem \" + listaJogadoresNaPrisao);\n }", "@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "public void excluirNotas(int idNota) {\r\n\t\tString sql = \"DELETE FROM notas WHERE idNota = ?\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = this.conexao.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, idNota);\r\n\t\t\tpstmt.execute();\r\n\t\t\tpstmt.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Falha ao deletar o registro selecionado da tabela notas\");\r\n\t\t}\r\n\t}", "void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }", "public void remove(n501070324_PedidoAssistencia assistencia) {\n listPedidosAssistencia.remove(assistencia);\n }", "public void desligar() {\n\r\n\t}", "private void borrarPieza(PosicionAjedrez pos){\n\t\tint fila= transformar(pos).getFila();\n\t\tint col= transformar(pos).getColumna();\n\n\t\tthis.getChildren().remove(tablero[col][fila]);\n\t\ttablero[col][fila]=new Canvas(CASILLERO_ANCHO,CASILLERO_ALTO);\n\t\ttablero[col][fila].setTranslateX(CASILLERO_ANCHO*col);\n\t\ttablero[col][fila].setTranslateY(CASILLERO_ALTO*fila);\n\n\t\tthis.getChildren().add(tablero[col][fila]);\n\t}", "public void excluirPorChavePrimaria(@SuppressWarnings(\"rawtypes\") Class pClasse, Object pPrimaryKey);", "public static void excluir(String id) throws Exception\n {\n // Ao remover pessoa remove os itens relacionados configurados para serem apagados em cascata\n PreparedStatement stmt = Banco.query(\"DELETE FROM pessoa WHERE id=?\");\n stmt.setString(1, id);\n Banco.executar(stmt);\n }", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }", "void supprimerMenu(int numeroArticle);", "private void supprimerParametre() {\n if (getSelectedParamatre() == null) return;\n parametreListView.getItems().remove(parametreListView.getSelectionModel().getSelectedItem());\n }", "@Override\n\tpublic void excluir(Cliente o) {\n\t\t\n\t}", "@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}", "private void btnRemoverActionPerformed(java.awt.event.ActionEvent evt) {\n\n if (tblSecoes.getSelectedRow() >= 0){\n\n if (JOptionPane.showConfirmDialog(RootPane, \"Deseja Remover esta Seção?\") == 0){\n Secao secaoselect = (Secao) tblSecoes.getValueAt(tblSecoes.getSelectedRow(), 0);\n\n if (secoes.contains(secaoselect)){\n secoes.remove(secaoselect);\n secoesapagar.add(secaoselect);\n }\n\n JOptionPane.showMessageDialog(RootPane, \"Seção Removida com Sucesso!\");\n adicionasecaotable();\n }\n } else {\n JOptionPane.showMessageDialog(RootPane, \"Selecione uma Seção Por Favor!\");\n }\n }", "public String desactivarEditarLicencia() {\r\n\r\n this.bandMod = true;\r\n if (puntAnt.compareTo(\"2\") == 0) {\r\n this.activeTabIndex = Constantes.TAB_BUSQUEDA;\r\n } else {\r\n\r\n if (puntAnt.compareTo(\"1\") == 0) {\r\n\r\n this.activeTabIndex = Constantes.TAB_MODIFICAR;\r\n \r\n }\r\n }\r\n\r\n Mensaje.guardarMensajeExito(\"Cancelar, Editar Licencia !!!\", \"Licencias\");\r\n\r\n return null;\r\n }", "void incluir(Entidade entidade);", "public String excluir() {\r\n\t\t// Obtem dados prenchido da tela\r\n\t\tUsuario usuario = (Usuario) obterParametros();\r\n\t\t// Verifica se a acao é igual a \"Excluir\"\r\n\t\tif (verificaAcao(\"excluir\")) {\r\n\t\t\ttry {\r\n\t\t\t\tif (usuarioDao.excluir(usuario)) {\r\n\t\t\t\t\t// Atualiza tela depois da excluzao\r\n\t\t\t\t\tsetAttribute(\"dado\", usuarioDao.buscar(usuario.getId()));\r\n\t\t\t\t\t// Seta mensagem de sucesso\r\n\t\t\t\t\tsetMensagemSucesso(\"Registro excluído com sucesso!\");\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tsetMensagemErro(\"Erro ao excluir!\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//retorna o caminho da pagina.\t\t\r\n\t\treturn \"auditoria/usuario/excluir.jsp\";\r\n\t}", "public void desactivarControles(){\n txtCodigoPlato.setEditable(false);\n txtDescripcionTipoPlato.setEditable(false);\n }", "public void remove(Ejemplar ej);", "@Override\n public boolean excluirRegistro() {\n this.produto.excluir();\n return true;\n }", "public void eliminarTermino() {\n System.out.println(\"......................\");\n System.out.println(\"Eliminar Termino Academico\");\n int i = 1;\n Entrada entrada = new Entrada();\n for (Termino t : Termino.terminos) {\n System.out.println(i + \". \" + t);\n i++;\n }\n if (i != 1) {\n int opc;\n do {\n opc = entrada.Entera(\"Ingrese opcion(1-\" + (i - 1) + \"): \");\n if (!(opc >= 1 && opc <= (i - 1))) {\n System.out.println(\"opcion no valida\");\n }\n } while (!(opc >= 1 && opc <= (i - 1)));\n Termino.terminos.remove(opc - 1);\n System.out.println(\"Termino Eliminado\");\n } else {\n System.out.println(\"No existen terminos\");\n }\n }", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void darBaja() {\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n if (coleccion.get(i).getUnidades() == 0) {\r\n String resumen = (\"Se ha dado de baja: \\n\" + coleccion.get(i).getTitulo() + \"\\npor falta de ejemplares\");\r\n JOptionPane.showMessageDialog(null, resumen);\r\n coleccion.remove(i);\r\n }\r\n\r\n }\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}", "private void deleteStylesheet() {\n\n// find start of the section\nString str = strBuf.toString();\nfinal int start = str.indexOf( SEC_START );\n\nif ( start == -1 ) {\n// section not contained, so just return ...\nreturn;\n}\n\n// find end of section\nfinal int end = str.indexOf( SEC_END, start );\n\n// delete section\nstrBuf.delete( start, end + 2 );\n}", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "public void eliminarVentanChat(String usuario) {\n\t\tif (chatPrivados.containsKey(usuario)) {\n\t\t\tMenuVentanaChat uiChat = chatPrivados.get(usuario);\n\t\t\tchatPrivados.remove(usuario);\n\t\t\tuiChat.dispose();\n\t\t} else if (usuario.equals(\"Sala\"))\n\t\t\tchatPublico.dispose();\n\t}", "public void enviarRequisicaoSairSala() {\n servidor.removerJogador(nomeJogador);\n }", "@Override\n\tpublic void excluirIngresso(Ingresso ingresso) throws DBException {\n\t\t\n\t}", "@Override\n\tpublic void desligar() {\n\t\t\n\t}", "public String incluir() {\r\n\t\t// Valida acao.\r\n\t\tif (verificaAcao(\"incluir\")) {\r\n\t\t\ttry {\r\n\t\t\t\tif (usuarioDao.incluir( (Usuario) obterParametros())) {\r\n\t\t\t\t\tsetMensagemSucesso(\"Registro incluído com sucesso!\");\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tsetMensagemErro(\"Erro de conexão!\", e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Mostrar lista de perfil para o formulário.\r\n\t\ttry {\r\n\t\t\tsetAttribute(\"perfis\", perfilDao.listar());\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsetMensagemErro(\"Erro de conexão!\", e);\r\n\t\t}\r\n\t\t//retorna o caminho da pagina.\t\t\r\n\t\treturn \"auditoria/usuario/incluir.jsp\";\r\n\t}", "public String escolheRemove(int pos) {\n\t\tString e = null;\n\t\tint i = 1;\n\t\tCampusModel aux = inicio;\n\n\t\tif (inicio == null) {\n\t\t\tSystem.out.println(\"Lista Vazia!\");\n\t\t\treturn e;\n\t\t}\n\t\tif (pos == 1) {\n\t\t\te = RemoveInicio();\n\t\t\treturn e;\n\t\t} else {\n\t\t\twhile (aux.getProx() != null) {\n\t\t\t\taux = aux.getProx();\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (pos > i || pos == 0) {\n\t\t\t\tSystem.out.println(\"Posição Invalida!\");\n\t\t\t\treturn e;\n\t\t\t} else if (pos == i) {\n\t\t\t\te = RemoveFinal();\n\t\t\t\treturn e;\n\t\t\t} else {\n\t\t\t\taux = inicio;\n\t\t\t\tCampusModel aux2 = aux;\n\n\t\t\t\twhile (pos > 1) {\n\t\t\t\t\taux2 = aux;\n\t\t\t\t\taux = aux.getProx();\n\t\t\t\t\tpos--;\n\t\t\t\t}\n\t\t\t\te = aux.getNomeCampus();\n\t\t\t\taux2.setProx(aux.getProx());\n\n\t\t\t\treturn e;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}", "public void excluirUltimaLinha() {\n valor = venda.BuscaultValor(ultimacod) - ultimoValor;\n int tempqte = venda.BuscaQte(ultimacod) + ultimaQte;\n SubMatRemove(ultimoValor, Double.parseDouble(jTxtSubTotal.getText()));\n AtulizaBanco(ultimacod, fun.getMatricula(), valor, tempqte);\n ((DefaultTableModel) jTable1.getModel()).removeRow(jTable1.getRowCount() - 1);\n }", "public void excluir(AlunosMilitaresOMDS excluirEfetivo) {\n\t\tsuper.executar(() -> {repository.apagar(AlunosMilitaresOMDS.class, excluirEfetivo.getId()); init();}, SUCESSO, FALHA);\n\t}", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "public abstract void eliminarSubproducto(EntityManager sesion, Subproducto subproducto);", "public boolean deletePalvelupisteet();", "public void excluir(Filme f) {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Iniciar a transação\r\n gerenciador.getTransaction().begin();\r\n\r\n //Para excluir tem que dar o merge primeiro para \r\n //sincronizar o ator do BD com o ator que foi\r\n //selecionado na tela\r\n f = gerenciador.merge(f);\r\n\r\n //Mandar sincronizar as alterações \r\n gerenciador.remove(f);\r\n\r\n //Commit na transação\r\n gerenciador.getTransaction().commit();\r\n\r\n }", "@Override\r\n\tprotected void cancelarOperacion() {\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES\");\r\n\t\tdesactivarFormulario();\r\n\t\tthis.panelBotones.deshabilitar();\r\n\r\n\t}", "public synchronized static void borrarProduccion(String usuario){\n if(!produccion.isEmpty())\n for(Construcciones construccion : produccion){\n if(construccion.usuario.equalsIgnoreCase(usuario))\n produccion.remove(construccion);\n }\n}", "void eliminarPedidosUsuario(String idUsuario);", "public void eliminarParametro() throws Exception;", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }" ]
[ "0.61786944", "0.61631584", "0.605863", "0.59158045", "0.5896066", "0.58800155", "0.5857275", "0.58363354", "0.5812813", "0.5811402", "0.57960874", "0.5783662", "0.57794315", "0.57603014", "0.5744289", "0.5722357", "0.571265", "0.56806844", "0.5676682", "0.56764096", "0.56730336", "0.56574506", "0.56562394", "0.56356585", "0.5625197", "0.56238705", "0.5607421", "0.55873656", "0.55694085", "0.5556443", "0.55440754", "0.5542919", "0.55384606", "0.55298454", "0.5502486", "0.5492215", "0.549145", "0.54900455", "0.5488973", "0.54829514", "0.5472464", "0.54705447", "0.5452744", "0.5443971", "0.54163396", "0.5409582", "0.54026943", "0.53901887", "0.5387067", "0.5379816", "0.5377157", "0.53692144", "0.5364809", "0.5353821", "0.53286844", "0.5325427", "0.5312485", "0.5308492", "0.5293509", "0.5286255", "0.5284482", "0.5280904", "0.5280742", "0.5280043", "0.5276892", "0.52767867", "0.52724093", "0.527213", "0.5271413", "0.52648747", "0.52617425", "0.5259827", "0.5257757", "0.5237986", "0.52379817", "0.5237733", "0.52306455", "0.52293056", "0.5226216", "0.5225824", "0.52224123", "0.5211468", "0.52111", "0.521035", "0.5208223", "0.5197223", "0.5194088", "0.51936233", "0.5192759", "0.51899785", "0.517638", "0.51732326", "0.5169261", "0.51586884", "0.51552135", "0.51534414", "0.51446193", "0.5142705", "0.5140635", "0.5140367" ]
0.6305223
0
Excluir de para secundarios.
public void excluirDeParaSecundarios(List<Long> idsDeParaSecundarios) throws DAOException { try { String qlString = new StringBuilder() .append("DELETE FROM DeParaSecundario dpp WHERE dpp.id in (:idsDeParaSecundarios)") .toString(); getEntityManager().createQuery(qlString).setParameter("idsDeParaSecundarios", idsDeParaSecundarios).executeUpdate(); } catch (final PersistenceException e) { LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"Não é possível excluir um cliente que tenha uma venda associado!\");\n e.printStackTrace();\n }\n }", "public void excluir(){\n\t\tSystem.out.println(\"\\n*** Excluindo Registro\\n\");\n\t\ttry{\n\t\t\tpacienteService.excluir(getPaciente());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(\"Registro Deletado com Sucesso!!\")); //Mensagem de validacao \n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"** Erro ao deletar: \"+e.getMessage());\n\t\t\tatualizarTela();\n\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\tfacesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Erro ao deletar o paciente: \"+e.getMessage(), \"\")); //Mensagem de erro \n\t\t\t\n\t\t}\n\t}", "private void enviarRequisicaoRemover() {\n servidor.removerPalito(nomeJogador);\n atualizarPalitos();\n }", "@Override\r\n\tpublic void excluir(int id) throws Exception {\n\t\t\r\n\t}", "public void deletar() {\n if(Sessao.isConfirm()){\n Usuario use = new Usuario();\n use.setId(Sessao.getId());\n Delete_Banco del = new Delete_Banco();\n del.Excluir_Usuario(use);\n this.setVisible(false);\n Sessao.setId(0);\n tela_Principal prin = Sessao.getPrin();\n prin.atualizar_Tela();\n }\n }", "@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}", "private void doExcluir() {\n ClearMsgsEvent.fire(this);\n if (Window.confirm(\"Tem certeza que deseja excluir o contato \" + contato.getNome() + \"?\")) {\n dispatcher\n .execute(new ExcluirContatoAction(contato), new AsyncCallback<ExcluirContatoResult>() {\n @Override\n public void onFailure(Throwable caught) {\n ShowMsgEvent\n .fire(CadastroContatoPresenter.this, \"Erro: \" + caught.getLocalizedMessage(),\n AlertType.ERROR);\n }\n\n @Override\n public void onSuccess(ExcluirContatoResult result) {\n if (result.isOk()) {\n doNovo();\n AtualizarListaDeContatosEvent.fire(CadastroContatoPresenter.this);\n }\n for (String msg : result.getMensagens()) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, msg,\n result.isOk() ? AlertType.SUCCESS : AlertType.ERROR);\n }\n }\n });\n }\n }", "@Override\n\tpublic void excluir(Cliente o) {\n\t\t\n\t}", "public void excluirDados() {\n\n int linha;\n\n if (verificarAbaAtiva() == 0) {\n linha = HorarioDeTrabalho.getSelectedRow();\n modHT = (DefaultTableModel) HorarioDeTrabalho.getModel();\n tratDados.excluirDadosTabela(modHT, linha);\n txtEntrada_Horario.requestFocus();\n } else {\n linha = MarcacoesFeitas.getSelectedRow();\n modMF = (DefaultTableModel) MarcacoesFeitas.getModel();\n tratDados.excluirDadosTabela(modMF, linha);\n txtEntrada_Marcacoes.requestFocus();\n }\n \n //Limpa as tabelas de Atraso e Extras\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n }", "public void excluirDeParaSecundarioDoDePara(List<Long> idsDePara) throws DAOException {\n try {\n String qlString = new StringBuilder()\n .append(\"DELETE FROM DeParaSecundario dps WHERE dps.dePara.id in (:idDePara)\")\n .toString();\n \n getEntityManager().createQuery(qlString).setParameter(\"idDePara\", idsDePara).executeUpdate();\n \n } catch (final PersistenceException e) {\n LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e);\n throw new DAOException(e);\n }\n \n }", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "@Override\n public boolean excluirRegistro() {\n this.produto.excluir();\n return true;\n }", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "@Transactional\n\tpublic void excluir(Fabricante fabricanteSelecionado) throws NegocioException{\n\t\tFabricante fabricanteTemp= em.find(Fabricante.class, fabricanteSelecionado.getCodigo());\n\t\t\n\t\tem.remove(fabricanteTemp);\n\t\tem.flush();\n\t}", "private void btnRemoverActionPerformed(java.awt.event.ActionEvent evt) {\n\n if (tblSecoes.getSelectedRow() >= 0){\n\n if (JOptionPane.showConfirmDialog(RootPane, \"Deseja Remover esta Seção?\") == 0){\n Secao secaoselect = (Secao) tblSecoes.getValueAt(tblSecoes.getSelectedRow(), 0);\n\n if (secoes.contains(secaoselect)){\n secoes.remove(secaoselect);\n secoesapagar.add(secaoselect);\n }\n\n JOptionPane.showMessageDialog(RootPane, \"Seção Removida com Sucesso!\");\n adicionasecaotable();\n }\n } else {\n JOptionPane.showMessageDialog(RootPane, \"Selecione uma Seção Por Favor!\");\n }\n }", "public void enviarRequisicaoSairSala() {\n servidor.removerJogador(nomeJogador);\n }", "public void excluirInteresse(String nome, String tituloImovel) {\n\t\tString sql = \"DELETE FROM interesse WHERE titulo ='\" +tituloImovel+\"' AND nomeInteressado ='\"+nome+\"'\";\n\t\ttry{\n\t\t\tPreparedStatement stmt = conexaoBD.prepareStatement(sql); \n\t\t\tstmt.execute();\n\t\t\tstmt.close();\n\t\t\tJOptionPane.showMessageDialog(null, \"Interesse excluído\");\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e.getMessage()); \n\t\t}\n\t}", "@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}", "@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }", "public void excluirNotas(int idNota) {\r\n\t\tString sql = \"DELETE FROM notas WHERE idNota = ?\";\r\n\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = this.conexao.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, idNota);\r\n\t\t\tpstmt.execute();\r\n\t\t\tpstmt.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Falha ao deletar o registro selecionado da tabela notas\");\r\n\t\t}\r\n\t}", "private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "public synchronized static void borrarProduccion(String usuario){\n if(!produccion.isEmpty())\n for(Construcciones construccion : produccion){\n if(construccion.usuario.equalsIgnoreCase(usuario))\n produccion.remove(construccion);\n }\n}", "public String excluir() {\r\n\t\t// Obtem dados prenchido da tela\r\n\t\tUsuario usuario = (Usuario) obterParametros();\r\n\t\t// Verifica se a acao é igual a \"Excluir\"\r\n\t\tif (verificaAcao(\"excluir\")) {\r\n\t\t\ttry {\r\n\t\t\t\tif (usuarioDao.excluir(usuario)) {\r\n\t\t\t\t\t// Atualiza tela depois da excluzao\r\n\t\t\t\t\tsetAttribute(\"dado\", usuarioDao.buscar(usuario.getId()));\r\n\t\t\t\t\t// Seta mensagem de sucesso\r\n\t\t\t\t\tsetMensagemSucesso(\"Registro excluído com sucesso!\");\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tsetMensagemErro(\"Erro ao excluir!\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//retorna o caminho da pagina.\t\t\r\n\t\treturn \"auditoria/usuario/excluir.jsp\";\r\n\t}", "public void desenclencheSecurite() {\r\n\t\tisSecuriteEnclenchee = false;\r\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public void desactivarRecursos() {\n\r\n\t}", "public void borrarPiezasAmenazadoras(){\n this.piezasAmenazadoras.clear();\n }", "public void eliminarNovedadesRegistradas(Integer codigoCompania, Collection<Long> codigosProcesoLogistico) throws SICException;", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "@Override\n\tpublic void excluirIngresso(Ingresso ingresso) throws DBException {\n\t\t\n\t}", "void incluir(Entidade entidade);", "@Override\n public void excluir(Pessoa pessoa) {\n String sql = \"DELETE FROM pessoa WHERE uuid=?\";\n try {\n this.conexao = Conexao.abrirConexao();\n PreparedStatement statement = conexao.prepareStatement(sql);\n statement.setLong(1, pessoa.getId());\n statement.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n\n }", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "@Override\r\n\tpublic void excluir(Telefone vo) throws Exception {\n\t\t\r\n\t}", "public CensoPSAMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "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 }", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "void remover(Professor p)throws ProfessorNExisteException;", "public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }", "public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }", "public void borrarSesionesAnteriores()\r\n\t{\r\n\t\tint numerosesiones = 0;//numero de convocatorias en la BD\r\n\t\tList sesiones = null;\r\n\t\ttry\r\n {\r\n Conector conector = new Conector();\r\n conector.iniciarConexionBaseDatos();\r\n sesiones= SesionBD.listar(conector);\r\n conector.terminarConexionBaseDatos();\r\n }\r\n catch (Exception e)\r\n\t\t{\r\n \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n if(sesiones != null)\r\n {\r\n \tnumerosesiones = sesiones.size();\r\n }\r\n for (int i = 0; i < numerosesiones; i++)\r\n\t\t{\r\n \tSesion sesionaux = (Sesion)sesiones.get(i);\r\n\t\t\tint idsesion = sesionaux.getIdsesion();\r\n\t\t\tString fechasesion = sesionaux.getFechasesion();\r\n\t\t\tboolean esanterior = fechaSesionAnterior(fechasesion);\r\n\t\t\tif(esanterior == true)\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t \t\t{\r\n\t \t\t\tConector conector = new Conector();\r\n\t \t\t\tconector.iniciarConexionBaseDatos();\r\n\t \t\t\tSesionBD.eliminar(idsesion, conector);\r\n\t \t\t\tconector.terminarConexionBaseDatos();\r\n\t \t\t}\r\n\t \t\tcatch (Exception e)\r\n\t \t\t{\r\n\t \t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t \t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void excluir(Filme f) {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Iniciar a transação\r\n gerenciador.getTransaction().begin();\r\n\r\n //Para excluir tem que dar o merge primeiro para \r\n //sincronizar o ator do BD com o ator que foi\r\n //selecionado na tela\r\n f = gerenciador.merge(f);\r\n\r\n //Mandar sincronizar as alterações \r\n gerenciador.remove(f);\r\n\r\n //Commit na transação\r\n gerenciador.getTransaction().commit();\r\n\r\n }", "public void excluirConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void excluirContaImopostosDeduzidos(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException;", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public static void excluir(int numCompra){\r\n lerXml();\r\n for(int i=0; i < lista.size(); i++){\r\n Estoque cadaEstoque = lista.get(i);\r\n \r\n //procura o estoque que tem o CPF igual \r\n //à variável \"cpf\", que tá chegando entre\r\n //os parênteses\r\n if (cadaEstoque.getNumCompra()==numCompra){\r\n lista.remove(i);\r\n }\r\n }\r\n salvarXml();\r\n }", "public boolean excluirSocio(Socio socio) {\n System.out.println(\"excluirSocio\");\n // inicia a conexao com o Banco de dados chamando\n // a classe Conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado. Preparando para excluir\");\n Statement stmt = null;\n \n try {\n stmt = connection.createStatement();\n\n String sql = \"DELETE FROM socio WHERE nomeSocio = '\" + socio.getNome() + \"'\";\n System.out.println(\"SQL: \" + sql);\n stmt.executeUpdate(sql);\n \n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n System.out.println(\"Banco fechado, excluido com sucesso\");\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n }", "public void remover(Solicitacao solicitacao) {\n\t\tSystem.out.println(\"Removendo livro\");\n\t\tDAO<Solicitacao> dao = new DAO<Solicitacao>(Solicitacao.class);\n\t\tdao.remove(solicitacao);\n\t\t//recarrega a pagina devido ao cache\n\t\tthis.solicitacoes = dao.listaTodos();\n\n\t}", "public void eliminar() throws SQLException {\r\n\t\tConexion conexion = new Conexion();\r\n\t\tConnection cn = conexion.conectar();\r\n\t\tStatement stm = cn.createStatement();\r\n\t\t//Delete en users del usuariop con el que iniciaste sesion para borrar el usuario\r\n\t\tString query=\"delete from users where USR=\"+InicioUsuario.correo;\r\n\t\tstm.executeUpdate(query);\r\n\t\t\r\n\t}", "public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "private void eliminaAccount(HttpServletRequest request, HttpServletResponse response) {\r\n HttpSession session = request.getSession();\r\n Medico medico = (Medico) session.getAttribute(\"utente\");\r\n if (medico != null) {\r\n\r\n if (PazienteModel.getPazientiSeguiti(medico.getCodiceFiscale()).size() != 0) {\r\n // non è possibile effettuare l'eliminazione, notificare al medico che non può\r\n // proseguire con l'opeazione fino a che\r\n // segue dei pazienti.\r\n } else {\r\n MedicoModel.removeMedico(medico.getCodiceFiscale());\r\n request.setAttribute(\"notifica\", \"Account eliminato con successo\");\r\n session.removeAttribute(\"utente\");\r\n session.setAttribute(\"accessDone\", false);\r\n }\r\n\r\n }\r\n\r\n }", "public void excluir(AlunosMilitaresOMDS excluirEfetivo) {\n\t\tsuper.executar(() -> {repository.apagar(AlunosMilitaresOMDS.class, excluirEfetivo.getId()); init();}, SUCESSO, FALHA);\n\t}", "public static void excluir(String id) throws Exception\n {\n // Ao remover pessoa remove os itens relacionados configurados para serem apagados em cascata\n PreparedStatement stmt = Banco.query(\"DELETE FROM pessoa WHERE id=?\");\n stmt.setString(1, id);\n Banco.executar(stmt);\n }", "public void remover(Usuario u) {\n listaUse.remove(u);\n\n }", "private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void eliminar(ListaConArreglo nodosMaquina){\n\t\tmodAdmin.eliminar( nodosMaquina);\n\t\tif(!ModAdmin.existe){\n\t\t\tSystem.err.println(\"El dominio indicado no existe en la base\");\n\t\t}\n\t\tModAdmin.existe=false;\n\t}", "private void eliminar(HttpServletRequest request, HttpServletResponse response) {\n\t\n\t\ttry {\n\t\t\tString numero =request.getParameter(\"idCliente\");//leo parametro numeroHabitacion de la vista\n\t\t\t\n\t\t\t//llamo a un metodo del modelo para que elimine el editorial de la bd y consulto si se pudo eliminar\n\t\t\tif(modelo.eliminarCliente(numero) > 0) {\n\t\t\t\t\n\t\t\t\t//paso un atributo de exito si se pudo eliminar\n\t\t\t\trequest.setAttribute(\"exito\", \"Cliente eliminado exitosamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//paso un atributo de fracaso. \n\t\t\t\trequest.setAttribute(\"fracaso\", \"No se puede eliminar Cliente\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//redirecciono sin importar si se pudo o no eliminar\n\t\t\trequest.getRequestDispatcher(\"/clientes.do?op=listar\").forward(request, response);\n\t\t} catch (SQLException | ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "public int eliminar(int pasoSolicitado ){\n if(tipoTraductor.equals(\"Ascendente\"))\n eliminarAsc(pasoSolicitado);\n else \n eliminarDesc(pasoSolicitado);\n cadena.actualizarCadena(pasoSolicitado);\n contador=pasoSolicitado;\n return contador-1;\n }", "@Override\r\n public Resultado excluir(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"EXCLUIR\");\r\n if (msg.isEmpty()) {\r\n IDAO dao = daos.get(nmClass);\r\n dao.excluir(entidade);\r\n resultado.setMsg(\"Dados excluidos\");\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "@FXML\n public void excluiCidade(){\n\t\tCidade sel = tblCidade.getSelectionModel().getSelectedItem();\n\t\t\n \tif(sel!=null){\n \t\tif(Mensagens.msgExcluir()){\n \t\t\tsel.exclui(conn);\n \t\t\tattTblCidade();\n \t\t\tlimpaCidade();\n \t\t\tMensagens.msgInformacao(\"Sucesso\", \"Cidade excluída com êxito\");\n \t\t}else\n \t\t\tMensagens.msgInformacao(\"Cancelado\", \"Cidade não excluída\");\n \t}else\n \t\tMensagens.msgErro(\"FALHA\", \"Selecione uma Cidade\");\n }", "public void excluirContaCategoria(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void eliminarDatosEnEntidad(String entidad, ArrayList entidadencontrada)\r\n\t{\r\n\t\tif(entidad.equalsIgnoreCase(\"Rol\"))\r\n\t\t{\r\n\t\t\tRol encontrado = (Rol)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t RolBD.eliminar(encontrado.getIdrol(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\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\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Prueba\"))\r\n\t\t{\r\n\t\t\tPrueba encontrado = (Prueba)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \tString nombrepru = encontrado.getNombre();\r\n\t \tif(nombrepru.equalsIgnoreCase(\"Vacante Exclusivo\") || nombrepru.equalsIgnoreCase(\"Vacante Multiple\") || nombrepru.equalsIgnoreCase(\"Prueba Libre\"))\r\n\t \t{\r\n\t \t\tJOptionPane.showMessageDialog(this,\"La prueba \"+nombrepru+\" no puede ser eliminada por ser parte importante de la base del conocimiento.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\ttry\r\n\t\t\t {\r\n\t\t\t Conector conector = new Conector();\r\n\t\t\t conector.iniciarConexionBaseDatos();\r\n\t\t\t PruebaBD.eliminar(encontrado.getIdprueba(), conector);\r\n\t\t\t conector.terminarConexionBaseDatos();\r\n\t\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t\t }\r\n\t\t\t catch (Exception e)\r\n\t\t\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\t\t}\r\n\t \t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Pregunta\"))\r\n\t\t{\r\n\t\t\tPregunta encontrado = (Pregunta)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t PreguntaBD.eliminar(encontrado.getIdpregunta(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\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\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Escala\"))\r\n\t\t{\r\n\t\t\tEscala encontrado = (Escala)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t EscalaBD.eliminar(encontrado.getIdescala(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\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\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Competencia\"))\r\n\t\t{\r\n\t\t\tCompetencia encontrado = (Competencia)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t CompetenciaBD.eliminar(encontrado.getIdcompetencia(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\t\t \tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/error.PNG\"));\r\n\t\t\t\t}\r\n\t }\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Caracteristica\"))\r\n\t\t{\r\n\t\t\tCaracteristica encontrado = (Caracteristica)entidadencontrada.get(0);\r\n\t\t\tint respuesta = JOptionPane.showConfirmDialog(this,\"Los datos seleccionados seran eliminados de forma permanente\"+\"\\n\"+\" ¿Desea eliminarlos definitivamente?\",\"Confirmacion para eliminar\",JOptionPane.YES_NO_OPTION,JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t if (respuesta == JOptionPane.YES_OPTION){\r\n\t \ttry\r\n\t\t {\r\n\t\t Conector conector = new Conector();\r\n\t\t conector.iniciarConexionBaseDatos();\r\n\t\t CaracteristicaBD.eliminar(encontrado.getIdcaracteristica(), conector);\r\n\t\t conector.terminarConexionBaseDatos();\r\n\t\t JOptionPane.showMessageDialog(this,\"Los datos seleccionados han sido eliminados.\",\"Elininar Datos\",JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t\t\t{\r\n\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\t}\r\n\t }\r\n\t\t}\r\n\t}", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "public void removeEnrolled(Course curs, Student stud) throws SQLException {\r\n Connection con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/Hogwarts\",\"postgres\" , \"admin\");\r\n Statement st = con.createStatement();\r\n\r\n st.executeUpdate(\"DELETE FROM public.enrolled\\n\" +\r\n \"\\tWHERE \" + \"\\\"studentID\\\"=\" + stud.getId() + \" AND \\\"courseID\\\"=\" + curs.getId());\r\n\r\n st.close();\r\n\r\n }", "private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "@Override\n\tpublic void eliminar() {\n\n\t}", "public void eliminarCurs(int codiCurs) {\r\n// int codiCurs = llegirNum(\"Codi del curs a eliminar: \");\r\n Curs curs = (Curs) this.llistCurs.cercar(codiCurs);\r\n if (curs != null) {\r\n Assignatura assAux = curs.getList().getCap();\r\n while (assAux != null) {\r\n curs.eliminarAssignautra(assAux.getCodi());\r\n assAux = curs.getList().getCap();\r\n }\r\n this.llistCurs.eliminar(codiCurs);\r\n JOptionPane.showMessageDialog(new JFrame(),\r\n \"Curs eliminat correctament\");\r\n\r\n } else {\r\n// System.out.println(\"Curs no existent.\");\r\n JOptionPane.showMessageDialog(new JFrame(),\r\n \"Curs no exsistent\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "private void removePreference(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tLong userId = Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER));\n\t\t\tLong contentId = Long.parseLong(req.getParameter(Constants.CONTENT));\n\t\t\tString nameOfContent = ContentDB.getTitleOfContent(contentId);\n\t\t\tif (userId != null && contentId != null) {\n\t\t\t\tif (PreferenceDB.userHaveContent(userId, contentId)) {\n\t\t\t\t\tmyRecommender.removePreference(contentId, userId);\n\t\t\t\t\tLOGGER.info(\"Eliminamos la valoración del usuario \" + UserDB.getnameOfUser(userId)\n\t\t\t\t\t\t\t+ \" para el contenido \" + nameOfContent);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLOGGER.warning(\"Usuario u objeto no encontrado\");\n\t\t\t}\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }", "public void eliminarCompraComic();", "public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }", "public void removerEncomendaInsumo(int insumoId){\t\t\n\t\tEncomenda_insumoController encomenda_insumoController = new Encomenda_insumoController();\n\t\tSystem.out.println(insumoId);\n\t\tencomenda_insumoController.setup();\n\t\tString resposta = encomenda_insumoController.delete(insumoId);\n\t\t\n\t\tencomendaController = new EncomendaController();\n\t\tencomendaController.setup();\t\t\t\n\t\t\n\t\tif(!resposta.equals(\"ok\")) {\n\t\t\texibirMsgErro(resposta);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tgetAllEncomendas();\n\t}", "protected void removerContato(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString id = request.getParameter(\"id\");\n\t\t// System.out.println(id);//teste de recebimento do ID\n\n\t\t// evio do ID - Send ID\n\t\tcontato.setId(id);\n\t\t// executando a exclusão - execute\n\t\tdao.deletarContato(contato);\n\t\t// redirecionar para agenda.jsp - redirect to agenda.jsp\n\t\tresponse.sendRedirect(\"main\");\n\n\t}", "@Override\r\n\tpublic void excluir(Evento evento) {\n\t\trepository.delete(evento);\r\n\t}", "public void excluirClienteConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;", "public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }", "private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\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\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}", "public void EliminarTodosLosEnemigos() {\n\t\tlistaDeEnemigos.removeAll(listaDeEnemigos);\n\t}", "public void deleteBeneficioDeuda(Map parametros);", "public boolean excluir(String _cpfProfessor) throws BDException {\n\t\tint idx = this.busca(_cpfProfessor);\r\n\t\tboolean result = false;\r\n\t\tif (idx != -1) {\r\n\t\t\tthis.professores.remove(idx);\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void removeAllLicensee() {\r\n\t\tBase.removeAll(this.model, this.getResource(), LICENSEE);\r\n\t}", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}" ]
[ "0.7046007", "0.6905159", "0.68588096", "0.6553609", "0.6393621", "0.6361257", "0.6336583", "0.6325979", "0.6314684", "0.62209445", "0.6220166", "0.61950815", "0.61793596", "0.61353964", "0.61312014", "0.61140335", "0.6099325", "0.60866946", "0.60724056", "0.60519606", "0.6029376", "0.60183996", "0.6010263", "0.59943724", "0.59765625", "0.5949798", "0.5944148", "0.5942872", "0.59410626", "0.5940876", "0.59372854", "0.5918617", "0.59104943", "0.59016776", "0.5882422", "0.5880879", "0.58612436", "0.58503073", "0.58443457", "0.58425933", "0.5838096", "0.58380103", "0.5836037", "0.5827304", "0.5814751", "0.58109975", "0.5804611", "0.5798475", "0.57975256", "0.579717", "0.57935256", "0.57882565", "0.57877314", "0.57794905", "0.5778809", "0.5775913", "0.5769122", "0.5758449", "0.5750375", "0.57443565", "0.5737639", "0.57375884", "0.57324624", "0.57283735", "0.57254046", "0.57246894", "0.57162994", "0.57106155", "0.5703971", "0.56992924", "0.56901556", "0.5687447", "0.56874055", "0.5682947", "0.5677177", "0.5676256", "0.5673482", "0.56680393", "0.56665206", "0.5659193", "0.56554127", "0.56537396", "0.5644673", "0.56392217", "0.5637842", "0.5622718", "0.56140643", "0.5613029", "0.560888", "0.560611", "0.56057286", "0.56050855", "0.55978435", "0.5597299", "0.55940473", "0.559386", "0.55902636", "0.5577706", "0.55773985", "0.55765754" ]
0.6488007
4
Consulta codigos secundarios aud.
public List<DeParaSecundarioAud> consultaCodigosSecundariosAud(Long idDePara, Long idRevisao) throws DAOException { try { String qlString = new StringBuilder().append( "FROM DeParaSecundarioAud dps WHERE dps.dePara.id = :idDePara and dps.revisao.id = :idRevisao") .toString(); List<DeParaSecundarioAud> resultado = getEntityManager().createQuery(qlString).setParameter("idDePara", idDePara) .setParameter("idRevisao", idRevisao).getResultList(); return resultado; } catch (final PersistenceException e) { LOG.error(ERRO_AO_EXCLUIR_DEPARA_PELO_TIPO_DEPARA, e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dissociaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\tAuAssUtenteSessione ass = auditService.getAssociazioneAuditors(idAccesso, idUtente);\n\t\tass.setIdSessione(idAccesso);\n\t\tass.setIdUtente(idUtente);\n\t\tass.setDataFine(new Date());\n\t\tAuAssUtenteSessione managed=(AuAssUtenteSessione)auditService.salva(ass);\n\t\t\n\t\t//auditService.dissociaAuditors(idAccesso, idUtente);\n\t\t\n\t\treturn SUCCESS;\n\t}", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public String associaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\t//AuAssUtenteSessione ass = new AuAssUtenteSessione();\n\t\tAuAssUtenteSessione ass = auditService.getAssociazioneAuditors(idAccesso, idUtente);\n\t\tass.setIdSessione(idAccesso);\n\t\tass.setIdUtente(idUtente);\n\t\tass.setDataInizio(new Date());\n\t\tass.setDataFine(null);\n\t\tAuAssUtenteSessione managed=(AuAssUtenteSessione)auditService.salva(ass);\n\t\t\n\t\treturn SUCCESS;\n\t}", "private static Oda odaSec(ArrayList<Oda> odalar)\n {\n for (int i=0;i<odalar.size();i++)\n {\n System.out.print(odalar.get(i).getOdaNo() + \"\\t\");\n }\n System.out.print(\"\\nHangi numarali odayi secmek istiyorsunuz: \");\n Scanner scn = new Scanner(System.in);\n return odalar.get(NoToId(scn.nextInt(),odalar));\n }", "public List<UsuarioDto> getAvalesByIdSolicitud(BigInteger idSolicitud) throws BusinessException {\n try {\n\n List<UsuarioDto> avales = avaSolDao.getAvalesByIdSolicitud(idSolicitud);\n\n for (UsuarioDto aval : avales) {\n /*Cuando el usuario está activo*/\n if(aval.getEstatus()==null){\n aval.setEstatus(0);\n }\n \n if (aval.getEstatus() == 1) {\n aval.setEstatusStr(Constantes.USR_ACTIVO);\n } else {\n aval.setEstatusStr(Constantes.USR_BAJA);\n }\n\n switch (aval.getEstatusAvalInt()) {\n case 1:\n aval.setEstatusAvalStr(Constantes.SOLAVA_PENDIENTE);\n break;\n case 2:\n aval.setEstatusAvalStr(Constantes.SOLAVA_VALIDANDO);\n break;\n case 3:\n aval.setEstatusAvalStr(Constantes.SOLAVA_APROBADO);\n break;\n case 4:\n aval.setEstatusAvalStr(Constantes.SOLAVA_RECHAZADO);\n break;\n }\n }\n\n return avales;\n } catch (IntegracionException ex) {\n throw new BusinessException(ex.getMessage(), ex);\n }\n }", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "private void getReconsentimientos(){\n mReconsentimientos = estudioAdapter.getListaReConsentimientoDensSinEnviar();\n //ca.close();\n }", "public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "List<Seguimiento> listarSeguimientosxDocenteMateria(Integer fcdcId, Integer mtrId);", "public static String obtenerListaProfesores () {\n StringBuilder sb;\n Statement stmt;\n String query;\n ResultSet result;\n try {\n iniciarConexion();\n sb = new StringBuilder();\n stmt = connection.createStatement();\n query = \"SELECT * FROM usuarios WHERE Matricula LIKE 'l%';\";\n result = stmt.executeQuery(query);\n while (result.next()) {\n sb.append(result.getString(2));\n sb.append(\" \");\n sb.append(result.getString(3));\n sb.append(\",\");\n }\n return sb.toString();\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return \"\";\n }\n }", "public void iniciarProduccion(){\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select nick from usuarios where nick in(select usuario from construcciones) or nick \"\n +\"in(select usuario from investigaciones) or nick in(select usuario from movimientos)\");\n\n while(rs.next()){\n produccion.add(new Construcciones(rs.getString(1)));\n System.out.println(rs.getString(1));\n }\n\n st.close();\n rs.close();\n conn.close();\n\n }catch(SQLException e){\n System.out.println(\"Fallo actualizacion de produccion.\");\n }\n}", "public OtrosUsuarios(int sesID) {\n initComponents();\n this.sesID = sesID;\n Conexion sql = new Conexion();\n sql.consulta(tabla, \"select Usuario, Inicio from seleccionarUsuarios\");\n }", "public void consultaRadicacionesSegumiento() {\r\n try {\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n Conexion.Conexion.CloseCon();\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultaRadicacionesSegumiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\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 void registrarAuditoria(Connexion connexion,Long idUsuario,Caja caja,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(caja.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(caja.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!caja.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(caja.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public Cliente[] findWhereSincronizacionMicrosipEquals(int sincronizacionMicrosip) throws ClienteDaoException;", "public String vaAcSec(ConexionBaseDatos con, String nomSec) {\n con.abrirConexion();\n String sec = \"\";\n try {\n ResultSet rs = null;\n PreparedStatement stmt = null;\n String sql = \"SELECT last_value FROM \" + nomSec;\n stmt = con.con.prepareStatement(sql);\n rs = stmt.executeQuery();\n rs.next();\n sec = rs.getString(\"last_value\");\n\n\n } catch (SQLException e) {\n System.out.println(\"Error obteniendo el valor de la secuencia en funciones.java\");\n }\n return sec;\n }", "java.util.List<AuditoriaUsuario> findAll();", "private void retrieveDatos(Long codProfesor, Long anio) {\n recuperaPerfDoc(codProfesor, anio);\r\n }", "@Query(value = \"select * from javateam5.studentcourse sc where sc.studentid = :sid and sc.moduleid in (select moduleid from modules where academicyear = year(curdate())) \", nativeQuery = true)\r\n\tArrayList<Studentcourse> findModbyStuandYear(@Param(\"sid\") String sid);", "private void listarProfesores(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Connection con = null;//Objeto para la conexion\r\n Statement sentencia = null;//Objeto para definir y ejecutar las consultas sql\r\n ResultSet resultado = null;//Objeto para obtener los resultados de las consultas sql\r\n String sql = \"\";\r\n try {\r\n con = conBD.getCConexion();\r\n //Definición de Sentencia SQL\r\n //sql = \"SELECT semail,sclave,nestado,snombre,sapellido,stelefono,sgenero,nidPerfil FROM usuarios\";\r\n sql = \"SELECT semail,sclave,nestado,usuarios.snombre,sapellido,stelefono,sgenero,nidPerfil,\"\r\n + \"(case WHEN nestado=0 THEN 'Inactivo' ELSE 'Activo' END) AS sestado,\"\r\n + \"(case WHEN sgenero=0 THEN 'Femenino' ELSE 'Masculino' END) AS desgenero,\"\r\n + \"perfiles.snombre \"\r\n + \"FROM usuarios,perfiles \"\r\n + \"where usuarios.nidPerfil=perfiles.idPerfil and usuarios.nidPerfil=3 \"\r\n + \"order by usuarios.snombre\";\r\n\r\n //Ejecutar sentencia\r\n sentencia = con.createStatement();\r\n resultado = sentencia.executeQuery(sql);\r\n\r\n //arreglo donde se gurdaran los usuarios encontrados en la BD\r\n ArrayList Usuarios = new ArrayList();\r\n while (resultado.next()) //si el resultado tiene datos empezar a guardarlos.\r\n {\r\n Usuario e = new Usuario(resultado.getString(1), resultado.getString(2),\r\n resultado.getString(4), resultado.getString(5), resultado.getString(6), resultado.getString(7),\r\n resultado.getInt(8), resultado.getInt(3));\r\n //agregamos las descripciones al objeto.\r\n e.setDescripcionEstado(resultado.getString(9));\r\n e.setDescripcionGenero(resultado.getString(10));\r\n e.setDescripcionPerfil(resultado.getString(11));\r\n //Agregamos el profesor al arrelo\r\n Usuarios.add(e);\r\n }\r\n // Agregar el arreglo de profesores a la solicitud\r\n request.setAttribute(\"Profesores\", Usuarios);\r\n //redirigir la solicitu a la página JSP\r\n request.getRequestDispatcher(\"/EscribirMensaje.jsp\").include(request, response);\r\n //cerrar la conexion\r\n //con.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"No se ha podido establecer la conexión, o el SQL esta mal formado \" + sql);\r\n request.getRequestDispatcher(\"/Error.jsp\").forward(request, response);\r\n }\r\n }", "private void getEncCasas() {\n mEncuestasCasas= estudioAdapter.getListaEncuestaCasasSinEnviar();\n //ca.close();\n }", "public int ultimasAlertasDelSistema(Connection conn) {\r\n\t\tint cantidad = 0;\r\n\t\ttry {\r\n\r\n\t\t\tPreparedStatement statement = conn\r\n\t\t\t\t\t.prepareStatement(\"select\"\r\n\t\t\t\t\t\t\t+ \" count(ID_ALERTA)\"\r\n\t\t\t\t\t\t\t+ \" from alertas \"\r\n\t\t\t\t\t\t\t+ \" where fecha_fin \"\r\n\t\t\t\t\t\t\t+ \" BETWEEN DATE_SUB(CURRENT_DATE(), INTERVAL 8 DAY) AND CURRENT_DATE+3 \"\r\n\t\t\t\t\t\t\t+ \" and ESTADO != 'Desactivado'\");\r\n\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\r\n\t\t\tcantidad = 0;\r\n\t\t\tfor (int i = 0; i < 1; i++) {\r\n\t\t\t\trs.next();\r\n\t\t\t\tcantidad = Integer.parseInt(\"\" + rs.getString(1));\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tstatement.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t\treturn cantidad;\r\n\t}", "public List<Uang> getSemuaUang(){\n List<Uang> uangList = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()){\n do {\n Uang uang = new Uang(cursor.getString(1), cursor.getString(2));\n uangList.add(uang);\n } while (cursor.moveToNext());\n }\n return uangList;\n }", "private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }", "public List<LogSeguimiento> getListSeguimiento() {\r\n return ListSeguimiento;\r\n }", "public ArrayList obtenerSeccionesdeTerritorio(Long oidTerritorio)\n throws MareException {\n \n UtilidadesLog.info(\"DAOZON.obtenerSeccionesdeTerritorio(Long oidTerritorio): Entrada\");\n \n BelcorpService bs;\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException ex) {\n throw new MareException(ex,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n // Genera la sentencia SQL.\n StringBuffer SQL = new StringBuffer(\n \"SELECT TA.ZSCC_OID_SECC FROM ZON_TERRI_ADMIN TA, ZON_SECCI S WHERE \");\n SQL.append(\"TERR_OID_TERR=\");\n SQL.append(oidTerritorio.toString());\n SQL.append(\" AND TA.IND_BORR = 0 \");\n SQL.append(\" AND S.IND_BORR = 0 \");\n/* \n * BELC300023160 - gPineda - 22/05/2006 \n * SQL.append(\" AND S.IND_ACTI = 1 \");\n*/\n SQL.append(\" AND TA.ZSCC_OID_SECC = S.OID_SECC \");\n\n RecordSet r;\n\n try {\n // Ejecuta la consulta.\n r = bs.dbService.executeStaticQuery(SQL.toString());\n } catch (Exception ex) {\n throw new MareException(ex,\n UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\n\n int nCantRegistros = r.getRowCount();\n ArrayList aList = new ArrayList(); // Se instancia como null por si la cant. de registros es vacío.\n BigDecimal d = null;\n\n if (nCantRegistros != 0) {\n // Guarda en aList los oid de las secciones que coinciden.\n for (int i = 0; i < nCantRegistros; i++) {\n d = (BigDecimal) r.getValueAt(i, 0);\n aList.add(new Long(d.longValue()));\n }\n }\n UtilidadesLog.info(\"DAOZON.obtenerSeccionesdeTerritorio(Long oidTerritorio): Salida\");\n return aList;\n }", "public ArrayList<String> getProfEncadrant (int idProf) throws RemoteException{\r\n\t\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\r\n\t\t String requete = \"Select * from professeur where pf_id =\" + idProf;\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t \tif (data.hasMoreElements()) {\r\n\t\t \t\tline = data.nextElement();\r\n\t\t \t\tlist.add(line[2]);\r\n\t\t \t\tlist.add(line[3]);\r\n\t\t \t}\r\n\t\t \t\t\t\t\r\n\t\t return list;\t\r\n\t\t}", "public String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "public List<TdSecCxlc> existeDevengado(Integer secCxlcCiclo, Long secDevengado) {\n String existeDevengado = super.getQueryDefinition(\"existeDevengado\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n mapValues.put(\"secCxlcCiclo\", secCxlcCiclo);\n mapValues.put(\"secDevengado\", secDevengado);\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n return namedTemplate.query(existeDevengado, namedParameters, new TdSecCxlcRegistroAux());\n }", "public List<Tutores> readAllJPQL() throws SecurityException{ \n String sql=\"Select tu from Tutores tu\";\n \n Query q=em.createQuery(sql); \n return q.getResultList();\n }", "public List<SilenceDetectionVo> querySilenceDetail(String wavPath) throws SQLException {\n return analysisDBUtil.ListSilenceInfo(wavPath);\n }", "public static void printMensagemSaidaSistema() {\n System.out.println(\"Obrigado por utilizar nosso sistema.\\nVolte Sempre!\");\n }", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "public ArrayList<Cuenta> obtenerCuentasAsociadas(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n PreparedStatement PrSt2;\n ResultSet rs = null;\n ResultSet rs2 = null;\n String Query = \"SELECT * FROM Solicitud WHERE Codigo_ClienteS = ? AND Estado = 'Aceptada'\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = obtenerCuenta(rs.getString(\"Codigo_Cuenta\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public int cuantosCursos(){\n return inscripciones.size();\n }", "@Override\n public Asesor getAsesorId(int idUsuarioSistema){\n Asesor asesor = null;\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor where idUsuarioSistema =?\");\n orden.setInt(1, idUsuarioSistema);\n ResultSet resultadoConsulta = orden.executeQuery();\n if(resultadoConsulta.first()){\n String nombre;\n String idioma;\n String correo;\n String telefono;\n String numeroPersonal;\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n numeroPersonal = resultadoConsulta.getString(1);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n }else{\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"No se encuentra el asesor\");\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return asesor;\n }", "List<String> getMesActivo(Integer idSector);", "public void atualizarStatusSolicitacaoServicoSara() {\n\t\tList<SolicitacaoServico> solicitacoes = new ArrayList<>();\n\t\ttry {\n\t\tgetSolicitacaoServicoDAO().beginTransaction();\n\t\tsolicitacoes = getSolicitacaoServicoDAO().getSolicitacaoServicoNaoFinalizadas();\n\t\tgetSolicitacaoServicoDAO().closeTransaction();\n\t\t\n\t\tfor(SolicitacaoServico s : solicitacoes) {\n\t\t\tif(s.getStatusServicos() != StatusServicos.CRIA_OS_SARA) {\n\t\t\tString status = getSolicitacaoServicoDAO().getStatusServerSara(s.getSolicitacao().getNumeroATI(), s.getOS());\n\t\t\tif(status.equals(\"OS_GERADA\")) {\n\t\t\t\ts.setStatusServicos(StatusServicos.OS_GERADA);\n\t\t\t}else \n\t\t\t\tif(status.equals(\"OS_INICIADA\")) {\n\t\t\t\t\ts.setStatusServicos(StatusServicos.OS_INICIADA);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t\tif(status.equals(\"FINALIZADO\")) {\n\t\t\t\t\t\ts.setStatusServicos(StatusServicos.FINALIZADO);\n\t\t\t\t\t}\n\t\t\tgetDAO().beginTransaction();\n\t\t\talterar(s.getSolicitacao(), \"Alteração de Status do serviço\",s.getSolicitacao().getUltResponsavel());\n\t\t\tgetDAO().commitAndCloseTransaction();\n\t\t\t}\n\t\t\n\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ClienteArchivo clientearchivo,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(clientearchivo.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(clientearchivo.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!clientearchivo.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(clientearchivo.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public List<SolicitudAvales> getAvalesXSolicitud(BigInteger idSolicitud) throws BusinessException {\n try {\n return avaSolDao.getAvalesXSolicitud(idSolicitud);\n } catch (IntegracionException ex) {\n throw new BusinessException(ex.getMessage(), ex);\n }\n }", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public void getAllCursosAvanzado() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT id_curso, nombre_curso, familia.nombre_familia as familia, id_profesor FROM curso \"\n + \"INNER JOIN familia ON curso.id_familia = familia.id_familia;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n \n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n String familia = rs.getString(\"familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n \n System.out.format(\"%d,%s,%s,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public List<Sajam_automobila> findAllSajams(){\n\t\treturn Repository.findAll();\n\t}", "private ArrayList<Seance> curseurToSeanceArrayList(Cursor curseur) {\n ArrayList<Seance> seancesArray = new ArrayList<>();\n long idS;\n String nomFilm;\n String realisateur;\n int duree;\n String langue;\n String heure;\n curseur.moveToFirst();\n while(!curseur.isAfterLast()) {\n idS=curseur.getLong(0);\n nomFilm=curseur.getString(1);\n realisateur=curseur.getString(2);\n duree=curseur.getInt(3);\n langue=curseur.getString(4);\n heure=curseur.getString(5);\n seancesArray.add(new Seance(idS, nomFilm, realisateur, duree, langue, heure));\n curseur.moveToNext();\n }\n return seancesArray;\n }", "public ListaEnlazada<String> getSeguidores(){\n return seguidores;\n\n }", "protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Encuesta> getEncuestasCodigoDuplicado() {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t// Create a Hibernate query (HQL)\n\t\tQuery query = session.createQuery(\"FROM Encuesta enc where (enc.codigo in (Select enc2.codigo from Encuesta enc2 where enc.pasive ='0' group by (enc2.codigo) Having count(enc2.codigo)>1 ))\");\n\t\t// Retrieve all\n\t\treturn query.list();\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "private static void mostrarSocios() {\n\n\t\tfor (Socio s : socios.values())\n\t\t\tSystem.out.println(s);\n\n\t}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public void mostrarInstitucionAcceso(int institucion){\r\n periodoS=null;\r\n \r\n institucionAcceso=new institucionAccesoDAO().mostrarInstitucionAcceso(institucion);\r\n //LISTADO PERIODO INSTITUCION\r\n \r\n periodoL=new periodoDAO().mostrarPeriodoInstitucion(institucion);\r\n \r\n if (periodoL.size() >0){\r\n periodoS=periodoL.get(0).getPeriodo();\r\n }\r\n cargarMenu();\r\n }", "public static void consultarContato(Scanner sc, Agenda agenda) {\n\t\t//nome contato receber as informacoes do lerInformacoes \n\t\tString nomeContato = lerInformacaoString(sc, \"entre com o nome do usuarios para ser pesquisado: \");\n\t\ttry {\n\t\t\tif(agenda.consultarContatoPorNome(nomeContato)>=0) {\n\t\t\t\tSystem.out.println(\" contato existe\");\n\t\t\t}\n\t\t}catch(ContatoNaoExisteException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public ArrayList<Sugerencia> getSugerencias(int mes, int anio, String idDepartamento) {\r\n\t\tif (!alive) return null;\r\n\t\tArrayList<Sugerencia> aux = new ArrayList<Sugerencia>();\r\n\t\tfor (int i=0;i<sugerencias.size();i++) {\r\n\t\t\tif (sugerencias.get(i).getFecha().getYear()+1900==anio && \r\n\t\t\t\tsugerencias.get(i).getFecha().getMonth()+1==mes && \r\n\t\t\t\tsugerencias.get(i).getDept().equals(idDepartamento))\r\n\t\t\t\taux.add(sugerencias.get(i));\t\r\n\t\t}\r\n\t\tif (aux.size() != 0) return aux;\r\n\t\t// Si no, buscar en BD\r\n\t\tfor (int i=1;i<=aplicacion.utilidades.Util.dameDias(mes, anio);i++) {\r\n\t\t\tDate fecha = new Date(anio,mes,i);\r\n\t\t\tArrayList<Sugerencia> aux2 = controlador.getSugerenciasDia(idDepartamento, fecha);\r\n\t\t\tfor (int j=0;j<aux2.size();j++)\r\n\t\t\t\tsugerencias.add(aux2.get(j));\r\n\t\t}\r\n\t\treturn sugerencias;\r\n\t}", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "public static void query_gra(String stuid2) {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"select * from course,result,teacher where Sno = ? and course.Cno = result.Cno and course.Cno = teacher.Cno\");\n\t\t\tps.setString(1, stuid2);\n\t\t\trs = ps.executeQuery();\n\t\t\tcounter = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tc_name[counter] = rs.getString(\"Cname\");\n\t\t\t\tct_name[counter] = rs.getString(\"Tname\");\n\t\t\t\tstu_grade[counter] = rs.getInt(\"Grade\");\n\t\t\t\tcredit[counter] = rs.getDouble(\"Ccredit\");\n\t\t\t\tstu_point[counter] = rs.getDouble(\"Point\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<UsuarioDto> getInfoAvales(List<SolicitudAvales> solicitudAvaleses) {\n List<UsuarioDto> avales = new ArrayList<>();\n\n for (SolicitudAvales pojo : solicitudAvaleses) {\n /**\n * Cuando el aval ya viene en estatus 2, 3 o 4\n */\n if (pojo.getSolAvaIdEmpleado() != null) {\n\n try {\n UsuarioDto aval = avaSolDao.getInfCmpltAval(pojo.getSolAvaIdEmpleado());\n aval.setIdSolicitudAval(pojo.getIdSolAva());\n aval.setEstatusAvalStr(getAvalEstatusStr(pojo.getSolAvaEstatus()));\n \n if(pojo.getSolAvaEstatus()==4){\n aval.setTblEditable(Boolean.TRUE);\n }else{\n aval.setTblEditable(Boolean.FALSE);\n \n }\n avales.add(aval);\n } catch (IntegracionException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n\n } else {\n UsuarioDto aval = new UsuarioDto();\n aval.setIdSolicitudAval(pojo.getIdSolAva());\n aval.setEstatusAvalStr(getAvalEstatusStr(pojo.getSolAvaEstatus()));\n aval.setTblEditable(Boolean.TRUE);\n \n avales.add(aval);\n }\n }\n return avales;\n }", "public List getVisaoDosSons(String idSessao) throws SessaoInexistenteException, SessaoInvalidaException {\t\r\n\t\tString login = gerenciaSessao.getLoginUser(idSessao);\r\n\t\treturn gerenciaUsuario.getVisaoDosSons(login);\r\n\t}", "public ResultSet MostrarSalas() throws SQLException {// devuelve un String con todas las salas\n\t\t\n\t\tString sql = \"SELECT * FROM sala\"; // sentencia busqueda SALA\n\t\t\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\t//st.close();\n\t\t\t\t//con.close();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "@RequestMapping(value = \"/getSeguidos/{usuario}\", method = RequestMethod.GET)\r\n public @ResponseBody List<Optional<Usuario>> getSeguidos(@PathVariable(value = \"usuario\") String usuario) {\r\n List<Optional<Usuario>> usuarios = new ArrayList<>();\r\n for ( String nombre : this.seguidorRepository.getSeguidosDeUsuario(usuario)) {\r\n if (this.usuarioRepository.findById(nombre).isPresent()) { usuarios.add(this.usuarioRepository.findById(nombre)); }\r\n }\r\n return usuarios;\r\n }", "public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }", "private static void registrarAuditoriaDetallesCaja(Connexion connexion,Caja caja)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_empresa().equals(caja.getCajaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_sucursal().equals(caja.getCajaOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre().equals(caja.getCajaOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre_equipo().equals(caja.getCajaOriginal().getnombre_equipo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre_equipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre_equipo();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre_equipo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre_equipo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBREEQUIPO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getnombre_impresora().equals(caja.getCajaOriginal().getnombre_impresora()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getnombre_impresora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getnombre_impresora();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getnombre_impresora()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getnombre_impresora() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.NOMBREIMPRESORA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_pedido().equals(caja.getCajaOriginal().getsecuencial_pedido()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_pedido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_pedido().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_pedido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_pedido().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALPEDIDO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_pedido_formato().equals(caja.getCajaOriginal().getsecuencial_pedido_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_pedido_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_pedido_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_pedido_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_pedido_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALPEDIDOFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getpunto_emision().equals(caja.getCajaOriginal().getpunto_emision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getpunto_emision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getpunto_emision();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getpunto_emision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getpunto_emision() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.PUNTOEMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getestablecimiento().equals(caja.getCajaOriginal().getestablecimiento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getestablecimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getestablecimiento();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getestablecimiento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getestablecimiento() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.ESTABLECIMIENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_inicio().equals(caja.getCajaOriginal().getfecha_inicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_inicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_inicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_inicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHAINICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_final().equals(caja.getCajaOriginal().getfecha_final()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_final()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_final().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_final()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_final().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHAFINAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getesta_activo().equals(caja.getCajaOriginal().getesta_activo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getesta_activo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getesta_activo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.ESTAACTIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getdescripcion().equals(caja.getCajaOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_factura().equals(caja.getCajaOriginal().getsecuencial_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_factura().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_factura().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_factura_formato().equals(caja.getCajaOriginal().getsecuencial_factura_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_factura_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_factura_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_factura_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_factura_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALFACTURAFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_nota_venta().equals(caja.getCajaOriginal().getsecuencial_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_nota_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_nota_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencial_nota_venta_formato().equals(caja.getCajaOriginal().getsecuencial_nota_venta_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencial_nota_venta_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencial_nota_venta_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencial_nota_venta_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencial_nota_venta_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIALNOTAVENTAFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencia_nota_credito().equals(caja.getCajaOriginal().getsecuencia_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencia_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencia_nota_credito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencia_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencia_nota_credito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIANOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsecuencia_nota_credito_formato().equals(caja.getCajaOriginal().getsecuencia_nota_credito_formato()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsecuencia_nota_credito_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsecuencia_nota_credito_formato();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsecuencia_nota_credito_formato()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsecuencia_nota_credito_formato() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECUENCIANOTACREDITOFORMATO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_factura().equals(caja.getCajaOriginal().getautorizacion_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_nota_venta().equals(caja.getCajaOriginal().getautorizacion_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getautorizacion_nota_credito().equals(caja.getCajaOriginal().getautorizacion_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getautorizacion_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getautorizacion_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getautorizacion_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getautorizacion_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.AUTORIZACIONNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_factura().equals(caja.getCajaOriginal().getfecha_caduca_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_factura().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_factura().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCAFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_nota_venta().equals(caja.getCajaOriginal().getfecha_caduca_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_nota_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_nota_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCANOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getfecha_caduca_nota_credito().equals(caja.getCajaOriginal().getfecha_caduca_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getfecha_caduca_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getfecha_caduca_nota_credito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getfecha_caduca_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getfecha_caduca_nota_credito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.FECHACADUCANOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_factura().equals(caja.getCajaOriginal().getserie_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIEFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_nota_venta().equals(caja.getCajaOriginal().getserie_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIENOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getserie_nota_credito().equals(caja.getCajaOriginal().getserie_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getserie_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getserie_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getserie_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getserie_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SERIENOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_factura().equals(caja.getCajaOriginal().getsec_inicial_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_nota_venta().equals(caja.getCajaOriginal().getsec_inicial_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_inicial_nota_credito().equals(caja.getCajaOriginal().getsec_inicial_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_inicial_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_inicial_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_inicial_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_inicial_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECINICIALNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_factura().equals(caja.getCajaOriginal().getsec_final_factura()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_factura();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_factura()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_factura() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALFACTURA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_nota_venta().equals(caja.getCajaOriginal().getsec_final_nota_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_nota_venta();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_nota_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_nota_venta() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALNOTAVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getsec_final_nota_credito().equals(caja.getCajaOriginal().getsec_final_nota_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getsec_final_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getsec_final_nota_credito();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getsec_final_nota_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getsec_final_nota_credito() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.SECFINALNOTACREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_pais().equals(caja.getCajaOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_ciudad().equals(caja.getCajaOriginal().getid_ciudad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_ciudad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_ciudad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDCIUDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(caja.getIsNew()||!caja.getid_zona().equals(caja.getCajaOriginal().getid_zona()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(caja.getCajaOriginal().getid_zona()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=caja.getCajaOriginal().getid_zona().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(caja.getid_zona()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=caja.getid_zona().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CajaConstantesFunciones.IDZONA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "List<SysNotice> selectByExample(SysNoticeExample example);", "@Override\n\tpublic Collection<String> consultarLineaComercialClasificacionAsignacionMasivaIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,Long codigoLinPad,Long codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva Ingresar : {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tSQLQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tString divDep=\" ) \";\n\t\ttry {\n\t\t\tsession = hibernateH.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\tquery = new StringBuilder(\" SELECT t1.CODIGOCLASIFICACION \");\n\t\t\t\n\t\t\tquery.append(\" FROM ( \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\n\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t\tdivDep+=\" ) ) \";\n\t\t\t}\n\t\t\t\n\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\") \"+divDep+\" t1 \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" t1 \");\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tquery.append(\" where t1.CODIGOCLASIFICACION NOT IN(\t \");\n\t\t\tquery.append(\" select distinct lineacomer0_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCADMTLINCOMCLA lineacomer0_, SCADMTLINCOM lineacomer1_ \");\n\t\t\tquery.append(\" where lineacomer1_.CODIGOLINEACOMERCIAL=lineacomer0_.CODIGOLINEACOMERCIAL \");\n\t\t\tquery.append(\" and lineacomer1_.NIVEL=0 and lineacomer1_.ESTADO='\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tif(codigoLinPad != null){\n\t\t\t\tquery.append(\" and lineacomer1_.CODIGOLINEACOMERCIAL NOT IN( \"+codigoLinPad+\" ) \");\n\t\t\t}\n\t\t\tquery.append(\" and lineacomer0_.ESTADO='\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' and lineacomer1_.VALORTIPOLINEACOMERCIAL='\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" and ( lineacomer0_.CODIGOCLASIFICACION in ( \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t}\n\t\t\t\n\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\") \"+divDep+\" ) )\");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" ) ) \");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t///CODIGO EXTRA\n\t\t\tif(codigoLinPad != null){\n\t\t\t\tquery.append(\" and t1.CODIGOCLASIFICACION NOT IN(\t \");\n\t\t\t\tquery.append(\" SELECT CODIGOCLASIFICACION FROM SCADMTLINCOMCLA LCC, SCADMTLINCOM LC\t \");\n\t\t\t\tquery.append(\" where LCC.CODIGOCLASIFICACION IN(\t \");\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\t\tquery.append(\" select clasificac2_.CODIGOCLASIFICACION \");\n\t\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac2_ \");\n\t\t\t\t\tquery.append(\" where clasificac2_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\tquery.append(\" and ( clasificac2_.codigoClasificacionPadre in ( \");\n\t\t\t\t}\n\t\t\t\tquery.append(\" select clasificac3_.CODIGOCLASIFICACION \");\n\t\t\t\tquery.append(\" from SCSPETCLASIFICACION clasificac3_ \");\n\t\t\t\tquery.append(\" where clasificac3_.estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\t\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacion IN (\"+codigoClasificacion+\"\"+divDep+\" \");\n\t\t\t\t}else{\n\t\t\t\t\tquery.append(\" and clasificac3_.codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+divDep+\" \");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tquery.append(\" AND LCC.ESTADO='1' \");\n\t\t\t\tquery.append(\" AND LCC.CODIGOLINEACOMERCIAL=LC.CODIGOLINEACOMERCIAL \");\n\t\t\t\tquery.append(\" AND LC.CODIGOLINEACOMERCIALPADRE = \"+codigoLinPad);\n\t\t\t\tquery.append(\" AND LCC.CODIGOLINEACOMERCIAL NOT IN (\"+codigoLinCom+\") )\");\n\t\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\t\t\tquery.append(\" ) \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\n//\t\t\tsqlQuery.setParameter(\"estadoClasificacion\", SICConstantes.ESTADO_ACTIVO_NUMERICO);\n//\t\t\tsqlQuery.setParameter(\"codigoClasificacion\", codigoClasificacion);\n//\t\t\tsqlQuery.setParameter(\"valorTipoLineaComercial\", valorTipoLineaComercial);\n\t\t\t\n\t\t\tsqlQuery = hibernateH.getHibernateSession().createSQLQuery(query.toString());\n//\t\t\tsqlQuery.addEntity(\"vista\", ClasificacionDTO.class);\n\t\t\t\n//\t\t\tclasificacionDTOs =sqlQuery.list();\n\t\t\treturn sqlQuery.list();\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n//\t\treturn clasificacionDTOs;\n\t\t\n\t}", "public Utente[] findByComuni2(long fkComuneAzienda) throws UtenteDaoException\n\t{\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE fk_comune_azienda = ?\", new Object[] { new Long(fkComuneAzienda) } );\n\t}", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "private void consultartiposincidentes() {\n\n db= con.getWritableDatabase();\n TipoIncidente clase_tipo_incidente= null;\n tipoincidentelist= new ArrayList<TipoIncidente>();\n //CONSULTA\n Cursor cursor=db.rawQuery(\"select codigo_incidente,tipo_incidente from \" +Utilitario.TABLE_TIPO_INCIDENTE,null);\n\n while (cursor.moveToNext()){\n clase_tipo_incidente=new TipoIncidente();\n clase_tipo_incidente.setCodigo(cursor.getInt(0));\n clase_tipo_incidente.setDescripcion(cursor.getString(1));\n\n Log.i(\"id\",clase_tipo_incidente.getCodigo().toString());\n Log.i(\"desc\",clase_tipo_incidente.getDescripcion());\n\n tipoincidentelist.add(clase_tipo_incidente);\n\n }\n llenarspinner();\n db.close();\n }", "private void saveReconsentimientos(String estado) {\n int c = mReconsentimientos.size();\n for (ReConsentimientoDen recons : mReconsentimientos) {\n recons.getMovilInfo().setEstado(estado);\n estudioAdapter.updateReconsSent(recons);\n publishProgress(\"Actualizando ReConsentimientoDen\", Integer.valueOf(mReconsentimientos.indexOf(recons)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }", "public List<DocumentoSpesa> getListaNoteCreditoSpesaFiglio(){\n\t\treturn getListaDocumentiSpesaFiglioByTipoGruppo(TipoGruppoDocumento.NOTA_DI_CREDITO);\n\t}", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public UsuarioSistema get_UsuarioSistema( int id ){ \n UsuarioSistema retorno = null;\n \n List<UsuarioSistema> UsuarioSistema = null;\n try{ \n Query q = JPAUtil.em().createNativeQuery(\"SELECT * FROM JM.USUARIO_SISTEMA WHERE ID = ?\", UsuarioSistema.class );\n q.setParameter(1, id );\n List<UsuarioSistema> lista_Banco = q.getResultList(); \n UsuarioSistema = lista_Banco;\n }catch( Exception e ){ }\n \n String rbusca = \"\"; \n try{ rbusca = UsuarioSistema.get(0).getLogin(); }catch( Exception e ){}\n \n if( !rbusca.equals(\"\") ){\n \n retorno = UsuarioSistema.get(0);\n }\n\n return retorno;\n }", "public boolean existeEventoComSecao(Secao sec) {\n\t\treturn existe(\" o.id_secao = \"+ sec.getId().toString());\r\n\t\t\r\n\t}", "public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}", "public List getFontesDeSons(String idSessao) throws SessaoInexistenteException, SessaoInvalidaException {\r\n\t\tString login = gerenciaSessao.getLoginUser(idSessao);\r\n\t\treturn gerenciaUsuario.getFontesDeSons(login);\t\t\r\n\t}", "public String[] getUsuariosInmueble(){\n\t\tint registros=0;\n\t\ttry{\n\t\t\tPreparedStatement statemenet=getConnection().prepareStatement(\"select count(*) as total from usuarios where tipo='A' \");\n\t\t\tResultSet respuesta=statemenet.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tregistros=respuesta.getInt(\"total\");\n\t\t\trespuesta.close();\n\t\t\t\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\tString[] usuarios=new String[registros+1];\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='R' \");\n\t\t\tResultSet respuesta=statement.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tusuarios[0]=respuesta.getString(1);\n\t\t\tstatement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='A' \");\n\t\t\trespuesta=statement.executeQuery();\n\t\t\tint i=1;\n\t\t\twhile(respuesta.next()){\n\t\t\t\tusuarios[i]=respuesta.getString(1);\n\t\t\t\ti++;\n\t\t\t\n\t\t\t}\n\t\t\tstatement.close();\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\treturn usuarios;\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "private Vector getSidDetails(int sid) {\n Vector resultSetRow = new Vector();\n try {\n // create a cursor and execute the sql\n String cursorId = \"sessionDetails.sql\";\n Parameters myPars = new Parameters();\n myPars.addParameter(\"int\",sid);\n QueryResult myResult = ExecuteDisplay.execute(cursorId, myPars, false, false, null);\n\n if (myResult.getNumRows() == 1) {\n resultSetRow = myResult.getResultSetRow(0);\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n return resultSetRow;\n }", "public List<String> pntcontratacionhonorarios(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntContratacionHonorarios(qnaCaptura);\n listaString.add(\"Ejercicio,Periodo que se informa,Tipo de contratación,Partida presupuestal de los recursos con que se cubran los honorarios pactados,Nombre(s),Primer apellido,Segundo apellido,Número de contrato,Fecha de inicio del contrato,Fecha de término del contrato,Hipervínculo al contrato,Servicios contratados,Remuneración mensual bruta o contraprestación,Monto total a pagar,Prestaciones (en su caso),Hipervínculo a la normatividad que regula la celebración de contratos de servicios profesionales por honorarios,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "public String[] listaUserInactivoArray(Statement aSt, int aId) {\n\n\t\tResultSet rs = null;\n\t\tint contador = 0;\n\n\t\ttry {\n\n\t\t\trs = aSt.executeQuery(\"select jo_id from jogo where u_id = \" + aId);\n\n\t\t\tif (rs == null) {\n\t\t\t\treturn null;\n\t\t\t} else if (!rs.isBeforeFirst()) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tcontador++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\trs = aSt.executeQuery(\"select jo_id from jogo where u_id = \" + aId);\n\n\t\t\tif (rs == null) {\n\t\t\t\treturn null;\n\t\t\t} else if (!rs.isBeforeFirst()) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tString[] rowData = new String[contador];\n\t\t\t\tcontador = 0;\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\trowData[contador] = rs.getString(1);\n\t\t\t\t\tcontador++;\n\t\t\t\t}\n\t\t\t\treturn rowData;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public List<AnswerStatistics> getStatisticsbySid(int sid);", "private static Long diasRestantes(Certificado certificado) throws NfeException {\r\n\r\n\t\tDate data = DataValidade(certificado);\r\n\t\tif (data == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlong differenceMilliSeconds = data.getTime() - new Date().getTime();\r\n\t\treturn differenceMilliSeconds / 1000 / 60 / 60 / 24;\r\n\t}", "public List<StudyVO> listSubject(Criteria cri) {\n \n\t\t\t \n\tList<StudyVO> list =mapper.listSubject(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.listSubject(cri));\n\tSystem.out.println(\"servicesubject:\"+cri);\n\treturn list;\n\t\n\t\n\n }", "private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Encuesta> getEncuestasUsuario(String username) {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t// Create a Hibernate query (HQL)\n\t\tQuery query = session.createQuery(\"FROM Encuesta enc \" +\n\t\t\t\t\"where (enc.pasive ='0' and enc.segmento.ident in (Select useg.usuarioSegmentoId.segmento from UsuarioSegmento useg where useg.usuarioSegmentoId.usuario =:username and useg.pasive ='0'))\");\n\t\tquery.setParameter(\"username\",username);\n\t\t// Retrieve all\n\t\treturn query.list();\n\t}", "public ArrayList<Socio> getListaSocio() {\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem de socio\");\n Statement stmt = null;\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM socio ORDER BY nomeSocio\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio(rs.getString(\"nomeSocio\"), rs.getString(\"matSocio\"), rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return null;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n return listaSocio;\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,String sProcesoBusqueda,String sDetalleProcesoBusqueda,QueryWhereSelectParameters queryWhereSelectParameters,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tString sDetalleBusqueda=sDetalleProcesoBusqueda+Funciones.getDetalleBusqueda(queryWhereSelectParameters);\r\n\t\t\t\t\r\n\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoriaBusqueda(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, 0L, Constantes.SAUDITORIABUSCAR,sProcesoBusqueda,sUsuarioPC,sNamePC,sIPPC,new Date(),sDetalleBusqueda);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public List<String> getAllTimeStampSkore() {\n\n \tList<String> timeStampSkore = new ArrayList<String>();\n\n \t// Select All Query\n \tString selectQuery = \"SELECT tanggal FROM \" + \"skore\" + \" ORDER BY IDx DESC\";\n\n \tSQLiteDatabase db = this.getWritableDatabase();\n \tCursor cursor = db.rawQuery(selectQuery, null); \n\n \t// looping through all rows and adding to list\n \tif (cursor.moveToFirst()) {\n \t\tdo {\n \t\t\ttimeStampSkore.add(cursor.getString(0));\n\n \t\t} while (cursor.moveToNext());\n \t}\n\n \tcursor.close();\n \tdb.close();\n\n \treturn timeStampSkore;\n }", "public static ArrayList<Student> getStudentiByCorso(long idCorso) {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_STUDENTS_BY_COURSE;\n\t\trp.parameters = new Object[] { idCorso };\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Student> anagList = (ArrayList<Student>) rpp.parameters[0];\n\t\treturn anagList;\n\t}", "public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}", "public List getPorPertenceAUsuario(long id) throws DaoException {\n\t\t// Existe no DAO\n\t\tCompartilhamentoProdutoDao dao = getDao();\n\t\tDaoConexao conn = dao.criaConexao();\n\t\tdao.setConexao(conn);\n\t\treturn dao.ListaPorUsuarioPertenceA(id);\n\t}" ]
[ "0.6443713", "0.5851111", "0.57428783", "0.56234074", "0.54854673", "0.5243412", "0.51139426", "0.50949645", "0.5034774", "0.49973202", "0.49804193", "0.49755412", "0.49688244", "0.49642763", "0.4941253", "0.49389473", "0.4926695", "0.4901379", "0.48981926", "0.48940352", "0.4888146", "0.48663607", "0.48489937", "0.48424205", "0.48323148", "0.48276326", "0.48211533", "0.48136672", "0.4803406", "0.47946483", "0.4791251", "0.47903982", "0.4778255", "0.47733462", "0.47731626", "0.47700006", "0.47674713", "0.47634533", "0.47600946", "0.47499472", "0.47350016", "0.47301364", "0.47291422", "0.47200835", "0.47171202", "0.47129962", "0.470991", "0.47077912", "0.46950692", "0.46949455", "0.46900502", "0.4687058", "0.46823266", "0.46749043", "0.46728536", "0.46716243", "0.46651965", "0.46618012", "0.4655166", "0.46472368", "0.46450835", "0.46436855", "0.46419716", "0.4640197", "0.46401405", "0.4637441", "0.46325776", "0.46316433", "0.46300182", "0.4628195", "0.46186972", "0.4617986", "0.46161455", "0.46117854", "0.46057588", "0.46041375", "0.46036035", "0.4601508", "0.45928922", "0.45912403", "0.45904952", "0.4587929", "0.45875013", "0.45863634", "0.4583031", "0.45820433", "0.45808017", "0.45776537", "0.4577431", "0.45750263", "0.4573116", "0.45716274", "0.45704496", "0.45674527", "0.45624796", "0.45617932", "0.45578578", "0.45540336", "0.45498782", "0.45461163" ]
0.6562485
0
Attach this simulation proxy to a specific game window.
void attachToGameWindow(GameWindow gameWindow);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "NativeWindow attachWindow(long nativeWindowId);", "public void setWindow(GWindow w) {\r\n window = w;\r\n }", "public void setWindow(Rectangle.Double w) {\n this.setWindow(w.x, w.y, w.width, w.height);\n }", "@Override\n\tpublic void onAttachedToWindow() {\n\t\tsuper.onAttachedToWindow();\t\n\t}", "public WindowDecorator(Window window) {// creates a window\n this.window = window;\n }", "public void setWindow(Window window) {\n this.window = window;\n window.setInput(input);\n }", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n this.mHasAttatched = true;\n if (this.mAdapter != null) {\n setAdapter(this.mAdapter);\n }\n }", "public void addNotify() {\n synchronized (getTreeLock()) {\n if (peer == null) {\n peer = ((PeerBasedToolkit) getToolkit()).createWindow(this);\n }\n super.addNotify();\n }\n }", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n e eVar = this.aeA.aeR;\n if (eVar != null) {\n eVar.registerObserver(this.aeK);\n }\n this.pv = true;\n }", "public void setWindow(final Window window) {\r\n this.window = window;\r\n }", "public void addWindow(final String key, JPanel window)\r\n\t{\r\n\t\taniWin.addWindow(key, window);\r\n\t}", "void attachToInspector(@NotNull InspectorPanel<PropMgr> inspector);", "public void addedToWorld(World w){\n PauseWorld world = (PauseWorld) w;\n world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10);\n }", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n C0311d dVar = this.f1127b;\n if (dVar != null) {\n dVar.onViewAttachedToWindow(this);\n }\n C0646w.m2991y(this);\n }", "public void addWindowtoList(MimsPlus imp) {\n String title = imp.getTitle();\n if (!windows.containsKey(title)) {\n jComboBox1.addItem(title);\n windows.put(title, imp);\n }\n if (jComboBox1.getItemCount() == 1) {\n jComboBox1.setSelectedItem(title);\n }\n }", "@Override\n public void start(Stage stage) throws Exception {\n window = stage;\n rootPane = new BorderPane(); //Spans the entire window.\n clientID = 1; //THE CLIENT ID IS OFFICIALLY 1\n //displayedLocationPane = new BorderPane(); //A displayedLocationPane\n //displayedLocationPane.setStyle(\"-fx-background-color: pink\");\n World guiWorld = new WorldImpl(); //This is the different world.\n GUIWorldManager worldManager = new GUIWorldManager(guiWorld);\n worldManager.makeCharactersInWorld(guiWorld);\n clientChar = guiWorld.getCharacter(clientID);\n LocationHome home = new LocationHome(clientChar); //Note: GUILocationPane\n\n //Creating characters\n for(PlayerCharacter each : guiWorld.getCharacters().values()) {\n guiCharacters.put(each.getId(), each); //Put the characters in a data structure so that they can be kept track of\n home.placePlayer(each); //home.placePlayer initially places a sprite on the board.\n each.addMovementListener(new MovementListener() {\n @Override\n public void thingMoved(int thingId, Position position) {\n //System.out.println(\"Movemade\");\n\n Platform.runLater(() -> {\n try {\n home.relocatePlayer(guiCharacters.get(thingId));\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n });\n }\n });\n }\n\n\n\n System.out.println(\"Client Id: \" + clientID);\n clientChar = guiCharacters.get(clientID);\n home.attachDialoguePane();\n //rootPane.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: pink\");\n //home.setStyle(\"-fx-background-color: green\");\n //displayedLocationPane.getChildren().addAll(home);\n rootPane.getChildren().addAll(home);\n Scene currScene = new Scene( rootPane, 1024, 1024 );//Passing the rootPane/group to currScene\n currScene.getStylesheets().add(\"/spoonstyle.css\");\n stage.setScene(currScene); //Make currScene contents visible\n GUIMovementKeys keyInputObj = new GUIMovementKeys(currScene);\n keyInputObj.addMovementKeysToScene(currScene, clientChar); //Makes the current scene capable of accepting input and moving the client player\n keyInputObj.setClientSprite(home.getClientSprite());\n keyInputObj.setAllSprites(home.getAllPlayerSpritesInLocation());\n stage.setTitle(\"Spoon Game\");\n stage.show();\n// System.out.println(\"rootPane width and height: \" + rootPane.getWidth() + \" \" + rootPane.getHeight());\n// System.out.println(\"home width and height: \" + home.getWidth() + \" \" + home.getHeight());\n// System.out.println(\"displayablelocation width and height: \" + displayedLocationPane.getWidth() + \" \" + displayedLocationPane.getHeight());\n\n //LocationHome home = new LocationHome(guiCharacters.get(1));\n\n\n //#TODO: How does the backend know its client's player?\n new Timer().schedule(\n new TimerTask() {\n\n @Override\n public void run() {\n guiWorld.timestep();\n }\n }, 0, 5);\n\n\n //worldManager.backendTimeStep(guiWorld);\n\n }", "public void updateWindowsForAnimator() {\n forAllWindows(this.mUpdateWindowsForAnimator, true);\n }", "public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}", "public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }", "public static void setWindowToiPhoneView() {\n try {\n WebDriverManager.getWebDriver().manage().window().setPosition(new Point(0, 0));\n WebDriverManager.getWebDriver().manage().window().setSize(new Dimension(375, 667));\n } catch (DriverNotInitializedException e) {\n Assert.fail(\"Driver not initialized\");\n }\n }", "Window addOwnedWindow(Window window) {\n if (window != null) {\n ownedWindows.addElement(window);\n }\n return window;\n }", "protected WorldWindow createWorldWindow() {\n\t\treturn new WorldWindowGLJPanel();\r\n\t\t//return new WorldWindow();\r\n\t}", "public WinScreen(SmashGame game)\n\t{\n\t\tsuper();\n\t\tmyGame = game;\n\t\tanimationDone = false;\n\t\tthis.addMouseListener(new mouseHandler());\n\t\tthis.setVisible(true);\n\t\tthis.setFocusable(true);\n\t\tthis.requestFocusInWindow();\n\t\t\n\t\timages = new ArrayList<BufferedImage>();\n\t}", "public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }", "OutputSetup_this_windowAdapter(OutputSetup adaptee) {\n this.adaptee = adaptee;\n }", "public void getGameWindow(GameWindowController gwc) {\n gameWindowController = gwc;\n }", "public static void addWindow(GWindow window){\n\t\tif(window != null && window.papplet != null)\n\t\t\taddWindow(window.papplet);\n\t}", "public void addedToWorld(World w) {\r\n\t\tupdate();\r\n\t}", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n this.mFirstLayout = true;\n }", "private void winScreen() {\n timer.stop();\n gameModel.setState(\"Win Screen\");\n WinScreen screen = new WinScreen(width, height);\n Button replayButton = screen.getReplayButton();\n replayButton.setOnAction(e -> {\n try {\n Controller newGame = new Controller();\n newGame.start(mainWindow);\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n Button exitButton = screen.getExitButton();\n exitButton.setOnAction(e -> {\n System.exit(0);\n });\n Scene scene = screen.getScene();\n mainWindow.setScene(scene);\n }", "public void setWindow(double x, double y, double width, double height) {\n xWindow = x;\n yWindow = y;\n widthWindow = width;\n heightWindow = height;\n nWindowUpdates++;\n setScaleFactor();\n }", "@Override\r\n\tpublic void setWindow(BasePanel windowName) {\n\t\tjavaScriptWindow = (JavaScriptWindow) windowName;\r\n\t\tsetJavaScript(javaScriptWindow.getJavaScript());\r\n\r\n\t}", "public void showView(){\n this.addObserver(GameView.GameViewNewGame(this));\n }", "public WindowPanel(Window window, DrawingMaze drawingMaze)\n\t{\n\t\tsetPreferredSize(new Dimension(800, 400)); /*La taille de la fenÍtre sera 800*400*/\n\t\tsetLayout(new BorderLayout());\n\t\tadd(new TitlePanel(), BorderLayout.NORTH); /*Le titre sera ťcrit en haut de la fenÍtre*/\n\t\tadd(drawingMaze, BorderLayout.CENTER); /*Le labyrinthe sera au milieu de la fenÍtre*/\n\t\tadd(new TextPanel(), BorderLayout.SOUTH); /*La description des cases sera en bas de la fenÍtre*/\n\t}", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n getViewTreeObserver().addOnTouchModeChangeListener(this.f61232y);\n }", "public WindowLoader(Node window) {\n w = (Stage) window.getScene().getWindow();\n }", "public MainWindow() {\n initComponents();\n \n StationView = new SpaceStationView();\n EnemyView = new EnemyStarshipView();\n \n stationPanel.add(StationView);\n enemyPanel.add(EnemyView);\n \n message.setVisible(false);\n \n setTitle(appName);\n \n repaint();\n setLocationRelativeTo(null);\n \n }", "public Simulator displayOn(SimulationView view) {\n this.view = view;\n for (RobotEntity s : robotEntities) {\n view.addRobot(s.getViewRobot());\n }\n if (pacmanEntity != null) {\n view.addRobot(pacmanEntity.getViewRobot());\n }\n return this;\n }", "private void setupWindowsAnimations() {\n }", "@Override\n public void onAttachedToWindow() {\n super.onAttachedToWindow();\n Log.v(\"Attached To Window\", \"onAttachedToWindow\");\n\n if (isModuleAvailable()) {\n// DJISampleApplication.getProductInstance().getCamera().getCameraMode(\n// new DJIBaseComponent.DJICompletionCallbackWith<DJICameraSettingsDef.CameraMode>() {\n// @Override\n// public void onSuccess(DJICameraSettingsDef.CameraMode cameraMode) {\n// mCameraMode = cameraMode;\n// }\n//\n// @Override\n// public void onFailure(DJIError djiError) {\n//\n// }\n// }\n// );\n\n DJISampleApplication.getProductInstance().getCamera().setCameraMode(\n DJICameraSettingsDef.CameraMode.ShootPhoto,\n new DJICommonCallbacks.DJICompletionCallback() {\n @Override\n public void onResult(DJIError djiError) {\n\n }\n }\n );\n }\n }", "public SlideOnWindow(Class<? extends StandOutWindow> serviceClass) {\n\t\tmServiceClass = serviceClass;\n\t}", "public void launchNormalWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbRoot = new DBController(this);\n\t\t\tScene scene = new Scene(dbRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "protected final void setupForTWindow(final TWindow window,\n final int x, final int y, final int width, final int height) {\n\n this.parent = window;\n this.window = window;\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }", "private void setupDebugger(){\n this.debuggerFrame = new JFrame();\n this.debuggerFrame.setSize(550, 275);\n this.debuggerFrame.add(PIDpanel);\n \n this.setInitialPIDValues(this.initPidValues);\n }", "public void setupScene() {\n\t\tplayScene = new Scene(new Group());\n\t\tupdateScene(playScene);\n\t\twindow.setScene(playScene);\n\t\twindow.show();\n\t}", "public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }", "@Override\n public Builder useVariableWindow(int... windows) {\n super.useVariableWindow(windows);\n return this;\n }", "public void showDungeonsScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/DungeonsScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n DungeonsScreenController controller = loader.getController();\n controller.setGame(this);\n }catch(IOException e){\n }\n }", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public void makeWindowed(int width, int height){\n //Window the window, change size and resolution based on params\n\n //Skip if already windowed\n if(type == Type.WINDOWED){\n return;\n }\n\n //Remove the monitor\n monitorID = NULL;\n\n //Change the window\n glfwSetWindowMonitor(\n handle,\n NULL,\n 0,\n 0,\n width,\n height,\n GLFW_DONT_CARE\n );\n position.set(0f, 0f);\n size.set(width, height);\n type = Type.WINDOWED;\n centre();\n resolution.set(width, height);\n\n //Fire the resize and resolution events\n sizeMultiplexer.handle(new WindowSizeEvent(handle, width, height));\n resolutionMultiplexer.handle(new WindowResolutionEvent(handle, width, height));\n }", "public void setGameInterface() {\n\t\tthis.setAlignment(Pos.TOP_LEFT);\n\t\tthis.getChildren().clear();\n\t\tthis.getChildren().addAll(housePane, gameOptions);\n\t}", "public synchronized void addWindowListener(WindowListener l) {\n windowListener = AWTEventMulticaster.add(windowListener, l);\n newEventsOnly = true;\n }", "@FXML\n public void addGym() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingGym(0, 0));\n \t/*\n int xpos = (int) (Math.random() * 600) + 100;\n World.getInstance().addEntityToWorld(new BuildingGym(xpos, 30));\n */\n }", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n initSoundPool(this.mContext_Vibrate);\n }", "protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public void launchProcWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbProcRoot = new ProcController(this);\n\t\t\tScene scene = new Scene(dbProcRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t} catch(IOException e ) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}", "public RepliesWindowController(App app, RepliesWindow w) {\n\t\tthis.app = app;\n\t\tthis.window = w;\n\t}", "public WindowManagerProxy getWmProxy() {\n return this.mWindowManagerProxy;\n }", "public void mainWindow() {\n new MainWindow(this);\n }", "public void onAttachedToWindow() {\n AppMethodBeat.i(53789);\n super.onAttachedToWindow();\n ab.d(\"MicroMsg.emoji.EmojiStoreV2SingleRecommendView\", \"onAttachedToWindow\");\n a.xxA.c(this.lfL);\n AppMethodBeat.o(53789);\n }", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n if (!isInEditMode()) {\n this.mAdjustRelockTimePadLockPresenter.start();\n }\n }", "public void setWindow(WindowClient window){\n\n this.window = window;\n this.setFavorTokens(window.getFTokens());\n\n }", "public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }", "@Override\n public W representative(W window) {\n return window;\n }", "public GameWindow(){\n setSize(1012,785);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n setLayout(null);\n\n JLabel sun = new JLabel(\"SUN\");\n sun.setLocation(37,80);\n sun.setSize(60,20);\n\n GamePanel gp = new GamePanel(sun);\n gp.setLocation(0,0);\n getLayeredPane().add(gp,new Integer(0));\n \n PlantCard sunflower = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_sunflower.png\")).getImage());\n sunflower.setLocation(110,8);\n sunflower.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Sunflower;\n });\n getLayeredPane().add(sunflower,new Integer(3));\n\n PlantCard peashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_peashooter.png\")).getImage());\n peashooter.setLocation(175,8);\n peashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Peashooter;\n });\n getLayeredPane().add(peashooter,new Integer(3));\n\n PlantCard freezepeashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_freezepeashooter.png\")).getImage());\n freezepeashooter.setLocation(240,8);\n freezepeashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.FreezePeashooter;\n });\n getLayeredPane().add(freezepeashooter,new Integer(3));\n\n\n\n getLayeredPane().add(sun,new Integer(2));\n setResizable(false);\n setVisible(true);\n }", "public void currentWorld(WumpusWorld world) throws RemoteException {\n\t\twidth = world.getWidth();\n\t\theight = world.getHeight();\n\t\tif (frame == null) {\n\t\t\tframe = new Frame();\n\t\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t\tpublic void windowClosing(WindowEvent evt) {\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t\tframe.setTitle(\"The Wumpus Monitor\");\n\t\t\tframe.setLayout(new GridLayout(width * 2, height * 2));\n\t\t\tDimension d = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\tframe.setBounds(0, 0, d.width - 1, d.height - 1);\n\t\t} else {\n\t\t\tframe.removeAll();\n\t\t}\n\t\trooms = new DirectionalPanel[width][height][8];\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\trooms[row][col][0] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][1] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.EAST);\n\t\t\t\trooms[row][col][2] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][3] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.EAST);\n\t\t\t\tfor (int k = 4; k < 8; k++) {\n\t\t\t\t\trooms[row][col][k] = new DirectionalPanel(-1);\n\t\t\t\t}\n\t\t\t\tagentPositions.put(new Point(row, col), new HashSet());\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < world.getWidth(); row++) {\n\t\t\tfor (int turn = 0; turn < 2; turn++) {\n\t\t\t\tfor (int col = 0; col < world.getHeight(); col++) {\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn]);\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn + 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\tRoom room = world.getRoom(row, col);\n\t\t\t\tif (room.getPit()) {\n\t\t\t\t\taddImage(row, col, PIT_FILE, PIT_FILE);\n\t\t\t\t}\n\t\t\t\tif (room.getGold()) {\n\t\t\t\t\taddImage(row, col, GOLD_FILE, GOLD_FILE);\n\t\t\t\t}\n\t\t\t\tWumpus w = room.getWumpus();\n\t\t\t\tif (w != null) {\n\t\t\t\t\taddImage(row, col, w.getName(), WUMPUS_FILE);\n\t\t\t\t\tsetDirection(row, col, w.getName(), w.getDirection());\n\t\t\t\t\tPoint pos = new Point(w.getRow(), w.getColumn());\n\t\t\t\t\tagents.put(w.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(w);\n\t\t\t\t\tcheckStench(row + 1, col - 1, row - 1, col + 1);\n\t\t\t\t}\n\t\t\t\tSet explorers = room.getExplorers();\n\t\t\t\tfor (Iterator it = explorers.iterator(); it.hasNext(); ) {\n\t\t\t\t\tExplorer e = (Explorer) it.next();\n\t\t\t\t\taddImage(row, col, e.getName(), EXPLORER_FILE);\n\t\t\t\t\tsetDirection(row, col, e.getName(), e.getDirection());\n\t\t\t\t\tPoint pos = new Point(e.getRow(), e.getColumn());\n\t\t\t\t\tagents.put(e.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(e);\n\t\t\t\t}\n\t\t\t\tboolean breeze = false;\n\t\t\t\tif (row > 0 && world.getRoom(row - 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (row < world.getWidth() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row + 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col > 0 && world.getRoom(row, col - 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col < world.getHeight() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row, col + 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t}\n\t\t\t\tif (breeze) {\n\t\t\t\t\taddImage(row, col, BREEZE_FILE, BREEZE_FILE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tframe.show();\n\t\tthis.enabled = true;\n\t}", "protected void sequence_DEFINE_DefinitionWindow_OUTPUT_WINDOW(ISerializationContext context, DefinitionWindow semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public OverWorldPanel(String mn, String cn, MasterWindow frame){\r\n //super();\r\n eventCaller = frame;\r\n\r\n random = new Random();\r\n moveAnimator = new Timer(100, this);\r\n moveAnimator.setRepeats(true);\r\n moving = false;\r\n\r\n direction = 'n';\r\n prevDirection = 'n';\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n characterName = cn;\r\n playerName = characterName + direction + \".png\";\r\n currentCharacter = new ImageIcon(playerName);\r\n\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n addKeyListener(new AL());\r\n//sets up the map in the panel using the map loader methods. come back later to make the\r\n//start based on the panel size for a resizable screen\r\n mapX = invisMap.getMapStartX(mapName);\r\n mapY = invisMap.getMapStartY(mapName);\r\n protagonistX = -mapX + 250;\r\n protagonistY = -mapY + 250;\r\n System.out.println(\"protagonist x and y\" + protagonistX + \" \" + protagonistY);\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n //System.out.println(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());\r\n // not sure what to do for this yet protagonist = new Player(panelWidth/2, panelHeight/2);\r\n }", "public void setHWnd (Hwnd hWnd) {\n hWndHandle = hWnd.handleToPeer;\n }", "public Window(){\n\n screen = new Screen();\n add(screen);\n\n setSize(800,800);\n\n setTitle(\"Java Worm v0.1\");\n System.out.println(\"Java Worm v0.1\");\n\n setVisible(true);\n }", "static EmitStrategy onWindowUpdate() {\n return new WindowUpdateStrategy();\n }", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "public abstract void newWindow(ReFrame newFrame);", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "void setSimulationController(SimulationController simulationController);", "public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}", "private void createSimulatorMode() {\n setSize(1000, 750);\n setLocation(new Point(200, 100));\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n \n GridBagConstraints c = new GridBagConstraints();\n \n map = new UAVMap(this, UAVModes.SIMULATION, false);\n smenu = new SimUAVMenu();\n toolBar = new SimUAVToolBar();\n map.addConnections(toolBar, smenu);\n smenu.addConnections(toolBar, map);\n toolBar.addConnections(smenu, map);\n \n c.gridy = 0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weightx = 1;\n c.weighty = 0;\n content.add(smenu, c);\n \n c.gridy = 1;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 0;\n content.add(toolBar, c);\n \n c.gridy = 2;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n \n setVisible(true);\n map.initializeSimulation();\n map.startTimer();\n }", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "public void startWindow() {\r\n \r\n \tfirstBorderWindow = new BorderPane();\r\n \tScene scene = new Scene(firstBorderWindow,600,600);\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\t//MenuBar\r\n\t\tMenuBar mb = new MenuBar();\r\n\t\tMenu topMenu = new Menu(\"Impostazioni\");\r\n\t\t\r\n\t\tMenuItem regole = new MenuItem(\"Regole\");\r\n\t\tMenuItem esci = new MenuItem(\"Esci\");\r\n\t\ttopMenu.getItems().addAll(esci, regole);\r\n\t\tmb.getMenus().add(topMenu);\r\n\t\t\r\n\t\tEventHandler<ActionEvent> MEHandler = new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tString nome = ((MenuItem)event.getTarget()).getText();\r\n\t\t\t\tif (nome.equals(\"Esci\")) Platform.exit();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tesci.setOnAction(MEHandler);\r\n\t\t\r\n\t\tfirstBorderWindow.setTop(mb);\r\n\t\t// Show the scene\r\n\t\tstage.show();\r\n }", "@FXML\n public void addTeleporter() {\n if (!World.getInstance().worldContainsTeleporterIn()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterIn(0, 0));\n }\n if (!World.getInstance().worldContainsTeleporterOut()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterOut(0, 0));\n \t\n }\n\n }", "public GameView(ClientWindow window) {\n super(\"game\", window);\n initComponents();\n \n \n this.gamePanel = new GamePanel(this);\n add(gamePanel, BorderLayout.CENTER);\n \n this.chatPanel = new ChatPanel(this);\n add(chatPanel, BorderLayout.SOUTH);\n \n this.scoreboardPanel = new ScoreboardPanel();\n add(scoreboardPanel, BorderLayout.WEST);\n }", "@FXML\n private void openForwardWindow() {\n try {\n ComposeEmailWindow cew = new ComposeEmailWindow(\"FWD: \", \"\",\n this.subjectContent.getText(), this.msgContent.getText());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}", "public void topLevelWindowCreated(Window w) {\n if (w instanceof Accessible) {\n installListeners((Accessible) w);\n }\n }", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "public void setRelatedWindow(FormWindow relatedWindow);", "public void setupGame(boolean cl) {\n currentScore = 0;\n GameWorldGenerator.generateWorld(this);\n setup = new GameSetup(this, cl);\n if (!cl) {\n new SetupWindow(this);\n }\n }", "public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }", "@Override\n public void windowActivated(WindowEvent we) {\n }", "@Override\n public boolean isActive(W window) {\n return true;\n }", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n this.f61641k = false;\n }", "void go(){\n\t\twindow.setSize(28, 80);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setVisible(true);\n\t\twindow.setResizable(false);\n\t\twindow.add(new PewGrid());\n\t\t// Adds a listener for mouse related events\n\t\twindow.addMouseListener(new mouseevent());\n\t\twindow.repaint();\n\t\t//move();\n\t}", "public BalloonController(WorldWindow wwd)\n {\n if (wwd == null)\n {\n String message = Logging.getMessage(\"nullValue.WorldWindow\");\n Logging.logger().severe(message);\n throw new IllegalArgumentException(message);\n }\n\n this.wwd = wwd;\n this.wwd.addSelectListener(this);\n this.wwd.getInputHandler().addMouseListener(this);\n this.wwd.getInputHandler().addMouseMotionListener(this);\n }" ]
[ "0.5553429", "0.5550397", "0.54972076", "0.5477147", "0.52074724", "0.51865435", "0.51846284", "0.5178003", "0.5151698", "0.51263773", "0.509515", "0.5079591", "0.50231504", "0.4997562", "0.49810067", "0.49741971", "0.49572653", "0.49436885", "0.4910517", "0.4907405", "0.49017924", "0.4883706", "0.48775038", "0.48695174", "0.48684242", "0.48659486", "0.4859159", "0.48569024", "0.48488805", "0.4833877", "0.48311013", "0.48242888", "0.47834975", "0.47808957", "0.47723567", "0.475804", "0.47564775", "0.47558907", "0.47526073", "0.47522458", "0.47498038", "0.4739581", "0.47267726", "0.47205848", "0.47165465", "0.46784118", "0.46754748", "0.46606684", "0.46478936", "0.46418908", "0.46298736", "0.46201566", "0.46164608", "0.46128878", "0.4610795", "0.4610351", "0.4603637", "0.46022588", "0.45952594", "0.45895526", "0.45884913", "0.4587531", "0.4585915", "0.45790252", "0.45772755", "0.45684674", "0.45582864", "0.45528218", "0.4550632", "0.45497233", "0.45443723", "0.45393476", "0.45339915", "0.4533377", "0.453027", "0.45269582", "0.45258266", "0.45232496", "0.4520603", "0.4515161", "0.45117098", "0.4508782", "0.450486", "0.44967103", "0.44910088", "0.44891027", "0.44858006", "0.44856697", "0.4476571", "0.44712147", "0.44709077", "0.446479", "0.44637588", "0.44524035", "0.444893", "0.44431105", "0.44403479", "0.44359568", "0.44352135", "0.44337848" ]
0.70344996
0
Called when the window is closing.
void windowClosed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void windowClosed(WindowEvent arg0) {\n\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\n\t}", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n public void windowClosed(WindowEvent we) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n closeWindow();\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t}", "public void close() {\r\n dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\n\t\t\t}", "public void windowClosed(WindowEvent e){}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\twindow_Closing(e);\n\t\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "public void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "private void handleWindowClose() {\n if (scrdev().getFullScreenWindow() != null)\n scrdev().getFullScreenWindow().removeAll();\n if (container != null){\n container.setVisible(false);\n container.dispose();\n container.removeKeyListener(this);\n \n //TODO: make a call to finish\n }\n }", "@Override\r\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t}", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n public void windowClosing(WindowEvent e)\n {\n\n }", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed (WindowEvent e)\n\t{\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t}", "@Override\r\n public void windowClosed(WindowEvent e) {\r\n System.out.println(\"Window closed.\");\r\n }", "public void finishedWindow() {\n\t\tgameManager.closePiratesEventScreen(this, route);\n\t}", "@Override\n public void closeWindow() {\n \n }", "public void windowClosing(WindowEvent comeInWindowEvent) {\n\t\tGUICommon.mainFrame.dispose();\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClose(CloseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\r\n\t}", "@Override\n\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\n\t\t}", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "private void thisWindowClosing()\n {\n // Keep track of the fact that we're in the act of closing this window\n m_bClosing = true;\n\n // Need to explicitly release the focus which in turn will cause any\n // listeners to unregister from this agent (is its still alive).\n // Otherwise our listeners will\n // still be registered and will try to display output in windows that\n // are disposed.\n // This has the potential to deadlock (waiting to issue unregister calls\n // while we're running) so we put\n // it in a separate thread to avoid that.\n Thread clearFocus = new Thread(() -> clearAgentFocus(false));\n clearFocus.start();\n\n // DJP: Experiment\n // if (this.getDocument().getNumberFrames() > 1)\n // this.setAgentFocus(null);\n\n // Record the current window positions as properties,\n // which we can then save.\n RecordWindowPositions();\n\n // Save current layout file\n saveCurrentLayoutFile();\n\n // Save the user's preferences to the properties file.\n try\n {\n this.getAppProperties().Save();\n }\n catch (Throwable t)\n {\n edu.umich.soar.debugger.general.Debug\n .println(\"Error saving properties file: \" + t.getMessage());\n }\n\n // Remove us from the list of active frames\n this.getDocument().removeFrame(this);\n\n // Dispose of all of the colors we created\n for (Color mColor : m_Colors) {\n Color color = mColor;\n color.dispose();\n }\n\n if (m_TextFont != null)\n m_TextFont.dispose();\n\n // Exit the app if we're the last frame\n if (this.getDocument().getNumberFrames() == 0)\n {\n getDocument().close(true);\n }\n }", "public void close() {\r\n\t\t\r\n\t\tWindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\r\n\t}", "@Override\n\t\t\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\t\tsetStillRunning(false);\n\t\t\t\t\t}", "public void windowClosing(WindowEvent e)\r\n\t\t\t\t{\r\n\t\t\t\t\tWatchMeFrame.this.windowClosed();\r\n\t\t\t\t}", "@Override\n\tpublic void windowClosed( WindowEvent e ) {\n\t\t\n\t}", "public void onWindowClosing(Window.ClosingEvent event) {\n VTextField.flushChangesFromFocusedTextField();\n \n // Send the closing state to server\n connection.updateVariable(id, \"close\", true, false);\n connection.sendPendingVariableChangesSync();\n }", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }" ]
[ "0.8411728", "0.81866837", "0.8184371", "0.8172492", "0.8158572", "0.8158572", "0.81485283", "0.81485283", "0.81485283", "0.81485283", "0.81485283", "0.81485283", "0.81485283", "0.8138807", "0.8138807", "0.8138807", "0.8105881", "0.8090525", "0.8086889", "0.8086889", "0.80819136", "0.80819136", "0.80754095", "0.80526733", "0.8051065", "0.8039239", "0.8024727", "0.80204093", "0.80117935", "0.80100095", "0.80100095", "0.80100095", "0.8007773", "0.7994816", "0.79946834", "0.79946834", "0.79946834", "0.79946834", "0.7992693", "0.79790395", "0.7970143", "0.7970143", "0.7958757", "0.7953536", "0.79460114", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.7938381", "0.79366946", "0.79366946", "0.79366946", "0.79366946", "0.79366946", "0.79366946", "0.79366946", "0.7933163", "0.7928204", "0.7928204", "0.7928204", "0.7928204", "0.7928204", "0.7928204", "0.7928204", "0.7921729", "0.7899308", "0.7880407", "0.78797644", "0.7871923", "0.78686804", "0.7867823", "0.78634614", "0.78634614", "0.7859492", "0.78469485", "0.78464425", "0.7845994", "0.7841", "0.783143", "0.7826283", "0.7826117", "0.7824735", "0.78241366" ]
0.8292558
1
This is called when a button is pressed by the user
void buttonPressed(ButtonType type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "public void buttonClicked();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "public void onButtonAPressed();", "void mainButtonPressed();", "public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}", "public void sButton() {\n\n\n\n }", "public void settingBtnClick() {\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "protected abstract void pressedOKButton( );", "public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }", "void enablButtonListener();", "private void button1MouseClicked(MouseEvent e) {\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public abstract void buttonPressed();", "public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "String handleButtonPress(Button button);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "public void testing() {\n System.out.println(\"button pressed!\");\n }", "void userPressConnectButton();", "void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "void okButtonClicked();", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "private void button1MouseClicked(MouseEvent e) {\n }", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == button1) {\n\t\t prefDisplay();\n\t\t }\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void onButtonBPressed();", "@Override\n public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\");\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "public void submit_intsatpos(View button) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}", "public void onClicked();", "@Override\n public void actionPerformed(ActionEvent e) {\n Main.switchViews();\n }", "private void button1ActionPerformed(ActionEvent e) {\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "@Override\n public void onBoomButtonClick(int index) {\n }", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "private void button1MousePressed(MouseEvent e) {\n }", "void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }", "public void trigger() {\n button.release(true);\n }", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n \r\n }", "public void buttonPressed(){\r\n\t\tsetBorder(new BevelBorder(10));\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource().equals(button)) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Woohoo!\");\n\t\t\tif (rand == 0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"APEL\");\n\t\t\t}\n\t\t\tif (rand == 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"APUSH\");\n\t\t\t}\n\t\t\tif (rand == 2) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Physics\");\n\t\t\t}\n\t\t\tif (rand == 3) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Bio\");\n\t\t\t}\n\t\t\tif (rand == 4) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"AP Calc\");\n\t\t\t}\n\t\t\trand = new Random().nextInt(5);\n\t\t}\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "@FXML\n public final void buttonListener() {\n final String str = GameContext.instance().toStringUniverse();\n Dialogs.create()\n .title(\"Planet list\")\n .message(str)\n .showInformation();\n }", "void onAddParameterButtonClick();", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n if (par1GuiButton.id == 0)\n {\n this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 5)\n {\n this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings));\n }\n\n if (par1GuiButton.id == 1)\n {\n this.mc.displayGuiScreen(new GuiSelectWorld(this));\n }\n\n if (par1GuiButton.id == 2)\n {\n this.mc.displayGuiScreen(new GuiMultiplayer(this));\n }\n\n if (par1GuiButton.id == 3)\n {\n this.mc.displayGuiScreen(new GuiTexturePacks(this));\n }\n\n if (par1GuiButton.id == 4)\n {\n this.mc.shutdown();\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}" ]
[ "0.7838161", "0.7792651", "0.7536599", "0.7393247", "0.73690623", "0.7310898", "0.71758884", "0.7094178", "0.7078857", "0.7059502", "0.70565337", "0.7055408", "0.7049048", "0.7039087", "0.702815", "0.702815", "0.702815", "0.702815", "0.7027525", "0.7018046", "0.7000462", "0.69851553", "0.6965993", "0.6960948", "0.696048", "0.6947402", "0.6933223", "0.69273543", "0.69273543", "0.69273543", "0.69164497", "0.6899555", "0.6899555", "0.6897606", "0.6890836", "0.68842375", "0.6880752", "0.68472004", "0.68462974", "0.6844644", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.68398124", "0.6837636", "0.6819902", "0.681373", "0.6812298", "0.68097055", "0.68093854", "0.6797436", "0.6797436", "0.67890203", "0.67633694", "0.67633694", "0.675925", "0.675578", "0.6746428", "0.67459935", "0.6745499", "0.6745424", "0.6743727", "0.6743727", "0.6743727", "0.6732486", "0.6731117", "0.6725073", "0.671563", "0.67002755", "0.66902685", "0.66878563", "0.66878563", "0.66878563", "0.66878563", "0.66878563", "0.66878563", "0.6681037", "0.6680207", "0.66790384", "0.66706026", "0.6668683", "0.6666497", "0.66645986", "0.6654836", "0.66544414", "0.6653249", "0.6653249", "0.6645194", "0.6644814", "0.66395766", "0.66382796", "0.66382307", "0.66382307", "0.66382307" ]
0.6912554
31
This is called if the speed slider is changed by the user
void simulationSpeedChange(int value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }", "private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}", "void OnSpeedChanges(float speed);", "public void stateChanged(ChangeEvent e)\n {\n JSlider source = (JSlider)e.getSource();\n if (!source.getValueIsAdjusting())\n speed = source.getValue();\n if (0 < speed && speed < 2)\n speed = 2;\n }", "public void stateChanged(ChangeEvent e)\n {\n simulation.setSpeed(speedSlider.getValue());\n }", "void changeUpdateSpeed();", "public void stateChanged(ChangeEvent event)\n {\n JSlider source = (JSlider) event.getSource();\n if (!source.getValueIsAdjusting())\n {\n SensorInfo.getInstance().setSliderSpeed(source.getValue());\n Controller.getInstance().setMotors();\n }\n }", "public void setCurrentSpeed (double speed);", "void onToggleSpeedSlider(Canvas canvas);", "public void setSpeed(float val) {speed = val;}", "@Override\n public void stateChanged(ChangeEvent _e) {\n if (_e.getSource() instanceof JSlider){\n mView.setFrequencyTxt(((JSlider) _e.getSource()).getValue());\n mComponent.getCMUpdateThread().setInterval(((JSlider) _e.getSource()).getValue());\n if (mComponent.isPlaying())\n \tmComponent.getSimulationPlayer().setInterval(((JSlider) _e.getSource()).getValue());\n }\n }", "public void stateChanged(ChangeEvent e)\n {\n slideLabel.setText(\"The speed is \" + speedSlider.getValue());\n }", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "public void setEditSpeedPressed() {\n String value = JOptionPane.showInputDialog(this, this.applicationDelayText, this.setApplicationDelayText, 3);\n if (value != null) {\n int newSpeed = Integer.parseInt(value.toString());\n this.setSpeed(newSpeed);\n }\n }", "private void speedToggle(ActionEvent e) {\n String text = setSpeed.getText();\n if (text.equals(\"\")) {\n throw new IllegalArgumentException(\"Not an integer\");\n } else {\n int val = Integer.parseInt(text);\n if (val > 0) {\n this.speed = Integer.parseInt(text);\n this.delay = 1000 / this.speed;\n render();\n }\n }\n }", "public void stateChanged(ChangeEvent e) {\n\t\t\t\tplane.setSpeed(jsThrottle.getValue());\n\t\t\t}", "public void changeSpeed(int speed);", "private SpeedSliderListener()\n {\n }", "@Override\n public void valueChanged(double control_val) {\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }", "@Override\n public void run() {\n SwingUtilities.invokeLater( () -> {\n final JSlider slider = mapComponent.getOptionContainer().getStepSlider();\n\n slider.setValue( slider.getValue() + appState.getReplay().getMsPerTick() * playbackSpeed );\n\n if (slider.getValue() >= slider.getMaximum()) {\n cancel();\n animation = null;\n mapComponent.getOptionContainer().getPauseButton().setEnabled( false );\n }\n } );\n }", "@Override\n\tpublic boolean speedBtn()\n\t{\n\t\treturn this.speed;\n\t}", "void changeSpeed(int speed) {\n\n this.speed = speed;\n }", "private void iSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_iSliderStateChanged\n float tmp_value = ((float)this.iSlider.getValue())/10;\n this.paramILabel.setText(\"\" + tmp_value);\n }", "public abstract void updateSlider();", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}", "public void stateChanged(ChangeEvent evt){player.seek(slider.getValue());}", "@Override\n public void valueChanged(double control_val) {\n float current_audio_position = (float)samplePlayer.getPosition();\n\n if (current_audio_position < control_val){\n samplePlayer.setPosition(control_val);\n }\n loop_start.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "@Override\n public void stateChanged(ChangeEvent e)\n {\n if (e.getSource()==delaySlider)\n {\n// System.out.println(delaySlider.getValue());\n rightPanel.setDelayMS(delaySlider.getValue());\n }\n }", "@Override\r\n protected void controlUpdate(float tpf) {\n }", "private void setupChangeSpeed() {\n\t\tFestivalSpeed[] speeds={FestivalSpeed.slow, FestivalSpeed.normal, FestivalSpeed.fast};\n\t\tfinal JComboBox speed_chooser = new JComboBox(speeds);\n\t\tspeed_chooser.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n\t\tspeed_chooser.setForeground(Color.BLACK);\n\t\tspeed_chooser.setBackground(Color.WHITE);\n\n\t\t//set shown item to be the current speed\n\t\tspeed_chooser.setSelectedItem(parent_frame.getFestival().getFestivalSpeed());\n\t\tspeed_chooser.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t\tif((FestivalSpeed)speed_chooser.getSelectedItem()!=null){\n\t\t\t\t\tparent_frame.getFestival().setFestivalSpeed((FestivalSpeed)speed_chooser.getSelectedItem());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tspeed_chooser.setBounds(919, 658, 154, 40);\n\t\tadd(speed_chooser);\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 void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public void sliderChanged(int sliderIndex, String sliderName, double value) {\n\n FractalAlgorithm algorithm = simulator_.getAlgorithm();\n\n if (sliderName.equals(ITER_SLIDER)) {\n algorithm.setMaxIterations((int)value);\n }\n else if (sliderName.equals(TIMESTEP_SLIDER)) {\n simulator_.setTimeStep(value);\n }\n }", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public void setSpeed(int value) {\n this.speed = value;\n }", "private void ssSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ssSliderStateChanged\n float tmp_value = ((float)this.ssSlider.getValue())/10;\n this.paramssLabel.setText(\"\" + tmp_value);\n }", "@FXML\n void windSliderEvent() {\n \t\n \tint value = (int) windSlider.getValue();\n \twindText.setText(Integer.toString(value));\n \twindSpeed = value;\n }", "public void setSpeed(int speed) {\n if (speed < 0) {\n this.speed = 0;\n lblVelocidade.setText(this.applicationDelayText + \": 0\");\n return;\n }\n this.speed = speed;\n sliderSpeed.setValue(speed / 10);\n lblVelocidade.setText(this.applicationDelayText + \": \" + speed);\n }", "public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }", "private void pSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_pSliderStateChanged\n float tmp_value = ((float)this.pSlider.getValue())/10;\n this.paramPLabel.setText(\"\" + tmp_value);\n }", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "@Override\n protected void onStop() {\n mDemoSlider.stopAutoCycle();\n super.onStop();\n }", "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 }", "@Override\n public void onStop() {\n mDemoSlider.stopAutoCycle();\n super.onStop();\n }", "@Override\r\n\tpublic void speed() {\n\t}", "void setSpeed(RobotSpeedValue newSpeed);", "@Override\n protected void onStop() {\n slider.stopAutoCycle();\n super.onStop();\n }", "@Override\r\n public void run() {\r\n if (event.getEventType().equals(DrivingEventType.OVERSPEED)) {\r\n overspeedStartTimestamp = System.currentTimeMillis();\r\n LocationController.addListenerToContainer(this);\r\n } else {\r\n AccelerometerValuesController.addListenerToContainer(this);\r\n }\r\n }", "@Override\n\tprotected void controlUpdate(float tpf) {\n\t\t\n\t}", "@Override\r\n public void stateChanged(ChangeEvent e) {\n gameWindow.getTickDelayLabel().setText(\"Delay: \" + gameWindow.getSlider().getValue()*10 + \" ms\");\r\n }", "public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}", "private void ffSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ffSliderStateChanged\n float tmp_value = ((float)this.ffSlider.getValue())/10;\n this.paramffLabel.setText(\"\" + tmp_value);\n }", "private void dSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_dSliderStateChanged\n float tmp_value = ((float)this.dSlider.getValue())/10;\n this.paramDLabel.setText(\"\" + tmp_value);\n }", "private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "private void control()\r\n\t\t{\n\t\tspinMin.addChangeListener(createMinListener());\r\n\t\tspinMax.addChangeListener(createMaxListener());\r\n\t\t}", "@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}", "public void currentSpeed()\n\t{\n\t\tif(speed == 0)\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in rest\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"The bike is in motion\");\n\t\t\t\n\t\t}\n\t}", "void setPlaybackSpeed(float speed);", "@Override\n public void onLocationChanged(Location location) {\n currentSpeed = location.getSpeed();\n //locationText.setText(String.valueOf(latitude)+ \" \" +String.valueOf(longitude)+ \" \" +String.valueOf(speed));\n //isGPSReady = true;\n }", "public void setSpeed(double multiplier);", "public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}", "public interface SpeedListener {\n void speedSelected(String speed);\n}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tsuper.onLocationChanged(location);\n\n\t\tif (status.isStarted() && status.isPause() == false) {\n\t\t\ttxt_current_speed.setText(CommonUtility.formatSpeed(location\n\t\t\t\t\t.getSpeed()));\n\t\t\ttxt_high_speed.setText(CommonUtility.formatSpeed(myTrack.maxSpeed));\n\t\t\ttxt_average_speed.setText(CommonUtility\n\t\t\t\t\t.formatSpeed(myTrack.averageSpeed) + \" km/h\");\n\t\t\ttxt_total_distance.setText(CommonUtility\n\t\t\t\t\t.formatDistance(myTrack.distance));\n\t\t\tchart.setSpeed(location.getSpeed());\n\t\t}\n\t}", "public abstract void setSpeed(int sp);", "public void refresh() {\n\t\t\tif(keys[KeyEvent.VK_RIGHT]){//if it is to the right, the sliderVX is 1\n\t\t\t\tsliderVX = 1;\n\t\t\t\t//System.out.println(\"Called\");\n\t\t\t}\n\t\t\telse if(keys[KeyEvent.VK_LEFT]){//if it moves to the left, it is -1\n\t\t\t\tsliderVX =- 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsliderVX = 0;//not moving = 0\n\t\t\t}\n\t\t\t\n\t\t}", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}", "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 setWindSpeed(double windspeed){windspeedval.setText(Double.toString(windspeed));}", "public void setNewSpeed(float simSpeed) {\n synchronized (settings){\n settings.setSimSpeed(simSpeed);\n\n if(settings.getSimSpeed() > 1000){\n settings.setSimSpeed(1000f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 1000\");\n }\n if(settings.getSimSpeed() < 0){\n settings.setSimSpeed(0.001f);\n System.out.println(\"The simulation only supports a simSpeed between 0.001 and 1000!\");\n System.out.println(\"The simulation speed was set to 0.001\");\n }\n }\n }", "public void setFlySpeed ( float value ) throws IllegalArgumentException {\n\t\texecute ( handle -> handle.setFlySpeed ( value ) );\n\t}", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "@Override\n @Deprecated // Deprecated so developer does not accidentally use\n public void setSpeed(int speed) {\n }", "private void setAllSliders() {\n setSliderValue(speedSlider, speedTF, 24);\n }", "public void startEngine(){\n currentSpeed = 0.1;\n }", "public void currentSpeed(double currentSpeed)\n\t{\n\t\tspeed = currentSpeed;\n\t\t\n\t}", "public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }", "@Override\n public void setSpeed(double speed, int rpm, int measurementsType) {\n speedText.setText(String.format(\"%.1f\", speed));\n if (measurementsType == ThunderBoardPreferences.UNIT_METRIC) {\n speedUnitsText.setText(getString(R.string.motion_meters_per_second));\n } else {\n speedUnitsText.setText(getString(R.string.motion_feet_per_second));\n }\n rpmText.setText(String.valueOf(rpm));\n }", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "public void changeSpeedD() {\n speedX *= -1;\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean b)\n {\n speed = progress;\n speedLabel.setText(speed + \"\");\n if(serviceIntent != null)\n serviceIntent.putExtra(\"Speed\", speed+\"\");\n\n //TODO: Notify the service\n if(crashDetectionService != null)\n {\n crashDetectionService.setSpeed(speed);\n }\n }", "public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}", "public void setSpeed(int speed) {\n this.speed = speed;\n }", "private void updateSwitchState() {\n this.mDisabled = !MiuiStatusBarManager.isShowNetworkSpeedForUser(this.mContext, -2);\n }", "@Override\n public void onStartTrackingTouch(@NonNull Slider slider) {\n int x = (int) Math.ceil(slider.getValue() / 1000f);\n\n if (x < 10)\n timer.setText(\"0:0\" + x);\n else\n timer.setText(\"0:\" + x);\n\n if (slider.getValue() > 0 && mediaPlayer[0] != null && !mediaPlayer[0].isPlaying()) {\n mediaPlayer[0].stop();\n mediaPlayer[0].release();\n mediaPlayer[0] = null;\n play.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_play_24));\n slider.setValue(0);\n }\n }", "@Override\n\t\t\tpublic void stateChanged(final ChangeEvent evt) {\n\t\t\t\tfinal JSlider mySlider3 = (JSlider) evt.getSource();\n\t\t\t\t//if (source.getValueIsAdjusting()) {\n\t\t\t\tif (mySlider3.getValueIsAdjusting()) {\n\t\t\t\t\t// int freq = (int)source.getValue();\n\t\t\t\t\tfloat freq = (float) mySlider3.getValue();\n\t\t\t\t\tfreq = (freq / FREQ_MAX) * (freq / FREQ_MAX);\n\t\t\t\t\tfreq = freq * FREQ_MAX;\n\t\t\t\t\tfreq = freq + FREQ_MIN;\n\t\t\t\t\tdoPrintValue3(freq);\n\t\t\t\t\t// when the action occurs the doSendSlider method is invoked\n\t\t\t\t\t// with arguments for freq and node\n\t\t\t\t\tdoSendSlider(freq, 1002);\n\t\t\t\t}\n\t\t\t}", "void updateSliderPosition(int currentTick);", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }", "private void sliderChanged(ChangeEvent e) {\n\t\tif (isTest()) { // TEST TEST TEST TEST !!!!!!!!!!!!!\n\t\t\treturn;\n\t\t}\n\t\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tsliderValue = (int) source.getValue();\n\t\t// System.out.println(windowBase.getName() + \": sliderChanged: \" +\n\t\t// sliderValue);\n\t\tint size = index.data.getPictureSize();\n\t\tif (size == 0) {\n\t\t\tremoveAllPictureViews(); \n\t\t\treturn;\n\t\t}\n\t\t\n\t\t \n\t\tPM_Picture pic = null;\n\t\t\n\t\tif (client.getComponentCount() > 0) {\n\t\t\tObject o = client.getComponent(0);\n\t\t\tif (o instanceof PM_PictureView) {\n\t\t\t\tpic = ((PM_PictureView)o).getPicture();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"..... sliderChanged\");\n\t\tpaintViewport(pic);\n\t\t// paintViewport(null);\n\t}" ]
[ "0.76355684", "0.7586968", "0.746392", "0.744985", "0.7419544", "0.7204214", "0.709264", "0.7092426", "0.7033579", "0.69256836", "0.6811515", "0.6786621", "0.6747736", "0.6699818", "0.66939116", "0.66846037", "0.6660655", "0.6619972", "0.66073906", "0.6555709", "0.6538303", "0.65193945", "0.6507825", "0.6494088", "0.64786935", "0.64405155", "0.6432028", "0.6409796", "0.6408772", "0.63994217", "0.638588", "0.63854605", "0.63834655", "0.6382925", "0.6382719", "0.6373247", "0.63731575", "0.6368391", "0.6362253", "0.6358754", "0.63331825", "0.6317958", "0.6310829", "0.6308502", "0.63066745", "0.6290108", "0.6288677", "0.62769455", "0.6265621", "0.62631565", "0.62569296", "0.62389135", "0.623867", "0.62311864", "0.6229765", "0.6223241", "0.62055504", "0.6201047", "0.6201047", "0.6199876", "0.6198409", "0.61677915", "0.6167122", "0.6162392", "0.616164", "0.61578864", "0.6156411", "0.6151961", "0.614937", "0.614937", "0.6141803", "0.61329806", "0.6131081", "0.61259496", "0.6125506", "0.61164856", "0.6113482", "0.6101592", "0.60933053", "0.6092988", "0.60911655", "0.60877246", "0.6087161", "0.6069787", "0.6061727", "0.60216707", "0.6014904", "0.6013904", "0.6009194", "0.6000253", "0.5996542", "0.59938556", "0.5993678", "0.5993196", "0.5992665", "0.5985316", "0.5975129", "0.5968986", "0.59483606", "0.5942109" ]
0.632117
41
This gets called when the user changes the selected element
void selectedEntityChanged(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "public void updateSelection() {\n\t\t\n\t}", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "public void selectionChanged(Selection selecton) {\r\n }", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}", "protected void selectionChanged(IStructuredSelection selection) {\n \t}", "public void onSelectionChanged();", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "protected void selectionChanged(ITextSelection selection) {}", "void selectionModeChanged(SelectionMode mode);", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t}", "@Override\n\tpublic abstract void valueChanged(ListSelectionEvent arg0);", "@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}", "public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }", "void afterMasterSelectionChange();", "@Override\n\tpublic void selectionChanged(IAction arg0, ISelection arg1) {\n\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}", "private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }", "static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }", "@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }", "protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }", "protected void onSelectionPerformed(boolean success) {\n }", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }", "@DISPID(200)\r\n public void selectionChanged() {\r\n throw new UnsupportedOperationException();\r\n }", "public void valueChanged( TreeSelectionEvent e )\n {\n //throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "public void selectedChanged(SelectEvent e) {\n\t\t\t\tm_Report.getStatusBar().repaint();\r\n\t\t\t}", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void stateChanged (ChangeEvent e)\r\n\t {\t\t\r\n\t\t int index = tabbedPane.getSelectedIndex();\r\n\t\t m_selectionActive = (index == 0);\r\n\t }", "public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}", "public void selectionChanged(Action item);", "public void widgetSelected(SelectionEvent arg0) {\n\t\t\t}", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "@Override\r\n\tpublic void widgetDefaultSelected(SelectionEvent arg0)\r\n\t{\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n }", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();\n sheet.displayNode(node);\n }", "@Override\r\n\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\tJList list = (JList) e.getSource();\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tSystem.out.println(\"selected: \" + list.getSelectedValue());\n\t\t\t\tint userSelect = list.getSelectedIndex();\n\t\t\t\tplayingDBThread = null;\n\t\t\t\taudioDBThread = null;\n\t\t\t\tload_DB_video(resultListRankedNames.get(userSelect));\n\t\t\t\tupdateSimilarFrame();\n\t\t\t\tslider.setValue(0);\n\t\t\t}\n\t\t}", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\n\t\t\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void onComponentSelection(){\r\n\r\n }", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\r\n\t}", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "public void valueChanged(ListSelectionEvent le) {\n\n int idx = jlist.getSelectedIndex();\n\n /** Display the selection */\n if (idx != -1)\n jl.setText(\"Current Selection = \" + names[idx]);\n else\n jl.setText(\"Please choose a name !\");\n }", "protected void onSelect() {\n\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}" ]
[ "0.7274752", "0.7252354", "0.7244393", "0.71342456", "0.702324", "0.69818383", "0.692254", "0.69147515", "0.69143105", "0.6888294", "0.6876232", "0.6796585", "0.6780229", "0.6780108", "0.67689735", "0.6748082", "0.6745301", "0.67233694", "0.672151", "0.67094", "0.67076033", "0.6694285", "0.6688594", "0.66745275", "0.6670159", "0.6664419", "0.6652646", "0.6651502", "0.66445035", "0.66433954", "0.6629025", "0.66216356", "0.6617386", "0.661714", "0.661714", "0.661714", "0.661714", "0.661714", "0.661714", "0.6588711", "0.65869063", "0.6584411", "0.6574539", "0.657109", "0.65682393", "0.6567841", "0.65663207", "0.65505975", "0.65469456", "0.6544978", "0.6536789", "0.6533188", "0.65304536", "0.652956", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6520428", "0.6518585", "0.651856", "0.6505022", "0.6505022", "0.64979327", "0.64959306", "0.64959306", "0.64959306", "0.64959306", "0.64959306", "0.64959306", "0.64958626", "0.6494005", "0.64909035", "0.6488918", "0.64835966", "0.64835966", "0.64835966", "0.64835966", "0.64835966", "0.64835966", "0.64835966", "0.64829", "0.64802736", "0.6471305", "0.64573604", "0.64573604", "0.64573604", "0.6456924", "0.64544576", "0.6452418", "0.6450856", "0.6443453", "0.6443453", "0.6443453" ]
0.65136606
67
This gets called by the user to refresh task status information. Calling this must verify the task.
void refreshTaskInformation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateTask() {}", "public void updateTaskStatus(CaptureTask task, String status, String description) {\n\t\t\r\n\t}", "boolean updateActiveTask(Task task);", "@Override\n public boolean statusUpdate(TaskAttemptID taskId, TaskStatus taskStatus)\n throws IOException, InterruptedException {\n superStepCount = taskStatus.getSuperstepCount();\n return true;\n }", "void setStatus(TaskStatus status);", "TaskStatus getStatus();", "private void updateTask(ICompositeCheatSheetTask task) {\n \t\tif (task==null || task != selectedTask) return;\n \t\tif ( task instanceof EditableTask) {\n \t\t\tEditableTask editable = (EditableTask)task;\n \t\t\tif (editable.getState() == ICompositeCheatSheetTask.IN_PROGRESS) {\n \t\t\t\tshowEditor(editable);\n \t\t\t\treturn;\n \t\t\t} else if (editable.isUnderReview()) {\n \t\t\t\tif (editable.getState() == ICompositeCheatSheetTask.COMPLETED) {\n \t\t\t\t\tshowEditor(editable);\n \t\t\t\t} else {\n \t\t\t\t\tendReview(editable);\n \t\t\t\t}\n \t\t\t\treturn;\n \t\t\t}\n \t\t} \n \t\tshowDescription(task);\n \t}", "protected void status(String status) throws InvalidKeyException {\n task.setStatus(status);\n }", "boolean updateTask(Task updatedTask);", "private void handleStatusUpdate(AppEvent event)\n {\n if( ( !event.getTask().hasStatus() )\n || ( !event.getTask().getStatus().getState().equals( event.getTaskStatus().getState() ))\n || ( this.app.getState(event.getTask().getNodeId()).equals(SchedulerNode.State.REREGISTERED) ))\n {\n //do info update first in case user issues a AppDriver call that depends on it\n this.updateTaskInfo(event.getTask(), event.getTaskStatus());\n\n SchedulerNode.State state = this.app.getState(event.getTask().getNodeId());\n\n switch (event.getTaskStatus().getState())\n {\n //case TASK_DROPPED:\n case TASK_ERROR:\n case TASK_FAILED:\n //case TASK_GONE:\n case TASK_LOST:\n //case TASK_UNKNOWN:\n // case TASK_GONE_BY_OPERATOR:\n //case TASK_UNREACHABLE:\n if( !state.equals(SchedulerNode.State.FAILED)\n && !state.equals(SchedulerNode.State.FINISHED)\n && !state.equals(SchedulerNode.State.KILLED)) {\n this.app.nodeFailed(this, event.getTask().getNodeId());\n }\n break;\n case TASK_FINISHED:\n if( !state.equals(SchedulerNode.State.FAILED)\n && !state.equals(SchedulerNode.State.FINISHED)\n && !state.equals(SchedulerNode.State.KILLED)) {\n this.app.nodeFinished(this, event.getTask().getNodeId());\n }\n break;\n case TASK_RUNNING:\n this.app.nodeRunning(this, event.getTask().toBuilder().setStatus(event.getTaskStatus()).build());\n break;\n case TASK_KILLED:\n if( !state.equals(SchedulerNode.State.FAILED)\n && !state.equals(SchedulerNode.State.FINISHED)\n && !state.equals(SchedulerNode.State.KILLED)) {\n this.app.nodeKilled(this, event.getTask().getNodeId());\n }\n break;\n default:\n }\n }\n\n this.updateTaskInfo(event.getTask(), event.getTaskStatus());\n }", "public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String state);", "public void updateTaskViews(){\n for (Task task : taskManager.getTasksList()){\n TextView textToChange = (TextView) root.findViewById(task.getIdInView());\n if (textToChange == null){\n submit(task.getName(), task.getIdInView(), task.getTimeForTask(), task.isFinished());\n } else {\n textToChange.setText(task.getName());\n }\n }\n }", "private static String getStatus(Task task) {\n Status myStatus = task.getStatus();\n if (myStatus == Status.UP_NEXT) {\n return \"UP_NEXT\";\n } else if (myStatus == Status.IN_PROGRESS) {\n return \"IN_PROGRESS\";\n } else {\n return myStatus.toString();\n }\n }", "public void updateStatus() {\n var taskStatuses = new ArrayList<OptimizationTaskStatus>();\n\n synchronized (tasks) {\n for (var task : tasks.values()) {\n taskStatuses.add(task.getStatus());\n }\n }\n\n wrapper.setStatus(JsonSerializer.toJson(new OptimizationToolStatus(taskStatuses)));\n }", "public void setStatus(ServiceTaskStatus status) {\n\t\tthis.status = status;\n\t}", "@Transactional\n public void refresh(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().refresh(taskInstanceEntity);\n }", "private synchronized boolean changeTaskState(String taskKey, SchedulerTaskState newState)\n {\n if (timer == null)\n return false;\n \n // the task has already been canceled\n SchedulerTimerTask timerTask = (SchedulerTimerTask) scheduledTimerTasks.get(taskKey);\n if (null == timerTask)\n {\n return false;\n }\n \n // and write changed state to internal db if needed\n if (timerTask.schedulerTask.isVisible())\n {\n IDataAccessor accessor = AdminApplicationProvider.newDataAccessor();\n IDataTransaction transaction = accessor.newTransaction();\n try\n {\n IDataTable table = accessor.getTable(Enginetask.NAME);\n table.qbeClear();\n table.qbeSetKeyValue(Enginetask.schedulerid, getId());\n table.qbeSetKeyValue(Enginetask.taskid, timerTask.schedulerTask.getKey());\n if (table.search() > 0)\n {\n IDataTableRecord record = table.getRecord(0); \n record.setValue(transaction, Enginetask.taskstatus, newState.getName());\n transaction.commit();\n }\n }\n catch (Exception ex)\n {\n if (logger.isWarnEnabled())\n {\n logger.warn(\"Could not update task in DB: \" + timerTask.schedulerTask, ex);\n }\n }\n finally\n {\n\t\t\t\ttransaction.close();\n\t\t\t}\n }\n return timerTask.schedulerTask.setState(newState);\n }", "private void updateAction(String taskId) {\n setupPrioritySpinner();\n try {\n QueryBuilder<Task, String> queryBuilder = taskDao.queryBuilder();\n taskForUpdate = taskDao.queryForFirst(queryBuilder.where().eq(Task.TASK_ID, taskId).prepare());\n mTitle.setText(taskForUpdate.getTitle());\n mDescription.setText(taskForUpdate.getDescription());\n mDate.setDate(taskForUpdate.getDate().getTime());\n mPriority.setSelection(taskForUpdate.getPriority());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void updateTask(String task_id, final String task, final String status, final int position){\n if(!preference.getAPI_KEY().isEmpty()){\n Call call = service.updateTask(preference.getAPI_KEY(), task_id, task, status);\n connection.request(call, new ResponseListener() {\n @Override\n public void onSuccess(String response) {\n Log.e(TAG, \"\"+response);\n list_task.get(position).setTask(task);\n list_task.get(position).setStatus(status);\n notifyDataSetChanged();\n }\n\n @Override\n public void onError(String error) {\n Log.e(TAG, \"\"+error);\n }\n });\n }else {\n Toast.makeText(context, \"please login to check data\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void updateUI(){\n\n getCurrentDate();\n List<Object> tasks = new ArrayList<Object>(TaskManager.sharedInstance().GetTasksInProject());\n //creating a welcome message for when there are no tasks\n if(tasks.size() == 0){\n welcome.setVisibility(View.VISIBLE);\n welcome.setText(R.string.no_tasks);\n\n }else {\n welcome.setText(R.string.empty);\n welcome.setVisibility(View.GONE);\n }\n Project currentProject = ProjectManager.sharedInstance().getCurrentProject();\n List<Object> sortedTaskLists = sortTasks(tasks);\n\n if (mTaskAdapter == null) {\n mTaskAdapter = new TaskAdapter(this.getContext(), sortedTaskLists);\n myTaskListView.setAdapter(mTaskAdapter);\n } else {\n mTaskAdapter.updateData(sortedTaskLists);\n mTaskAdapter.notifyDataSetChanged();\n }\n }", "public static boolean toggleComplete(Task task) {\n Boolean complete = task.getCompleted(); // Get the current value\n\n // TOGGLE COMPLETE\n if (complete) // store the opposite of the current value\n complete = false;\n else\n complete = true;\n try{\n String query = \"UPDATE TASK SET ISCOMPLETE = ? WHERE (NAME = ? AND COLOUR = ? AND DATE = ?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, complete.toString()); // Store new isCompleted value\n statement.setString(2, task.getName()); // store values of task\n statement.setString(3, task.getColor().toString());\n statement.setString(4, Calendar.selectedDay.getDate().toString());\n int result = statement.executeUpdate(); // send out the statement\n if (result > 0){ // If swapped successfully, re-load the tasks\n getMainController().loadTasks(); // Reload the task list to update the graphics.\n }\n return (result > 0);\n } catch (SQLException e) {\n e.printStackTrace(); // If task was unable to be edited\n e.printStackTrace(); // Create alert for failing to edit\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to edit task.\");\n alert.showAndWait();\n }\n return false;\n }", "public void updateTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n todoTaskGui(\"Update\", task);\r\n }\r\n }", "@PostMapping(value=\"/update\",consumes={MediaType.APPLICATION_JSON_VALUE},produces={MediaType.APPLICATION_JSON_VALUE})\n\t public StatusDTO updateTask(@RequestBody TaskDTO task){\n\t\t taskService.updateTask(task);\n\t\t StatusDTO status = new StatusDTO();\n\t status.setMessage(\"Task details updated successfully\");\n\t status.setStatus(200);\n\t return status;\n\t }", "@SuppressWarnings(\"unchecked\")\r\n public UserPlanTask UserPlanTaskUpdate(long taskId, String TTitle, String TDescription, String TDate, Integer status) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n UserPlanTask UpdateTaskList = (UserPlanTask) session.load(UserPlanTask.class, taskId);\r\n UpdateTaskList.setTTitle(TTitle);\r\n UpdateTaskList.setTDescription(TDescription);\r\n UpdateTaskList.setTDate(TDate);\r\n UpdateTaskList.setStatus(status);\r\n if (null != UpdateTaskList) {\r\n session.update(UpdateTaskList);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return UpdateTaskList;\r\n }", "@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1\", 1, 1, asgn.getID());\n\t\tasgn.addTask(task);\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\ttask.setPercentComplete(0.174);\n\t\tStorageService.updateTask(task);\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "private GeobatchRunInfo updateRunInfoStatus(GeobatchRunInfo runInfo) {\n RESTConsumerStatus status = null;\n try {\n status = getFlowService().getConsumerStatus(\n runInfo.getFlowUid());\n } catch (Exception e) {\n // status it's FAIL\n }\n runInfo.setFlowStatus(status != null ? status.getStatus().name()\n : \"FAIL\");\n runInfo = updateRunInfo(runInfo);\n return runInfo;\n }", "@Override\n\tpublic boolean updateTaskStatus(int id, String status) throws SQLException, ClassNotFoundException{\n\t\t Connection c = null;\n\t\t Statement stmt = null;\n\t\t \n\t\t Class.forName(\"org.postgresql.Driver\");\n\t\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t\t c.setAutoCommit(false);\n\t\t \n\t\t logger.info(\"Opened database successfully (updateTaskStatus)\");\n\t\t \n\t\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task WHERE id=\"+id+\";\" );\n\t rs.next();\n\t \n\t if(rs.getString(\"status\").equals(status))\n\t {\n\t \t return false;\n\t }\n\t \n\t stmt = c.createStatement();\n\t \n\t String sql = \"UPDATE task SET status='\"+status+\"' WHERE id=\"+id+\";\";\n\t \n\t stmt.executeUpdate(sql);\n\t \n\t stmt.close();\n\t c.commit();\n\t c.close();\n\t \n\t logger.info(\"Task Status changed to planned\");\n\t\t \n\t return true;\n\t}", "public void edit_task_completion(boolean completion_status)\n {\n task_completion_boolean = completion_status;\n }", "private void onTaskStateRequest(final TaskEvent event)\n {\n event.setTaskState(task.getSettings());\n }", "public void updateTaskCompleted(boolean updated)\n {\n refreshTableForUpdate();\n }", "public void checkOffTask() {\n isDone = true;\n }", "public void updateTaskDetailsInDB(UniverseDefinitionTaskParams taskParams) {\n getRunnableTask().setTaskDetails(RedactingService.filterSecretFields(Json.toJson(taskParams)));\n }", "TaskResponse updateTask(TaskRequest taskRequest, Long taskId);", "public void resetTask() {}", "public void completeTask()\n throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n tasks.get(taskIndex).markAsDone();\n storage.updateFile(tasks.TaskList);\n System.out.println(\"Bueno! The following task is marked as done: \\n\" + tasks.get(taskIndex));\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n System.out.println(LINEBAR);\n }", "@Test\n public void setStatusDone_shouldReturnTrueForStatus() {\n Task task = new Task(\"Test\");\n task.setStatusDone();\n Assertions.assertTrue(task.getStatus());\n }", "public void completeTask() {\n completed = true;\n }", "@Override\r\n public void onRefresh() {\r\n tasksubject1.clear();\r\n tasksubject.clear();\r\n tasksubject3.clear();\r\n tasksubject2.clear();\r\n tasksubject4.clear();\r\n tasksubject5.clear();\r\n\r\n String k = client.getClientInfo().userId;\r\n java.util.Calendar calendar = java.util.Calendar.getInstance();\r\n SimpleDateFormat mdformat = new SimpleDateFormat(\"yyyy-MM-dd \");\r\n String date = mdformat.format(calendar.getTime());\r\n\r\n try {\r\n sendRequest(\"SELECT Subject,status,WhoId,id FROM Task WHERE ActivityDate=\" + date + \" and status ='Not Started' and ownerid='\" + k + \"'\");\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n }\r\n adapter.notifyDataSetChanged();\r\n pullToRefresh.setRefreshing(false);\r\n }", "public int updateTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_TASKNAME, task.getTaskName());\n values.put(KEY_STATUS, task.getStatus());\n values.put(KEY_DATE,task.getDateAt());\n\n // updating row\n return db.update(TABLE_TASKS, values, KEY_ID + \" = ?\",\n new String[] { String.valueOf(task.getId()) });\n }", "private void displayTask() {\n this.task = new Task();\n Color color = this.task.getColor();\n this.taskPanel.displayColor(color);\n }", "public void setTask(Task task) {\n this.task = task;\n }", "private void updateViews() {\n\t\tList<Task> list = null;\n\t\tDBHelper db = new DBHelper();\n\t\ttry {\n\t\t\tlist = db.getTaskList(this, Task.COLUMN_ID, taskID);\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(\"Could not get Single Task\", \"Bam\", e);\n\t\t}\n\n\t\ttask = list.get(0);\n\n\t\tint prioPos = 0;\n\n\t\tfor (int i = 0; i < prioList.size(); i++) {\n\n\t\t\tif (prioList.get(i).getId() == task.getPriority().getId()) {\n\t\t\t\tprioPos = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tprioSpinner.setSelection(prioPos);\n\n\t\tint catPos = 0;\n\n\t\tfor (int i = 0; i < categoryList.size(); i++) {\n\n\t\t\tif (categoryList.get(i).getId() == task.getCategory().getId()) {\n\t\t\t\tcatPos = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tcategorySpinner.setSelection(catPos);\n\n\t\ttitle.setText(task.getTitle());\n\t\tdescription.setText(task.getDescription());\n\t\tdatePicker.updateDate(task.getAblaufJahr(), task.getAblaufMonat(),\n\t\t\t\ttask.getAblaufTag());\n\t}", "public abstract void updateStatus() throws Throwable;", "@Test\n\tpublic void testUpdateTask() {\n\t}", "public void refreshWeatherDetail()\n {\n FragmentTransaction transaction = mFragmentManager.beginTransaction();\n transaction.replace(R.id.id_activity_main, mSplashFragment, SplashFragment.TAG);\n transaction.commit();\n\n taskMode = Constants.TASK_MODE_REFRESH_WEATHER_DETAIL;\n mWeatherListItemsArray.clear();\n TaskGetOnlineData startingTask = new TaskGetOnlineData();\n startingTask.execute();\n killableTask = startingTask;\n }", "public void refreshListView() {\n \n \tLog.i(\"refresh list view\", \"Enter\");\n \ttry {\n \t\tif(taskListCursor != null) {\n\t \t\ttaskListCursor.close();\n\t \t\ttaskListCursor = null;\n \t\t}\n FileDbAdapter fda = new FileDbAdapter();\n fda.open();\n \t\ttaskListCursor = fda.fetchTasksForSource(getSource(), true);\n \tfda.close();\n \t} catch (Exception e) {\n \t\te.printStackTrace(); \t// TODO handle exception\n \t}\n \ttasks.changeCursor(taskListCursor);\n \tstartManagingCursor(taskListCursor);\n \ttasks.notifyDataSetChanged();\n\n }", "public void updateTimedTasks() {\n if (TimedEventQueue.validTask(this)) {\n String action = TimedEventQueue.getTask().getAction();\n if (action.equals(\"gravityCancelOver\")) {\n this.gravityCancel = false;\n this.yVel = 0;\n } else if (action.equals(\"dodgeCoolDownOver\")) {\n this.dodgeCoolDown = false;\n } else if (action.equals(\"breakSpecialState\")) {\n this.breakSpecialState();\n } else if (action.equals(\"activeAttackState\")) {\n this.activeAttackState = true;\n } else if (action.equals(\"activeAttackStateOver\")) {\n this.activeAttackState = false;\n } else if (action.equals(\"heavySideSpeedUp\")) {\n this.setxTargetSpeed(Util.scaleX(25));\n } else if (action.equals(\"resetXMovement\")) {\n this.resetXMovement();\n }\n } \n }", "public void setTaskCompleted(TaskAttemptID taskID) {\n taskStatuses.get(taskID).setState(TaskStatus.SUCCEEDED);\n successfulTaskID = taskID;\n activeTasks.remove(taskID);\n }", "private void updateStatus(@NonNull MediaTaskStatus newStatus) {\n if (mStatus != newStatus) {\n mStatus = newStatus;\n mChanged = true;\n }\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t Toast.makeText(getBaseContext(),\"Task Completed\",Toast.LENGTH_LONG).show();\n\t progressStatus=0; \n\t myProgress=0;\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void checkTask(String task){\r\n\t\t\r\n\t}", "private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\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 }", "@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }", "boolean updateUI() {\n BackgroundStatus bgStat= _monItem.getStatus();\n WebAssert.argTst(ComparisonUtil.equals(bgStat.getID(), _oldBgStat.getID()),\n \"You cannot update the report to one with \" +\n \"a different package id.\");\n boolean retval= update();\n _oldBgStat = _monItem.getStatus();\n if (_monItem.isDone()) {\n if (_monItem.getState()==BackgroundState.SUCCESS) {\n if (!_success) {\n String name= Application.getInstance().getAppName();\n Notifications.notify( name + \" Task Completed\",\n _monItem.getReportDesc() +\", \" +_monItem.getTitle() +\" has completed.\");\n }\n _success= true;\n if (!_calledAutoActivation &&\n _monItem.getActivateOnCompletion() &&\n !_monItem.getStatus().isMultiPart()) {\n _calledAutoActivation= true;\n ActivationFactory.getInstance().activate(_monItem,0,!_monItem.getImmediately());\n }\n }\n }\n\n return retval;\n\n }", "private void refreshList() {\n if (loadStepsTask != null) {\n loadStepsTask.cancel(false);\n }\n loadStepsTask = new LoadStepsTask(this, dbManager);\n loadStepsTask.execute();\n }", "public void info(StatusTask t, String msg){\n\t\tt.setStaus(msg);\n\t}", "public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }", "@Override\n public void onItemToggled(boolean active, int position) {\n Uri currentTaskUri = ContentUris.withAppendedId(TaskContract.CONTENT_URI, mAdapter.getItemId(position));\n\n ContentValues values = new ContentValues();\n values.put(TaskContract.TaskColumns.IS_COMPLETE, 1);\n\n int rowsAffected = getContentResolver().update(currentTaskUri, values, null, null);\n\n if (rowsAffected == 0) {\n\n Toast.makeText(this, getString(R.string.task_completed_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n\n Toast.makeText(this, getString(R.string.task_completed),\n Toast.LENGTH_SHORT).show();\n }\n\n }", "protected void assertTaskUpToDate(BuildTask task) {\n assertNotNull(\"task is null\", task);\n assertEquals(\"task \" + task + \" state should be up-to-date\", UP_TO_DATE, task.getOutcome());\n }", "@Test\n public void updateCompletedAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n mDatabase.taskDao().updateCompleted(TASK.getId(), false);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, TASK.getId(), TASK.getTitle(), TASK.getDescription(), false);\n }", "public void validateTaskStatus(String strTaskStatus){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tif(libManhattanCommonFunctions.verifyElementPresent(\"//span[@id='dataForm:tskLstTbl:_colhdr_id1']\", \"XPATH\")){\n\t\t\tString actualTaskStatus = libManhattanCommonFunctions.getElementByProperty(\"//span[@id='dataForm:tskLstTbl:_colhdr_id1']\", \"XPATH\").getText();\n\t\t\ttry{\n\t\t\t\tif(actualTaskStatus.trim().equals(strTaskStatus))\n\t\t\t\t{\n\t\t\t\t\treport.updateTestLog(\"Task Status verification\", \"Actual task status : \"+actualTaskStatus+ \" is verified\", Status.PASS);\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\treport.updateTestLog(\"Task Status verification\", \"Expected task status :\"+strTaskStatus+\" || Actual task status : \"+actualTaskStatus, Status.FAIL);\n\t\t\t\t}\n\n\t\t\t}catch(Exception e){\n\t\t\t\treport.updateTestLog(\"Element\", \"Element Not Found\", Status.FAIL);\n\t\t\t}\n\t\t}else{\n\t\t\treport.updateTestLog(\"Task Status\", \"Task is not created\", Status.FAIL);\n\t\t}\n\n\t}", "@RequestMapping(value = \"/update/{id}\", method = RequestMethod.POST)\r\n public @ResponseBody\r\n List<Task> updateStatus(@PathVariable(\"id\") String id,\r\n @RequestParam(required = false) String content,\r\n @RequestParam(required = false) String status,\r\n @RequestParam(required = false) String assigneeId,\r\n @RequestParam(required = false) String timeInDays) {\n \r\n int taskId = ResourceUtil.stringToIntegerConversion(\"task_id\", id);\r\n List<Task> result = new ArrayList<Task>();\r\n \r\n try { \r\n Task task = new Task();\r\n task = taskManager.readTask(taskId);\r\n \r\n if (content != null)\r\n task.setContent(content);\r\n if (status != null)\r\n task.setStatus(TaskStatus.valueOf(status));\r\n if (assigneeId != null)\r\n task.setUser(userServiceManager.readUser(assigneeId));\r\n if (timeInDays != null) {\r\n \tint time_In_Days = ResourceUtil.stringToIntegerConversion(\"task_time_in_days\", timeInDays);\r\n task.setMilestonePeriod(timeInDays);\r\n task.setTimeInDays(time_In_Days);\r\n } \r\n // if none of these was changed, do not update\r\n if (content != null || status != null || assigneeId != null || timeInDays != null)\r\n taskManager.updateTask(task);\r\n result.add(task);\r\n } catch (Exception e) {\r\n logger.error(e.getMessage(), e);\r\n String exceptionMsg = \"Error occured while updating the task (pKey) \"+id;\r\n ScrumrException.create(exceptionMsg, MessageLevel.SEVERE, e);\r\n }\r\n return result;\r\n }", "@Override\n public void taskIsUncompleted(final String taskId) {\n trace(LogMessage.TASK_3, taskId);\n final Task task = getTaskService().createTaskQuery().taskId(taskId).active().singleResult();\n assertThat(task, is(notNullValue()));\n\n // Assert the process is not completed\n new ProcessInstanceAssert(getConfiguration()).processIsActive(task.getProcessInstanceId());\n\n }", "private void updateRefreshTokenUI(boolean status) {\n\n TextView rt = (TextView) findViewById(R.id.rtStatus);\n\n if (rt.getText().toString().contains(getString(R.string.noToken))\n || rt.getText().toString().contains(getString(R.string.tokenPresent))) {\n rt.setText(R.string.RT);\n }\n if (status) {\n rt.setText(rt.getText() + \" \" + getString(R.string.tokenPresent));\n } else {\n rt.setText(rt.getText() + \" \" + getString(R.string.noToken) + \" or Invalid\");\n }\n }", "protected void onPostExecute(Void v) {\n if(repeating) {\n Toast.makeText(Dash.this, \"Task will be re-added!\", Toast.LENGTH_LONG).show();\n }\n\n // reload task list\n mTaskRetriever = new TaskRetriever();\n mTaskRetriever.execute((Void) null);\n }", "@Override\n\tpublic Collection<TaskStatus> getTaskStatus(){\n \tcheckInitialized();\n \t\n \t@SuppressWarnings(\"unchecked\")\n\t\tCollection<Collection<TaskStatus>> statusTree=Collections.EMPTY_LIST;\n \tfinal MultiTask<Collection<TaskStatus>> mtask;\n \ttry {\n\t\t\t mtask = breeder.executeCallable(new GetTaskStatus(this));\n\t\t\t statusTree = mtask.get();\n \t} catch (ExecutionException ex){\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t} catch(InterruptedException ex) {\n \t\tlog.fatal(\"Could not get status of tasks for job \"+this.getId(), ex);\n \t}\n\t\t\t\n\t\t// Flatten into single collection\n\t\tList<TaskStatus> result = new ArrayList<TaskStatus>((int)(statusTree.size()*this.getThreadCount()));\n\t\tfor(Collection<TaskStatus> statusForNode: statusTree) {\n\t\t\tresult.addAll(statusForNode);\n\t\t}\n\t\t\n\t\treturn result;\n \n\t}", "@EventListener(condition = \"!#event.domainObject.new\")\n\tpublic void onApplicationEventLookForUpdate(DomainObjectStoreEvent<Task> event) {\n\t\tEditeTask editeTask = new EditeTask();\n\t\tediteTask.setId(UUID.randomUUID().toString());\n\t\tTask task = event.getDomainObject();\n\n\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\tUser cs = principal.getUser();\n\t\tif (cs.getIsAdmin()) {\n\t\t\treturn;\n\t\t}\n\n\t\tSet<String> set = task.getDirtyAttributes();\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tIterator iterator1 = set.iterator();\n\t\tList<String> list = new ArrayList<>();\n\t\twhile (iterator1.hasNext()) {\n\t\t\tlist.add((String) iterator1.next());\n\t\t}\n\n\t\tif (list.size() == 1 && list.contains(\"status\")) {\n\t\t\treturn;\n\t\t}\n\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tIterator iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString temp = (String) iterator.next();\n\t\t\tswitch (temp) {\n\t\t\tcase \"description\":\n\t\t\t\tediteTask.setDescription((String) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"deadline\":\n\t\t\t\tediteTask.setDeadline((LocalDateTime) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"type\":\n\t\t\t\tediteTask.setType((TaskType) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"project\":\n\t\t\t\tediteTask.setProject((Project) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\tcase \"taskPerformer\":\n\t\t\t\tediteTask.setTaskPerformer((User) task.getCurrentValue(temp).get(0));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tediteTask.setTaskId(task.getId());\n\t\tediteTaskRepository.save(editeTask);\n\t\tif (!cs.getIsAdmin()) {\n\t\t\ttask.setIsCheck(false);\n\t\t\ttask.setStatus(Status.CLOSED);\n\t\t} else {\n\t\t\ttask.setIsCheck(true);\n\t\t}\n\t}", "@Override\n public void completeTask(@NonNull String taskId) {\n }", "public void onEvent(TaskEvent taskEvent){\n\t\tlong taskId = taskEvent.getTaskId();\n\t\tlong workflowId = taskEvent.getWorkflowId();\n\t\tString eventName = taskEvent.getName();\n\t\t\n\t\tif(eventName.equals(TaskEventName.START)){\n\t\t\t//If event is start, set task status as Running\n\t\t\ttaskService.updateTaskStatusRunning(workflowId, taskId);\n\t\t}else if(eventName.equals(TaskEventName.DONE)){\n\t\t\t//If event is done, set task status as Done, save Task Done event data as Task's Result,\n\t\t\t//trigger workflow execution\n\t\t\t//1. update task status to done\n taskService.updateTaskStatusDone(workflowId, taskId);\n if(this.workflowService.isWorkflowCompleted(workflowId)){\n \tthis.workflowService.stopWorkflow(workflowId);\n }else{\n\t\t\t\t//2. trigger workflow execution\n\t\t\t\tthis.workflowService.executeWorkFlow(workflowId);\n }\n\t\t}else if (eventName.equals(TaskEventName.FAILED)){\n\t\t\t//If event is failed, set task status as Failed, save Task Failed event data as Task's Result\n\t\t\ttaskService.updateTaskStatusFailed(workflowId, taskId);\n\t\t\tif(this.workflowService.isWorkflowCompleted(workflowId)){\n \tthis.workflowService.stopWorkflow(workflowId);\n }else{\n\t\t\t this.workflowService.executeWorkFlow(workflowId);\n }\n\t\t}else if (eventName.equals(TaskEventName.TIMEOUT)){\n\t\t\ttaskService.updateTaskStatusTimeout(workflowId, taskId);\n\t\t\tif(this.workflowService.isWorkflowCompleted(workflowId)){\n \tthis.workflowService.stopWorkflow(workflowId);\n }else{\n\t\t\t this.workflowService.executeWorkFlow(workflowId);\n }\n\t\t}\n\t}", "void statusUpdate(boolean invalid);", "public WSActionResult execute(WSContext wsContext, WSAssetTask task) {\n WSHumanTaskStep hts = ReassignStep.getNextHumanTaskStep(task);\n if(null == hts) {\n log.error(\"Can not locate the very next human step to step \" + task.getCurrentTaskStep().getWorkflowStep().getName());\n return new WSActionResult(WSActionResult.ERROR, \"Can not locate the very next human step\");\n }\n WSUser executor = ReassignStep.getPrevousTaskStepExecutor(task);\n if(null == executor) {\n return new WSActionResult(WSActionResult.ERROR, \"Can not locate the user who completed the last human step in a workflow\");\n }\n ReassignStep.reassign(hts, new WSUser[] {executor});\n return new WSActionResult(getReturns()[0], \"Reassigned step \" +\n hts.getWorkflowStep().getName() +\n \" to \" + executor.getFullName()\n + \" (\" + executor.getUserName() + \")\");\n }", "public boolean updateStatus(TaskStatus status) {\n TaskAttemptID taskID = status.getTaskID();\n TaskStatus oldStatus = taskStatuses.get(taskID);\n if (oldStatus != null) {\n if (oldStatus.getState() == status.getState()) {\n return false;\n }\n }\n\n taskStatuses.put(taskID, status);\n\n return true;\n }", "@Override\n public void run() {\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }", "private void showUpdateDialog(final Task task, final int position){\n final Dialog dialog = new Dialog(context);\n dialog.setContentView(R.layout.dialog_update_task);\n dialog.setTitle(\"Update Task\");\n\n final TextView edt_task = (TextView) dialog.findViewById(R.id.edt_task);\n final Spinner spinner_status = (Spinner) dialog.findViewById(R.id.spinner_status);\n\n Button btn_update_task = (Button) dialog.findViewById(R.id.btn_update_task);\n Button btn_cancel = (Button) dialog.findViewById(R.id.btn_cancel);\n\n\n dialog.show();\n\n btn_cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n btn_update_task.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String new_task = edt_task.getText().toString();\n int id = spinner_status.getSelectedItemPosition();\n if(new_task.trim().equalsIgnoreCase(task.getTask().trim())){\n Toast.makeText(context, \"task and status are same.\", Toast.LENGTH_SHORT).show();\n }else if(id == 0){\n Toast.makeText(context, \"Select a valid status.\", Toast.LENGTH_SHORT).show();\n }else {\n dialog.dismiss();\n updateTask(task.getId(), new_task, \"\"+id, position);\n }\n }\n });\n }", "@Override\n public Boolean then(@NonNull Task task) throws Exception {\n upvotingPost = false;\n return true;\n }", "protected abstract Version executeTaskLocal(Version theTask);", "public void setTaskInstance(Task taskInstance) {\n\t\tthis.taskInstance = taskInstance;\n\t}", "public void refreshWeatherList()\n {\n FragmentTransaction transaction = mFragmentManager.beginTransaction();\n transaction.replace(R.id.id_activity_main, mSplashFragment, SplashFragment.TAG);\n transaction.commit();\n\n taskMode = Constants.TASK_MODE_REFRESH_WEATHER_LIST;\n mWeatherListItemsArray.clear();\n TaskGetOnlineData startingTask = new TaskGetOnlineData();\n startingTask.execute();\n killableTask = startingTask;\n\n }", "public void setTaskId(String taskId) {\n this.taskId = taskId;\n }", "public void setTaskId(String taskId) {\n this.taskId = taskId;\n }", "@Override\n protected T doMonitoredTask() {\n RewardPeriod period = lockRewardPeriod ?\n RewardPeriod.dao().getLocked(RewardSliceProcessorBase.this.period.getOid()) :\n RewardPeriod.dao().get(RewardSliceProcessorBase.this.period.getOid());\n task.setPeriod(period);\n return getAreaContext().doAreaTask(task);\n }", "public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }", "void onTaskEdited() {\n mNavigationProvider.finishActivity();\n }", "public ServiceTaskStatus getStatus() {\n\t\treturn this.status;\n\t}", "public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }", "public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }", "public UpdateTaskStatusController(TaskListInterface taskList, Scanner scanner) {\n // controller initialisation\n super(new View(), scanner);\n \n // displaying a list of tasks and asking the user to pick one ID\n Task task = gettingTheTaskToProcess(taskList);\n\n if(task != null) {\n // looping until the user writes a right option to change the status\n do {\n view.askForNewStatus(errorMessage);\n // getting the user input, saving it in a class field\n // and initialising errorMessage to null again\n scanUserInput();\n \n // updating the task status\n // 0 = to do , 1 = done\n switch (userInput) {\n case \"0\":\n task = taskList.updateTaskStatus(task, false);\n break;\n case \"1\":\n task = taskList.updateTaskStatus(task, true);\n break;\n \n default:\n errorMessage = \"Valid options are 0 or 1. [\" +\n userInput + \"] is not a valid option\";\n break;\n }\n }while(errorMessage != null);\n \n \n // confirming operation result\n diplayConfirmation(task);\n }\n \n // displaying the menu and getting the menu option chosen by the user\n displayMenu(taskList);\n }", "public static boolean updateTask(String taskName, String taskColour, Task task){\n String previousName = task.getName(); // Get information of the task up for editing\n Color previousColor = task.getColor();\n try{\n String query = \"UPDATE TASK SET NAME = ?, COLOUR = ? WHERE (NAME = ? AND COLOUR = ? AND DATE = ?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, taskName); // Add new values to the statement\n statement.setString(2, taskColour);\n statement.setString(3, previousName); // Add old values to the statement\n statement.setString(4, previousColor.toString());\n statement.setString(5, Calendar.selectedDay.getDate().toString());\n int result = statement.executeUpdate(); // send out the statement\n if (result > 0) // If it was successful, reload the task list.\n {\n getMainController().loadTasks();\n }\n return (result > 0);\n } catch (SQLException e) { // If task was unable to be edited\n e.printStackTrace(); // Create alert for failing to edit\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to edit task.\");\n alert.showAndWait();\n }\n return false;\n }", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public void taskGettingResult(TaskInfo taskInfo) {\n eventProcessLoop.post(new GettingResultEvent(taskInfo));\n }", "public void markComplete(int taskNumber) {\n Task currentTask = storage.get(taskNumber);\n currentTask.complete();\n line();\n System.out.println(\"Marked task \" + (taskNumber + 1) + \" as complete.\");\n System.out.println(currentTask);\n line();\n }", "public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }", "private void getStatus() {\n\t\t\n\t}", "public void setTask(Task inTask){\n punchTask = inTask;\n }", "@Override\n public void activateTask(@NonNull String taskId) {\n }", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}" ]
[ "0.72356004", "0.72210366", "0.691714", "0.68649673", "0.6798249", "0.6726184", "0.6549397", "0.6492951", "0.6466403", "0.6439269", "0.6438563", "0.63922435", "0.6306801", "0.6287258", "0.6284196", "0.6218409", "0.62133735", "0.6195394", "0.61329186", "0.6105634", "0.6074432", "0.60545325", "0.60503787", "0.60409474", "0.60194916", "0.6013352", "0.60074615", "0.59939563", "0.59876823", "0.5985788", "0.59762406", "0.59673774", "0.5957074", "0.594958", "0.5932868", "0.59120244", "0.5911326", "0.5870179", "0.5864841", "0.58586544", "0.58507437", "0.58500916", "0.5845919", "0.58346546", "0.5833172", "0.5824991", "0.58236974", "0.5816513", "0.58045644", "0.577772", "0.5764675", "0.57645065", "0.5749109", "0.57478136", "0.57374847", "0.5718622", "0.57153374", "0.5714023", "0.5712705", "0.56943667", "0.56921405", "0.56871253", "0.5684589", "0.5684056", "0.56792235", "0.5676237", "0.5674051", "0.56703204", "0.5661086", "0.56590456", "0.56589746", "0.56574667", "0.5656404", "0.56533855", "0.5638109", "0.5627052", "0.56217945", "0.56193185", "0.561439", "0.559954", "0.559954", "0.5595504", "0.55895853", "0.55891514", "0.5588717", "0.55870825", "0.55870825", "0.55858916", "0.55800205", "0.55724895", "0.55724895", "0.5571749", "0.5555535", "0.55446535", "0.55424356", "0.5539868", "0.55396336", "0.5538269", "0.5535217", "0.5535217" ]
0.78567743
0
Entity placing Spawn a new entity of the given type at the given position and bind the program to this entity.
void spawnEntityAt(String typeName, int x, int y);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n void spawn(Entity entity);", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }", "Spawn(LatLng position) {\n this.position = position;\n return;\n }", "Entity(Vector3f position) {\n this.position = position;\n }", "public void spawnCreature(){\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\")){\n\t\t\tGdx.app.debug(TamerGame.LOG, this.getClass()\n\t\t\t\t\t.getSimpleName() + \" :: Ant entered\");\t\t\t\n\t\t\t//CHANGE SPAWNING IMPLEMENTATION\n\t\t\tAntOrc orc = new AntOrc();\n\t\t\torc.setPosition(getPosition());\n\t\t\torc.setWaypoint(waypoint);\n\t\t\tenvironment.addNewObject(orc);\n\t\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,1));\n\t\t}\n\t\t\t\n\t}", "public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}", "public void spawn(Location location) {\r\n Packet<?>[] packets = {\r\n new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER),\r\n new PacketPlayOutNamedEntitySpawn(),\r\n new PacketPlayOutEntityHeadRotation()\r\n };\r\n\r\n setFieldCastValue(packets[0], \"b\", Collections.singletonList(this.getPlayerInfoData((PacketPlayOutPlayerInfo) packets[0])));\r\n\r\n setFieldValue(packets[1], \"a\", this.entityId); // Just change entity id to prevent client-side problems\r\n setFieldValue(packets[1], \"b\", this.profile.getId());\r\n setFieldValue(packets[1], \"c\", location.getX());\r\n setFieldValue(packets[1], \"d\", location.getY());\r\n setFieldValue(packets[1], \"e\", location.getZ());\r\n setFieldValue(packets[1], \"f\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"g\", (byte) (location.getPitch() * 256.0F / 360.0F));\r\n setFieldValue(packets[1], \"h\", this.player.getPlayer().getHandle().getDataWatcher());\r\n\r\n setFieldValue(packets[2], \"a\", this.entityId);\r\n setFieldValue(packets[2], \"b\", (byte) (location.getYaw() * 256.0F / 360.0F));\r\n\r\n for (GamePlayer player : this.plugin.getGameManager().getAllPlayers())\r\n for (Packet<?> packet : packets)\r\n player.sendPacket(packet);\r\n }", "public void spawnEntity(String entityToSpawn,World world, int xplane, int yplane, int zplane)\n { \n \t//Spawn a creeper\n \tif(entityToSpawn.contentEquals(\"Cr\"))\n \t{\t\n \t\tEntityCreeper creeper = new EntityCreeper(world);\n \t\tcreeper.entityAge = -24000;\n \t\tcreeper.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(creeper);\n \t\treturn;\n \t}\n \t//Spawn an Enderman\n \tif(entityToSpawn.contentEquals(\"En\"))\n \t{\n \t\tEntityEnderman enderman = new EntityEnderman(world);\n \t\tenderman.entityAge = -24000;\n \t\tenderman.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(enderman);\n \t\treturn;\n \t}\n \t//Spawn a Skeleton\n \tif(entityToSpawn.contentEquals(\"Sk\"))\n \t{\n \t\tEntitySkeleton skeleton = new EntitySkeleton(world);\n \t\tskeleton.entityAge = -24000;\n \t\tskeleton.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(skeleton);\n \t\treturn;\n \t}\n \t//Spawn a Zombie\n \tif(entityToSpawn.contentEquals(\"Zo\"))\n \t{\n \t\tEntityZombie zombie = new EntityZombie(world);\n \t\tzombie.entityAge = -24000;\n \t\tzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(zombie);\n \t\treturn;\n \t}\n \t//Spawn a Slime\n \tif(entityToSpawn.contentEquals(\"Sl\"))\n \t{\n \t\tEntitySlime slime = new EntitySlime(world);\n \t\tslime.entityAge = -24000;\n \t\tslime.setSlimeSize(3);\n \t\tslime.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(slime);\n \t\treturn;\n \t}\n \t//Spawn a Spider\n \tif(entityToSpawn.contentEquals(\"Sp\"))\n \t{\n \t\tEntitySpider spider = new EntitySpider(world);\n \t\tspider.entityAge = -24000;\n \t\tspider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(spider);\n \t\treturn;\n \t}\n \t//Spawn a Cave Spider\n \tif(entityToSpawn.contentEquals(\"Cs\"))\n \t{\n \t\tEntityCaveSpider cavespider = new EntityCaveSpider(world);\n \t\tcavespider.entityAge = -24000;\n \t\tcavespider.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cavespider);\n \t\treturn;\n \t}\n \t//Spawn a Ghast\n \tif(entityToSpawn.contentEquals(\"Gh\"))\n \t{\n \t\tEntityGhast ghast = new EntityGhast(world);\n \t\tghast.entityAge = -24000;\n \t\tghast.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ghast);\n \t\treturn;\n \t}\n \t//Spawn a Blaze\n \tif(entityToSpawn.contentEquals(\"Bl\"))\n \t{\n \t\tEntityBlaze blaze = new EntityBlaze(world);\n \t\tblaze.entityAge = -24000;\n \t\tblaze.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(blaze);\n \t\treturn;\n \t}\n \t//Spawn a Magma Cube\n \tif(entityToSpawn.contentEquals(\"Ma\"))\n \t{\n \t\tEntityMagmaCube magmacube = new EntityMagmaCube(world);\n \t\tmagmacube.entityAge = -24000;\n \t\tmagmacube.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(magmacube);\n \t\treturn;\n \t}\n \t//Spawn a Dragon\n \tif(entityToSpawn.contentEquals(\"Dr\"))\n \t{\n \t\tEntityDragon dragon = new EntityDragon(world);\n \t\tdragon.entityAge = -24000;\n \t\tdragon.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(dragon);\n \t\treturn;\n \t}\n \t//Spawn a sheep\n \tif(entityToSpawn.contentEquals(\"Sh\"))\n \t{\n \t\tEntitySheep sheep = new EntitySheep(world);\n \t\tsheep.entityAge = -2;\n \t\tsheep.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(sheep);\n \t\treturn;\n \t}\n \t//Spawn a Cow\n \tif(entityToSpawn.contentEquals(\"Co\"))\n \t{\n \t\tEntityCow cow = new EntityCow(world);\n \t\tcow.entityAge = -2;\n \t\tcow.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cow);\n \t\treturn;\n \t}\n \t//Spawn a Pig\n \tif(entityToSpawn.contentEquals(\"Pi\"))\n \t{\n \t\tEntityPig pig = new EntityPig(world);\n \t\tpig.entityAge = -2;\n \t\tpig.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pig);\n \t\treturn;\n \t}\n \t//Spawn a Chicken\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityChicken chicken = new EntityChicken(world);\n \t\tchicken.entityAge = -2;\n \t\tchicken.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(chicken);\n \t\treturn;\n \t}\n \t//Spawn a Ocelot\n \tif(entityToSpawn.contentEquals(\"Ch\"))\n \t{\n \t\tEntityOcelot ocelot = new EntityOcelot(world);\n \t\tocelot.entityAge = -2;\n \t\tocelot.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(ocelot);\n \t\treturn;\n \t}\n \t//Spawn a Pig Zombie\n \tif(entityToSpawn.contentEquals(\"Pz\"))\n \t{\n \t\tEntityPigZombie pigzombie = new EntityPigZombie(world);\n \t\tpigzombie.entityAge = -24000;\n \t\tpigzombie.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(pigzombie);\n \t\treturn;\n \t}\n \t//Spawn a boat\n \tif(entityToSpawn.contentEquals(\"Bo\"))\n \t{\n \t\tEntityBoat boat = new EntityBoat(world);\n \t\t//boat.entityAge = -2;\n \t\tboat.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(boat);\n \t\treturn;\n \t}\n \t//Spawn a Iron Golem\n \tif(entityToSpawn.contentEquals(\"Ir\"))\n \t{\n \t\tEntityIronGolem irongolem = new EntityIronGolem(world);\n \t\tirongolem.entityAge = -24000;\n \t\tirongolem.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(irongolem);\n \t\treturn;\n \t}\n \t//Spawn a Giant Zombie\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityGiantZombie giant = new EntityGiantZombie(world);\n \t\tgiant.entityAge = -24000;\n \t\tgiant.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(giant);\n \t\treturn;\n \t}\n \t//Spawn a Mine Cart\n \tif(entityToSpawn.contentEquals(\"Mi\"))\n \t{\n \t\tEntityMinecart cart = new EntityMinecart(world);\n \t\t//cart.entityAge = -24000;\n \t\tcart.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(cart);\n \t\treturn;\n \t}\n \t//Spawn a Mooshroom\n \tif(entityToSpawn.contentEquals(\"Gi\"))\n \t{\n \t\tEntityMooshroom moosh = new EntityMooshroom(world);\n \t\tmoosh.entityAge = -2;\n \t\tmoosh.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(moosh);\n \t\treturn;\n \t}\n \t//Spawn a Sliver Fish\n \tif(entityToSpawn.contentEquals(\"Si\"))\n \t{\n \t\tEntitySilverfish silverfish = new EntitySilverfish(world);\n \t\tsilverfish.entityAge = -24000;\n \t\tsilverfish.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(silverfish);\n \t\treturn;\n \t}\n \t//Spawn a Snowman\n \tif(entityToSpawn.contentEquals(\"Sn\"))\n \t{\n \t\tEntitySnowman frosty = new EntitySnowman(world);\n \t\tfrosty.entityAge = -24000;\n \t\tfrosty.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(frosty);\n \t\treturn;\n \t}\n \t//Spawn a Squid\n \tif(entityToSpawn.contentEquals(\"Sq\"))\n \t{\n \t\tEntitySquid squid = new EntitySquid(world);\n \t\tsquid.entityAge = -2;\n \t\tsquid.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(squid);\n \t\treturn;\n \t}\n \t//Spawn a Villager\n \tif(entityToSpawn.contentEquals(\"Vi\"))\n \t{\n \t\tEntityVillager villager = new EntityVillager(world);\n \t\tvillager.entityAge = -2;\n \t\tvillager.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(villager);\n \t\treturn;\n \t}\n \t//Spawn a Wolf\n \tif(entityToSpawn.contentEquals(\"Wo\"))\n \t{\n \t\tEntityWolf wolf = new EntityWolf(world);\n \t\twolf.entityAge = -2;\n \t\twolf.setLocationAndAngles(xplane, yplane, zplane, 0, 0.0F);\n \t\tworld.spawnEntityInWorld(wolf);\n \t\treturn;\n \t}\n }", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public GameObject(int id, Position position, int type) {\n\t\tsuper(position);\n\t\tthis.id = id;\n\t\tthis.type = type;\n\t\tdefinition = GameObjectDefinition.forId(id);\n\t}", "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "private static LivingEntity spawnBossMobLivingEntity(EntityType entityType, Location location) {\n NaturalMobSpawnEventHandler.setIgnoreMob(true);\n return (LivingEntity) location.getWorld().spawnEntity(location, entityType);\n }", "public void spawnEntity(Entity entity)\n\t{\n\t\tif(!entity.isLoadedResources() && !entity.loadResources())\n\t\t{\n\t\t\t//Don't add entity if an error occurs\n\t\t\treturn;\n\t\t}\n\t\tthis.newEntityBuffer.add(entity);\n\t\tLoggingHandler.logger.log(Level.FINE, \"Added entity to spawn queue: \" + entity);\n\t}", "private void createPlayer() {\n Entity entity = engine.createEntity();\n B2dBodyComponent b2dbody = engine.createComponent(B2dBodyComponent.class);\n TransformComponent position = engine.createComponent(TransformComponent.class);\n TextureComponent texture = engine.createComponent(TextureComponent.class);\n PlayerComponent player = engine.createComponent(PlayerComponent.class);\n CollisionComponent colComp = engine.createComponent(CollisionComponent.class);\n TypeComponent type = engine.createComponent(TypeComponent.class);\n StateComponent stateCom = engine.createComponent(StateComponent.class);\n\n // create the data for the components and add them to the components\n b2dbody.body = bodyFactory.makeCirclePolyBody(10,10,1, BodyFactory.STONE, BodyType.DynamicBody,true);\n // set object position (x,y,z) z used to define draw order 0 first drawn\n position.position.set(10,10,0);\n texture.region = atlas.findRegion(\"player\");\n type.type = TypeComponent.PLAYER;\n stateCom.set(StateComponent.STATE_NORMAL);\n b2dbody.body.setUserData(entity);\n\n // add the components to the entity\n entity.add(b2dbody);\n entity.add(position);\n entity.add(texture);\n entity.add(player);\n entity.add(colComp);\n entity.add(type);\n entity.add(stateCom);\n\n // add the entity to the engine\n engine.addEntity(entity);\n }", "public static EntityBunnyMount spawnBunny(World world, EnumBunnyType type, double x, double y, double z) {\n EntityBunnyMount jordan = new EntityBunnyMount(world, type);\n\n jordan.setLocationAndAngles(x, y, z, MathHelper.wrapAngleTo180_float(world.rand.nextFloat() * 360.0F), 0.0F);\n jordan.rotationYawHead = jordan.rotationYaw;\n jordan.renderYawOffset = jordan.rotationYaw;\n world.spawnEntityInWorld(jordan);\n jordan.playSound(\"step.gravel\", 1.0F, 1.0F);\n\n return jordan;\n }", "public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}", "public void spawnBoss(Vector2 spawnPosition) {\n\n Foe newBoss = new Foe(getController(), spawnPosition, \"boss\", 3.5f, new IABoss(getController()));\n newBoss.initialize();\n newBoss.setPlayerCanKill(false);\n newBoss.setFixedFacing(true);\n\n getController().getStage().registerActor(newBoss);\n }", "private Cell createCell(Point position, CellType type) {\n\t\tfor (AgentListener listener : listeners) {\n\t\t\tlistener.changeCellType(position, type);\n\t\t}\n\t\treturn new Cell(position, type);\n\t}", "private void showEntity(Entity entity, Vector locationOverride, Vector directionOverride, int entityId) {\n if(entity.isDead()) {return;}\n Object nmsEntity = ReflectUtils.runMethod(entity, \"getHandle\");\n\n // Use either the entities location, or the override\n Vector location = locationOverride == null ? getEntityPosition(entity, nmsEntity) : locationOverride;\n Vector direction = directionOverride == null ? entity.getLocation().getDirection() : directionOverride;\n\n // Create the correct type of spawn packet, depending on the entity\n Object spawnPacket;\n if(entity instanceof Painting) {\n spawnPacket = ReflectUtils.newInstance(\"PacketPlayOutSpawnEntityPainting\", new Class[]{ReflectUtils.getMcClass(\"EntityPainting\")}, new Object[]{nmsEntity});\n \n // Painting spawn packets are slightly different, as they use a BlockPosition and EnumDirection\n Object blockPosition = ReflectUtils.newInstance(\"BlockPosition\", new Class[]{int.class, int.class, int.class},\n new Object[]{location.getBlockX(), location.getBlockY(), location.getBlockZ()});\n ReflectUtils.setField(spawnPacket, \"c\", blockPosition);\n\n Object enumDirection = ReflectUtils.getEnumDirection(direction);\n ReflectUtils.setField(spawnPacket, \"d\", enumDirection);\n } else if(entity instanceof ExperienceOrb) {\n spawnPacket = ReflectUtils.newInstance(\"PacketPlayOutSpawnEntityExperienceOrb\", new Class[]{ReflectUtils.getMcClass(\"EntityExperienceOrb\")}, new Object[]{nmsEntity});\n setSpawnLocation(spawnPacket, location, \"b\", \"c\", \"d\");\n } else if(entity instanceof HumanEntity) {\n spawnPacket = ReflectUtils.newInstance(\"PacketPlayOutNamedEntitySpawn\", new Class[]{ReflectUtils.getMcClass(\"EntityHuman\")}, new Object[]{nmsEntity});\n setSpawnLocation(spawnPacket, location, \"c\", \"d\", \"e\");\n } else if(entity instanceof LivingEntity) {\n spawnPacket = ReflectUtils.newInstance(\"PacketPlayOutSpawnEntityLiving\", new Class[]{ReflectUtils.getMcClass(\"EntityLiving\")}, new Object[]{nmsEntity});\n setSpawnLocation(spawnPacket, location, \"d\", \"e\", \"f\");\n } else {\n // If we are on 1.14 and up, the contructor for PacketPlayOutSpawnEntity can find all the entity type stuff for us\n // Otherwise, we use a function that gets EntityTrackerEntry to do everything\n if(ReflectUtils.useNewEntitySpawnAndMoveImpl) {\n spawnPacket = ReflectUtils.newInstance(\"PacketPlayOutSpawnEntity\", new Class[]{ReflectUtils.getMcClass(\"Entity\")}, new Object[]{nmsEntity});\n } else {\n spawnPacket = generateEntitySpawnPacket_Old(nmsEntity);\n }\n setSpawnLocation(spawnPacket, location, \"c\", \"d\", \"e\");\n }\n\n ReflectUtils.setField(spawnPacket, \"a\", entityId);\n sendPacket(spawnPacket);\n\n // Force the entity to update its data, since it just spawned\n sendMetadataPacket(nmsEntity, entityId);\n\n // If the entity is living, we have to set its armor and hand/offhand\n if(entity instanceof LivingEntity) {\n sendEntityEquipmentPackets((LivingEntity) entity, entityId);\n }\n }", "@Override\n\tpublic void updateEntity() {\n\t\t\n\t\tif (this.mobID != null && !this.worldObj.isRemote) {\n\t\t\t\n\t\t\tif (this.delay > 0) {\n\t\t\t\tthis.delay--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tEntity entity = EntityList.createEntityByName(this.mobID, this.worldObj);\n\t\t\t\n\t\t\t// L'entity n'existe pas\n\t\t\tif (entity == null) {\n\t\t\t\tModGollumCoreLib.log.warning(\"This mob \"+this.mobID+\" isn't register\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.worldObj.setBlockToAir(this.xCoord , this.yCoord , this.zCoord);\n\t\t\t\n\t\t\tdouble x = (double)this.xCoord + 0.5D;\n\t\t\tdouble y = (double)(this.yCoord);// + this.worldObj.rand.nextInt(3) - 1);\n\t\t\tdouble z = (double)this.zCoord + 0.5D;\n\t\t\tEntityLiving entityLiving = entity instanceof EntityLiving ? (EntityLiving)entity : null;\n\t\t\tentity.setLocationAndAngles(x, y, z, this.worldObj.rand.nextFloat() * 360.0F, this.worldObj.rand.nextFloat() * 360.0F);\n\t\t\tthis.worldObj.spawnEntityInWorld(entity);\n\t\t\t\n\t\t\tif (entityLiving == null || entityLiving.getCanSpawnHere()) {\n\t\t\t\t\n\t\t\t\tthis.worldObj.playSoundEffect (this.xCoord, this.yCoord, this.zCoord, \"dig.stone\", 0.5F, this.worldObj.rand.nextFloat() * 0.25F + 0.6F);\n\t\t\t\t\n\t\t\t\tif (entityLiving != null) {\n\t\t\t\t\tentityLiving.spawnExplosionParticle();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void place(Position position) { this.position = position; }", "@Override\n\tpublic void execute() throws InstantiationException,\n\t\t\tIllegalAccessException, ClassNotFoundException, IOException {\n\t\tBuilding building = (Building) Class.forName(\n\t\t\t\tConstant.TILE_PACKAGE + commandData.get(\"tileName\"))\n\t\t\t\t.newInstance();\n\t\tbuilding.setX((Integer) commandData.get(\"pointX\"));\n\t\tbuilding.setY((Integer) commandData.get(\"pointY\"));\n\t\tbuilding.setTileManager(tileManager);\n\t\tbuilding.setFocusManager(focusManager);\n\t\tbuilding.setUUID((UUID) commandData.get(\"focusID\"));\n\t\tbuilding.initBuildingImage((String) commandData.get(\"buildingName\"));\n\t\ttileManager.addTile((Tile) building);\n\t}", "@Override\n protected void sendSpawnPackets(AttachmentViewer viewer, Vector motion) {\n if (isLivingEntity()) {\n // Spawn living entity\n PacketPlayOutSpawnEntityLivingHandle spawnPacket = PacketPlayOutSpawnEntityLivingHandle.createNew();\n spawnPacket.setEntityId(this.entityId);\n spawnPacket.setEntityUUID(this.entityUUID);\n spawnPacket.setEntityType(this.entityType);\n spawnPacket.setPosX(this.syncAbsPos.getX() - motion.getX());\n spawnPacket.setPosY(this.syncAbsPos.getY() - motion.getY());\n spawnPacket.setPosZ(this.syncAbsPos.getZ() - motion.getZ());\n spawnPacket.setMotX(motion.getX());\n spawnPacket.setMotY(motion.getY());\n spawnPacket.setMotZ(motion.getZ());\n spawnPacket.setYaw(this.syncYaw);\n spawnPacket.setPitch(this.syncPitch);\n spawnPacket.setHeadYaw((this.syncMode == SyncMode.ITEM) ? 0.0f : this.syncYaw);\n viewer.sendEntityLivingSpawnPacket(spawnPacket, getUsedMeta());\n } else {\n // Spawn entity (generic)\n PacketPlayOutSpawnEntityHandle spawnPacket = PacketPlayOutSpawnEntityHandle.T.newHandleNull();\n spawnPacket.setEntityId(this.entityId);\n spawnPacket.setEntityUUID(this.entityUUID);\n spawnPacket.setEntityType(this.entityType);\n spawnPacket.setPosX(this.syncAbsPos.getX() - motion.getX());\n spawnPacket.setPosY(this.syncAbsPos.getY() - motion.getY());\n spawnPacket.setPosZ(this.syncAbsPos.getZ() - motion.getZ());\n spawnPacket.setMotX(motion.getX());\n spawnPacket.setMotY(motion.getY());\n spawnPacket.setMotZ(motion.getZ());\n spawnPacket.setYaw(this.syncYaw);\n spawnPacket.setPitch(this.syncPitch);\n viewer.send(spawnPacket);\n\n PacketPlayOutEntityMetadataHandle metaPacket = PacketPlayOutEntityMetadataHandle.createNew(this.entityId, getUsedMeta(), true);\n viewer.send(metaPacket.toCommonPacket());\n }\n\n if (this.syncMode == SyncMode.SEAT) {\n PacketPlayOutRelEntityMoveLookHandle movePacket = PacketPlayOutRelEntityMoveLookHandle.createNew(\n this.entityId,\n motion.getX(), motion.getY(), motion.getZ(),\n this.syncYaw,\n this.syncPitch,\n false);\n viewer.send(movePacket);\n } else if (motion.lengthSquared() > 0.001) {\n CommonPacket movePacket = PacketType.OUT_ENTITY_MOVE.newInstance(this.entityId, motion.getX(), motion.getY(), motion.getZ(), false);\n viewer.send(movePacket);\n }\n\n // Resend velocity if one is set\n if (this.syncVel > 0.0) {\n viewer.send(PacketPlayOutEntityVelocityHandle.createNew(this.entityId, this.syncVel, 0.0, 0.0));\n }\n }", "public void spawnItemStack(ItemStack stack, Point3d point){\r\n\t\tworld.spawnEntity(new EntityItem(world, point.x, point.y, point.z, stack));\r\n\t}", "public EliteMobEntity(EntityType entityType, Location location, int eliteMobLevel, String name, CreatureSpawnEvent.SpawnReason spawnReason) {\n\n /*\n Register living entity to keep track of which entity this object is tied to\n */\n this.eliteMob = spawnBossMobLivingEntity(entityType, location);\n /*\n Register level, this is variable as per stacking rules\n */\n setEliteMobLevel(eliteMobLevel);\n eliteMobTier = MobTierFinder.findMobTier(eliteMobLevel);\n /*\n Sets the spawn reason\n */\n setSpawnReason(spawnReason);\n /*\n Start tracking the entity\n */\n if (!EntityTracker.registerEliteMob(this)) return;\n /*\n Get correct instance of plugin data, necessary for settings names and health among other things\n */\n EliteMobProperties eliteMobProperties = EliteMobProperties.getPluginData(entityType);\n /*\n Handle name, variable as per stacking rules\n */\n setCustomName(name);\n /*\n Handle health, max is variable as per stacking rules\n Currently #setHealth() resets the health back to maximum\n */\n setMaxHealth(eliteMobProperties);\n setHealth();\n /*\n Register whether or not the elite mob is natural\n */\n this.isNaturalEntity = EntityTracker.isNaturalEntity(this.eliteMob);\n /*\n These have custom powers\n */\n this.hasCustomPowers = true;\n /*\n Start tracking the entity\n */\n// EntityTracker.registerEliteMob(this);\n\n eliteMob.setCanPickupItems(false);\n\n this.setHasStacking(false);\n this.setHasCustomArmor(true);\n\n }", "boolean registerType(SpawnType spawnType);", "public void spawnEnemy(Location location) {\r\n\t\t\tlocation.addNpc((Npc) this.getNpcSpawner().newObject());\r\n\t\t}", "public Entity(WorldMgr w, String type, \r\n List<EventDesc> events, List<Action> actions)\r\n {\r\n super();\r\n this.world = w;\r\n this.type = type;\r\n this.events = events;\r\n this.actions = actions;\r\n }", "abstract public void initSpawn();", "private void spawnZombie(Player p, String world, int x, int y, int z, byte rotation, int itemID, int stand) {\r\n\t\tint eid = DisguiseSystemHandler.newEntityID();\r\n\t\tentityIDs.add(eid);\r\n\t\tstandIDs.put(eid, stand);\r\n\t\t\r\n\t\t//save positioninfo for respawning\r\n\t\tItem3DInfo info = new Item3DInfo();\r\n\t\tinfo.setWorldName(world);\r\n\t\tinfo.setX(x);\r\n\t\tinfo.setY(y);\r\n\t\tinfo.setZ(z);\r\n\t\tinfo.setRotation(rotation);\r\n\t\tinfo.setItemID(itemID);\r\n\t\tentityInfo.put(eid, info);\r\n\t\t\r\n\t\tsendPacket(p, world, x, y, z, rotation, eid, itemID);\r\n\t}", "@Override\n protected void spawnInWorld(float x, float y, float xVel, float yVel)\n {\n PolygonShape hitbox = new PolygonShape();\n hitbox.setAsBox(3.0F, 1.0F, new Vector2(0, 0), 0);\n \n //Set up body definition - Defines the type of physics body that this is\n BodyDef bodyDef = new BodyDef();\n bodyDef.type = BodyDef.BodyType.DynamicBody;\n bodyDef.position.set(x, y);\n \n //Set up physics body - Defines the actual physics body\n this.physBody = this.world.getPhysWorld().createBody(bodyDef);\n this.physBody.setUserData(this); //Store this object into the body so that it isn't lost\n \n //Set up physics fixture - Defines physical properties\n FixtureDef fixtureDef = new FixtureDef();\n fixtureDef.shape = hitbox;\n fixtureDef.density = 100.0F; //About 1 g/cm^2 (2D), which is the density of water, which is roughly the density of humans.\n fixtureDef.friction = 0.1F; //friction with other objects\n fixtureDef.restitution = 0.1F; //Bouncyness\n \n //Set which collision type this object is\n fixtureDef.filter.categoryBits = COL_SEA_CREATURE;\n //Set which collision types this object collides with\n fixtureDef.filter.maskBits = COL_ALL ^ COL_SEA_PROJECTILE; //Collide with everything except sea creature projectiles\n \n this.physBody.createFixture(fixtureDef);\n \n //Set the linear damping\n this.physBody.setLinearDamping(5F);\n \n //Set the angular damping\n this.physBody.setAngularDamping(2.5F);\n \n //Apply impulse\n this.physBody.applyLinearImpulse(xVel, yVel, x, y, true);\n \n //Dispose of the hitbox shape, which is no longer needed\n hitbox.dispose();\n }", "@Spawns(\"pointsorb\")\n public Entity spawnPointsOrb(SpawnData data) {\n return entityBuilder()\n .from(data)\n .type(POINTSORB)\n .viewWithBBox(texture(\"pointorb.png\", 40, 58))\n .with(new CollidableComponent(true))\n .with(new OffscreenCleanComponent())\n .with(new LiftComponent().yAxisSpeedDuration(150, Duration.seconds(15)))\n .build();\n }", "public interface Entity {\n\n /**\n * Returns the position of this entity in the simulation system.\n *\n * @return the position of this entity.\n * @see Pasture\n * @see Point\n */\n public Point getPosition();\n\n /**\n * Sets the position of this entity.\n *\n * @param newPosition the new position of this entity.\n * @see Point\n */\n public void setPosition(Point newPosition);\n\n /**\n * Performs the relevant actions of this entity, depending on what kind of\n * entity it is.\n */\n public void tick();\n\n /**\n * Returns the icon of this entity, to be displayed by the pasture gui.\n *\n * @see PastureGUI\n */\n public ImageIcon getImage();\n\n /**\n * Returns the name of the entity\n */\n public String type();\n}", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "public default void setSpawnPosition(SpellData data, LivingEntity casterIn){ }", "public void addZone(int type,int helix,int strand, int pos, int spawnPosX, int spawnPosY){\n\t\tPrimeZone zone = generateZone(helix,strand,pos,false);\n\t\tnew PrimeZoneActivater(spawnPosX,spawnPosY,type,manager,root);\n\t\tmanager.addZone(type,zone);\n\t}", "Entity createEntity();", "public GameObject(int id, Position position, int type, int orientation) {\n\t\tthis.position = position.getHeight() << 30 | position.getX() << 15 | position.getZ();\n\t\tthis.config = (id << 8) + (type << 2) + orientation;\n\t}", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "@Override\n public void run() {\n World world=Bukkit.getWorld(\"world\");\n world.spawnEntity(world.getHighestBlockAt(world.getSpawnLocation()).getLocation(), EntityType.VILLAGER);\n }", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createPosition() {\n\n switch (new Random().nextInt(4)) {\n\n case 0:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":-90\";\n break;\n\n case 1:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":\" + (Window.HEIGHT + 90);\n break;\n\n case 2:\n sendString = \"-90:\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n\n case 3:\n sendString = (Window.WIDTH + 90) + \":\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n }\n sendString += \":\" + new Random().nextInt(4);\n sendString += \":\" + new Random().nextInt(2);\n }", "Position createPosition();", "@Spawns(\"car\")\n public Entity spawnCar(SpawnData data) {\n PhysicsComponent physics = new PhysicsComponent();\n physics.setBodyType(BodyType.DYNAMIC);\n return entityBuilder()\n .type(CAR)\n .from(data)\n .viewWithBBox(texture(MainMenu.getSelectedCarAsset() , 70, 140))\n .with(new CollidableComponent(true))\n .with(new IrremovableComponent())\n .build();\n }", "final protected void setSpawnPosition(int newX, int newY)\n {\n spawnPoint = new Point(newX, newY);\n boundingBox.setLocation(spawnPoint);\n }", "public static Entity createConsumable(float x,float y,int HP, int SDmg, float Speed, int type) {\n \tEntity e = Lutebox.scene.createEntity();\n \t\n \te.attach(Size.class).set(0.6f, 0.6f);\n \te.attach(Position.class).set(x, y);\n \te.attach(Collider.class);\n \te.attach(Consumable.class).SetHpRestore(HP).SetSwordDmgUp(SDmg).SetSpeedUp(Speed).SetType(type);\n \te.attach(Movement.class);\n \t\n \treturn e;\n }", "public void createTeamMemberEntity(String fName, String lname, String gamertag, int age,\n String gender, String position, String mainChampion) {\n LOGGER.fine(\"Creating TeamMember object\");\n\n TeamMember player = new TeamMember();\n player.setfName(fName);\n player.setlName(lname);\n player.setGamertag(gamertag);\n player.setAge(age);\n Gender genderEnum = Gender.valueOf(gender);\n player.setGender(genderEnum);\n Position positionEnum = Position.valueOf(position);\n player.setPosition(positionEnum);\n player.setMainChampion(mainChampion);\n\n LOGGER.fine(\"Persisting TeamMember object to DB\");\n this.entityManager.persist(player);\n\n }", "public void spawnItem(AItemBase item, WrapperNBT data, Point3d point){\r\n\t\tItemStack stack = item.getNewStack();\r\n\t\tif(data != null){\r\n\t\t\tstack.setTagCompound(data.tag);\r\n\t\t}\r\n\t\t//Spawn 1 block above in case we're right on a block.\r\n\t\tworld.spawnEntity(new EntityItem(world, point.x, point.y + 1, point.z, stack));\r\n\t}", "public GameObject(int id, Position position, int type, int face) {\n\t\tsuper(position);\n\t\tthis.id = id;\n\t\tthis.type = type;\n\t\tthis.face = face;\n\t\tdefinition = GameObjectDefinition.forId(id);\n\t}", "public default boolean shouldSpawnEntity(){ return false; }", "protected abstract ENTITY createEntity();", "@Spawns(\"pylon\")\n public Entity spawnPylon(SpawnData data) {\n return entityBuilder()\n .from(data)\n .type(PYLON)\n .viewWithBBox(texture(\"pylon.png\", 40, 58))\n .with(new CollidableComponent(true))\n .with(new OffscreenCleanComponent())\n .build();\n }", "public ParticleEmotion(World world, Entity host, double posX, double posY, double posZ, float height, int hostType, int emoType)\r\n {\r\n super(world, posX, posY, posZ);\r\n this.host = host;\r\n this.setSize(0F, 0F);\r\n this.setPosition(posX, posY, posZ);\r\n this.prevPosX = posX;\r\n this.prevPosY = posY;\r\n this.prevPosZ = posZ;\r\n this.motionX = 0D;\r\n this.motionZ = 0D;\r\n this.motionY = 0D;\r\n this.particleType = emoType;\r\n this.particleScale = this.rand.nextFloat() * 0.05F + 0.275F;\r\n this.particleAlpha = 0F;\r\n this.playSpeed = 1F;\r\n this.playSpeedCount = 0F;\r\n this.stayTick = 10;\r\n this.stayTickCount = 0;\r\n this.fadeTick = 0;\r\n this.fadeState = 0; //0:fade in, 1:normal, 2:fade out, 3:set dead\r\n this.frameSize = 1;\r\n this.addHeight = height;\r\n this.hostType = hostType; //0:any entity, 1:entity, 2:block\r\n this.particleAge = -1; //prevent showing the emo's initial moving from posY = 0\r\n this.canCollide = false;\r\n \r\n //set icon position\r\n switch(this.particleType)\r\n {\r\n case 1: //小愛心\r\n \tthis.particleIconX = 0.0625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 4;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n\t\t\tbreak;\r\n case 2: //噴汗\r\n \tthis.particleIconX = 0.0625F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 5;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 3: //問號\r\n \tthis.particleIconX = 0.125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n\t\t\tbreak;\r\n case 4: //驚嘆號\r\n \tthis.particleIconX = 0.125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \tbreak;\r\n case 5: //點點點\r\n \tthis.particleIconX = 0.1875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n\t\t\tbreak;\r\n case 6: //冒青筋\r\n \tthis.particleIconX = 0.1875F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \tbreak;\r\n case 7: //音符\r\n \tthis.particleIconX = 0.25F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.7F;\r\n \tbreak;\r\n case 8: //cry\r\n \tthis.particleIconX = 0.3125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 9: //流口水\r\n \tthis.particleIconX = 0.3125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 1;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 10: //混亂\r\n \tthis.particleIconX = 0.375F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 4;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 1;\r\n \tbreak;\r\n case 11: //尋找\r\n \tthis.particleIconX = 0.375F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//short stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 12: //驚嚇\r\n \tthis.particleIconX = 0.4375F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 14;\r\n \tthis.playTimes = 1;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//large frame\r\n \tthis.frameSize = 2;\r\n \tbreak;\r\n case 13: //點頭\r\n \tthis.particleIconX = 0.5F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 14: //+_+\r\n \tthis.particleIconX = 0.5F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 2;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 15: //kiss\r\n \tthis.particleIconX = 0.5625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 15;\r\n \t//slow play\r\n \tthis.playSpeed = 0.7F;\r\n \tbreak;\r\n case 16: //lol\r\n \tthis.particleIconX = 0.5625F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 17: //奸笑\r\n \tthis.particleIconX = 0.625F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 18: //殘念\r\n \tthis.particleIconX = 0.6875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.4F;\r\n \tbreak;\r\n case 19: //舔舔\r\n \tthis.particleIconX = 0.6875F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 3;\r\n \t//cancel fade in\r\n \tthis.particleAlpha = 1F;\r\n \tthis.fadeState = 1;\r\n \tthis.fadeTick = 3;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \tbreak;\r\n case 20: //orz\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \t//slow play\r\n \tthis.playSpeed = 0.5F;\r\n \tbreak;\r\n case 21: //O\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 22: //X\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.5625F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 23: //!?\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.625F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 24: //rock\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.6875F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 25: //paper\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.75F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 26: //scissors\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.8125F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 27: //-w-\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.875F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 28: //-口-\r\n \tthis.particleIconX = 0.75F;\r\n \tthis.particleIconY = 0.9375F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 40;\r\n \tbreak;\r\n case 29: //blink\r\n \tthis.particleIconX = 0.8125F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.35F;\r\n \t//long stay\r\n \tthis.stayTick = 20;\r\n \tbreak;\r\n case 30: //哼\r\n \tthis.particleIconX = 0.8125F;\r\n \tthis.particleIconY = 0.5F;\r\n \tthis.particleMaxAge = 7;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//short stay\r\n \tthis.stayTick = 3;\r\n \tbreak;\r\n case 31: //臉紅紅\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 3;\r\n \tthis.particleScale += 0.2F;\r\n \tthis.playTimes = 1;\r\n \t//short fade in\r\n \tthis.fadeTick = 3;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//long stay\r\n \tthis.stayTick = 30;\r\n \tbreak;\r\n case 32: //尷尬\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.25F;\r\n \tthis.particleMaxAge = 5;\r\n \tthis.playTimes = 4;\r\n \t//slow play\r\n \tthis.playSpeed = 0.75F;\r\n \t//no stay\r\n \tthis.stayTick = 0;\r\n \tbreak;\r\n case 33: //:P\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.625F;\r\n \tthis.particleMaxAge = 4;\r\n \tthis.playTimes = 1;\r\n \t//slow play\r\n \tthis.playSpeed = 0.25F;\r\n \t//long stay\r\n \tthis.stayTick = 30;\r\n \tbreak;\r\n case 34: //|||\r\n \tthis.particleIconX = 0.875F;\r\n \tthis.particleIconY = 0.9375F;\r\n \tthis.particleMaxAge = 0;\r\n \tthis.particleScale += 0.3F;\r\n \tthis.playTimes = 1;\r\n \t//long stay\r\n \tthis.stayTick = 50;\r\n \tbreak;\r\n default: //汗\r\n \tthis.particleIconX = 0F;\r\n \tthis.particleIconY = 0F;\r\n \tthis.particleMaxAge = 15;\r\n \tthis.playTimes = 1;\r\n\t\t\tbreak;\r\n }\r\n \r\n //init position\r\n this.px = posX;\r\n this.py = posY;\r\n this.pz = posZ;\r\n this.addx = 0D;\r\n this.addy = 0D;\r\n this.addz = 0D;\r\n \r\n calcParticlePosition();\r\n }", "public Entity(Vector2 position, Vector2 velocity, List<NPC> npcs){\n\t\tthis.position = position;\n\t\tthis.velocity = velocity;\n\t\tthis.npcs = npcs;\n\t}", "protected Entity createEntity()\n\t{\n\t\tLane lane = getLane();\n\t\t//sanity check\n\t\tif( lane instanceof PedestrianLane){\n\t\t\tPedestrianLane pLane = (PedestrianLane) lane;\n\t\t\t\n\t\t\t//create the pedestrian\n\t\t\t//Range of values within the lane a Pedestrian can be spawned at\n\t\t\tdouble rangeMin = Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\tdouble rangeMax = PedestrianLane.LANE_WIDTH - Pedestrian.PEDESTRIAN_WIDTH/2;\n\t\t\t\n\t\t\tdouble randRange = rangeMin + (rangeMax - rangeMin)*Utils.random();\n\t\t\t\n\t\t\tdouble x = pLane.x() - randRange*Math.sin(pLane.dirRad());\n\t\t\tdouble y = pLane.y() + randRange*Math.cos(pLane.dirRad());\n\t\t\t\n\t\t\tif (x == pLane.x()) {\n\t\t\t\tx -= 7.5*Math.sin(pLane.dirRad());\n\t\t\t} else if (x == pLane.x() -PedestrianLane.LANE_WIDTH*Math.sin(pLane.dirRad())) {\n\t\t\t\tx += 7.5*Math.sin(pLane.dirRad());\n\t\t\t}\n\t\t\tif (y == pLane.y()) {\n\t\t\t\ty += 7.5*Math.cos(pLane.dirRad());\n\t\t\t} else if (y == pLane.y() +PedestrianLane.LANE_WIDTH*Math.cos(pLane.dirRad())) {\n\t\t\t\ty -= 7.5*Math.cos(pLane.dirRad());\n\t\t\t}\n\t\t\t\n\t\t\tPedestrian p = new Pedestrian(x, y, pLane.dirDeg(), pLane);\n\t\t\treturn p;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"ERROR: Can't add a pedestrian to a non pedestrian lane\");\n\t\t\t\treturn null;\n\t\t\t}\n\n\t}", "private Builder position(int tx, int ty) {\n PositionComponent positionComponent = entityManager.createComponent(PositionComponent.class);\n positionComponent.setTilePosition(tx, ty);\n entity.add(positionComponent);\n return this;\n }", "private Point getEntityPosition(int position, int team) {\n\t\tint xOffset = position * (200);\n\t\tint xPos;\n\t\tif (team == 0) {\n\t\t\txPos = 800 - 100 - xOffset;\n\t\t} else {\n\t\t\txPos = 800 + 100 + xOffset;\n\t\t}\n\n\t\treturn new Point(xPos, 100);\n\t}", "void forceSpawn() throws SpawnException;", "public Transition(Point position, MapScreen screen, Point spawn) {\n\t\tsuper(position);\n\t\tnewScreen = screen;\n\t\tthis.spawn = spawn;\n\t}", "protected BaseGameEntity(int entity_type, int ForcedID) {\n id = ForcedID;\n boundingRadius = 0.0;\n pos = new Vector2D();\n scale = new Vector2D(1.0, 1.0);\n entityType = entity_type;\n tag = false;\n }", "public void spawnFirstCreature(){\n\n\t\tif(spawnType.equalsIgnoreCase(\"worm\")){\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"worm\"+spawnId);\n\t\t}else if(spawnType.equalsIgnoreCase(\"antorc\"))\n\t\t\tRuntimeObjectFactory.getObjectFromPool(\"antorc\"+spawnId);\n\t\t\n\t\t//Add new event into pool which will spawn the rest of the worms ( -1 because this method already spawned one )\n\t\tEventPool.addEvent(new tEvent(this,\"spawnCreature\",sleepTime,spawnCount-1));\n\t}", "public static AbstractEnemy produceEnemy(GameModelInterface game, Vector2 position, AbstractEnemy.entity_type enemyType) {\n\t\tif (enemyType == AbstractEnemy.entity_type.archer) {\n return new ShootingEnemy(game.getWorld(),game.getPlayer(),position);\n\t\t} else if (enemyType == AbstractEnemy.entity_type.slime) {\n\t\t\tSlime2 slime = new Slime2(game.getWorld(),game.getPlayer(),position);\n\t\t\t//to allow the slime to dynamically add itself at runtime\n\t\t\tslime.provideGameModel(game);\n\t\t\treturn slime;\n\t\t}\n\t\telse if (enemyType == AbstractEnemy.entity_type.spikeblock) {\n return new SpikeBlock(game.getWorld(),game.getPlayer(),position);\n\t\t}\n\t\telse if (enemyType == AbstractEnemy.entity_type.rogue) {\n return new Rogue(game.getWorld(),game.getPlayer(),position);\n\t\t}\n\t\telse if (enemyType == AbstractEnemy.entity_type.boss1) {\n\t\t\tBoss1V2 b = new Boss1V2(game.getWorld(),game.getPlayer(),position);\n\t\t\tb.provideGameModel(game);\n\t\t\treturn b ;\n\t\t}\n\t\treturn null;\n\t}", "public void addSpawnPoint(float pX, float pY, float pZ,float defaultRot, boolean playerSpawn) {\n //this.testTerrain.setBlockArea( new Vector3Int(5,0,47), new Vector3Int(2,1,2), CubesTestAssets.BLOCK_WOOD);\n Geometry spawnBox = new Geometry(\"Spawn\",new Box(1,2,1));\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\"); \n \n if(playerSpawn) {\n //If playerSpawn == true, set the global spawn point\n this.spawnPoint = new Node(\"Player Spawn Point\");\n this.spawnPoint.setUserData(\"Orientation\",defaultRot);\n mat.setColor(\"Color\", new ColorRGBA(0,0,1,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n spawnBox.setMaterial(mat);\n spawnBox.setQueueBucket(Bucket.Transparent);\n this.spawnPoint.attachChild(spawnBox);\n rootNode.attachChild(this.spawnPoint);\n this.spawnPoint.setLocalTranslation((pX * this.blockScale) + (this.blockScale * 0.5f),(pY * this.blockScale) + this.blockScale,(pZ * this.blockScale) + (this.blockScale * 0.5f));\n this.spawnPointList.add(this.spawnPoint);\n } else {\n //If playerSpawn == false, add a mob spawn point\n Node spawn = new Node(\"Mob Spawn Point\");\n spawn.setUserData(\"Orientation\",defaultRot);\n mat.setColor(\"Color\", new ColorRGBA(0.5f,0.5f,0.5f,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n spawnBox.setMaterial(mat);\n spawnBox.setQueueBucket(Bucket.Transparent);\n spawn.attachChild(spawnBox);\n rootNode.attachChild(spawn);\n spawn.setLocalTranslation((pX * this.blockScale) + (this.blockScale * 0.5f),(pY * this.blockScale) + this.blockScale,(pZ * this.blockScale) + (this.blockScale * 0.5f));\n this.spawnPointList.add(spawn);\n }\n \n }", "protected abstract E createEntity(String line);", "public Entity(String type, TDModel model) {\r\n\t\tthis.type = type;\r\n\t\tthis.isValid = buildEntity();\r\n\t\tthis.model = model;\r\n\t}", "public void createStaticEntities() {\n\n //Add Main Static entities\n entities.add(createGraveYard(7, -15));\n entities.add(createRuins(-25, -5));\n entities.add(createDragonSkull(-23, 23));\n entities.add(createLavaPool(-12, -20)); //Left Lava Pool\n entities.add(createLavaPool(5, -10)); //Middle Lava Pool\n entities.add(createLavaPool(19, -7)); //Right Lava Pool\n entities.add(createDungeonPortal(-24, -13));\n //For objects that are added randomly & require more specific addition\n //entities, their methodology will follow add()\n addRandoms();\n }", "@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createStatic(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }", "private Object generateEntitySpawnPacket_Old(Object nmsEntity) {\n Object trackerEntry = ReflectUtils.newInstance(\"EntityTrackerEntry\", new Class[] {ReflectUtils.getMcClass(\"Entity\"), int.class, int.class, int.class, boolean.class},\n new Object[]{nmsEntity, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, true});\n\n Object packet = ReflectUtils.runMethod(trackerEntry, \"e\");\n return packet;\n }", "void create(E entity);", "T createEntity();", "public EliteMobEntity(EntityType entityType, Location location, int eliteMobLevel, HashSet<ElitePower> mobPowers, CreatureSpawnEvent.SpawnReason spawnReason) {\n\n /*\n Register living entity to keep track of which entity this object is tied to\n */\n this.eliteMob = spawnBossMobLivingEntity(entityType, location);\n /*\n Register level, this is variable as per stacking rules\n */\n setEliteMobLevel(eliteMobLevel);\n eliteMobTier = MobTierFinder.findMobTier(eliteMobLevel);\n /*\n Sets the spawn reason\n */\n setSpawnReason(spawnReason);\n /*\n Start tracking the entity\n */\n if (!EntityTracker.registerEliteMob(this)) return;\n /*\n Get correct instance of plugin data, necessary for settings names and health among other things\n */\n EliteMobProperties eliteMobProperties = EliteMobProperties.getPluginData(entityType);\n /*\n Handle name, variable as per stacking rules\n */\n setCustomName(eliteMobProperties);\n /*\n Handle health, max is variable as per stacking rules\n Currently #setHealth() resets the health back to maximum\n */\n setMaxHealth(eliteMobProperties);\n setHealth();\n /*\n Set the armor\n */\n setArmor();\n /*\n Register whether or not the elite mob is natural\n All mobs spawned via commands are considered natural\n */\n this.isNaturalEntity = true;\n /*\n Set the power list\n */\n if (!mobPowers.isEmpty()) {\n this.powers = mobPowers;\n for (ElitePower elitePower : powers) {\n elitePower.applyPowers(eliteMob);\n if (elitePower instanceof MajorPower)\n this.majorPowerCount++;\n if (elitePower instanceof MinorPower)\n this.minorPowerCount++;\n }\n MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance(this);\n MajorPowerPowerStance majorPowerPowerStance = new MajorPowerPowerStance(this);\n } else {\n randomizePowers(eliteMobProperties);\n }\n\n eliteMob.setCanPickupItems(false);\n\n }", "public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}", "public AddEntityCommand(SceneBase scene, Entity entity) {\n\t\tthis(scene, entity, null);\n\t}", "public void spawnExplosion(Vector3f location) {\r\n ParticleMesh mesh = getExplosion();\r\n mesh.getLocalTranslation().set(location);\r\n mesh.updateGeometricState(0, true);\r\n mesh.forceRespawn();\r\n }", "private void sendPacket(Player p, String world, int x, int y, int z, byte rotation, int entityID, int itemID) {\r\n\t\t//world check\r\n\t\tif(p==null || !p.getWorld().getName().equals(world)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tPacketContainer newPacket = new PacketContainer(24);\r\n\r\n\t\t//entitiy id\r\n\t\tnewPacket.getIntegers().\r\n\t\twrite(0, entityID).\r\n\t\twrite(1, (int) EntityType.ZOMBIE.getTypeId()).\r\n\t\t//position\r\n\t\twrite(2, (int) x).\r\n\t\twrite(3, (int) y).\r\n\t\twrite(4, (int) z);\r\n\t\t\r\n\t\t//rotation\r\n\t\tnewPacket.getBytes().\r\n\t\twrite(2, rotation);\r\n\r\n\t\t//invisibility\r\n\t\tWrappedDataWatcher zombieW = zombieWatcher.deepClone();\r\n\t\tzombieW.setObject(0, (byte) 0x20);\r\n\t\t\r\n\t\tnewPacket.getDataWatcherModifier().\r\n\t\twrite(0, zombieW);\r\n\t\t\r\n\t\t//equipment\r\n\t\tPacketContainer ePacket = new PacketContainer(Packets.Server.ENTITY_EQUIPMENT);\r\n\t\t\r\n\t\tePacket.getIntegers().\r\n\t\twrite(0, entityID);\r\n\t\t\r\n\t\tePacket.getItemModifier().\r\n\t\twrite(0, new ItemStack(itemID));\r\n\r\n\t\ttry {\r\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(p, newPacket);\r\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(p, ePacket);\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void spawnProjectile(Vector2 spawnPos, Vector2 projectileVel)\n\t\t{\n\t\t\tSystem.out.println(\"SPAWN\");\n\t\tthis.projectileType.setSpawnPosition(spawnPos);\n\t\tthis.projectileType.createBodyCopy();\n\t\tthis.setLinearVelocity(projectileVel.scl(this.projectileType.getProjectileSpeed()));\n\t\tthis.projectileType.createFixtureCopy();\n\t\tthis.projectileType.setUserData(this.projectileType);\n\t\tthis.projectileType.createSprite();\n\t\tthis.projectileType.storeInitialSpawnPoints(this.projectileType.getFixture());\n\t\t}", "public void setSpawnLocation(Location spawnLocation) {\n this.spawnLocation = spawnLocation;\n }", "public void setSpawn(Location loc) {\n if (loc != null) {\n spawn = new ImmutableSimpleLocation(loc);\n }\n }", "Position_Position createPosition_Position();", "public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }", "public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)\n {\n if (!worldIn.isRemote)\n {\n TileEntity tileentity = worldIn.getTileEntity(pos);\n\n if (tileentity instanceof TileEntityStructure)\n {\n TileEntityStructure tileentitystructure = (TileEntityStructure)tileentity;\n tileentitystructure.createdBy(placer);\n }\n }\n }", "public void place(Object animal, Position position) {\n field[position.getRow()][position.getColumn()] = animal;\n }", "Spawn(LatLngBounds bounds) {\n Random rand = new Random();\n double rangeNS = bounds.northeast.latitude - bounds.southwest.latitude;\n double rangeEW = bounds.northeast.longitude - bounds.southwest.longitude;\n position = new LatLng(rand.nextDouble() * rangeNS + bounds.southwest.latitude,\n rand.nextDouble() * rangeEW + bounds.southwest.longitude);\n Log.w(\"spawnpoint\", \"Placed at \" + position.toString());\n return;\n }", "public static final SpriteWorld newWorld (String name, Class<? extends SpriteWorld> type) {\n\t\tif (Top.tgame != null && !isBindedSpriteLifeCycleListener) {\n\t\t\tTop.tgame.registerLifecycleListener(SpriteLifeCycleListener);\n\t\t\tisBindedSpriteLifeCycleListener = true;\n\t\t}\n\n\t\t// create new world\n\t\tSpriteWorld world = mSpriteWorlds.get(name);\n\t\ttry {\n\t\t\tif (world == null) {\n\t\t\t\tworld = type.newInstance();\n\t\t\t\tworld.bind(name);\n\t\t\t\tmSpriteWorlds.put(name, world);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn world;\n\t}", "SpawnController createSpawnController();", "public abstract void startDXFEntity();", "Position_ordonnee createPosition_ordonnee();", "public void respawn(Vector2 spawnPos){\n position.x = spawnPos.x;\n position.y = spawnPos.y;\n }", "public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "public void setSpawn (int x, int y) {\n xCord = x;\n yCord = y;\n }", "public interface GameEntity {\n int getSize();\n\n void update(Board board);\n\n boolean isRemoved();\n\n void setRemoved(boolean removed);\n\n Command remove();\n\n ThemeableType getType();\n\n Point getPosition();\n\n void setPosition(double x, double y);\n\n void setPosition(Point position);\n}", "@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createBody(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }", "@Override\n\t\t\tpublic void Execute()\n\t\t\t{\n\t\t\tSquare square = (Square) receiver;\n\t\t\t// The args for SpawnBuildingCommand are the X,Y coordinate for the Building used by the factory, \n\t\t\tIAsteroidGameFactory factory = GameBoard.Instance().GetFactory();\n\t\t\tSystem.out.println(\"Spawning Building at (\" + args[0] + \",\" + args[1] + \")\");\n\t\t\tsquare.Add(factory.MakeBuilding());\n\t\t\tGameBoard.Instance().IncrementBuildingCount();\n\t\t}", "SpawnType getGameSpawnType();", "public Captain(String firstName, String lastName, String position, boolean type) \r\n\t{\r\n\t\tsuper(firstName, lastName, position);\r\n\t\tthis.type = type;\r\n\t}", "<T> void toEntity(T entity, int type);", "public GameBoard(Point2 position, Color BoardColor, BoardType Type) {\r\n this.position = position;\r\n this.BoardColor = BoardColor;\r\n this.boardType = Type;\r\n }", "public void spawn(Integer spawnSize) {\n for (Integer i = 0; i < spawnSize; i++) {\n Enemy enemy = new Enemy(mainPlayerPosX, mainPlayerPosY);\n enemies.put(i, enemy);\n }\n initEnemiesSpawned = spawnSize;\n enemiesSize = spawnSize;\n }" ]
[ "0.6846336", "0.68355703", "0.6505559", "0.6475497", "0.6429231", "0.6290248", "0.62660885", "0.626185", "0.616", "0.61309344", "0.6115115", "0.60704714", "0.60509884", "0.6032133", "0.60259545", "0.59970033", "0.59824497", "0.59530705", "0.59345484", "0.58736587", "0.58652407", "0.5860549", "0.5743969", "0.57352495", "0.57211906", "0.57160115", "0.5705529", "0.56546575", "0.56513846", "0.5641768", "0.561689", "0.5612689", "0.5612109", "0.5607111", "0.5598895", "0.5594403", "0.5587458", "0.5568324", "0.5545334", "0.55364287", "0.5529695", "0.5500463", "0.5500184", "0.5475201", "0.54498774", "0.5442626", "0.54418296", "0.5437838", "0.5430941", "0.5427873", "0.5417337", "0.5409105", "0.5393279", "0.53789055", "0.536127", "0.5360758", "0.5345932", "0.5315734", "0.53122574", "0.5300702", "0.52951956", "0.5282875", "0.52784956", "0.5278255", "0.5260546", "0.52562886", "0.5252243", "0.5250182", "0.5247444", "0.52427834", "0.5237082", "0.5237014", "0.5234694", "0.52247524", "0.5221559", "0.5215343", "0.52144104", "0.5212844", "0.52105486", "0.52073485", "0.52021253", "0.52008235", "0.51998764", "0.51939267", "0.5190781", "0.51903015", "0.5178269", "0.5171868", "0.5169904", "0.5164061", "0.5151214", "0.5150236", "0.5147758", "0.5145827", "0.5139017", "0.5131683", "0.51277405", "0.511484", "0.51087165", "0.5105645" ]
0.7562786
0
Clear all entities in the given cell.
void clearCell(int x, int y);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "private void clearSheet() {\n row = null;\n cells = null;\n cellType = null;\n value = null;\n rowIndex = -1;\n }", "public void clearCell( int index){\r\n boardCells[ index ].empty();\r\n }", "public void clear(){\n this.entities.clear();\n /*for(QuadTree node: this.getNodes()){\n node.clear();\n this.getNodes().remove(node);\n }*/\n this.nodes.clear();\n }", "public void clearCell(long cellId)\n\t{\n\t\tCIntentionCell cell = cells.get(cellId);\n\t\tfor (CIntentionType type : IntentionCanvasController.getInstance().getActiveIntentionTypes())\n\t\t{\n\t\t\tif (cell.getIntentionTypeId() == type.getId())\n\t\t\t{\n\t\t\t\ttoggleCellIntentionType(cellId, type.getId(), false, true);\n\t\t\t}\n\t\t}\n\n\t\tif (cell.hasUserTitle())\n\t\t{\n\t\t\tsetCellTitle(cellId, CIntentionCell.DEFAULT_TITLE, true);\n\t\t}\n\t}", "private void clear() {\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = 0;\n\n generations = 0;\n }", "public static void clear() {\n doEdit();\n mEditor.clear();\n doCommit();\n }", "public void unsetSeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SECELL$18, 0);\n }\n }", "public void unvisitCells() {\n for (int r = 0; r < MAX_ROWS; r++) {\n for (int c = 0; c < MAX_COLUMNS; c++) {\n cells[r][c].unvisit();\n }\n }\n }", "public native void deselectAllCells() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectAllCells();\r\n }-*/;", "public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}", "void clearAllItemsTable();", "public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public void clearAll() {\n rangeMap.clear();\n }", "public void deleteAll(){\n editor.clear();\n editor.apply();\n }", "public void eraseCell(CellID cid){\n db.eraseCell(cid);\n }", "public void clear() {\n entityManager.clear();\n }", "public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}", "public void clearGrid() {\n\t\tfor (int x = 0; x < grid.length; x++) {\n\t\t\tfor (int y = 0; y < grid[x].length; y++) {\n\t\t\t\tgrid[x][y] = EMPTY;\n\t\t\t}\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}", "public void clear() {\n\t\tfor(int i=0;i<height;i++) {\n\t\t\tfor(int j=0;j<width;j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "public void clearAll();", "public void clearAll();", "public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}", "protected abstract void clearAll();", "public void clear() {\n tableCache.invalidateAll();\n }", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public void clearState() {\n // if the user press the wrong cells, aka path, etc.\n // set state back to grass\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen) {\n cells.set(i, CellState.Tower);\n } else if (cells.get(i) == CellState.ToPlaceTower) {\n cells.set(i, CellState.Grass);\n }\n\n }\n }", "public void clear ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(row, column);\n Move.clear();\n }", "public void clearCellMetadata(CellID cid){\n db.clearCellMetadata(cid);\n }", "public void reset() {\n for (int r = 0; r < MAX_ROWS; r++) {\n for (int c = 0; c < MAX_COLUMNS; c++) {\n cells[r][c].reset();\n }\n }\n mazeGeneration.clear();\n }", "public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "private void jButton_ClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ClearActionPerformed\n //Clear all user entered inputs from the grid.\n myTable.clear(START_EDITABLE_ROW, END_EDITABLE_ROW, START_EDITABLE_COL, END_EDITABLE_COL);\n }", "public void clear() {\n doClear();\n }", "public static void clearData( EntityManager em, UserTransaction ut)\n throws Exception {\n ut.begin();\n Query deleteQuery = em.createQuery( \"DELETE FROM Book\");\n deleteQuery.executeUpdate();\n ut.commit();\n }", "public Builder clearCells() {\n if (cellsBuilder_ == null) {\n cells_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n } else {\n cellsBuilder_.clear();\n }\n return this;\n }", "public void clearAll() {\r\n\t\tfor (EnTablero et : listaElementos) et.setTablero( null ); // Anula tablero de todos los elementos previos\r\n\t\tlistaElementos.clear();\r\n\t\tfor (int f=0; f<numFilas; f++) {\r\n\t\t\tfor (int c=0; c<numColumnas; c++) {\r\n\t\t\t\telementosTablero[f][c] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void clear() throws Exception;", "void clearAll();", "void clearAll();", "@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }", "private void clearGrid() {\n\n }", "private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void clear( )\r\n\t{\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t\t{ ((LinkedArrays<T>) table[i]).clear(); }\r\n\t\tthis.size = 0; \r\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public synchronized void clear() {\n Entry tab[] = table;\n for (int index = tab.length; --index >= 0; ) {\n tab[index] = null;\n }\n count = 0;\n }", "public void clearRow(int row) {\n for (int col = 0; col < 10; col ++) {\n cells[row][col] = null;\n }\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "public void clear() {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\tmarkCount = 0;\n\t}", "@Override\n public void clear() {\n hashtableBean = null;\n\n hashtableBean = new HashTableBean[5];\n position = 0;\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void clear() {\n this.data().clear();\n }", "public static void clear() \r\n\t{\r\n\t\tEntry\ttab[] = m_table;\r\n\t\tint\t\tindex;\r\n\t\r\n\t\tif (tab != null) {\r\n\t\t\tfor (index = tab.length; --index >= 0; ) {\r\n\t\t\t\ttab[index] = null;\r\n\t\t}\t}\r\n\t\tm_count = 0;\r\n\t\tclearElisionCache();\r\n }", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear() {\n\t\tIterator<E> iterator = this.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\titerator.next();\n\t\t\titerator.remove();\n\t\t}\n\t}", "private void clearStragglers() {\n for (int i = 0; i < game.gridPieces.length; i++) {\n GridPiece piece = game.gridPieces[i];\n\n if (piece.state == game.STATE_TEMP) {\n piece.restoreState();\n //restoreState(piece);\n } else if (piece.state == game.STATE_TEMP_NOTOUCH) {\n piece.setState(game.STATE_FINAL);\n }\n }\n }", "public abstract void clear();", "public abstract void clear();", "public abstract void clear();", "public abstract void clear();" ]
[ "0.65371966", "0.64325637", "0.6293468", "0.616996", "0.6167421", "0.6038778", "0.60101247", "0.60055524", "0.59703314", "0.59659624", "0.59525967", "0.59332526", "0.58872753", "0.5879405", "0.58754045", "0.58722234", "0.58697176", "0.58635026", "0.5851174", "0.5847727", "0.5811512", "0.5798441", "0.57930374", "0.57926834", "0.5784615", "0.5784615", "0.5765559", "0.5756349", "0.5754261", "0.57506186", "0.5745192", "0.57108426", "0.57097507", "0.5707248", "0.57055455", "0.57038164", "0.5671332", "0.5665862", "0.56478184", "0.56425995", "0.56418157", "0.5613533", "0.56085175", "0.56085175", "0.56015134", "0.55954695", "0.559307", "0.5590658", "0.559025", "0.55899596", "0.55894744", "0.55894744", "0.5584249", "0.55774647", "0.55772907", "0.55721045", "0.556965", "0.5555489", "0.55550736", "0.55460614", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.55411774", "0.5524781", "0.5522028", "0.5519892", "0.5519892", "0.5519892", "0.5519892" ]
0.70159227
0
Sidebar Simulation Tree This function gets called when the user selects a different node
void selectedSimulationEntityChange(SimulationTreeNode node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ShowTree(GUIMain guiMn) throws HeadlessException {\n setSize(200, 400);\n\n guiMn.simMain.rootNode = new DefaultMutableTreeNode(\"Physiology systems\");\n guiMn.simMain.treeModel = new DefaultTreeModel(guiMn.simMain.rootNode);\n guiMn.simMain.treeModel.addTreeModelListener(new WBodyTreeModelListener());\n\n guiMn.myTree = new ConnectionJTree(guiMn.simMain.treeModel);\n\n guiMn.myTree.setEditable(true);\n guiMn.myTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n\n guiMn.myTree.setCellRenderer(new CountryTreeCellRenderer());\n\n // even rootNode could be foldable\n guiMn.myTree.setShowsRootHandles(true);\n\n // make it possible to select a insideLeaf\n JLabel selectedLabel = new JLabel();\n add(selectedLabel, BorderLayout.SOUTH);\n\n /*\n * this call the routine managing clicks on tree's elements\n */\n guiMn.myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\n @Override\n public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode) guiMn.myTree.getLastSelectedPathComponent();\n if (selectedNode != null) {\n // A button has been clicked\n WBodyTreeEvent wbte = new WBodyTreeEvent(guiMn);\n wbte.buttonClicked(selectedLabel, selectedNode);\n }\n }\n\n });\n\n }", "public void treeSelection() {\n\t\tFlowTreeNode ftn = (FlowTreeNode) tree.getLastSelectedPathComponent();\n\n\t\tif (ftn == null)\n\t\t\treturn;\n\t\telse\n\n\t\t{\n\n\t\t\tftn.execute();\n\t\t\tthis.revalidate();\n\t\t\t// buildTreeView();\n\n\t\t}\n\t}", "public void run() {\n\t\t\t\tviewer.collapseToLevel(root, 2); // TODO: does not, it always collapse to level 1\n//\t\t\t\tshowSelection(par, sel);\n//\t\t\t\tif (actionCollapsAll.isChecked()) {\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {\r\n\t// TODO Auto-generated method stub\r\n\tif (selectedNode == null) {\r\n\t highlightNodes(e);\r\n\t} else if (selectedNode != null) {\r\n\t moveSteen(e);\r\n\t}\r\n\tupdateBord();\r\n }", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode TreeN = (DefaultMutableTreeNode)\n tree.getLastSelectedPathComponent();\n \n if (TreeN == null) return;\n \n Object nodeIn = TreeN.getUserObject();\n Node y = (Node)nodeIn;\n Homework1.inorder(y);\n htmlPane.setText(y.value.toString());\n \n }", "private void hierarchyMouseClicked(java.awt.event.MouseEvent evt) {\n nodeSelected = setNode(evt);\n if(nodeSelected) {\n System.out.println(\"Hierarchy Mouse Clicked: \" + selectedNode.toString());\n if(isLeafNode) System.out.println(\"Leaf Node\");\n } else {\n System.out.println(\"Hierarchy Mouse Clicked: failure\");\n }\n \n }", "@Override\n\tpublic void valueChanged(TreeSelectionEvent eve) {\n\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t ((JTree) eve.getSource()).getLastSelectedPathComponent();\n\n\t if (node == null)\n\t //Nothing is selected. \n\t return;\n\n\t Object nodeInfo = node.getUserObject();\n\t if (node.isLeaf()) {\n\t \tHackNode book = (HackNode)nodeInfo;\n\t \t//System.out.println(book.location);\n\t loadHack(book.loc);\n\t }\n\t}", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();\n sheet.displayNode(node);\n }", "private void handleMouseEvent(MouseEvent me) {\n JTree tree = viewer.getCurrentTree();\n \n if (tree.getSelectionCount() == 0) {\n return;\n } else if (tree.getSelectionCount() > 1) {\n // Multiple selections.\n multipleSelMenu.show(me.getComponent(), me.getX(), me.getY());\n } else {\n // Single selection, detects the node type and shows\n // the corresponding popup menu.\n Object node = viewer.getSelectedNode();\n \n if (node instanceof Project) {\n projectMenu.show(me.getComponent(), me.getX(), me.getY());\n } else if (node instanceof ProjectDirectory) {\n dirMenu.show(me.getComponent(), me.getX(), me.getY());\n } else if (node instanceof ProjectFile) {\n fileMenu.show(me.getComponent(), me.getX(), me.getY());\n }\n }\n }", "public void onSidebar(double fraction, CoState cos) {\n\t}", "public void run() {\n\t\t\t\tif (actionShowOutputs.isChecked()) {\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.classInstantiation = null;\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.componentsTreeRoot = null;\n\t\t\t\t\tshowSelection(par, sel);\n\t\t\t\t}\n\t\t\t}", "public void treeNodesChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public abstract String getSelectedNode();", "public void treeStructureChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public void actionPerformed(ActionEvent evt) {\n\t\t\t\tDefaultMutableTreeNode selected = (DefaultMutableTreeNode) tree\n\t\t\t\t\t\t.getLastSelectedPathComponent();\n\t\t\t\tif (selected == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// add a new node as the last child of the selected node\n\t\t\t\ttModel.insertNodeInto(new DefaultMutableTreeNode(\"New Node\"),\n\t\t\t\t\t\tselected, selected.getChildCount());\n\n\t\t\t\t// Lets also expand the tree to show the new node\n\t\t\t\t// Find the array of nodes that make up the path from the root\n\t\t\t\t// to the newly added node\n\t\t\t\tTreeNode[] nodes = tModel.getPathToRoot(selected\n\t\t\t\t\t\t.getChildAt(selected.getChildCount() - 1));\n\n\t\t\t\t// Create a tree path with these nodes\n\t\t\t\tTreePath path = new TreePath(nodes);\n\t\t\t\t// Make the entire path visible and make the scroller to move to\n\t\t\t\t// the last path component\n\t\t\t\ttree.scrollPathToVisible(path);\n\t\t\t}", "@Listen(\"onClick = #selectTree\")\n\tpublic void select(){\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\ttree.setSelectedItem(items[items.length - 1]);\n\t}", "public AppDbObjectTreeExtensionUsageToggleNode() {\n super(TOGGLENODEID_TREEUSAGE);\n inUseItem = new JMenuItem(new AbstractAction(\"treeusage\") { // NOI18N\n public void actionPerformed(ActionEvent e) {\n if (inUseItem.getText().equals(TEXT_HIDE_TREEUSGE)) {\n getTree().hideInUseTree(getChildIndex());\n }\n else {\n getTree().showInUseTree();\n }\n }\n });\n }", "public void interactiveTreeXXEditingRToL() {\r\n JTree tree = new JTree(); \r\n tree.setEditable(true);\r\n DefaultTreeCellRenderer renderer = new DynamicIconRenderer();\r\n tree.setCellRenderer(renderer);\r\n DefaultTreeEditor treeCellEditor = new DefaultTreeEditor();\r\n tree.setCellEditor(treeCellEditor);\r\n JXTree xTree = new JXTree();\r\n xTree.setCellRenderer(renderer);\r\n xTree.setEditable(true);\r\n xTree.setCellEditor(new DefaultTreeEditor());\r\n\r\n final JXFrame frame = wrapWithScrollingInFrame(tree, xTree, \"XXEditing: compare tree and xtree\");\r\n Action toggleComponentOrientation = new AbstractAction(\"toggle orientation\") {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n ComponentOrientation current = frame.getComponentOrientation();\r\n if (current == ComponentOrientation.LEFT_TO_RIGHT) {\r\n frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n } else {\r\n frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n\r\n }\r\n\r\n }\r\n\r\n };\r\n addAction(frame, toggleComponentOrientation);\r\n frame.setVisible(true);\r\n \r\n }", "public MainFrame() { \n \n \n initComponents();\n java.net.URL imgURL = getClass().getResource(\"/pkg4seqgui/images/dna.png\");\n ImageIcon image = new ImageIcon(imgURL);\n \n DefaultTreeCellRenderer renderer =(DefaultTreeCellRenderer) AnalysisTree.getCellRenderer();\n renderer.setLeafIcon(image);\n imgURL = getClass().getResource(\"/pkg4seqgui/images/dna1.png\");\n ImageIcon image2 = new ImageIcon(imgURL);\n renderer.setOpenIcon(image2);\n expandAllNodes(AnalysisTree, 0, AnalysisTree.getRowCount());\n \n\n //JTREE MULTIPLEFILE\n \n\n //adding here all the textarea that must be maneged with right button mouse\n \n //vRNAPanel\n contextMenu.add(vThreadText);\n contextMenu.add(vAdapter5Text);\n contextMenu.add(vAdapter3Text);\n contextMenu.add(vMinLengthText);\n contextMenu.add(vOrganismText);\n //indexingSTARPanel\n contextMenu.add(iThreadText);\n contextMenu.add(iGenomeURLText);\n contextMenu.add(iGTFURLText);\n //miRNAPanel\n contextMenu.add(mmiRBaseText);\n //PCA\n contextMenu.add(pComponent1Text);\n contextMenu.add(pComponent2Text); \n //DES\n contextMenu.add(dLog2fcText);\n contextMenu.add(dFDRText); \n //indexingBW\n contextMenu.add(iThreadBText);\n contextMenu.add(iGenomeURLBText);\n //indexingSalmonPanel\n contextMenu.add(iThreadSText);\n contextMenu.add(iGenomeURLSText);\n contextMenu.add(iGTFURLSText);\n //countingSalmon\n contextMenu.add(cThreadText);\n contextMenu.add(cAdapter5Text);\n contextMenu.add(cAdapter3Text);\n contextMenu.add(cMinLengthText);\n //filterCount\n contextMenu.add(fFPKMfileText);\n contextMenu.add(fOutputFolderText);\n \n FPKMFileTable.getColumn(\"Folder\").setPreferredWidth(1000);\n\n \n \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n \n String HorSplPan = getPreferences().get(\"4SeqGUI_HorizontalSplitPanel\", null);\n if (HorSplPan!=null){\n HorizontalSplitPanel.setDividerLocation(Integer.valueOf(HorSplPan)); \n }\n else{\n HorizontalSplitPanel.setDividerLocation(screenSize.height*3/10); \n }\n \n String VerSplPan = getPreferences().get(\"4SeqGUI_VerticalSplitPanel\", null);\n if (VerSplPan!=null){\n VerticalSplitPanel.setDividerLocation(Integer.valueOf(VerSplPan));\n }\n else {\n VerticalSplitPanel.setDividerLocation(screenSize.height*7/10);\n }\n \n String WindowWidth= getPreferences().get(\"4SeqGUI_WindowWidth\", null);\n String WindowHeight= getPreferences().get(\"4SeqGUI_WindowHeight\", null); \n if ((WindowWidth!=null)&&(WindowHeight!=null)){\n setSize(Integer.valueOf(WindowWidth),Integer.valueOf(WindowHeight)); \n }\n else{\n setSize(screenSize.width*95/100,screenSize.height*95/100);\n }\n\n //OUTPUT FRAME\n int OutputframeWidth= Integer.valueOf(getPreferences().get(\"4SeqGUI_WindowOutputWidth\", \"0\"));\n int OutputframeHeight= Integer.valueOf(getPreferences().get(\"4SeqGUI_WindowOutputHeight\", \"0\"));\n \n if ((OutputframeWidth==0)||(OutputframeHeight==0)){\n OutputframeWidth=screenSize.width*4/100;\n OutputframeHeight=screenSize.height*5/100;\n }\n\n OutputFrame.setSize(OutputframeWidth,OutputframeHeight);\n \n \n int DownloadframeWidth= Integer.valueOf(getPreferences().get(\"4SeqGUI_WindowDownloadWidth\", \"0\"));\n int DownloadframeHeight= Integer.valueOf(getPreferences().get(\"4SeqGUI_WindowDownloadHeight\", \"0\")); \n if ((DownloadframeWidth==0)||(DownloadframeHeight==0)){\n DownloadframeWidth=screenSize.width*4/100;\n DownloadframeHeight=screenSize.height*5/100;\n }\n\n DownloadFrame.setSize(DownloadframeWidth,DownloadframeHeight);\n \n String WidthGroup = getPreferences().get(\"4SeqGUI_GroupCellWidth\", null);\n String WidthBatch = getPreferences().get(\"4SeqGUI_BatchCellWidth\", null);\n String WidthFolder = getPreferences().get(\"4SeqGUI_FolderCellWidth\", null);\n if ((WidthGroup!=null)&&(WidthBatch!=null)&&(WidthFolder!=null)){\n FPKMFileTable.getColumnModel().getColumn(1).setPreferredWidth(Integer.valueOf(WidthGroup));\n FPKMFileTable.getColumnModel().getColumn(2).setPreferredWidth(Integer.valueOf(WidthBatch));\n FPKMFileTable.getColumnModel().getColumn(0).setPreferredWidth(Integer.valueOf(WidthFolder));\n } \n else\n FPKMFileTable.getColumnModel().getColumn(1).setPreferredWidth(FPKMFileTable.getWidth()*10/100);\n \n \n \n String WidthGroup1 = getPreferences().get(\"4SeqGUI_Group1CellWidth\", null);\n String WidthBatch1 = getPreferences().get(\"4SeqGUI_Batch1CellWidth\", null);\n String WidthHeader = getPreferences().get(\"4SeqGUI_HeaderCellWidth\", null);\n if ((WidthGroup1!=null)&&(WidthBatch1!=null)&&(WidthHeader!=null)){\n CCountHeaderTable.getColumnModel().getColumn(1).setPreferredWidth(Integer.valueOf(WidthGroup1));\n CCountHeaderTable.getColumnModel().getColumn(2).setPreferredWidth(Integer.valueOf(WidthBatch1));\n CCountHeaderTable.getColumnModel().getColumn(0).setPreferredWidth(Integer.valueOf(WidthHeader));\n } \n else\n CCountHeaderTable.getColumnModel().getColumn(1).setPreferredWidth(CCountHeaderTable.getWidth()*10/100);\n \n \n\n\n setLocationRelativeTo(null);\n invalidate();\n doLayout();\n \n }", "private void AccessoryTree_valueChanged(\r\n\t\tTreeSelectionEvent e) {\n\t \r\n\t}", "private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }", "public void setCurrentSceneGraphTree(Node root) {\n \t\ttreeModel = new JMonkeyTreeModel(root);\n \t\tfinal PopUpTree tree = new PopUpTree(treeModel);\n \t\t// final JTree tree = new JTree(new DefaultMutableTreeNode());\n \t\ttree.setEditable(true);\n \t\ttree.getSelectionModel().setSelectionMode(\n \t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n \t\ttree.setShowsRootHandles(true);\n \t\tJMenuItem addTerrain = new JMenuItem(\"Add Enitity\");\n \t\ttree.addToPopup(addTerrain);\n \t\taddTerrain.addActionListener(new ActionListener() {\n \n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tdoAddEntity(tree.getSelectionPath());\n \t\t\t}\n \t\t});\n \n \t\tJMenuItem delete = new JMenuItem(\"Remove Entity\");\n \t\tdelete.addActionListener(new ActionListener() {\n \n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tdeleteNode(tree.getSelectionPath());\n \t\t\t}\n \t\t});\n \t\ttree.addToPopup(delete);\n \t\ttree.setOpaque(true);\n \n \t\ttreeScrollPane.removeAll();\n \t\ttreeScrollPane.add(new JScrollPane(tree), BorderLayout.CENTER);\n \t\trepaint();\n \t}", "private void addClassification(JPanel innerPanel, Integer kv, final String sequence, final String panelname) throws Exception {\r\n try {\r\n ResourceBundle bundle = ResourceBundle.getBundle(Globals.RESOURCES, Globals.CURRENT_LOCALE, Globals.loader);\r\n\r\n DefaultMutableTreeNode hierarchy = new DefaultMutableTreeNode(\"root\");\r\n selected = null;\r\n String selectedPath = \"\";\r\n \r\n String link = selectedClassificationList.get(panelname+\"---\"+sequence);\r\n \r\n recursiveOefosTreeviewBuild(hierarchy, oefos.get(link), sequence, panelname);\r\n DefaultTreeModel model = new DefaultTreeModel(hierarchy);\r\n\r\n final JTree tree = new JTree(model);\r\n tree.setRootVisible(false);\r\n\r\n if (selected != null) {\r\n TreePath selpath = new TreePath(selected.getPath());\r\n tree.setSelectionPath(selpath);\r\n\r\n Object[] nodes = selpath.getPath();\r\n\r\n for (int i = 1; i < nodes.length; i++) {\r\n selectedPath += nodes[i].toString();\r\n selectedPath += (i != nodes.length - 1) ? \"/\" : \"\";\r\n }\r\n }\r\n\r\n tree.setName(\"MID_\" + Integer.toString(kv)+\"---\"+sequence);\r\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\r\n\r\n tree.addTreeSelectionListener(new TreeSelectionListener() {\r\n\r\n public void valueChanged(TreeSelectionEvent e) {\r\n try {\r\n setOEFOS(tree, sequence, panelname);\r\n } catch (Exception ex) {\r\n logger.error(ex.getMessage());\r\n }\r\n }\r\n });\r\n\r\n javax.swing.JScrollPane tree_scroller = new javax.swing.JScrollPane();\r\n tree_scroller.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n tree_scroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n tree_scroller.setViewportView(tree);\r\n tree_scroller.setBorder(null);\r\n\r\n innerPanel.add(tree_scroller, \"wrap, width 100:800:800\");\r\n\r\n JPanel iPanel = new JPanel(new MigLayout());\r\n iPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), Utility.getBundleString(\"choose2\",bundle), TitledBorder.LEFT, TitledBorder.TOP));\r\n JLabel label = new JLabel();\r\n label.setName(\"classification_path\"+\"---\"+sequence);\r\n label.setText(selectedPath);\r\n iPanel.add(label, \"wrap, growx, height 30:30:30\");\r\n\r\n innerPanel.add(iPanel, \"wrap, width 100:800:800\");\r\n \r\n findLastClassification(panelname);\r\n \r\n } catch (Exception ex) {\r\n logger.error(ex.getMessage());\r\n throw new Exception(\"Exception in addClassification: \" + ex.getStackTrace() + \"\\n\");\r\n }\r\n }", "public void interactiveTreeEditingRToL() {\r\n JTree tree = new JTree(); \r\n TreeCellRenderer renderer = new DynamicIconRenderer();\r\n tree.setCellRenderer(renderer);\r\n tree.setEditable(true);\r\n JXTree xTree = new JXTree();\r\n xTree.setCellRenderer(renderer);\r\n xTree.setEditable(true);\r\n final JXFrame frame = wrapWithScrollingInFrame(tree, xTree, \"standard Editing: compare tree and xtree\");\r\n Action toggleComponentOrientation = new AbstractAction(\"toggle orientation\") {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n ComponentOrientation current = frame.getComponentOrientation();\r\n if (current == ComponentOrientation.LEFT_TO_RIGHT) {\r\n frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n } else {\r\n frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n\r\n }\r\n\r\n }\r\n\r\n };\r\n addAction(frame, toggleComponentOrientation);\r\n frame.setVisible(true);\r\n \r\n }", "private void handleSelectedElement() {\n tabPane.setVisible(true);\n tabPane.getTabs().clear();\n AOElement e = null;\n if (selectedTreeItem.get() != null) e = selectedTreeItem.get().getValue();\n\n if (!(e instanceof AOLight) && !(e instanceof AOCamera) && !(e instanceof AOGeometry)) {\n tabPane.setVisible(false);\n\n } else {\n\n try {\n\n Tab t = FXMLLoader.load(getClass().getResource(\"/fxml/mainSettingsView.fxml\"));\n tabPane.getTabs().addAll(t);\n if (e instanceof ONode) t.setText(\"Node\");\n else if (e instanceof AOLight) t.setText(\"Light\");\n else if (e instanceof AOCamera) t.setText(\"Camera\");\n\n if (e instanceof ONode) {\n if (!((ONode) e).oGeos.isEmpty() && !(((ONode) e).oGeos.get(0) instanceof ONode)) {\n Tab t2 = FXMLLoader.load(getClass().getResource(\"/fxml/mainMaterialSettingsView.fxml\"));\n t2.setText(\"Material\");\n tabPane.getTabs().add(1, t2);\n tabPane.getSelectionModel().select(0);\n }\n }\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void valueChanged(TreeSelectionEvent e) {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n \r\n Node n = (Node)node.getUserObject();\r\n \r\n if (tree == null) return;\r\n \r\n htmlPane.setText(Homework1.inorder(n)+\"=\"+Homework1.calculate(n));\r\n \r\n }", "void updateTreeSelection() {\n\n TreePath[] selections = tree.getSelectionPaths();\n currentSelectedPaths.clear();\n if (selections != null) {\n for (TreePath selection : selections) {\n currentSelectedPaths.add(selection);\n }\n }\n if ((selections == null) || (selections.length == 0)) {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n synchronized (basicPanel.getClusterPanel().getTreeLock()) {\n basicPanel.getClusterPanel().updateClusters(new Vector(), new Hashtable());\n }\n synchronized (basicPanel.getValPanel().getTreeLock()) {\n basicPanel.getValPanel().updateValues(new Vector());\n }\n synchronized (basicPanel.getModPanel().getTreeLock()) {\n basicPanel.getModPanel().updateList(new Vector());\n }\n return;\n }\n if ((selections.length == 1)\n && (((DefaultMutableTreeNode) selections[0].getLastPathComponent()).getUserObject() instanceof rcNode)) {\n farmStatistics.setEnabled(canShowFarmStatistics());\n linkStatistics.setEnabled(canShowLinkStatistics());\n } else {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n }\n Object[] userSel = new Object[selections.length];\n selectedGroups.clear();\n for (int j = 0; j < selections.length; j++) {\n userSel[j] = ((DefaultMutableTreeNode) selections[j].getLastPathComponent()).getUserObject();\n if (userSel[j] instanceof String) { // group selected\n selectedGroups.add(userSel[j]);\n DefaultMutableTreeNode groupNode = ((DefaultMutableTreeNode) selections[j].getLastPathComponent());\n for (int i = 0; i < treeModel.getChildCount(groupNode); i++) {\n tree.addSelectionPath(selections[j].pathByAddingChild(treeModel.getChild(groupNode, i)));\n }\n }\n }\n\n // update the parameters window to show only common parameters\n updateParamAndModPanels(userSel);\n }", "public void drawTree(GUIMain guiMn, MenuDoAction menu, DoNewInsertOpenModel doNewInsertOpenModel) {\n DefaultMutableTreeNode tissueBranch;\n HumanBody body = null;\n\n if (guiMn.simMain.solver == null) {\n System.err.println(\"The model files are not correct\\n\");\n }\n HostModel host = guiMn.simMain.solver.getHostModelToSolve().getHostModel();\n body = host.getPlacentalia();\n Map<Tissue, DefaultMutableTreeNode> ancestor = new HashMap<>();\n if (body.getNumOrganSystems() > 0) {\n Iterator<PhysioSystem> iter = body.getOrganSystems().iterator();\n\n // loop over PhysioSystems (usually there is only one)\n while (iter.hasNext()) {\n PhysioSystem organsys = iter.next();\n NodeLeaf organSystem = new NodeLeaf(organsys, \"./data/images/iconOrganSystem.gif\");\n DefaultMutableTreeNode organBranch = guiMn.simMain.st.addObject(guiMn, organSystem);\n ArrayList<Tissue> tissues = organsys.tissues;\n Iterator<Tissue> tissueIterator = tissues.iterator();\n\n // loop over Tissues in this PhysioSystem\n while (tissueIterator.hasNext()) {\n NodeLeaf leaf = null;\n\n Tissue tiss = tissueIterator.next();\n if (tiss.getName() == null) {\n System.out.println(\"Error null Tissue\");\n }\n NodeLeaf leafTissue = new NodeLeaf(tiss, \"./data/images/iconTissue.gif\");\n tissueBranch = guiMn.simMain.st.addObject(guiMn, organBranch, leafTissue, true);\n ancestor.put(tiss, tissueBranch);\n ArrayList<CompartmentSBML> comps = tiss.getInternVolumes();\n Iterator<CompartmentSBML> compIterator = comps.iterator();\n\n // loop over compartments in this Tissues\n while (compIterator.hasNext()) {\n CompartmentSBML compa = compIterator.next();\n leaf = processComp(guiMn, compa, tissueBranch);\n }\n // Post processing for \"outside\" field\n ArrayList<CompartmentSBML> compbis = tiss.getInternVolumes();\n Iterator<CompartmentSBML> postIterator = compbis.iterator();\n // loop over compartments in this Tissue\n CompartmentSBML compInside;\n while (postIterator.hasNext()) {\n compInside = postIterator.next();\n if(compInside == null)\n {\n System.out.println(\"No id in model: \" + compInside.getName());\n }\n postProcessComp(guiMn, tiss, tissueBranch, compInside);\n }\n // now there are still compartments in root that are at the wrong place\n } // end of Tissue loop\n } // end of Physiological systems loop\n }\n // when a tissue is embedded in another tissue \n careForPartOf(guiMn, ancestor);\n }", "public void actionPerformed(ActionEvent evt) {\n\t\t\t\tDefaultMutableTreeNode selected = (DefaultMutableTreeNode) tree\n\t\t\t\t\t\t.getLastSelectedPathComponent();\n\t\t\t\tif (selected == null) return;\n\n\t\t\t\t// get the parent of the selected node\n\t\t\t\tDefaultMutableTreeNode parent = (DefaultMutableTreeNode) selected\n\t\t\t\t\t\t.getParent();\n\t\t\t\tif (parent == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// add a new node after the selected node as a child of the\n\t\t\t\t// selected node's parent\n\t\t\t\t// We add item to the MODEL! The view automatically updates.\n\t\t\t\ttModel.insertNodeInto(new DefaultMutableTreeNode(\"New Node\"),\n\t\t\t\t\t\tparent, parent.getIndex(selected) + 1);\n\n\t\t\t\t/*\n\t\t\t\t * Note: additions are done to the model, not the view. See\n\t\t\t\t * below for the treeModelListener methods.\n\t\t\t\t */\n\t\t\t}", "public interface OnShowNodeSideListener {\n void onAfterShowNode(boolean success);\n }", "public void clickTreeViewButton() {\n\t\tfilePicker.stickyButton(locTreeBtn);\n\t}", "public void resetCollapseByMenu() {\n //NOTE: can only collapse on OTU metadata\n collapseByMenu.removeAll();\n JMenuItem item = new JMenuItem(\"Uncollapse All\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n frame.uncollapseTree();\n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Collapse All\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n frame.collapseTree();\n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Node Labels\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String value = e.getActionCommand();\n double level = Double.parseDouble(((String)JOptionPane.showInputDialog(\n frame,\n \"Enter percent threshold to collapse by:\\n\"+\n \"Use 100(%) for completely homogeneous\\n\"+\n \"collapsing\",\n \"Collapse by \"+value,\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n \"90\")))/100;\n if(level > 0 && level <= 1)\n {\n frame.collapseTreeByNodeLabels(level);\n }\n else\n JOptionPane.showMessageDialog(frame,\n \"Invalid threshold percentage.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n \n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Consensus Lineage\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String value = e.getActionCommand();\n double level = Double.parseDouble(((String)JOptionPane.showInputDialog(\n frame,\n \"Enter percent threshold to collapse by:\\n\"+\n \"Use 100(%) for completely homogeneous\\n\"+\n \"collapsing\",\n \"Collapse by \"+value,\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n \"90\")))/100;\n if(level > 0 && level <= 1)\n {\n frame.collapseTreeByConsensusLineage(level);\n }\n else\n JOptionPane.showMessageDialog(frame,\n \"Invalid threshold percentage.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n \n }\n });\n item.setEnabled(false);\n collapseByMenu.add(item);\n collapseByMenu.add(new JSeparator());\n // \n // item = new JMenuItem(\"External Node Labels\");\n // item.addActionListener(new ActionListener() {\n // public void actionPerformed(ActionEvent e) {\n // collapseItemClicked(e);\n // }\n // });\n // collapseByMenu.add(item);\n\n if (frame.frame.otuMetadata != null) { \n ArrayList<String> data = frame.frame.otuMetadata.getColumnNames();\n //start at 1 to skip ID column\n for (int i = 1; i < data.size(); i++) {\n String value = data.get(i);\n item = new JMenuItem(value);\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n collapseItemClicked(e);\n }\n });\n collapseByMenu.add(item);\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n if (e.getSource() == frame.b4) {\n System.out.println(\"pressed create tree\");\n CreateFrame createF = new CreateFrame();\n data = createF.getBST();\n }\n else if (e.getSource() == frame.b3) {\n System.out.println(\"pressed browse\");\n try{\n data.print_tree(data.root, pw);\n frame.ta1.setText(w.toString());\n w.close();\n }\n catch (IOException j) {\n JOptionPane.showMessageDialog(null, \"Error printing tree.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n catch (NullPointerException j){\n JOptionPane.showMessageDialog(null, \"No loaded file.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n else if (e.getSource() == frame.b2) {\n System.out.println(\"pressed find\");\n FindFrame findF = new FindFrame(data);\n }\n else if (e.getSource() == frame.b1) {\n System.out.println(\"pressed insert\");\n try {\n iframe = new InsertFrame(data);\n data = iframe.updatedTree();\n }\n\n catch(NullPointerException j){\n JOptionPane.showMessageDialog(null,\"No loaded file\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }", "public void onNodeSelect(NodeSelectEvent event) {\n if (event.getTreeNode().getType().equalsIgnoreCase(TreeNodeType.PARENT.getLabel()))\n productToolOperation.loadTemplateByCategory(getOnlyChild(), event.getTreeNode());\n }", "@Override\n\tprotected void treeContentChanged ( ) {\n\n\t\tSubTypingProofNode rootNode = ( SubTypingProofNode ) this.proofModel.getRoot ( );\n\n\t\t// initiate the index\n\t\tthis.index = 1;\n\t\tcheckForUserObject ( rootNode );\n\t\trelayout ( );\n\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 }", "public void interactiveXTreeEditingRToL() {\r\n JTree tree = new JTree(); \r\n tree.setEditable(true);\r\n DefaultTreeCellRenderer renderer = new DynamicIconRenderer();\r\n tree.setCellRenderer(renderer);\r\n tree.setCellEditor(new DefaultXTreeCellEditor(tree, renderer));\r\n JXTree xTree = new JXTree();\r\n xTree.setEditable(true);\r\n xTree.setCellRenderer(renderer);\r\n xTree.setCellEditor(new DefaultXTreeCellEditor(xTree, renderer));\r\n final JXFrame frame = wrapWithScrollingInFrame(tree, xTree, \"XEditing: compare tree and xtree\");\r\n Action toggleComponentOrientation = new AbstractAction(\"toggle orientation\") {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n ComponentOrientation current = frame.getComponentOrientation();\r\n if (current == ComponentOrientation.LEFT_TO_RIGHT) {\r\n frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n } else {\r\n frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n\r\n }\r\n\r\n }\r\n\r\n };\r\n addAction(frame, toggleComponentOrientation);\r\n frame.setVisible(true);\r\n \r\n }", "public void run() {\n\t\t\t\tshowMessage(\"Notes for 'Class Components Tree' view\", \n\t\t\t\t\t\t\"This view shows the components tree of the class that is selected in Model Explorer.\");\n//\t\t\t\t\t\t\t\"\\n\\nNote that arrays are not expanded.\");\n\t\t\t}", "private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }", "@Override\n\t\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\n\t\t\t\t\tTreePath path = tree.getSelectionPath();\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tDefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)path.getLastPathComponent();\n\t\t\t\t\tif(selectedNode.equals(teacIfo)) {//选中教师个人信息\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"该功能尚未开放!\");\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedNode.equals(studIfo)) {//选择学生个人信息\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\tpanel.setLayout(null);\n\t\t\t\t\t\tpanel.setBackground(Color.WHITE);\n\t\t\t\t\t\tResultSet rs = StudentDaoImpl.studentIfo(userName);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tFont font = new Font(\"楷体\", 10, 25);\n\t\t\t\t\t\t\t\tJLabel title = new JLabel(\"学生个人信息\");\n\t\t\t\t\t\t\t\ttitle.setFont(font);\n\t\t\t\t\t\t\t\tJLabel stuId = new JLabel(\"学号 \"+rs.getString(\"StuId\"));\n\t\t\t\t\t\t\t\tJLabel stuName = new JLabel(\"姓名 \"+rs.getString(\"StuName\"));\n\t\t\t\t\t\t\t\tJLabel stuSex = new JLabel(\"性别 \"+rs.getString(\"StuSex\"));\n\t\t\t\t\t\t\t\tJLabel stuBirth = new JLabel(\"生日 \"+rs.getString(\"Birthday\"));\n\t\t\t\t\t\t\t\tJLabel stuPhone = new JLabel(\"联系方式 \"+rs.getString(\"Phone\"));\n\t\t\t\t\t\t\t\tJLabel stuAddress = new JLabel(\"家庭地址 \"+rs.getString(\"Address\"));\n\t\t\t\t\t\t\t\tJLabel stuClass = new JLabel(\"班级 \"+rs.getString(\"class_Name\"));\n\t\t\t\t\t\t\t\tJLabel stuDepar = new JLabel(\"所属院系 \"+rs.getString(\"Depar_name\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttitle.setBounds(0, 0, 150, 60);\n\t\t\t\t\t\t\t\tstuId.setBounds(10,50,200,40);\n\t\t\t\t\t\t\t\tstuName.setBounds(10,80,200,40);\n\t\t\t\t\t\t\t\tstuSex.setBounds(10,110,200,40);\n\t\t\t\t\t\t\t\tstuBirth.setBounds(10,140,250,40);\n\t\t\t\t\t\t\t\tstuPhone.setBounds(10,170,200,40);\n\t\t\t\t\t\t\t\tstuAddress.setBounds(10,200,300,40);\n\t\t\t\t\t\t\t\tstuClass.setBounds(10,230,300,40);\n\t\t\t\t\t\t\t\tstuDepar.setBounds(10,260,200,40);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tpanel.add(title);\n\t\t\t\t\t\t\t\tpanel.add(stuId);\n\t\t\t\t\t\t\t\tpanel.add(stuName);\n\t\t\t\t\t\t\t\tpanel.add(stuSex);\n\t\t\t\t\t\t\t\tpanel.add(stuBirth);\n\t\t\t\t\t\t\t\tpanel.add(stuPhone);\n\t\t\t\t\t\t\t\tpanel.add(stuAddress);\n\t\t\t\t\t\t\t\tpanel.add(stuClass);\n\t\t\t\t\t\t\t\tpanel.add(stuDepar);\n\t\t\t\t\t\t\t\tpanel2.removeAll();\n\t\t\t\t\t\t\t\tpanel.add(bg);\n\t\t\t\t\t\t\t\tpanel2.add(panel);\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(pwdModify)) {\n\t\t\t\t\t\tJFrame jf = new JFrame();\n\t\t\t\t\t\tjf.setTitle(\"修改密码\");\n\t\t\t\t\t\tjf.setBounds(width+200, height+100, 400, 300);\n\t\t\t\t\t\tJPanel pl = new JPanel();\n\t\t\t\t\t\tJLabel oldPwd = new JLabel(\"旧密码:\");\n\t\t\t\t\t\tJLabel newPwd = new JLabel(\"新密码:\");\n\t\t\t\t\t\tJTextField oldPwdText = new JTextField(15);\n\t\t\t\t\t\tJTextField newPwdText = new JTextField(15);\n\t\t\t\t\t\tJButton confirm = new JButton(\"确定\");\n\t\t\t\t\t\tJButton reset = new JButton(\"重置\");\n\t\t\t\t\t\tpl.setLayout(null);\n\t\t\t\t\t\toldPwd.setBounds(120,50,50,20);\n\t\t\t\t\t\tnewPwd.setBounds(120,80,50,20);\n\t\t\t\t\t\toldPwdText.setBounds(200,50,120,20);\n\t\t\t\t\t\tnewPwdText.setBounds(200,80,120,20);\n\t\t\t\t\t\tconfirm.setBounds(140,140,60,30);\n\t\t\t\t\t\treset.setBounds(220,140,60,30);\n\t\t\t\t\t\treset.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tsuper.mouseClicked(e);\n\t\t\t\t\t\t\t\toldPwdText.setText(\"\");\n\t\t\t\t\t\t\t\tnewPwdText.setText(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconfirm.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tsuper.mouseClicked(e);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\t\t\t\t\t\tString sql = \"select passWord from teacher where userName='\"+userName+\"'\";\n\t\t\t\t\t\t\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\t\t\t\t\t\tif(rs.next()) {\n\t\t\t\t\t\t\t\t\t\tif(!rs.getString(\"passWord\").equals(oldPwdText.getText().trim().toString())) {\n\t\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"旧密码错误!\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tString sql2 = \"update teacher set password='\"+newPwdText.getText()+\"' where userName='\"+userName+\"'\";\n\t\t\t\t\t\t\t\t\t\t\tstmt.executeUpdate(sql2);\n\t\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"修改成功!\");\n\t\t\t\t\t\t\t\t\t\t\tjf.setVisible(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} catch (SQLException e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tpl.add(oldPwd);\n\t\t\t\t\t\tpl.add(newPwd);\n\t\t\t\t\t\tpl.add(oldPwdText);\n\t\t\t\t\t\tpl.add(newPwdText);\n\t\t\t\t\t\tpl.add(confirm);\n\t\t\t\t\t\tpl.add(reset);\n\t\t\t\t\t\tjf.add(pl);\n\t\t\t\t\t\tjf.setBackground(Color.WHITE);\n\t\t\t\t\t\tjf.setResizable(false);\n\t\t\t\t\t\tjf.setVisible(true);\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\tif(selectedNode.equals(studGrade)) {//选中成绩查询\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\t\n\t\t\t\t\t\tpanel.setLayout(null);\n\t\t\t\t\t\tpanel.setBackground(Color.WHITE);\n\t\t\t\t\t\tResultSet rs = StudentDaoImpl.studentGrade(userName);\n\t\t\t\t\t\tDefaultTableModel model = new DefaultTableModel(){\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\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t\t\tpublic boolean isCellEditable(int col, int row) \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\t};\n\t\t\t\t\t\tJTable table = new JTable();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttable.setModel(model);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] columnNames = {\"学号\",\"姓名\",\"课程\",\"成绩\"};\n\t\t\t\t\t\tString[] row = new String[4];\n\t\t\t\t\t\tfor(int i = 0; i < 4;i++) {\n\t\t\t\t\t\t\tmodel.addColumn(columnNames[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodel.addRow(columnNames);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\t\t\tfor(int i = 0; i < 4;i++) {\n\t\t\t\t\t\t\t\t\trow[i] = rs.getString(i+1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmodel.addRow(row);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tint avg = 0;\n\t\t\t\t\t\t\tfor(int i = 1; i <= model.getRowCount()-1;i++) {\n\t\t\t\t\t\t\t\tavg += Integer.valueOf((String) model.getValueAt(i,3));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(model.getRowCount()-1 != 0) {\n\t\t\t\t\t\t\t\tavg /= model.getRowCount()-1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJLabel avgGrade = new JLabel(\"平均成绩:\"+avg);\n\t\t\t\t\t\t\ttable.setBounds(70, 50, 400, 200);\n\t\t\t\t\t\t\tavgGrade.setBounds(100,300,200,30);\n\t\t\t\t\t\t\ttable.updateUI();\n\t\t\t\t\t\t\tpanel.removeAll();\n\t\t\t\t\t\t\tpanel.add(avgGrade);\n\t\t\t\t\t\t\tpanel.add(table);\n\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpanel2.removeAll();\t\n\t\t\t\t\t\tpanel.add(bg);\n\t\t\t\t\t\tpanel2.add(panel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(gradeStatics)) { //成绩统计,优秀率,不及格率\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//选择成绩录入\n\t\t\t\t\tif(selectedNode.equals(gradeIn)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(gradeModify)) {//成绩修改\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t}", "@SuppressWarnings(\"unchecked\")\r\n public void mouseClicked(MouseEvent e) {\r\n Graph<NodeData,EdgeData>.Node nearbyNode = findNearbyNode(e.getX(),e.getY());\r\n boolean work = false;\r\n switch (mode) {\r\n case ADD_NODES:\r\n if (nearbyNode==null){\r\n char c = (char)(canvas.graph.numNodes()%26+65);\r\n canvas.graph.addNode(new NodeData(e.getPoint(),Character.toString(c)));\r\n canvas.repaint();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case RMV_NODES:\r\n if (nearbyNode!=null){\r\n canvas.graph.removeNode(nearbyNode);\r\n canvas.repaint();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case BFS:\r\n if (nearbyNode!=null){\r\n (new TraversalThread(canvas.graph.BFS(nearbyNode))).execute();\r\n work = true;\r\n }\r\n if (!work){\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case DFS:\r\n if (nearbyNode!=null) {\r\n (new TraversalThread(canvas.graph.DFS(nearbyNode))).execute();\r\n work = true;\r\n }\r\n if (!work) {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n break;\r\n case CHG_TEXT:\r\n if (nearbyNode!=null) {\r\n while (!work) {\r\n try {\r\n JFrame frame = new JFrame(\"Enter a text\");\r\n String text = JOptionPane.showInputDialog(frame, \"Please enter the text on this node.\");\r\n if (text != null) {\r\n nearbyNode.getData().setText(text);\r\n canvas.repaint();\r\n work = true;\r\n } else {\r\n Toolkit.getDefaultToolkit().beep();\r\n }\r\n } catch (Exception exception){\r\n //do nothing\r\n }\r\n }\r\n }\r\n }\r\n }", "protected void treeValueChanged(TreeSelectionEvent e, JTree jTree) {\r\n\r\n\t\t//Returns the last path element of the selection.\r\n\t\t//This method is useful only when the selection model allows a single selection.\r\n//\t\tif (jTree.isFocusOwner()||jTree.requestFocusInWindow()){\r\n//\t\t\tSystem.out.println(\"Fokus 005 Tree vor\");\r\n\t\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)jTree.getLastSelectedPathComponent();\r\n\t\t if (node==null){\r\n\t\t \t//nix ist gewählt\r\n\t\t \tLog.log().finest(\"TreeView:no node\");\r\n\t\t }else{\r\n\t\t \tModelKnotenBean selectedModelKnotenBean = (ModelKnotenBean) node.getUserObject();\r\n\t\t \t//ausgewählten Knoten an Kontroller weitergeben.\r\n\t\t \tLog.log().finest(\"TreeView:\" + selectedModelKnotenBean.toString());\r\n\t\t \tgetTreeController().selectKnoten(selectedModelKnotenBean);\r\n\t\t }\r\n//\t\t\tSystem.out.println(\"Fokus 005 Tree nach\");\r\n\t\t\t\r\n//\t\t}else{\r\n//\t\t\tSystem.out.println(\"kein Fokus 004 Tree\");\r\n//\t\t}\r\n\t}", "private void fxml2Node(ViewsEnum fxml, Node node) {\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().remove(\"selected_option\");\n int newIndex = navBanner.getChildren().indexOf(node);\n selectedMenuOption = (newIndex != -1) ? newIndex : selectedMenuOption;\n navBanner.getChildren().get(selectedMenuOption).getStyleClass().add(\"selected_option\");\n // Clean body\n Node tmp[] = new Node[2];\n tmp[0] = body.getChildren().get(0);\n tmp[1] = body.getChildren().get(1);\n body.getChildren().setAll(tmp[0], tmp[1]);\n // Load new content\n FXMLLoader fxmlLoader = new FXMLLoader();\n Node root = null;\n try {\n root = fxmlLoader.load(sample.Main.class.getResource(\"views/\" +fxmlList.get(fxml)+\".fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n // Add new node\n body.getChildren().add(root);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tifTreeView = new com.ptc.tifworkbench.ui.TifTreeView();\n tifXmlView = new com.ptc.tifworkbench.ui.TifXmlView();\n tifCheckTreeViewer = new com.ptc.tifworkbench.ui.tree.TifCheckTreePanel();\n menuBar = new javax.swing.JMenuBar();\n viewMenu = new javax.swing.JMenu();\n xmlMenuItem = new javax.swing.JMenuItem();\n treeMenuItem = new javax.swing.JMenuItem();\n selTreeMenuItem = new javax.swing.JMenuItem();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Template tree\");\n setFrameIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/ptc/tifworkbench/ui/tables.gif\"))); // NOI18N\n getContentPane().setLayout(new java.awt.CardLayout());\n getContentPane().add(tifTreeView, \"TreeCard\");\n getContentPane().add(tifXmlView, \"XmlCard\");\n getContentPane().add(tifCheckTreeViewer, \"SelTreeCard\");\n\n viewMenu.setText(\"View\");\n\n xmlMenuItem.setText(\"XML\");\n xmlMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n xmlMenuItemActionPerformed(evt);\n }\n });\n viewMenu.add(xmlMenuItem);\n\n treeMenuItem.setText(\"Tree\");\n treeMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n treeMenuItemActionPerformed(evt);\n }\n });\n viewMenu.add(treeMenuItem);\n\n selTreeMenuItem.setText(\"Select Tree\");\n selTreeMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selTreeMenuItemActionPerformed(evt);\n }\n });\n viewMenu.add(selTreeMenuItem);\n\n menuBar.add(viewMenu);\n\n setJMenuBar(menuBar);\n\n pack();\n }", "@Override\n\tpublic void valueChanged(TreeSelectionEvent e) {\n\n\t\tTreePath path = e.getPath();\n\t\t/**\n\t\t * provera sta je selektovano ako nije Project, ikona za new diag je\n\t\t * iskljucena\n\t\t */\n\t\tif (path.getLastPathComponent() instanceof Diagram\n\t\t\t\t|| path.getLastPathComponent() instanceof Workspace) {\n\t\t\tMainFrame.getInstance().getActionManager().getFileNewDiagAction()\n\t\t\t\t\t.setEnabled(false);\n\n\t\t} else {\n\t\t\tMainFrame.getInstance().getActionManager().getFileNewDiagAction()\n\t\t\t\t\t.setEnabled(true);\n\n\t\t}\n\n\t\t/**\n\t\t * prolazak kroz kolekciju dijagrama i provera koji diag ce doci u fokus\n\t\t */\n\t\tfor (int i = 0; i < path.getPathCount(); i++) {\n\t\t\tif (path.getPathComponent(i) instanceof Diagram) {\n\t\t\t\tdiag = (Diagram) path.getPathComponent(i);\n\t\t\t\tString dname = diag.getName();\n\n\t\t\t\tJInternalFrame[] allframes = MainFrame.getInstance()\n\t\t\t\t\t\t.getDesktop().getAllFrames();\n\n\t\t\t\tfor (int j = 0; j < allframes.length; j++) {\n\t\t\t\t\tif (dname == allframes[j].getName()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tallframes[j].setSelected(true);\n\t\t\t\t\t\t\tallframes[j].setVisible(true);\n\t\t\t\t\t\t} catch (PropertyVetoException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void treeNodesInserted(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public void valueChanged(javax.swing.event.TreeSelectionEvent treeSelectionEvent) {\r\n //Addded for Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n if(sponsorHierarchyTree.isEditing() && isPrintingHierarchy){\r\n saveRequiredToLoadForm = true;\r\n }\r\n //Case#2445 - End\r\n selTreePath = treeSelectionEvent.getNewLeadSelectionPath();\r\n if(selTreePath == null)\r\n return;\r\n selectedNode = (DefaultMutableTreeNode)selTreePath.getLastPathComponent();\r\n \r\n// if(EMPTY_STRING.equals(treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent().toString())) {\r\n// CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1257\"));\r\n//// sponsorHierarchyTree.addSelectionPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n// sponsorHierarchyTree.startEditingAtPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n// }\r\n if(sponsorHierarchyTree.getSelectionPaths().length >1) {\r\n String s = treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent().toString();\r\n if(((DefaultMutableTreeNode)treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent()).getAllowsChildren()) {\r\n sponsorHierarchyTree.getSelectionModel().removeSelectionPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n sponsorHierarchyTree.getSelectionModel().addSelectionPath(selTreePath);\r\n }\r\n TreePath[] path = sponsorHierarchyTree.getSelectionPaths();\r\n int count = 0;\r\n for(int selPathIndex=0; selPathIndex<path.length;selPathIndex++) {\r\n if(((DefaultMutableTreeNode)path[selPathIndex].getLastPathComponent()).getAllowsChildren()){\r\n count++;\r\n if(count>1)\r\n sponsorHierarchyTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\r\n }\r\n }\r\n }\r\n selectedValue = (String)selectedNode.getUserObject();\r\n }", "private void selectBranch () {\n \n TagsNode node = (TagsNode)tagsTree.getLastSelectedPathComponent();\n \n if (node == null) {\n // nothing selected\n }\n else\n if (node == position.getTagsNode()) {\n // If we're already positioned on the selected node, then no\n // need to do anything else (especially since it might set off\n // an endless loop).\n }\n else\n if (node.getNodeType() == TagsNode.ITEM) {\n // System.out.println (\"selectBranch selected item = \" + node.toString());\n boolean modOK = modIfChanged();\n if (modOK) {\n ClubEvent branch = (ClubEvent)node.getTaggable();\n int branchIndex = clubEventList.findByUniqueKey (branch);\n if (branchIndex >= 0) {\n position = clubEventList.positionUsingListIndex (branchIndex);\n position.setTagsNode (node);\n positionAndDisplay();\n } else {\n System.out.println (\"ClubPlanner.selectBranch\");\n System.out.println \n (\"-- Selected a branch from the tree that couldn't be found in the list\");\n System.out.println (\"-- node = \" + node.toString());\n System.out.println (\"-- event = \" + branch.getWhat());\n System.out.println (\"-- branch index = \" + String.valueOf(branchIndex));\n }\n }\n }\n else {\n // Do nothing until an item is selected\n // System.out.println (\"selectBranch selected node = \" + node.toString());\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif (selected != null) {\r\n\t\t\tselected.setBackground(null);\r\n\t\t\tselected.rename.setVisible(false);\r\n\t\t\tselected.name.setVisible(true);\r\n\t\t}\r\n\t\tallowAction = true;\r\n\t\tselected = this;\r\n\t\tselected.setBackground(Color.gray);\r\n\t\tSystem.out.println(\"Node: \" + selected.get_path());\t\t\r\n\r\n\t}", "private void initSideBar(JSplitPane splitPane) {\n\t\tJPanel sidebar = new JPanel();\n\t\tJScrollPane leftComponent = new JScrollPane(sidebar);\n\t\tleftComponent.setMinimumSize(new Dimension(210, 400));\n\t\tsplitPane.setLeftComponent(leftComponent);\n\t\tGridBagLayout gbl_sidebar = new GridBagLayout();\n\t\tsidebar.setLayout(gbl_sidebar);\n\n\t\t// init basic constraints\n\t\tGridBagConstraints gbc_sidebar = new GridBagConstraints();\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.anchor = GridBagConstraints.CENTER;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy = 0;\n\t\t\n\t\t// init step buttons here so other buttons can reference them\n\t\tfinal JButton btnStepBack = new JButton(\"Step\");\n\t\tfinal JButton btnStepForward = new JButton(\"Step\");\n\t\t\n\t\t// run button\n\t\tfinal JButton btnRun = new JButton(new AbstractAction(\"Run\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates();\n\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\ttry {\n\t\t\t\t\tmachine.run(inputText.getText());\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tsidebar.add(btnRun, gbc_sidebar);\n\t\tcomponents.add(btnRun);\n\t\t\n\t\t// reset button\n\t\tfinal JButton btnReset = new JButton(new AbstractAction(\"Reset\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tmachine.reset(); // reset the automaton\n\t\t\t\tgraphicManager.clearStates(); // clear state selection\n\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t\n\t\t\t\tinputText.setEditable(true); // enable input editing\n\t\t\t\tbtnRun.setEnabled(true); // enable run btn\n\t\t\t\tbtnStepBack.setEnabled(false); // disable step back btn\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward btn\n\t\t\t\t\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnReset, gbc_sidebar);\n\t\tcomponents.add(btnReset);\n\t\t\n\t\t// step back button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_left.png\");\n\t\t\tbtnStepBack.setIcon(new ImageIcon(url));\n\t\t\tbtnStepBack.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepBack.setText(\"<-- Step\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepBack.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates(); // clear selections\n\t\t\t\tmachine.stepBack();\n\t\t\t\t\n\t\t\t\t// if reached beginning of current input\n\t\t\t\tif (machine.atStart()) {\n\t\t\t\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t machine.getCurrentInput());\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(btnStepBack, gbc_sidebar);\n\t\tcomponents.add(btnStepBack);\n\t\t\n\t\t// step forward button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_right.png\");\n\t\t\tbtnStepForward.setIcon(new ImageIcon(url));\n\t\t\tbtnStepForward.setHorizontalTextPosition(SwingConstants.LEADING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepForward.setText(\"Step -->\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepForward.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\n\t\t\t\t// if first step, set input\n\t\t\t\tif (machine.atStart())\n\t\t\t\t\tmachine.setInput(inputText.getText());\n\t\t\t\t\n\t\t\t\ttry { \n\t\t\t\t\tmachine.step(); // take a step\n\t\t\t\t\t\n\t\t\t\t\t// if there is input\n\t\t\t\t\tif (inputText.getText().length() > 0) {\n\t\t\t\t\t\tinputText.setEditable(false); // disable input edit\n\t\t\t\t\t\tbtnRun.setEnabled(false); // disable run\n\t\t\t\t\t\tbtnStepBack.setEnabled(true); // enable step back\n\n\t\t\t\t\t\t// report character just read\n\t\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t\t\t\t\t\t machine.getCurrentInput());\n\t\t\t\t\t}\n\n\t\t\t\t\t// if end of input, disable step forward\n\t\t\t\t\tif (! (machine.getStatus().equals(Automaton.READY) ||\n\t\t\t\t\t\t\tmachine.getStatus().equals(Automaton.RUN)))\n\t\t\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnStepForward, gbc_sidebar);\n\t\tcomponents.add(btnStepForward);\n\t\t\n\t\t// input label\n\t\tlblInput = new JLabel(\"Input:\");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 0, 5); // T, L, B, R\n\t\tgbc_sidebar.anchor = GridBagConstraints.SOUTH;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.gridwidth = 2; // fill entire row\n\t\tsidebar.add(lblInput, gbc_sidebar);\n\t\tcomponents.add(lblInput);\n\t\t\n\t\t// input text field (scrollable)\n\t\tinputText = new JTextArea();\n\t\tJScrollPane areaScrollPane = new JScrollPane(inputText);\n\t\tgbc_sidebar.insets = new Insets(0, 5, 5, 5); // T, L, B, R\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 1.0;\n\t\tgbc_sidebar.fill = GridBagConstraints.BOTH;\n\t\tsidebar.add(areaScrollPane, gbc_sidebar);\n\t\tcomponents.add(inputText);\n\t\t\n\t\t// current input label\n\t\tlblCurrentInput = new JLabel(\" \");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 0;\n\t\tgbc_sidebar.fill = GridBagConstraints.NONE;\n\t\tsidebar.add(lblCurrentInput, gbc_sidebar);\n\t\tcomponents.add(lblCurrentInput);\n\t\t\n\t\t// status label\n\t\tlblStatus = new JLabel(\"Status: \" + machineStatus); // default: ready\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblStatus, gbc_sidebar);\n\t\tcomponents.add(lblStatus);\n\t\t\n\t\t// automaton type label\n\t\tlblType = new JLabel(\"Type: \" + machineType); // default: DFA\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblType, gbc_sidebar);\n\t\tcomponents.add(lblType);\n\t}", "private void setTreePresenter() {\n this.tree.setIconProvider(new ModelIconProvider<GPBeanTreeModel>() {\n \n @Override\n public AbstractImagePrototype getIcon(GPBeanTreeModel model) {\n return model.getIcon();\n }\n });\n \n this.tree.setLabelProvider(new ModelStringProvider<GPBeanTreeModel>() {\n \n @Override\n public String getStringValue(GPBeanTreeModel model, String property) {\n return model.getLabel();\n }\n });\n \n this.tree.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);\n \n this.tree.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<GPBeanTreeModel>() {\n \n @Override\n public void selectionChanged(\n SelectionChangedEvent<GPBeanTreeModel> se) {\n if (se.getSelectedItem() != null) {\n MediatorToolbarTreeAction.getInstance().elementChanged(se.getSelectedItem());\n } else {\n MediatorToolbarTreeAction.getInstance().disableAllActions();\n }\n \n }\n });\n this.setCheckable(true);\n this.setCheckStyle(CheckCascade.NONE);\n this.tree.setAutoHeight(true);\n }", "public abstract void setSelectedNode(String n);", "public void runTree(int min) {\n getContentPane().remove(pane);\n pane = new Tree(1.05, min, .8, 200);\n getContentPane().add(pane);\n setVisible(true);\n }", "private void loadTree(){ \n PBarHelper.show();\n DataProvider.getTreeHierarchy(mScreenId, new DataProvider.AsyncCallback<ViewNodeJSO>() {\n @Override\n public void onError(Request r, Throwable t) {\n PBarHelper.hide();\n Window.alert(t.getMessage());\n }\n\n @Override\n public void onDownloaded(ViewNodeJSO result) {\n mRoot = result; \n CellTree.Resources res = GWT.create(CustomTreeResources.class);\n //create tree model\n mTreeViewModel = new ViewHierarchyTreeViewModel(result);\n //add selection handler to select view on canvas\n mTreeViewModel.setOnSelectionChangedListener(new OnSelectionChangedListener() { \n @Override\n public void onSelectionChanged(ViewNodeJSO viewNode, boolean selected) { \n ScreenPreviewPage.this.onViewTreeNodeSelectionChanged(viewNode, selected);\n }\n });\n //add hover listener just to highlight view\n mTreeViewModel.setOnViewNodeMouseOverListener(new OnViewNodeMouseOverListener() {\n @Override\n public void onMouseOver(ViewNodeJSO viewNode) {\n if (mTreeViewModel.getSelectedNode() == null) {\n clearCanvas();\n drawRectForView(viewNode);\n }\n }\n });\n //remove old tree if necessary, currently there is no reload support (reload page only)\n if (mCellTree != null) {\n mCellTree.removeFromParent();\n }\n mCellTree = new CellTree(mTreeViewModel, null, res); \n mCellTree.setDefaultNodeSize(1000);//no show more button\n centerPanel.add(mCellTree); \n CellTreeTools.expandAll(mCellTree.getRootTreeNode());\n mCellTree.setAnimationEnabled(true);\n PBarHelper.hide();\n } \n });\n }", "public void refresh()\n\t{\n\t\tNode master = new Node(\"Tyler\");\n\t\t//master.add(new Node(\"Test\"));\n\t\tmaster.addParent(new Node(\"Clinton\"));\n\t\tmaster.addParent(new Node(\"Terry\"));\n\t\t\n\t\tmaster.add(\"Justin\", \"Terry\"); \n\t\tmaster.add(\"Justin\", \"Clinton\"); \n\t\t//this adds directly under Terry\n\t\t//maybe do this differently...\n\t\t\n\t\t\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"Diana\"));\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"George\"));\n\t\t\n\t\tmaster.add(new Node(\"Tyler 2.0\"));\n\t\tmaster.add(new Node(\"Tyler 3.0\"));\n\t\tmaster.add(new Node(\"Tyler Jr\"));\n\t\t\n\n\t\tmaster.add(\"Tyler Jr Jr\", \"Tyler 2.0\");\n\t\t\n\t\tmaster.add(\"Tyler 3.0\", \"Tyler Jr 2.0\");\n\t\t\n\t\tmaster.findNode(\"Clinton\").addParent(new Node(\"Eric\"));\n\t\tmaster.findNode(\"Eric\").addParent(new Node(\"Eric's Dad\"));\n\t\t\n\t\t\n\t\tmaster.findNode(\"Tyler Jr Jr\", 6).add(new Node(\"Mini Tyler\"));\n\t\t//master.findNode(\"Clinton\", 2).add(new Node(\"Justin\"));\n\t\t\n\t\t\n\t\tmaster.getParent().get(0).findNode(\"Justin\", 3).add(new Node(\"Mini Justin\"));\n\t\t\n\t\tmaster.add(new Node(\"Laptop\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Keyboard\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Mouse\"));\n\t\t\n\t\tmaster.add(\"Touchpad\", \"Laptop\");\n\t\t//master.add(\"Justin\", \"Eric\");\n\t\t\n\t\tmaster.add(\"Hunger\", \"Tyler\");\n\t\t\n\t\tselectedNode = master;\n\t\tselect(selectedNode);\n\t}", "public void onNodeSelect(NodeSelectEvent event){\r\n\t\tString nodeType = event.getTreeNode().getType();\r\n\t\t\r\n\t\t//handle only if selected is model node\r\n\t\tif(\"modelNode\".equals(nodeType)){\r\n\t\t\trefreshViewModelTableName((Model)event.getTreeNode().getData());\r\n\t\t}\r\n\t}", "void graphSelectionChanged(Mode mode);", "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "@Override public boolean selectAutomaticallyInTreeMenu() {\n return infoPanel == null;\n }", "public ChangeBinaryTree(){\n\t\tsetLayout(new BorderLayout());\n\t\tJPanel p1 = new JPanel(new GridLayout(1,5));\n\t\tp1.add(new JLabel(\"Enter a value:\"));\n\t\tp1.add(jtfValue);\n\t\tp1.add(jbtSearch);\n\t\tp1.add(jbtInsert);\n\t\tp1.add(jbtRemove);\n\t\tadd(p1,BorderLayout.SOUTH);\n//\t\tadd(paintLinkedList,BorderLayout.CENTER);\n/*\t\tjbtSearch.addActionListener(new SearchListener());\n\t\tjbtInsert.addActionListener(new InsertListener());\n\t\tjbtRemove.addActionListener(new jbtRemoveListener());*/\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {\n\n\t\t\tif (MainFrame.getInstance().getWorkspaceTree()\n\t\t\t\t\t.getLastSelectedPathComponent() instanceof Diagram) {\n\t\t\t\tDiagram diag1 = (Diagram) MainFrame.getInstance()\n\t\t\t\t\t\t.getWorkspaceTree().getLastSelectedPathComponent();\n\t\t\t\tfor (int i = 0; i < MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t.getAllFrames().length; i++) {\n\n\t\t\t\t\tif (MainFrame\n\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t.getWorkspaceTree()\n\t\t\t\t\t\t\t.getLastSelectedPathComponent()\n\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t.equals(MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t\t\t\t.getAllFrames()[i].getName())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tdiagView = new DiagramView();\n\t\t\t\tdiagView.setTitle(diag1.getName());\n\t\t\t\tdiagView.setName(diag1.getName());\n\t\t\t\tdiagView.setDiagram(diag1);\n\t\t\t\tMainFrame.getInstance().getDesktop().add(diagView);\n\n\t\t\t\ttry {\n\t\t\t\t\tdiagView.setSelected(true);\n\t\t\t\t} catch (PropertyVetoException 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\n\t\t\t\t// System.out.println(sel);\n\t\t\t}\n\n\t\t}\n\n\t}", "SideBar(Node... nodes) {\r\n // create a bar to hide and show.\r\n setAlignment(Pos.CENTER);\r\n setStyle(\"-fx-padding: 10; -fx-background-color: linear-gradient(to bottom, lavenderblush, mistyrose); -fx-border-color: derive(mistyrose, -10%); -fx-border-width: 3;\");\r\n\r\n // create a button to hide and show the sidebar.\r\n controlButton = new Button(\"Sign Up!\");\r\n controlButton.setMaxWidth(Double.MAX_VALUE);\r\n controlButton.setTooltip(new Tooltip(\"Play sidebar login or sign up!\"));\r\n\r\n // apply the animations when the button is pressed.\r\n controlButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent actionEvent) {\r\n if(controlButton.getText().equalsIgnoreCase(\"Login!\")){\r\n getChildren().clear();\r\n getChildren().add(logincontainer);\r\n controlButton.setText(\"Sign Up!\");\r\n }else if(controlButton.getText().equalsIgnoreCase(\"Sign Up!\")){\r\n getChildren().clear();\r\n getChildren().add(new SignUp(layout));\r\n controlButton.setText(\"Login!\");\r\n }\r\n }\r\n });\r\n }", "public void mouseClicked(MouseEvent ev)\n\t{\n\t if (timer!=null || manim==null || manim.snoopGeneration()!=null) return;\n\n\t Node n = manim.getNodeCloseToBottom(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(true,n);\n\t\trenderPath(n);\t \n\t\thilitNode(n,Color.red);\n\t\treturn;\n\t }\n\n\t n = manim.getNodeCloseToTop(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\tunhilitNode();\n\t\tchangeColorDirection(false,n);\n\t\trenderDownPaths(n);\n\t\thilitNode(n,Color.blue);\n\t\treturn;\n\t }\n\t}", "abstract public void showSelection(Node[] nodes) ;", "public void setShowNodes(Boolean value) {\n showNodes = value;\n }", "@Listen(\"onClick = #selectModel\")\n\tpublic void selectModel(){\n\t\ttreeModel.setOpenObjects(List.of(treeModel.getRoot().getChildren().get(path[0])));\n\t\ttreeModel.addToSelection(treeModel.getChild(path));\n\t}", "protected void onNodeChanged(AbstractNode node) {\r\n\t\t//Activator.getLogger().debug(\"Selection changed: \" + node, null);\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n sender.setNode(SelectNode());\n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n log.getDocument().insertString(0,\"Set Node to: \" +SelectNode().toString() +\"\\n\" , null);\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n scrollPanel = new javax.swing.JScrollPane();\n hierarchy = new JTree(treeModel);\n setLayout(new java.awt.BorderLayout());\n \n \n hierarchy.setPreferredSize(new java.awt.Dimension(300, 500));\n hierarchy.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n hierarchyMouseClicked(evt);\n }\n }\n );\n scrollPanel.setViewportView(hierarchy);\n \n \n add(scrollPanel, java.awt.BorderLayout.CENTER);\n \n }", "public abstract Scoreboard renderSidebar(Player player);", "private static void createAndShowGUI(Node node){\n JFrame frame = new JFrame(\"Binary Tree Calculator\");\n\n frame.add(new Homework1(node));\n frame.pack();\n\n frame.setVisible(true);\n }", "private JTree makeCatalogTree() {\n\t\t\n\t\ttree_root = new DefaultMutableTreeNode(\"all photos\");\n\t\ttree_root.setUserObject(root);\n\t\t\n\t\tfinal JTree tree = new JTree(tree_root);\n\t\ttree.setMinimumSize(new Dimension(200,400));\n\n\t\ttree.setToggleClickCount(3); // so that we can use double-clicks for previewing instead of expanding/collapsing\n\n\t\tDefaultTreeSelectionModel selectionModel = new DefaultTreeSelectionModel();\n\t\tselectionModel.setSelectionMode(DefaultTreeSelectionModel.SINGLE_TREE_SELECTION);\n\t\ttree.setSelectionModel(selectionModel);\n\t\t\n\t\ttree.addMouseListener(new MouseInputAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t// if left-double-click @@@changed =2 to ==1\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {\n\t\t\t\t\tDefaultMutableTreeNode tempNode = getSelectedTreeNode();\n\t\t\t\t\tAlbum chosenAlbum =(Album) tempNode.getUserObject();\n\t\t\t\t\t\n\t\t\t\t\tpreviewPane.display(chosenAlbum);\n\t\t\t\t\t\n\t\t\t\t\t// YOUR CODE HERE\n\t\t\t\t\tSystem.out.println(\"show the photos for album \" + getSelectedTreeNode());\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\n\t\t\n\t\treturn tree;\n\t}", "private void L2RTreeLayout(JFrame jf) {\n\t graph = new DelegateForest<String,Integer>();\n\n\t createTree();\n\t \n\t treeLayout = new TreeLayout<String,Integer>(graph);\n\t radialLayout = new RadialTreeLayout<String,Integer>(graph);\n\t radialLayout.setSize(new Dimension(600,600));\n\t vv2 = new VisualizationViewer<String,Integer>(treeLayout, new Dimension(600,600));\n\t vv2.setBackground(Color.white);\n\t vv2.getRenderContext().setEdgeShapeTransformer(EdgeShape.quadCurve(graph));\n\t vv2.getRenderContext().setVertexLabelTransformer(new ToStringLabeller());\n\t // add a listener for ToolTips\n\t vv2.setVertexToolTipTransformer(new ToStringLabeller());\n\t vv2.getRenderContext().setArrowFillPaintTransformer(Functions.<Paint>constant(Color.lightGray));\n\t rings = new Rings();\n\t \n\t setLtoR(vv2);\n\t \tjf.setTitle(\"Changeable Spring - FRLayout\");\n\t\t\tjf.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\n\t Container content = jf.getContentPane();\n\t final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv2);\n\t content.add(panel);\n\t \n\t final DefaultModalGraphMouse<String, Integer> graphMouse\n\t \t= new DefaultModalGraphMouse<String, Integer>();\n\n\t vv.setGraphMouse(graphMouse);\n\t \n\t JComboBox<Mode> modeBox = graphMouse.getModeComboBox();\n\t modeBox.addItemListener(graphMouse.getModeListener());\n\t graphMouse.setMode(ModalGraphMouse.Mode.TRANSFORMING);\n\n\t final ScalingControl scaler = new CrossoverScalingControl();\n\n\t JButton plus = new JButton(\"+\");\n\t plus.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t scaler.scale(vv2, 1.1f, vv2.getCenter());\n\t }\n\t });\n\t JButton minus = new JButton(\"-\");\n\t minus.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t scaler.scale(vv2, 1/1.1f, vv2.getCenter());\n\t }\n\t });\n\t \n\t JToggleButton radial = new JToggleButton(\"Radial\");\n\t radial.addItemListener(new ItemListener() {\n\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tLayoutTransition<String,Integer> lt =\n\t\t\t\t\t\t\tnew LayoutTransition<String,Integer>(vv2, treeLayout, radialLayout);\n\t\t\t\t\t\tAnimator animator = new Animator(lt);\n\t\t\t\t\t\tanimator.start();\n\t\t\t\t\t\tvv.getRenderContext().getMultiLayerTransformer().setToIdentity();\n\t\t\t\t\t\tvv.addPreRenderPaintable(rings);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLayoutTransition<String,Integer> lt =\n\t\t\t\t\t\t\tnew LayoutTransition<String,Integer>(vv2, radialLayout, treeLayout);\n\t\t\t\t\t\tAnimator animator = new Animator(lt);\n\t\t\t\t\t\tanimator.start();\n\t\t\t\t\t\tvv2.getRenderContext().getMultiLayerTransformer().setToIdentity();\n\t\t\t\t\t\tsetLtoR(vv2);\n\t\t\t\t\t\tvv2.removePreRenderPaintable(rings);\n\t\t\t\t\t}\n\n\t\t\t\t\tvv2.repaint();\n\t\t\t\t}});\n\n\t JPanel scaleGrid = new JPanel(new GridLayout(1,0));\n\t scaleGrid.setBorder(BorderFactory.createTitledBorder(\"Zoom\"));\n\n\t JPanel controls = new JPanel();\n\t scaleGrid.add(plus);\n\t scaleGrid.add(minus);\n\t controls.add(radial);\n\t controls.add(scaleGrid);\n\t controls.add(modeBox);\n\n\t content.add(controls, BorderLayout.SOUTH);\n\t \tjf.pack();\n\t\t\tjf.setVisible(true);\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n JLabel x = (JLabel) e.getSource();\n String command = x.getText();\n if (command == \"Mức 1\"){\n TopicController tc1 = new TopicController(new LevelModel(1), new TopicPanel(1));\n MainFrame.refresh(tc1.getTopicPanel());\n }\n else if (command == \"Mức 2\"){\n TopicController tc1 = new TopicController(new LevelModel(2), new TopicPanel(2));\n MainFrame.refresh(tc1.getTopicPanel());\n } else if (command == \"Mức 3\"){\n TopicController tc1 = new TopicController(new LevelModel(3), new TopicPanel(3));\n MainFrame.refresh(tc1.getTopicPanel());\n } else if (command == \"Trở về\"){\n MenuController menuController = new MenuController(new MenuPanel());\n MainFrame.refresh(menuController.getView());\n }\n\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\n\t\t\t/*\n\t\t\t * int row = getClosestRowForLocation(e.getX(), e.getY());\n\t\t\t * setSelectionRow(row);\n\t\t\t */\n\n\t\t\tPopupTree menu = new PopupTree(this);\n\t\t\tmenu.show(getParent(), e.getX(), e.getY());\n\t\t} else if (e.getClickCount() == 2) {\n\t\t\t// handle double click, open the selected file\n\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\t\t\tdesktopPane.openFile((EllowFile) node.getUserObject());\n\t\t}\n\t}", "@Override\n public void handle(MouseEvent event) {\n if (event.getButton().equals(MouseButton.PRIMARY)) {\n //Double click\n if (event.getClickCount() == 2) {\n expandContractNode(node);\n }\n }\n }", "void afterMasterSelectionChange();", "private void handleSelect(MouseEvent event) {\n\t\tWidget widget = tree.getItem(new Point(event.x, event.y));\n\t\tif (!(widget instanceof TreeItem))\n\t\t\treturn;\n\t\tTreeItem item = (TreeItem) widget;\n\t\tObject o = item.getData();\n\t\tif (o == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tthis.action.handleAction(o);\n\t\t} catch (ApplicationException e) {\n\t\t\tGUI.getStatusBar().setErrorText(e.getMessage());\n\t\t}\n\t}", "void leftView() \n\t\t{ \n\t\t\tleftViewUtil(root, 1); \n\t\t}", "void onTreeChange(TreeChangeEvent event);", "@Override\n \tpublic void itemClicked(VisualItem item, MouseEvent e) {\n currentPoint = e.getPoint();\n \t\tif (SwingUtilities.isRightMouseButton(e)) {\n \t\t\tclickedItem = item;\n\n \t\t\tif (item instanceof NodeItem) {\n \t \t\tnodePopupMenu.show(e.getComponent(), e.getX(), e.getY());\n \t\t\t}else if(item instanceof EdgeItem){\n edgePopupMenu.show(e.getComponent(), e.getX(), e.getY());\n }\n\n \t\t} else if (SwingUtilities.isLeftMouseButton(e)) {\n \t\t\tif (item instanceof NodeItem) {\t//a node was clicked\n \t\t\t\tswitch (action) {\n\t\t\t\t\tcase 1:\t//\tcreate a node\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 2:\t//\tcreate an edge\n \t\t\t\t\tcreatingEdge = true;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 3:\t//\trename node\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n \t\t\t}\n \t\t}\n \t}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n\r\n\r\n if (e.getActionCommand().equals(Parcial_Panel_Arbol.VEROCULTOS))\r\n\r\n this.jtree_arbol_visual.setMuestraNodosOcultos(this.jchVerOcultos.isSelected());\r\n\r\n\r\n if (e.getActionCommand().equals(Parcial_Panel_Arbol.OCULTAR) &&\r\n this.jtree_arbol_visual.getNodoSeleccionado() != null)\r\n {\r\n NodoVisual nv = this.jtree_arbol_visual.getNodoVisual(this.jtree_arbol_visual.getNodoSeleccionado());\r\n\r\n this.jtree_arbol_visual.setOculto(this.jtree_arbol_visual.getNodoSeleccionado(), !nv.isOculto());\r\n\r\n }\r\n\r\n }", "@Override\r\n\tprotected Object createLowerView(Composite parent) {\n\t\tfTree = new Tree(parent, SWT.BORDER );\r\n\t\tfTree.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t// https://jira.jboss.org/browse/JBIDE-7107\r\n\t\t\t\t// update \"OK\" button enablement\r\n\t\t\t\tupdateOkState();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t \r\n\t\tfTreeViewer = new TreeViewer(fTree);\r\n\t\tfTreeViewer.setContentProvider( treeContentProvider );\r\n\t\tfTreeViewer.setLabelProvider(new ModelTreeLabelProvider());\r\n\t\tfTreeViewer.setInput ( null );\r\n\t\tfTreeViewer.setAutoExpandLevel( getAutoExpandLevel() );\r\n\t\t// end tree viewer for variable structure\r\n\t\tGridData data = new GridData(); \r\n\t data.grabExcessVerticalSpace = true;\r\n\t data.grabExcessHorizontalSpace = true;\r\n\t data.horizontalAlignment = GridData.FILL;\r\n\t data.verticalAlignment = GridData.FILL;\r\n\t data.minimumHeight = 200;\r\n\t fTree.setLayoutData(data);\r\n\t \r\n\t\treturn fTree;\r\n\t}", "@Override\n\t\t public void handle(MouseEvent mouseEvent) {\n\t\t \tif(mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.getClickCount() == 2){\n\t\t \t\tfinal AbstractEntity entity = getTreeElement();\n\t\t\t\t\trightContainerFillListener.setupRightContainer(entity);\n\t\t }\n\t\t \t//Rechtsclick Mouse\n\t\t \tif(mouseEvent.getButton() == MouseButton.SECONDARY){\n\t\t \t\tcontextMenu.updateItems(getTreeElement());\n\t\t \t}\n\t\t }", "@Override\n public void mouseClicked(MouseEvent e)\n {\n super.mouseClicked(e);\n // Only left button clicks are allowed\n if ( e.getButton() != LEFT_BUTTON )\n {\n return;\n }\n // Only single and double left clicks are supported\n final int clickCount = e.getClickCount();\n if ( clickCount == 1 )\n {\n if ( lastPressedPerson == null )\n {\n if ( lastSelectedPerson != null )\n {\n // User wants to clear last selected node\n lastSelectedPerson.deselect();\n lastSelectedPerson = null;\n }\n }\n else\n {\n if ( lastSelectedPerson == null )\n {\n // User wants to select the first node\n lastSelectedPerson = lastPressedPerson;\n lastSelectedPerson.select();\n }\n else\n {\n // User already selected a node and now selects another node\n // or deselect the last selected node\n if ( !lastSelectedPerson.equals(lastPressedPerson) )\n {\n lastSelectedPerson.deselect();\n lastPressedPerson.select();\n lastSelectedPerson = lastPressedPerson;\n }\n else\n {\n lastSelectedPerson.deselect();\n lastSelectedPerson = null;\n }\n }\n }\n }\n else if ( clickCount == 2 )\n {\n if ( lastSelectedPerson != null )\n {\n lastSelectedPerson.deselect();\n }\n lastSelectedPerson = null;\n //\n if ( lastPressedPerson == null )\n {\n // User double-clicked on empty place, so he wants to create a new node here\n profileFrame.createNewProfile(camera.toRealX(e.getX()), camera.toRealY(e.getY()));\n }\n else\n {\n // User double-clicked on a node, so he wants to see its profile\n profileFrame.updateProfile(lastPressedPerson);\n }\n }\n }", "public TheWindow(BinarySearchTree tree)\r\n { \r\n \r\n //frame.setLayout(null); \r\n this.tree = tree;\r\n nodeLocations = new HashMap();\r\n subtreeSizes = new HashMap();\r\n insert.addActionListener(this);\r\n delete.addActionListener(this);\r\n find.addActionListener(this);\r\n print.addActionListener(this);\r\n \r\n }", "void clickOnEmptyNode(Node node);", "public abstract boolean isInWidgetTree();", "public void valueChanged(TreeSelectionEvent e) \r\n {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n\r\n if (node == null) return;\r\n\r\n Object nodeInfo = node.getUserObject();\r\n Chat_TreeNode TreeNode;\r\n TreeNode=(Chat_TreeNode)nodeInfo;\r\n //Currently just displays node name,need to display description\r\n description.setDescription(TreeNode.getDesc());\r\n \r\n if (node.isLeaf()) \r\n {\r\n ChatID=TreeNode.toString();\r\n }\r\n else\r\n {\r\n \tChatID=\"\";\r\n \t\r\n }\r\n }", "@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }", "public void navNav() {\n container.getChildren().clear();\n Map<String, String> fxmlRoleRef = new HashMap<>();\n for (int j = 0; j < fxmlRef.length; j++) { fxmlRoleRef.put(roleRef[j], fxmlRef[j]);}\n Label lblWelcome = new Label(\"Velkommen \" + login.getUsername());\n Label lblLogout = new Label(\"Logg ut\");\n lblLogout.getStyleClass().add(\"underline\");\n lblLogout.setOnMouseClicked(event -> navLogin());\n AnchorPane topBar = new AnchorPane(lblWelcome, lblLogout);\n topBar.setLeftAnchor(lblWelcome, 0.0);\n topBar.setRightAnchor(lblLogout, 28.0);\n container.getChildren().add(topBar);\n List<String> roles = login.getRoles();\n for (int i = 0; i < roles.size(); i++) {\n if (fxmlRoleRef.containsKey(roles.get(i))) {\n final int ROLE_INDEX = i;\n Label lblRole = new Label(roles.get(i));\n lblRole.setOnMouseClicked(event -> {\n Stage stage = new Stage();\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"../fxml/\" + fxmlRoleRef.get(roles.get(ROLE_INDEX)) + \".fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (roles.get(ROLE_INDEX).equals(\"Tekniker\")) {\n Tec_Controller controller = fxmlLoader.<Tec_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n controller.init(Integer.parseInt(login.getPersonId()));\n } else if (roles.get(ROLE_INDEX).equals(\"Booking ansvarlig\")) {\n Bookres_Controller controller = fxmlLoader.<Bookres_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Manager\")) {\n Man_Controller controller = fxmlLoader.<Man_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n controller.init(Integer.parseInt(login.getPersonId()));\n } else if (roles.get(ROLE_INDEX).equals(\"Arrangør\")) {\n Arr_Controller controller = fxmlLoader.<Arr_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Booking sjef\")) {\n BoB_Controller controller = fxmlLoader.<BoB_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"PR manager\")) {\n PRres_Controller controller = fxmlLoader.<PRres_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Servering\")) {\n BoB_Controller controller = fxmlLoader.<BoB_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n } else if (roles.get(ROLE_INDEX).equals(\"Admin\")) {\n Adm_Controller controller = fxmlLoader.<Adm_Controller>getController();\n Scene scene = new Scene(root, 800, 600);\n stage.setScene(scene);\n }\n stage.show();\n });\n lblRole.getStyleClass().add(\"btnNav\");\n lblRole.setAlignment(Pos.CENTER);\n container.getChildren().add(lblRole);\n }\n }\n }", "public void nodeUnselected(ITreeNode node, ITree tree,boolean needNotifier);", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\n if (node == null)\n return;\n }", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "@Override\r\n public final void modelChanged() {\r\n DefaultMutableTreeNode root = null;\r\n if (getNodeModel() == null) { // do we even have a NodeModel?\r\n root = new DefaultMutableTreeNode(\"No Model\");\r\n } else { // check for empty cluster model before adding content to\r\n // tree\r\n ClusterViewData viewData = getNodeModel().getViewData();\r\n if (viewData == null) {\r\n root = new DefaultMutableTreeNode(\"Empty Model\");\r\n } else { // put cluster info into the tree\r\n root = new DefaultMutableTreeNode(viewData.getNrOfClusters() + \" Clusters\");\r\n DefaultMutableTreeNode clusterParent; // TreeNode for cluster\r\n // c\r\n for (int c = 0; c < viewData.getNrOfClusters(); c++) {\r\n // add information about coverage and center vector\r\n clusterParent = new ClusterMutableTreeNode(KMeansWSSNodeModel.CLUSTER + c + \" (coverage: \"\r\n + viewData.getClusterCoverage(c) + \")\", new RowKey(KMeansWSSNodeModel.CLUSTER + c));\r\n for (int i = 0; i < viewData.getNrOfUsedColumns(); i++) {\r\n clusterParent.add(new DefaultMutableTreeNode(\r\n viewData.getFeatureName(i) + \" = \" + viewData.getClusterCenter(c)[i]));\r\n }\r\n root.add(clusterParent);\r\n }\r\n }\r\n }\r\n // set new JTreeModel\r\n m_jtree.setModel(new DefaultTreeModel(root));\r\n }", "public void interactiveTreeXXEditingRToLDatePicker() {\r\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(new Date());\r\n root.add(new DefaultMutableTreeNode(new Date()));\r\n TreeModel model = new DefaultTreeModel(root);\r\n JTree tree = new JTree(model); \r\n tree.setEditable(true);\r\n DefaultTreeCellRenderer renderer = new DynamicIconRenderer();\r\n tree.setCellRenderer(renderer);\r\n DefaultTreeEditor treeCellEditor = new DefaultTreeEditor(new DatePickerCellEditor());\r\n tree.setCellEditor(treeCellEditor);\r\n JXTree xTree = new JXTree(model);\r\n xTree.setCellRenderer(renderer);\r\n xTree.setEditable(true);\r\n xTree.setCellEditor(new DefaultTreeEditor(new DatePickerCellEditor()));\r\n\r\n final JXFrame frame = wrapWithScrollingInFrame(tree, xTree, \"XXEditing(DatePicker): compare tree and xtree\");\r\n Action toggleComponentOrientation = new AbstractAction(\"toggle orientation\") {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n ComponentOrientation current = frame.getComponentOrientation();\r\n if (current == ComponentOrientation.LEFT_TO_RIGHT) {\r\n frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n } else {\r\n frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n\r\n }\r\n\r\n }\r\n\r\n };\r\n addAction(frame, toggleComponentOrientation);\r\n frame.setVisible(true);\r\n \r\n }", "public void actionPerformed(ActionEvent evt) {\n\t\t\t\tDefaultMutableTreeNode selected = (DefaultMutableTreeNode) tree\n\t\t\t\t\t\t.getLastSelectedPathComponent();\n\t\t\t\tif (selected == null) return;\n\t\t\t\t\n\t\t\t\t// Identify the parent of the selected node; we are not allowing\n\t\t\t\t// the root node to be removed\n\t\t\t\tif (selected.getParent() == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// User the models remove method to remove the selected node\n\t\t\t\ttModel.removeNodeFromParent(selected);\n\t\t\t}", "private void initialize() {\n frame = new JFrame();\n trSource = new JTree();\n DefaultTreeModel treeModel = (DefaultTreeModel) trSource.getModel();\n treeModel.setRoot(new DefaultMutableTreeNode(\"Nothing\"));\n treeModel.reload();\n\n // ((DefaultTreeModel)trSource.getModel().getRoot())\n frame.setBounds(100, 100, 700, 600);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n\n frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n\n mnFile = new JMenu(\"File\");\n menuBar.add(mnFile);\n\n mntmOpen = new JMenuItem(\"Open\");\n mntmOpen.addActionListener((ActionEvent e) -> {\n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a File\");\n chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n FileNameExtensionFilter wRebecaFilter = new FileNameExtensionFilter(\n \"wireless Rebeca for dynamic topology(.wRebeca)\", \"wRebeca\");\n FileNameExtensionFilter bRebecaFilter = new FileNameExtensionFilter(\n \"broadcasting Rebeca for static topology(.bRebeca)\", \"bRebeca\");\n chooser.addChoosableFileFilter(bRebecaFilter);\n chooser.addChoosableFileFilter(wRebecaFilter);\n if (chooser.showOpenDialog(mntmOpen) == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"CurrentDirectory: \" + chooser.getCurrentDirectory());\n System.out.println(\"SelectedFile: \" + chooser.getSelectedFile());\n filePath = chooser.getSelectedFile().getPath();\n inputFile = chooser.getSelectedFile();\n try {\n FileReader inputReader = new FileReader(filePath);\n textArea.read(inputReader, null);\n List<String> codeLines = Files.readAllLines(inputFile.toPath());\n if (inputFile.toString().matches(\".*.rebeca\")) {\n compileInfo.getInstance().setClassic(true);\n } else if (inputFile.toString().matches(\".*.wrebeca\")) {\n compileInfo.getInstance().setDynamic(true);\n } else {\n compileInfo.getInstance().setDynamic(false);\n }\n DefaultMutableTreeNode r = createCodeTree(codeLines);\n DefaultTreeModel treeModel1 = (DefaultTreeModel) trSource.getModel();\n treeModel1.setRoot(r);\n treeModel1.reload();\n mnVerification.setEnabled(false);\n mntmCompile.setEnabled(true);\n mntmCreateStateSpace.setEnabled(false);\n }catch (FileNotFoundException e1) {\n }catch (IOException e1) {\n // TODO Auto-generated catch block\n }\n }\n });\n mntmOpen.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n\n }\n });\n\n JMenuItem mntmNew = new JMenuItem(\"New\");\n mntmNew.addActionListener((ActionEvent e) -> {\n if (filePath != null) {\n // save\n saveFile();\n // new\n inputFile = null;\n filePath = null;\n try {\n File file = new File(\"newFile.txt\");\n if (!Files.exists(file.toPath())) {\n file.createNewFile();\n }\n textArea.read(new FileReader(\"newFile.txt\"), null);\n treeModel.setRoot(new DefaultMutableTreeNode(\"Nothing\"));\n treeModel.reload();\n } catch (IOException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n });\n mnFile.add(mntmNew);\n mnFile.add(mntmOpen);\n\n mntmSave = new JMenuItem(\"Save\");\n mntmSave.addActionListener((ActionEvent e) -> {\n saveFile();\n });\n mnFile.add(mntmSave);\n\n JMenuItem mntmExit = new JMenuItem(\"Exit\");\n mntmExit.addActionListener((ActionEvent e) -> {\n System.exit(0);\n });\n mnFile.add(mntmExit);\n\n mnSource = new JMenu(\"Run\");\n menuBar.add(mnSource);\n\n mntmCompile = new JMenuItem(\"Compile\");\n mntmCompile.setEnabled(false);\n mntmCompile.addActionListener((ActionEvent e) -> {\n if (inputFile == null) {\n saveFile();\n }\n if (inputFile != null) {\n compile = new frmCompile(errorList, frame);\n System.out.println(\"configure compiling options\");\n compile.showFrm(filePath);\n }\n // compile.showFrm();\n });\n mnSource.add(mntmCompile);\n\n mntmCreateStateSpace = new JMenuItem(\"Create State Space\");\n mntmCreateStateSpace.setEnabled(false);\n mntmCreateStateSpace.addActionListener((ActionEvent e) -> {\n if (compileInfo.getInstance().isMcrl()) {\n if (!compileInfo.getInstance().isClts()) {\n compileInfo.getInstance().setLts(true);\n }\n compileInfo.getInstance().setMcrl(false);\n }\n create_stateSpace();\n });\n mnSource.add(mntmCreateStateSpace);\n mnVerification = new JMenu(\"Verification\");\n mnVerification.setEnabled(false);\n mnSource.add(mnVerification);\n\n JMenuItem mntmInvariant = new JMenuItem(\"Invariant\");\n mntmInvariant.addActionListener((ActionEvent e) -> {\n load_invariant();\n compileInfo.getInstance().setMcrl(false);\n compileInfo.getInstance().setLts(true);\n //create_stateSpace();\n });\n mnVerification.add(mntmInvariant);\n\n JMenuItem mntmMcrl = new JMenuItem(\"mcrl\");\n mntmMcrl.addActionListener((ActionEvent e) -> {\n compileInfo.getInstance().setMcrl(true);\n compileInfo.getInstance().setLts(false);\n String pkgName = inputFile.getName().toString().split(\"\\\\.\")[0];\n String inputDirctory = inputFile.getParentFile().toString();\n \n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a File\");\n chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n FileNameExtensionFilter formulaFilter = new FileNameExtensionFilter(\"textual\tµ-Calculus(.mcf)\",\n \"mcf\");\n chooser.setFileFilter(formulaFilter);\n if (chooser.showOpenDialog(mntmOpen) == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"getSelectedFile() : \" + chooser.getSelectedFile());\n try {\n Files.deleteIfExists(Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"));\n } catch (IOException e2) {\n // TODO Auto-generated catch block\n e2.printStackTrace();\n }\n if (create_stateSpace()) {\n new Thread(new Runnable() {\n public void run() {\n while (!Files.exists(\n Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"))) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n try {\n String command = \"\";\n if (Files.exists(\n Paths.get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.aut\"))) {\n command = \"lts2pbes \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.aut\" + \"\\\" \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.pbes\" + \"\\\" --data=\\\"\" + inputDirctory + \"/\"\n + pkgName + \"/Output/state_space.mcrl2\" + \"\\\" --formula=\\\"\"\n + chooser.getSelectedFile().getPath() + \"\\\"\";\n System.out.println(command);\n runProcess(command);\n if (Files.exists(Paths\n .get(inputDirctory + \"/\" + pkgName + \"/Output/stateSpaceMcrl.pbes\"))) {\n command = \"pbes2bool \\\"\" + inputDirctory + \"/\" + pkgName\n + \"/Output/stateSpaceMcrl.pbes\"\n + \"\\\" --erase=none --rewriter=jitty --search=breadth-first --strategy=0 --verbose\";\n System.out.println(command);\n runProcess(command);\n }\n }\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n }).start();\n }\n }\n });\n mnVerification.add(mntmMcrl);\n\n JMenu mnHelp = new JMenu(\"Help\");\n menuBar.add(mnHelp);\n\n JMenuItem mntmUserManual = new JMenuItem(\"User Manual\");\n mnHelp.add(mntmUserManual);\n mntmUserManual.addActionListener((ActionEvent e) -> { \n \n if (Desktop.isDesktopSupported()) {\n // File in user working directory, System.getProperty(\"user.dir\");\n File file = new File(\"UserManual.pdf\");\n if (!file.exists()) {\n // In JAR\n InputStream inputStream = ClassLoader.getSystemClassLoader()\n .getResourceAsStream(\"UserManual.pdf\");\n // Copy file\n OutputStream outputStream;\n try { \n outputStream = new FileOutputStream(file);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = inputStream.read(buffer)) > 0) {\n outputStream.write(buffer, 0, length);\n }\n outputStream.flush();\n outputStream.close();\n inputStream.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n try {\n java.awt.Desktop.getDesktop().open(file);\n } catch (IOException ex) {\n Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n// try { \n// File file = new File(getClass().getClassLoader().getResource(\"UserManual.pdf\").getFile());\n// java.awt.Desktop.getDesktop().open(file);\n// } catch (IOException ex) {\n// Logger.getLogger(wRebeca.class.getName()).log(Level.SEVERE, null, ex);\n// }\n });\n \n JMenuItem mntmAbout = new JMenuItem(\"About\");\n mnHelp.add(mntmAbout);\n mntmAbout.addActionListener((ActionEvent e) -> { \n JOptionPane.showMessageDialog(frame, \"https://github.com/b-yousefi/wRebeca\",\"About\", 1);\n });\n \n JPanel cpCenter = new JPanel(new BorderLayout());\n frame.setContentPane(cpCenter);\n JPanel cp = new JPanel(new BorderLayout());\n textArea = new RSyntaxTextArea(20, 60);\n textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);\n textArea.setCodeFoldingEnabled(true);\n sp = new RTextScrollPane(textArea);\n // cp.add(sp);\n JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);\n cp.add(splitPane, BorderLayout.CENTER);\n splitPane.setLeftComponent(sp);\n\n JSplitPane splitPaneV = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, trSource, cp);\n\n cpCenter.add(splitPaneV);\n\n JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n tabbedPane.setPreferredSize(new Dimension(tabbedPane.getSize().width, (int) (frame.getHeight() * 0.3)));\n splitPane.setRightComponent(tabbedPane);\n\n JTextArea txtrOutput = new JTextArea();\n PrintStream printStream = new PrintStream(new CustomOutputStream(txtrOutput));\n System.setOut(printStream);\n System.setErr(printStream);\n JScrollPane scrollPaneOut = new JScrollPane();\n tabbedPane.addTab(\"Output\", null, scrollPaneOut, null);\n scrollPaneOut.setViewportView(txtrOutput);\n\n JScrollPane scrollPane = new JScrollPane();\n\n tabbedPane.addTab(\"Errors\", null, scrollPane, null);\n errorList = new JTable();\n scrollPane.setViewportView(errorList);\n errorList.setModel(new DefaultTableModel(new Object[][]{}, new String[]{\"Line\", \"Description\"}));\n\n errorList.getColumnModel().getColumn(1).setPreferredWidth(548);\n\n trSource.addTreeSelectionListener((TreeSelectionEvent e) -> {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) trSource.getLastSelectedPathComponent();\n \n /* if nothing is selected */\n if (node == null) {\n return;\n }\n \n /* retrieve the node that was selected */\n // Object nodeInfo = node.getUserObject();\n // textArea.setCaret(new Caret());\n System.out.println(textArea.getCaretLineNumber());\n \n // .setActiveLineRange(20, 25);\n // .setSelectedOccurrenceText(\"Node\");\n // .setSelectionStart(25);\n try {\n textArea.addLineHighlight(25, Color.CYAN);\n } catch (BadLocationException e1) {\n // TODO Auto-generated catch block\n }\n // getui\n });\n\n }", "public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}", "public void mousePressed(MouseEvent me) {\n if (me.getComponent() == JustclustJFrame.classInstance.justclustJPanel) {\r\n\r\n // get the current Data instance for the following code to use\r\n int currentCustomGraphEditorIndex = JustclustJFrame.classInstance.justclustJTabbedPane.getSelectedIndex();\r\n Data data;\r\n if (currentCustomGraphEditorIndex >= 0) {\r\n data = Data.data.get(currentCustomGraphEditorIndex);\r\n } else {\r\n data = new Data();\r\n }\r\n\r\n int x = me.getX();\r\n int y = me.getY();\r\n // the coordinates are those for the buttons in the toolbar\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.detailsButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.detailsButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.detailsButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.detailsButtonCoordinates.y + 39) {\r\n // the network details button will only be accessible when a network\r\n // has been created\r\n if (data.networkNodes != null) {\r\n if (NetworkDetailsJDialog.classInstance == null || !NetworkDetailsJDialog.classInstance.isShowing()) {\r\n // if there has never been a NetworkDetailsJDialog or\r\n // the last one was closed, a new one is created\r\n new NetworkDetailsJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a NetworkDetailsJDialog is already open, this gets\r\n // the focus\r\n NetworkDetailsJDialog.classInstance.setAlwaysOnTop(true);\r\n NetworkDetailsJDialog.classInstance.toFront();\r\n NetworkDetailsJDialog.classInstance.requestFocus();\r\n NetworkDetailsJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.nodesButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.nodesButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.nodesButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.nodesButtonCoordinates.y + 39) {\r\n // the network Nodes button will only be accessible when a network\r\n // has been created\r\n if (data.networkNodes != null) {\r\n if (NetworkNodesJDialog.classInstance == null || !NetworkNodesJDialog.classInstance.isShowing()) {\r\n // if there has never been a NetworkNodesJDialog or\r\n // the last one was closed, a new one is created\r\n new NetworkNodesJDialog(JustclustJFrame.classInstance, 0, new ArrayList<Integer>());\r\n } else {\r\n // if a NetworkNodesJDialog is already open, this gets\r\n // the focus\r\n NetworkNodesJDialog.classInstance.setAlwaysOnTop(true);\r\n NetworkNodesJDialog.classInstance.toFront();\r\n NetworkNodesJDialog.classInstance.requestFocus();\r\n NetworkNodesJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.edgesButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.edgesButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.edgesButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.edgesButtonCoordinates.y + 39) {\r\n // the network Edges button will only be accessible when a network\r\n // has been created\r\n if (data.networkNodes != null) {\r\n if (NetworkEdgesJDialog.classInstance == null || !NetworkEdgesJDialog.classInstance.isShowing()) {\r\n // if there has never been a NetworkEdgesJDialog or\r\n // the last one was closed, a new one is created\r\n new NetworkEdgesJDialog(JustclustJFrame.classInstance, 0, new ArrayList<Integer>());\r\n } else {\r\n // if a NetworkEdgesJDialog is already open, this gets\r\n // the focus\r\n NetworkEdgesJDialog.classInstance.setAlwaysOnTop(true);\r\n NetworkEdgesJDialog.classInstance.toFront();\r\n NetworkEdgesJDialog.classInstance.requestFocus();\r\n NetworkEdgesJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.clustersButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.clustersButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.clustersButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.clustersButtonCoordinates.y + 39) {\r\n // the network Clusters button will only be accessible when the\r\n // current network has been clustered\r\n if (data.networkClusters != null) {\r\n if (NetworkClustersJDialog.classInstance == null || !NetworkClustersJDialog.classInstance.isShowing()) {\r\n // if there has never been a NetworkClustersJDialog or\r\n // the last one was closed, a new one is created\r\n new NetworkClustersJDialog(JustclustJFrame.classInstance, 0, new ArrayList<Integer>());\r\n } else {\r\n // if a NetworkClustersJDialog is already open, this gets\r\n // the focus\r\n NetworkClustersJDialog.classInstance.setAlwaysOnTop(true);\r\n NetworkClustersJDialog.classInstance.toFront();\r\n NetworkClustersJDialog.classInstance.requestFocus();\r\n NetworkClustersJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.searchButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.searchButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.searchButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.searchButtonCoordinates.y + 39) {\r\n // the search network button will only be accessible when a\r\n // network has been created\r\n if (data.networkNodes != null) {\r\n if (SearchNetworkJDialog.classInstance == null || !SearchNetworkJDialog.classInstance.isShowing()) {\r\n // if there has never been a SearchNetworkJDialog or\r\n // the last one was closed, a new one is created\r\n new SearchNetworkJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a SearchNetworkJDialog is already open, this gets\r\n // the focus\r\n SearchNetworkJDialog.classInstance.setAlwaysOnTop(true);\r\n SearchNetworkJDialog.classInstance.toFront();\r\n SearchNetworkJDialog.classInstance.requestFocus();\r\n SearchNetworkJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.filterButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.filterButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.filterButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.filterButtonCoordinates.y + 39) {\r\n // the filter Clusters button will only be accessible when the\r\n // current network has been clustered\r\n if (data.networkClusters != null && data.graphShown) {\r\n if (FilterClustersJDialog.classInstance == null || !FilterClustersJDialog.classInstance.isShowing()) {\r\n // if there has never been a FilterClustersJDialog or\r\n // the last one was closed, a new one is created\r\n new FilterClustersJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a FilterClustersJDialog is already open, this gets\r\n // the focus\r\n FilterClustersJDialog.classInstance.setAlwaysOnTop(true);\r\n FilterClustersJDialog.classInstance.toFront();\r\n FilterClustersJDialog.classInstance.requestFocus();\r\n FilterClustersJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.overrepresentationAnalysisButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.overrepresentationAnalysisButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.overrepresentationAnalysisButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.overrepresentationAnalysisButtonCoordinates.y + 39) {\r\n // the over-representation analysis button will only be accessible when the\r\n // current network has been clustered\r\n if (data.networkClusters != null) {\r\n if (OverrepresentationAnalysisJDialog.classInstance == null || !OverrepresentationAnalysisJDialog.classInstance.isShowing()) {\r\n // if there has never been a OverrepresentationAnalysisJDialog or\r\n // the last one was closed, a new one is created\r\n new OverrepresentationAnalysisJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a OverrepresentationAnalysisJDialog is already open, this gets\r\n // the focus\r\n OverrepresentationAnalysisJDialog.classInstance.setAlwaysOnTop(true);\r\n OverrepresentationAnalysisJDialog.classInstance.toFront();\r\n OverrepresentationAnalysisJDialog.classInstance.requestFocus();\r\n OverrepresentationAnalysisJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.heatMapButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.heatMapButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.heatMapButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.heatMapButtonCoordinates.y + 39) {\r\n // the heat map button will only be accessible when a network\r\n // has been created\r\n if (data.networkNodes != null) {\r\n if (HeatMapJDialog.classInstance == null || !HeatMapJDialog.classInstance.isShowing()) {\r\n // if there has never been a HeatMapJDialog or\r\n // the last one was closed, a new one is created\r\n new HeatMapJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a HeatMapJDialog is already open, this gets\r\n // the focus\r\n HeatMapJDialog.classInstance.setAlwaysOnTop(true);\r\n HeatMapJDialog.classInstance.toFront();\r\n HeatMapJDialog.classInstance.requestFocus();\r\n HeatMapJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.microarrayHeatMapButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.microarrayHeatMapButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.microarrayHeatMapButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.microarrayHeatMapButtonCoordinates.y + 39) {\r\n // the microarry heat map button will only be accessible when a network\r\n // has been created with microarray data\r\n if (data.networkNodes != null && data.microarrayData) {\r\n if (MicroarrayHeatMapJDialog.classInstance == null || !MicroarrayHeatMapJDialog.classInstance.isShowing()) {\r\n // if there has never been a MicroarrayHeatMapJDialog or\r\n // the last one was closed, a new one is created\r\n new MicroarrayHeatMapJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a MicroarrayHeatMapJDialog is already open, this gets\r\n // the focus\r\n MicroarrayHeatMapJDialog.classInstance.setAlwaysOnTop(true);\r\n MicroarrayHeatMapJDialog.classInstance.toFront();\r\n MicroarrayHeatMapJDialog.classInstance.requestFocus();\r\n MicroarrayHeatMapJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.dendrogramButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.dendrogramButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.dendrogramButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.dendrogramButtonCoordinates.y + 39) {\r\n // the dendrogram button will only be accessible when the\r\n // current network has been clustered\r\n if (data.networkClusters != null) {\r\n if (DendrogramJDialog.classInstance == null || !DendrogramJDialog.classInstance.isShowing()) {\r\n // if there has never been a DendrogramJDialog or\r\n // the last one was closed, a new one is created\r\n new DendrogramJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a DendrogramJDialog is already open, this gets\r\n // the focus\r\n DendrogramJDialog.classInstance.setAlwaysOnTop(true);\r\n DendrogramJDialog.classInstance.toFront();\r\n DendrogramJDialog.classInstance.requestFocus();\r\n DendrogramJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n }\r\n if (x >= JustclustJFrame.classInstance.justclustJPanel.managePluginsButtonCoordinates.x\r\n && x <= JustclustJFrame.classInstance.justclustJPanel.managePluginsButtonCoordinates.x + 39\r\n && y - 2 >= JustclustJFrame.classInstance.justclustJPanel.managePluginsButtonCoordinates.y\r\n && y - 2 <= JustclustJFrame.classInstance.justclustJPanel.managePluginsButtonCoordinates.y + 39) {\r\n if (ManagePluginsJDialog.classInstance == null || !ManagePluginsJDialog.classInstance.isShowing()) {\r\n // if there has never been a ManagePluginsJDialog or\r\n // the last one was closed, a new one is created\r\n new ManagePluginsJDialog(JustclustJFrame.classInstance);\r\n } else {\r\n // if a ManagePluginsJDialog is already open, this gets\r\n // the focus\r\n ManagePluginsJDialog.classInstance.setAlwaysOnTop(true);\r\n ManagePluginsJDialog.classInstance.toFront();\r\n ManagePluginsJDialog.classInstance.requestFocus();\r\n ManagePluginsJDialog.classInstance.setAlwaysOnTop(false);\r\n }\r\n }\r\n\r\n }\r\n\r\n }" ]
[ "0.6340852", "0.6298224", "0.62595606", "0.612669", "0.60954374", "0.6087375", "0.60762674", "0.60714686", "0.60471326", "0.60359305", "0.60302234", "0.60275793", "0.6000629", "0.59567106", "0.5923496", "0.5901253", "0.5864302", "0.5862665", "0.5861225", "0.58584535", "0.5814104", "0.5806414", "0.57915884", "0.57729536", "0.576785", "0.5767481", "0.57608575", "0.5722112", "0.5720347", "0.5712", "0.56941295", "0.5688123", "0.5649343", "0.5638211", "0.56321526", "0.56296426", "0.56287646", "0.5623726", "0.5623382", "0.56228715", "0.5619693", "0.56180197", "0.5615989", "0.56138134", "0.5606588", "0.5604635", "0.55903226", "0.55898196", "0.55774033", "0.5567524", "0.5549116", "0.55444187", "0.5541291", "0.55397683", "0.5536793", "0.55230296", "0.55166763", "0.5510449", "0.5499589", "0.54980767", "0.54964405", "0.54883796", "0.5485043", "0.5484303", "0.5483219", "0.5475132", "0.54618055", "0.5455132", "0.5448488", "0.54399323", "0.54346204", "0.5424346", "0.54233545", "0.5421618", "0.5410925", "0.53976387", "0.5395591", "0.5386722", "0.5381483", "0.5381148", "0.5380899", "0.5376989", "0.5375214", "0.5368129", "0.5367566", "0.5361261", "0.5359064", "0.53404814", "0.5336235", "0.5335594", "0.5335376", "0.53323865", "0.5324258", "0.53152806", "0.53108925", "0.5308904", "0.5303252", "0.5303045", "0.5299684", "0.5292558" ]
0.5666648
32
Entity Inspector This function gets called when a user changes a value or fires a function in the ui
void entityValueChange(String name, String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void selectedEntityChanged(String name);", "protected abstract void showEditedEntity(Entity e);", "void trigger(Entity e);", "@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "private void fireValueChange(boolean b) {\n \t\n\t\t\n\t}", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.changeScreen(RPGMain.DEBUG);\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.changeScreen(RPGMain.DEBUG);\n }", "void selectedSimulationEntityChange(SimulationTreeNode node);", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }", "void onChange( T newValue );", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void updateEntity();", "void onChangeEvent(CarPropertyValue value);", "@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\t//TODO if scenario => is editing && is moving\r\n\t\t//TODO get selected entity\r\n\t\t//TODO if selected entity != null\r\n\t\t//TODO scale selected entity by scaleFactor\r\n\t}", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\n public void update(Observable o, Object arg) {\n this.currentSelectedEntity = EntityObserver.selected;\n manageComponentVisibility();\n \n if (objectPanel.isVisible()) {\n setType();\n setPosition();\n setEntityDampening();\n setEntityReflection();\n setEntityRotation();\n \n if (colorPanel.isVisible()) {\n manageLights(EntityObserver.selected);\n }\n }\n }", "protected void fireChangeEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CHANGE));\n\t}", "public void onInventoryChanged();", "public void willbeUpdated() {\n\t\t\n\t}", "void setChangeListener(EntityChangeListener<T> changeListener);", "public void scenarioChanged();", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\tbuttonSound.play((game.setting.sfxVol()*(game.setting.masterVol()/100))/100);\n\t\t\t\t//screen.getActions().makeArt(typeSelBox.getSelectedIndex(), subjectSelBox.getSelectedIndex());\n\t\t\t\t\n\t\t\t\t// Call player actor to make art\n\t\t\t\tGameScreen screen = (GameScreen)game.getScreen();\n\t\t\t\t\n\t\t\t\t// If you can make art, make art\n\t\t\t\tif(screen.getActions().canMakeArt(typeSelBox.getSelectedIndex()))\t\n\t\t\t\t\tscreen.getPlayer().makeArt(typeSelBox.getSelectedIndex(), subjectSelBox.getSelectedIndex());\n\n\t\t\t\tclosePopups();\n\t\t\t}", "@Override\n\tpublic Object Execute() {\n\t\tCCMLogDiff target = (CCMLogDiff) this.facet.getTarget();\n\t\tString parameter = this.facet.getParameters()[0].toString();\n\n\t\tString behaviorName = this.facet.getBehaviorName();\n\t\tif (behaviorName == null) {\n\t\t\tbehaviorName = SystemConstants.BEHAVIOR_CLICK;\n\t\t}\n\t\tswitch (behaviorName.toLowerCase()) {\n\t\tcase CustomizedBehaviorConstants.LOG_IS_CHANGED:\n\t\t\treturn target.isChanged();\n\t\tdefault:\n\t\t\treturn super.Execute();\n\t\t}\n\t}", "public void fieldChanged(Field field, int context) {\n}", "void update(CE entity);", "@Override\n public void detectAndSendChanges()\n {\n super.detectAndSendChanges();\n \n ((TileAstralInfuser) this.worldObj.getBlockTileEntity(this.posX, this.posY, this.posZ)).setInventorySlotContents(5,\n ((TileAstralInfuser) this.worldObj.getBlockTileEntity(this.posX, this.posY, this.posZ)).getResult());\n }", "protected abstract Entity getEditedEntity();", "@Override\n\t\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\t\trealArrs.clear();\n\t\t\t\t\t// remove old temp\n\t\t\t\t\tif (icoTemp != null)\n\t\t\t\t\t\ticoTemp = null;\n\t\t\t\t\t// reborn\n\t\t\t\t\tif (tfModel.equals(\"\"))\n\t\t\t\t\t\ttfModel.setText(\"{}\");\n\t\t\t\t\treBorn(tfModel.getText());\n\t\t\t\t\t// hide dialog\n\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t}", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }", "@Override\npublic void userInputUpdated(boolean newVal) {\n\t\n}", "public void visualChange();", "void onModelChange();", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tmHandler.sendEmptyMessage(1);\n\t\t\tLog.i(\"message\", \"dataChange\");\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "@Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n WeaponCreatorUi.this.setUi(\"menu\");\n \n }", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\t\t\r\n\t}", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(gameScreen);\n }", "public void fireChange() {\n fireChange(new ChangeEvent(source));\n }", "public void entityInstanceChanged(EntityInstance e, int signal)\r\n\t{\n\r\n\t\tswitch (signal) {\r\n\t\tcase TaListener.POSITION_SIGNAL:\r\n\t\tcase TaListener.BOUNDS_SIGNAL:\r\n\t\tcase TaListener.SIZE_SIGNAL:\r\n\t\t\te.setEntityBounds();\r\n\t\t\tm_flags |= (REFILL_EDGES_FLAG | RESHADE_FLAG | REPAINT_FLAG);\r\n\t\tdefault:\r\n\t\t\te.repaint();\r\n\t}\t}", "public void stateChanged(ChangeEvent e) {\n\t\tupdatePits();\n\t\tSystem.out.println(\"Player 0 score: \" + model.getMancalas()[0]);\n\t\tSystem.out.println(\"Player 1 score: \" + model.getMancalas()[1]);\n\t\tleftScore.setText( Integer.toString(model.getMancalas()[1]));\n\t\trightScore.setText( Integer.toString(model.getMancalas()[0]));\n\t\tSystem.out.println(\"It is now player: \" + model.getPlayer() + \"'s turn\");\n\t\t\n\t}", "@Override\n public void modelPropertyChange(final PropertyChangeEvent e) {\n \n /* Update Status Line */\n \n if (e.getPropertyName().equals(DefaultController.STATUS)) {\n String newStatus = e.getNewValue().toString();\n if (!status.getText().equals(newStatus))\n status.setText(newStatus);\n }\n \n /* Shot Missed (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER1_SHOT_MISSED) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER2_SHOT_MISSED) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n splash.play();\n \n /* Present Dialog Message */\n \n JOptionPane.showMessageDialog(this, \"Your shot was a MISS!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_HIT) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_HIT) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot HIT a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit and Sunk opponent's ship (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_SUNK) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_SUNK) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot SANK a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Game Over (Player 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_GAME_OVER) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_GAME_OVER) && currentPlayer == 2) ) {\n \n /* Play Sound (if sound is enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Congratulations!!!!\\nPlayer \" + currentPlayer + \" won the game.\");\n \n }\n \n \n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public abstract void setValueAction(Object value);", "protected void onChange_DeathRisk() {\n onChange_DeathRisk_xjal( DeathRisk );\n }", "void willDisplayUpdate(String change) throws RemoteException;", "@Override\r\n\tpublic void onEntityHit(LivingEntity ent) {\n\r\n\t}", "public void fieldChanged(Field field, int context) {\n \tAnalyticsSingleton.GetInstance().LogEvent(\"Screen Basic\", \"Generate Dog\");\n \n \tString[] names = { \"Laimo\", \"Smokey\", \"Lucy\", \"Fred\", \"Boy\", \"Cute\", \"Butch\", \"Alpha\" };\n \t\n LblName.setText(names[new Random(System.currentTimeMillis()).nextInt(6)]);\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }", "@DISPID(-2147412091)\n @PropGet\n java.lang.Object onbeforeupdate();", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "void instanceChanged();", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "void valueChanged(T oldValue, T newValue);", "public default void edit(PlayerEntity playerIn, SpellData dataIn, World worldIn){ }", "public void onEntityMove(Entity entity) {\n\n }", "public void onChangedMind();", "public void setModified();", "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = android.databinding.adapters.TextViewBindingAdapter.getTextString(mboundView4);\n // localize variables for thread safety\n // viewModel.obRealAmt\n android.databinding.ObservableField<java.lang.String> viewModelObRealAmt = null;\n // viewModel.obRealAmt != null\n boolean viewModelObRealAmtJavaLangObjectNull = false;\n // viewModel\n ys.app.pad.viewmodel.ModifyServiceDetailViewModel viewModel = mViewModel;\n // viewModel != null\n boolean viewModelJavaLangObjectNull = false;\n // viewModel.obRealAmt.get()\n java.lang.String viewModelObRealAmtGet = null;\n\n\n\n viewModelJavaLangObjectNull = (viewModel) != (null);\n if (viewModelJavaLangObjectNull) {\n\n\n viewModelObRealAmt = viewModel.obRealAmt;\n\n viewModelObRealAmtJavaLangObjectNull = (viewModelObRealAmt) != (null);\n if (viewModelObRealAmtJavaLangObjectNull) {\n\n\n\n\n viewModelObRealAmt.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "@Override\n\t\t\t\t\tpublic void changed(ObservableValue arg0, Object arg1,\n\t\t\t\t\t\t\tObject arg2) {\n\t\t\t\t\t\tif (arg2.toString() == \"库存盘点\") {// 库存盘点\n\t\t\t\t\t\t\tcheckCommodityui de = new checkCommodityui();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tde.display(Job, name, id);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (arg2.toString() == \"库存查看\") {// 库存查看\n\t\t\t\t\t\t\tCommodityInformationui c = new CommodityInformationui();\n\t\t\t\t\t\t\tc.display(Job, name, id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\tpublic void onInventoryChanged() {\n\t}", "public void executeEvent()\n {\n\t\tString name;\n\t\tdouble newValue;\n\n //searches through the list of properties\n for(Property property : propertyList)\n {\n name = property.getName();\n if(name.equals(propertyName))\n {\n newValue = property.getValue();\n\t\t\t\tnewValue *= INCREASE_RATE;\n\t\t\t\tproperty.setValue(newValue);\n }\n }\n }", "@Override\n\t\t\t\t\tpublic void changed(ObservableValue arg0, Object arg1,\n\t\t\t\t\t\t\tObject arg2) {\n\t\t\t\t\t\tif (arg2.toString() == \"报溢单\") {// 报溢单\n\t\t\t\t\t\t\tOverflow de = new Overflow();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tde.display(Job, name, id);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (arg2.toString() == \"报损单\") {// 报损单\n\t\t\t\t\t\t\tloss l = new loss();\n\t\t\t\t\t\t\tl.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"报警单\") {// 报警单\n\t\t\t\t\t\t\tAlarm a = new Alarm();\n\t\t\t\t\t\t\ta.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"赠送单\") {// 赠送单\n\t\t\t\t\t\t\tGift g = new Gift();\n\t\t\t\t\t\t\tg.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"草稿箱\") {// 草稿箱\n\t\t\t\t\t\t\tdrafts d = new drafts();\n\t\t\t\t\t\t\td.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"查看单据\") {// 查看单据\n\t\t\t\t\t\t\tGetReceipt g = new GetReceipt();\n\t\t\t\t\t\t\tg.display(Job, name, id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void onLivingUpdate()\n {\n this.updateArmSwingProgress();\n float var1 = this.getBrightness(1.0F);\n\n if (var1 > 0.5F)\n {\n this.entityAge += 2;\n }\n\n super.onLivingUpdate();\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new OptionsScreen(game));\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n // If player press setting's button, it change to settings screen\n game.goSettingsScreen();\n }", "@Override\n public void onChanged() {\n }", "@Override\n public void entityRPClassUpdate(RPObject entity) {\n }", "@Override\n public void onChange() {\n java.lang.String callbackArg_0 = android.databinding.adapters.TextViewBindingAdapter.getTextString(mboundView3);\n // localize variables for thread safety\n // viewModel.obTypeName.get()\n java.lang.String viewModelObTypeNameGet = null;\n // viewModel.obTypeName\n android.databinding.ObservableField<java.lang.String> viewModelObTypeName = null;\n // viewModel\n ys.app.pad.viewmodel.ModifyServiceDetailViewModel viewModel = mViewModel;\n // viewModel != null\n boolean viewModelJavaLangObjectNull = false;\n // viewModel.obTypeName != null\n boolean viewModelObTypeNameJavaLangObjectNull = false;\n\n\n\n viewModelJavaLangObjectNull = (viewModel) != (null);\n if (viewModelJavaLangObjectNull) {\n\n\n viewModelObTypeName = viewModel.obTypeName;\n\n viewModelObTypeNameJavaLangObjectNull = (viewModelObTypeName) != (null);\n if (viewModelObTypeNameJavaLangObjectNull) {\n\n\n\n\n viewModelObTypeName.set(((java.lang.String) (callbackArg_0)));\n }\n }\n }", "public void update(E entity);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "protected void changeValue() {\n \tif(value == null)\n \t\tvalue = true;\n \telse if(!value) { \n \t\tif (mode == Mode.THREE_STATE)\n \t\t\tvalue = null;\n \t\telse\n \t\t\tvalue = true;\n \t}else\n \t\tvalue = false;\n \t\n \tsetStyle();\n \t\n \tValueChangeEvent.fire(this, value);\n }", "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "@Override\n public void edit(User user) {\n }", "@Override\n protected void onBind() {\n registerHandler(clusterPresenter.addDataSelectionHandler(event -> {\n if (!EqualsUtil.isEquals(clusterPresenter.getSelectedEntityReference(), getEntity().getClusterRef())) {\n setDirty(true);\n }\n }));\n\n registerHandler(editExpressionPresenter.addDirtyHandler(dirty -> setDirty(true)));\n\n registerHandler(pipelinePresenter.addDataSelectionHandler(selection -> {\n if (!Objects.equals(pipelinePresenter.getSelectedEntityReference(), defaultExtractionPipeline)) {\n setDirty(true);\n defaultExtractionPipeline = pipelinePresenter.getSelectedEntityReference();\n }\n }));\n }", "@Override\r\n\t\t\tpublic void changed(ObservableValue<? extends String> arg0, String arg1, String arg2) {\n\t\t\t\tif (Integer.parseInt(arg2)%10==0 && Integer.parseInt(arg2)!=0 && !isUndoMove){ // executes only if it's not \"undo move\" (should show no effects when go backwards)\r\n\t\t\t\t\tspecialBrickEffect=true; // reference to activate the special brick event \r\n\t\t\t\t\tcountDown = STARTTIME; \r\n\t\t\t\t\tstartCountDown(); // start to count down for 5 seconds\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider difficultySlider = (JSlider) e.getSource();\n\t\n\t\tint newDifficulty = difficultySlider.getValue();\n\t\tmodel.getLevelTemplate().setProbConst(newDifficulty);\n\t}", "public void changed (ChangeEvent event, Actor actor) {\n\t \t\t\t\tfloat percent = (float)theCasing.maintenance/(float)ST.getJarMaintenance( theCasing.strain.temp_required, Assets.player.inc_temp );\n\t \t\t\t\tif ( theCasing.location==ST.FC )\n\t \t\t\t\t\t percent = (float)theCasing.maintenance/(float)ST.getJarMaintenance( theCasing.strain.temp_required, Assets.player.fc_temp );\n\t \t\t\t\tAssets.player.increaseXP( (int)(ST.MAINTENANCE_XP*ST.logisticSpread( percent ) ) );\n\t \t\t\t\t\n\t \t\t\t\tST.focus( pane, maintenanceBar );\n\t \t\t\t\t\n\t \t\t\t\t// reduce the jar's maintenance to 0\n\t \t\t\t\ttheCasing.maintenance = 0;\n\t \t\t\t}", "void editAssetValue(int newVal);", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "public void onValueChange(ValueChangeEvent event) {\n rating.setReadOnly(true);\n getMessagePanel().clear();\n saveVote(voteForId);\n }", "@Override\n public void onChange(boolean selfChange) {\n onChange(selfChange, null);\n }", "public void executeAction()\n\t{\t\t\n\t\tthis.getUser().setHealth(this.getUser().getHealth()+HEALTH);\n\t}", "public void gxlValueChanged(GXLValueModificationEvent e) {\n\t}", "public void change(GeometricalObject object);", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (!edited) {\n\t\t\t\t\t\topenEdit();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcloseEdit();\n\t\t\t\t\t\tif (newly) {\n\t\t\t\t\t\t\tnewly = false;\n\t\t\t\t\t\t\tvo = getUserVO();\n\t\t\t\t\t\t\tUserController.add(vo);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tUserController.modify(vo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public void onChange(String key, String value) throws Exception;", "@Override\n\tpublic void onEntityDamaged(EntityDamageEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}", "public void onRelationshipChanged();", "@Override\r\n public void stateChanged(ChangeEvent e) {\n }", "@Override\n \t\t\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n \n \t\t\t}" ]
[ "0.69578904", "0.65017915", "0.63605195", "0.6284089", "0.62787634", "0.62787634", "0.62787634", "0.62787634", "0.6273038", "0.61170304", "0.607215", "0.607215", "0.59951484", "0.59798163", "0.5930742", "0.5889409", "0.5852433", "0.5852433", "0.58405", "0.5837157", "0.58319795", "0.5830841", "0.5826349", "0.58256644", "0.57830036", "0.57699883", "0.5729624", "0.5719425", "0.5707735", "0.57041425", "0.57036203", "0.5675824", "0.5661272", "0.5658931", "0.5646459", "0.56437814", "0.56411827", "0.56389314", "0.5638062", "0.5622982", "0.5596137", "0.55860907", "0.557933", "0.5572579", "0.5572579", "0.55696094", "0.5566479", "0.5565696", "0.5563129", "0.5552948", "0.5537389", "0.55309373", "0.5526168", "0.55254453", "0.5524199", "0.5521159", "0.55199516", "0.5516396", "0.5507948", "0.55051553", "0.5504015", "0.55010676", "0.5499506", "0.54989153", "0.5497692", "0.5493315", "0.5491945", "0.5487449", "0.54801255", "0.5480076", "0.5479312", "0.547385", "0.5472268", "0.54644006", "0.5462378", "0.5460138", "0.54591435", "0.54567075", "0.545369", "0.54466635", "0.54380697", "0.5425704", "0.5422507", "0.54219043", "0.5410649", "0.5389414", "0.5387998", "0.5385722", "0.53796625", "0.5376421", "0.5372671", "0.5369551", "0.53672487", "0.53666055", "0.53648335", "0.53645796", "0.53590333", "0.5357827", "0.534995", "0.5347956" ]
0.7417669
0
Disconnect all consumers attached to the dispatcher and close this subscription.
@Override public synchronized CompletableFuture<Void> disconnect() { CompletableFuture<Void> disconnectFuture = new CompletableFuture<>(); // block any further consumers on this subscription IS_FENCED_UPDATER.set(this, TRUE); (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close()) .thenRun(() -> { log.info("[{}][{}] Successfully disconnected and closed subscription", topicName, subName); disconnectFuture.complete(null); }).exceptionally(exception -> { IS_FENCED_UPDATER.set(this, FALSE); if (dispatcher != null) { dispatcher.reset(); } log.error("[{}][{}] Error disconnecting consumers from subscription", topicName, subName, exception); disconnectFuture.completeExceptionally(exception); return null; }); return disconnectFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}", "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "void unsubscribeAll();", "public void closeAll()\n {\n closeAllTopicPublishers();\n closeAllTopicSubscribers();\n closeAllTopicDurableSubscribers();\n }", "public void close() throws InterruptedException {\n LOGGER.info(\"Closing consumers\");\n queuePollService.stop();\n if (executor != null) {\n executor.awaitTermination(DEFAULT_MAX_LONG_POLLING_IN_SECONDS, SECONDS);\n }\n }", "public void closeAllTopicSubscribers()\n {\n for(int ii = 0; ii < topicSubscriberList.size(); ii++)\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicSubscriberList.get(ii);\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "public void unregister() {\n this.dispatcher.context.unregisterReceiver(this);\n }", "public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }", "protected void destroyConsumer() {\n MessageConsumer c = consumer;\n consumer = null;\n JmsUtils.closeMessageConsumer(c);\n }", "public void closeAllTopicDurableSubscribers()\n {\n Iterator keys = topicDurableSubscriberMap.keySet().iterator();\n while(keys.hasNext())\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicDurableSubscriberMap.get(keys.next());\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public void close() {\n if (subscriptionAdminClient != null) {\n try {\n subscriptionAdminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up subscription admin client\", e);\n }\n }\n if (adminClient != null) {\n try {\n adminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up admin client\", e);\n }\n }\n if (pubsubChannel != null) {\n pubsubChannel.shutdown();\n }\n }", "@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }", "public void shutdown() {\n\tif (publisher != null)\n\t publisher.shutdown();\n\n\tif (handle != null) {\n\t handle.shutdown();\n\t}\n }", "public void doDisconnect() {\n synchronized (getStreamSyncRoot()) {\n Object[] streams = streams();\n if (!(streams == null || streams.length == 0)) {\n for (Object stream : streams) {\n if (stream instanceof PulseAudioStream) {\n try {\n ((PulseAudioStream) stream).disconnect();\n } catch (IOException e) {\n }\n }\n }\n }\n }\n super.doDisconnect();\n }", "public void close() {\n // close socket\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n // ignore\n }\n }\n\n socket = null;\n in = null;\n out = null;\n\n // try to stop dispather\n if (dispatcher != null) {\n dispatcher.setStopped(true);\n dispatcher.interrupt();\n }\n\n // notify all blocked thread\n if (requests != null) {\n for (Element element : requests.values()) {\n if (element.lock != null) {\n synchronized (element.lock) {\n element.lock.notify();\n }\n } else {\n // TODO notify persistent search listeners\n }\n }\n requests.clear();\n requests = null;\n }\n\n }", "public void shutdown() {\n\t\ttry {\n\t\t\ttsub.close();\n\t\t} catch (JMSException e) {\n\t\t\tSystem.out.println(\"> Error while closing the topic subscriber\");\n\t\t}\n\t\tArrayList<String> list = msgList.removeAllMessages();\n\t\tfor (String s : list) {\n\t\t\t//TODO save unprocessed messages to file\n\t\t}\n\t}", "public synchronized void close() {\n\t\tSystem.out.println(\"Closing consumer.\");\n\t\tclosed = true;\n\t\tconsumer.close();\n\t}", "private void unsubscribe() {\n subscriber=null;\n }", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void shutdown()\n {\n log.info(\"Stop accepting new events\");\n\n // Disable realtime hook\n forwardDispatcher.stop();\n\n // Disable writer to disk\n spoolDispatcher.shutdown();\n }", "void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }", "public void close() throws SubscriptionException {\n\t\tList<ISubscription<T>> list = new ArrayList<ISubscription<T>>();\n\t\t\n\t\tsynchronized(activeSubscriptions) {\n\t\t\tlist.addAll(activeSubscriptions);\n\t\t}\n\t\t\n\t\tfor(ISubscription<T> s : list) {\n\t\t\ts.cancel();\n\t\t}\n\t}", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "public void close() {\n\t\tif (this.messageConsumer != null) {\n\t\t\ttry {\n\t\t\t\tthis.messageConsumer.close();\n\t\t\t} catch (JMSException ex) {\n\t\t\t\tlog.error(\"Failed to close MessageConsumer.\", ex);\n\t\t\t} finally {\n\t\t\t\tthis.messageConsumer = null;\n\t\t\t}\n\t\t}\n\t}", "public synchronized void closeAllConnections() {\n\t\tstop();\n\t}", "public void close() {\n synchronized (lock) {\n info(\"Closing all sync producers\");\n Iterator<SyncProducer> iter = syncProducers.values().iterator();\n while (iter.hasNext())\n iter.next().close();\n }\n }", "public synchronized void close() {\n // The synchronized modifier avoids concurrent append and close operations\n\n if(this.closed)\n return;\n\n LogLog.debug(\"Closing appender [\"+name+\"].\");\n this.closed = true;\n\n try {\n if(topicSession != null)\n\ttopicSession.close();\n if(topicConnection != null)\n\ttopicConnection.close();\n } catch(Exception e) {\n LogLog.error(\"Error while closing JMSAppender [\"+name+\"].\", e);\n }\n // Help garbage collection\n topicPublisher = null;\n topicSession = null;\n topicConnection = null;\n }", "public void closeAllTopicPublishers()\n {\n for(int ii = 0; ii < topicPublisherList.size(); ii++)\n {\n TopicPublisher publisher = (TopicPublisher)topicPublisherList.get(ii);\n try\n {\n publisher.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "void unsubscribe(){}", "private void cleanupReceiver ()\n {\n if (receiver != null)\n {\n unregisterReceiver(receiver);\n receiver = null;\n }\n }", "@After\n public void releaseConnection() throws JMSException {\n consumer.setMessageListener(msg -> { });\n // and shut the listening machinery down\n LOGGER.debug(this.getClass().getName() + \" releasing JMS connection.\");\n consumer.close();\n jmsSession.close();\n connection.close();\n }", "public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }", "public synchronized void closeReceivers() {\n if (closed) return;\n closed = true;\n for (SpanReceiver rcvr : receivers.values()) {\n try {\n rcvr.close();\n } catch (IOException e) {\n LOG.warn(\"Unable to close SpanReceiver correctly: \" + e.getMessage(), e);\n }\n }\n receivers.clear();\n }", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\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 unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }", "public void shutdown() {\n if (pipelineExecutor != null) {\n ExecutorUtil.shutdownAndAwaitTermination(pipelineExecutor);\n }\n\n if (mHandler != null) {\n mHandler.removeCallbacksAndMessages(null);\n }\n }", "public final synchronized void dispose()\n {\n if (!disposed)\n {\n try\n {\n try\n {\n this.disconnect();\n }\n catch (Exception e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage(), e);\n }\n\n this.doDispose();\n\n if (workManager != null)\n {\n workManager.dispose();\n }\n }\n finally\n {\n disposed = true;\n }\n }\n }", "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 disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }", "private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {\n CompletableFuture<Void> deleteFuture = new CompletableFuture<>();\n\n log.info(\"[{}][{}] Unsubscribing\", topicName, subName);\n\n CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();\n\n if (closeIfConsumersConnected) {\n this.disconnect().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(ex -> {\n log.error(\"[{}][{}] Error disconnecting and closing subscription\", topicName, subName, ex);\n closeSubscriptionFuture.completeExceptionally(ex);\n return null;\n });\n } else {\n this.close().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(exception -> {\n log.error(\"[{}][{}] Error closing subscription\", topicName, subName, exception);\n closeSubscriptionFuture.completeExceptionally(exception);\n return null;\n });\n }\n\n // cursor close handles pending delete (ack) operations\n closeSubscriptionFuture.thenCompose(v -> topic.unsubscribe(subName)).thenAccept(v -> {\n synchronized (this) {\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenRun(() -> {\n log.info(\"[{}][{}] Successfully deleted subscription\", topicName, subName);\n deleteFuture.complete(null);\n }).exceptionally(ex -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, ex);\n deleteFuture.completeExceptionally(ex);\n return null;\n });\n }\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, exception);\n deleteFuture.completeExceptionally(exception);\n return null;\n });\n\n return deleteFuture;\n }", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "public void stopPolling() {\n\t\tconsumer.wakeup();\n\t\tlogger.info(\"Stopped polling\");\n\t}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "public void shutdown() {\n running = false;\n try {\n selector.close();\n } catch (IOException e) {\n Log.warning(\"IOException when shutting down SelectorController\", e);\n }\n }", "public void close() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (globalLock) {\n isRunning = false;\n\n if (reconnectionThread != null) {\n reconnectionThread.interrupt();\n }\n\n webSocketConnection.closeInternal();\n }\n }\n }).start();\n }", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "void disconnect_pull_consumer ();", "public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }", "public void close()\n {\n myListenerHelper.close();\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n myProcessorsLock.writeLock().lock();\n try\n {\n for (final GeometryProcessor<? extends Geometry> proc : myGeometryProcessorsMap.values())\n {\n myProcessorBuilder.getPickManager().removeGeometries(proc.getGeometries());\n proc.close();\n }\n myGeometryProcessorsMap.clear();\n myInactiveGeometries.clear();\n recalculateCoveredTimeSpans();\n myGeometryProcessorsSnapshot = Collections.emptyList();\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n myUnprocessedGeometryLock.lock();\n try\n {\n removeTimeListeners();\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}", "public void disconnect() {\n\t\tif (sock != null) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} finally {\n\t\t\t\tsock = null;\n\t\t\t}\n\t\t}\n\t\toutStream.reset();\n\t\tdisconnected();\n\t}", "public void closeConnections() throws MessagingException;", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "public void close() {\n if (!mCompositeDisposable.isDisposed()) mCompositeDisposable.dispose();\n }", "public void stop(boolean unsubscribe) {\n if (unsubscribe) {\n stopMessageReceiver();\n\n try {\n if (consumer != null)\n consumer.close();\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"JMS consumer for JMS destination '\"\n + destinationJndiName + \"' received an error while closing its underlying MessageConsumer: \"\n + e.getMessage());\n }\n\n if (durableConsumers) {\n try {\n TopicSession topicSession = (TopicSession) session;\n topicSession.unsubscribe(durableSubscriptionName);\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"The proxied durable JMS subscription with name, \"\n + durableSubscriptionName + \" failed to unsubscribe : \"\n + e.toString());\n }\n }\n }\n super.stop();\n }", "private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }", "@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "void unsubscribe();", "public void shutdown() {\n if (this.service instanceof PicassoExecutorService) {\n this.service.shutdown();\n }\n this.downloader.shutdown();\n this.dispatcherThread.quit();\n Picasso.HANDLER.post(new Runnable() {\n /* class com.squareup.picasso.Dispatcher.AnonymousClass1 */\n\n public void run() {\n Dispatcher.this.receiver.unregister();\n }\n });\n }", "public void cancelAll() {\n this.disposables.dispose();\n }", "public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "public void disconnect() {\n\t\ttry {\n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\n\t}", "private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "protected void disconnect() {\n try {\n if (connection != null) {\n connection.close();\n }\n connection = null;\n queryRunner = null;\n thread = null;\n queries = null;\n } catch (SQLException ex) {\n Logger.getGlobal().log(Level.WARNING, ex.getMessage(), ex);\n }\n }", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public void disconnect() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mApplicationContext);\n prefs.edit().putBoolean(\"xmpp_logged_in\", false).commit();\n\n if (mConnection != null) {\n mConnection.disconnect();\n }\n\n mConnection = null;\n // Unregister the message broadcast receiver.\n if (uiThreadMessageReceiver != null) {\n mApplicationContext.unregisterReceiver(uiThreadMessageReceiver);\n uiThreadMessageReceiver = null;\n }\n }", "@Override\n public void stop() {\n rabbitMQConnectionFactoryManager.stop();\n super.stop();\n }", "public synchronized void shutdown() {\n // mark this as no longer running\n active = false;\n\n // close the socket\n try {\n if (socketNode != null) {\n socketNode.close();\n socketNode = null;\n }\n } catch (Exception e) {\n getLogger().info(\"Excpetion closing socket\", e);\n // ignore for now\n }\n\n // stop the connector\n if (connector != null) {\n connector.interrupted = true;\n connector = null; // allow gc\n }\n if (advertiseViaMulticastDNS) {\n zeroConf.unadvertise();\n }\n }", "public void closeIdleConnections()\n {\n \n }", "public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}", "public synchronized void shutDown() {\n if (this.wakeLock != null) {\n /* Wakelock are ref counted by default. We disable this feature here to ensure that\n * the power lock is released upon shutdown.\n */ \n wakeLock.setReferenceCounted(false);\n wakeLock.release();\n }\n context.unregisterReceiver(broadcastReceiver);\n releaseGlobalContext();\n }", "public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}", "public void dismissAll() {\n mNotificationManager.cancelAll();\n }", "@CallByThread(\"Netty EventLoop\")\n void runCancel() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "public FutureDone<Void> shutdown() {\n // set shutdown flag for UDP and TCP, if we acquire a write lock, all read locks are blocked as well\n writeUDP.lock();\n writeTCP.lock();\n try {\n if (shutdownTCP || shutdownUDP) {\n shutdownFuture().setFailed(\"already shutting down\");\n return shutdownFuture();\n }\n shutdownUDP = true;\n shutdownTCP = true;\n } finally {\n writeTCP.unlock();\n writeUDP.unlock();\n }\n\n recipients.close().addListener(new GenericFutureListener<ChannelGroupFuture>() {\n @Override\n public void operationComplete(final ChannelGroupFuture future) throws Exception {\n if (!semaphoreUPD.tryAcquire(maxPermitsUDP)) {\n LOG.error(\"Cannot shutdown, as connections (UDP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (UDP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (UDP) are still alive\");\n }\n if (!semaphoreTCP.tryAcquire(maxPermitsTCP)) {\n LOG.error(\"Cannot shutdown, as connections (TCP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (TCP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (TCP) are still alive\");\n }\n shutdownFuture().setDone();\n }\n });\n return shutdownFuture();\n }", "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "public void streamSubscriberClose(ISubscriberStream stream);", "@Override\n public void run() {\n Reference<? extends KafkaPublisher> ref = referenceQueue.poll();\n while (ref != null && isRunning()) {\n publishers.remove(ref).cancel();\n ref = referenceQueue.poll();\n }\n }", "public void close()\n {\n getConnectionManager().shutdown();\n }", "@Override\n\tpublic void close() {\n\t\tfor (Communication communication: listCommunication) {\n\t\t\tcommunication.close();\n\t\t}\n\t}", "public synchronized void close() {\n if (serialPort != null) {\n try {\n output.close();\n input.close();\n serialPort.removeEventListener();\n serialPort.close();\n connected = false;\n if (log != null) {\n log.close();\n log = null;\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n DisconnectedRS232Event event = new DisconnectedRS232Event();\n RS232ConnectionAPI.getInstance().notifyObservers(event);\n\n }\n }", "@Override\r\n public void stop() {\r\n\r\n _log.info(\"Start stoping the HornetQ connection channel\");\r\n for (String queue : queues) {\r\n Channel channel = channels.get(queue);\r\n try {\r\n Channels.fireStop(channel);\r\n } catch (HandlerException e) {\r\n _log.error(\"failed stop the channel queue [\" + queue + \"]\", e);\r\n }\r\n }\r\n _log.info(\"Finish stop the HornetQ connection channel\");\r\n\r\n }", "private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}", "private void shutdown(boolean forcible) {\n //TODO we need to start refusing send operations here (before doing a\n //final flush of the outgoing queues)\n for (SocketChannel channel : destinationToSocket.values()) {\n SelectionKey key = channel.keyFor(this.selector);\n\n /* If this is not a forcible shutdown, then we need to check each\n * TransmissionTracker's pending write queue, and make sure the\n * items in the queues get sent before shutdown happens. */\n if (forcible == false) {\n safeShutdown(key);\n }\n\n if (key != null) {\n disconnect(key);\n }\n }\n this.online = false;\n selector.wakeup();\n }", "public void shutdown() {\n for (AbstractController child : getChildren()) {\n child.shutdown();\n }\n }" ]
[ "0.66940683", "0.59836304", "0.59356266", "0.58941495", "0.5876159", "0.583815", "0.5743106", "0.57424915", "0.5741666", "0.56259704", "0.5619584", "0.5593498", "0.55924076", "0.55781823", "0.5560134", "0.5543871", "0.55281335", "0.55016744", "0.5484422", "0.54560155", "0.5422386", "0.53834075", "0.536083", "0.5355512", "0.5350988", "0.53340364", "0.53271085", "0.52913475", "0.5290844", "0.52813154", "0.5279471", "0.5262049", "0.526067", "0.5260664", "0.5249023", "0.5247963", "0.5247318", "0.52471024", "0.52455604", "0.5242856", "0.52385044", "0.52358073", "0.5220991", "0.52182066", "0.5177306", "0.5168646", "0.51666105", "0.5152192", "0.51399785", "0.51306033", "0.51262385", "0.51158786", "0.51155096", "0.5114826", "0.51094794", "0.5105352", "0.510277", "0.5102047", "0.50956017", "0.5094621", "0.5090955", "0.50855184", "0.5082577", "0.5071056", "0.50620836", "0.50606537", "0.50456494", "0.5044418", "0.503229", "0.5012007", "0.50091386", "0.49900377", "0.49898136", "0.49897364", "0.49702442", "0.49661624", "0.49614292", "0.49614292", "0.49610278", "0.4954426", "0.49520636", "0.49471357", "0.4942422", "0.49266535", "0.49259", "0.4924054", "0.49002972", "0.49001843", "0.48997572", "0.4896578", "0.48952186", "0.48937896", "0.4890639", "0.48870865", "0.48769164", "0.48738965", "0.48710877", "0.48697406", "0.4868463", "0.4867039" ]
0.6520854
1
Delete the subscription by closing and deleting its managed cursor if no consumers are connected to it. Handle unsubscribe call from admin layer.
@Override public CompletableFuture<Void> delete() { return delete(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {\n CompletableFuture<Void> deleteFuture = new CompletableFuture<>();\n\n log.info(\"[{}][{}] Unsubscribing\", topicName, subName);\n\n CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();\n\n if (closeIfConsumersConnected) {\n this.disconnect().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(ex -> {\n log.error(\"[{}][{}] Error disconnecting and closing subscription\", topicName, subName, ex);\n closeSubscriptionFuture.completeExceptionally(ex);\n return null;\n });\n } else {\n this.close().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(exception -> {\n log.error(\"[{}][{}] Error closing subscription\", topicName, subName, exception);\n closeSubscriptionFuture.completeExceptionally(exception);\n return null;\n });\n }\n\n // cursor close handles pending delete (ack) operations\n closeSubscriptionFuture.thenCompose(v -> topic.unsubscribe(subName)).thenAccept(v -> {\n synchronized (this) {\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenRun(() -> {\n log.info(\"[{}][{}] Successfully deleted subscription\", topicName, subName);\n deleteFuture.complete(null);\n }).exceptionally(ex -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, ex);\n deleteFuture.completeExceptionally(ex);\n return null;\n });\n }\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, exception);\n deleteFuture.completeExceptionally(exception);\n return null;\n });\n\n return deleteFuture;\n }", "void unsubscribe(Subscription subscription);", "private void unsubscribe() {\n subscriber=null;\n }", "void unsubscribe(){}", "@Override\n public void unsubscribe(ISubscriber subscriber) {\n subscribers.remove(subscriber);\n }", "private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.deleteSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n }", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "public void unsubscribe(String subscriptionId) {\n \n \t\tWebTarget wt = subscriptionsTarget.path(subscriptionId);\n \t\t\n \t\tResponse response = wt.request()\n \t\t\t .header(\"Authorization\", \"Bearer \" + playPlatformApiToken)\n \t\t\t .buildDelete()\n \t\t\t .invoke();\n \t\t\n \t\tlogger.debug(\"Unsubscribe response status : \"+response.getStatus());\n\t\tif (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {\n \t\t\tlogger.error(\"Unsubscription failed. HTTP Status Code: \"+response.getStatus());\n \t\t}\n\t\telse {\n \t\t\tsubscriptions.remove(subscriptionId);\n \t\t}\n \t\tresponse.close();\n \t}", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "public final void unsubscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (!sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is not subscribed to this topic\");\r\n }\r\n sessions.remove(session);\r\n afterUnsubscribe(session);\r\n }", "public void close() {\n if (subscriptionAdminClient != null) {\n try {\n subscriptionAdminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up subscription admin client\", e);\n }\n }\n if (adminClient != null) {\n try {\n adminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up admin client\", e);\n }\n }\n if (pubsubChannel != null) {\n pubsubChannel.shutdown();\n }\n }", "public void close() throws SubscriptionException {\n\t\tList<ISubscription<T>> list = new ArrayList<ISubscription<T>>();\n\t\t\n\t\tsynchronized(activeSubscriptions) {\n\t\t\tlist.addAll(activeSubscriptions);\n\t\t}\n\t\t\n\t\tfor(ISubscription<T> s : list) {\n\t\t\ts.cancel();\n\t\t}\n\t}", "void unsubscribe();", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "void removeSubscription(Topic topic, String clientID);", "public void removeOrDisconnectClient(String mqttClientChannelID, String unSubscribedTopic, String username,\n SubscriptionEvent action) throws MQTTException {\n\n log.info(\"Disconnecting channel for clientID: \" + mqttClientChannelID);\n\n Collection<MQTTSubscription> topicSubscriptionList;\n MQTTopics mqtTopics = topicSubscriptions.get(mqttClientChannelID);\n\n if (null != mqtTopics) {\n if (null == unSubscribedTopic) {\n //this means we need to remove all subscriptions relevant for the channel\n topicSubscriptionList = mqtTopics.getAllSubscriptionsForChannel();\n } else {\n topicSubscriptionList = new ArrayList<>();\n topicSubscriptionList.add(mqtTopics.getSubscription(unSubscribedTopic));\n }\n\n for (MQTTSubscription subscription : topicSubscriptionList) {\n //Will get the topic name bound for subscription\n String topic = subscription.getTopicName();\n //Will remove the subscriber off the list\n mqtTopics.removeSubscriber(topic);\n String subscriberChannelID = subscription.getSubscriberChannelID();\n UUID subscriberChannel = subscription.getSubscriptionChannel();\n boolean isCleanSession = subscription.isCleanSession();\n QOSLevel qos = subscription.getQOSLevel();\n //The corresponding subscription created cluster wide will be topic name and the local channel id\n //Will remove the subscriber cluster wide\n try {\n //Will indicate the disconnection of the topic\n if (action == SubscriptionEvent.DISCONNECT && MQTTUtils.isDurable(isCleanSession, qos.getValue())) {\n connector.disconnectSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n } else {\n //If un-subscribed we need to remove the subscription off\n connector.removeSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n }\n if (log.isDebugEnabled()) {\n final String message = \"Subscription with cluster id \" + subscriberChannelID + \" disconnected \" +\n \"from topic \" + topic;\n log.debug(message);\n }\n\n } catch (MQTTException ex) {\n //Should re state the connection of the subscriber back to the map\n mqtTopics.addSubscriber(unSubscribedTopic, subscription);\n final String error = \"Error occurred while removing the subscription \" + mqttClientChannelID;\n log.error(error, ex);\n throw ex;\n }\n }\n\n //Finally will check if there're any relevant subscriptions for the topic\n //If there arn't we could remove the entry\n if(mqtTopics.getAllSubscriptionsForChannel().isEmpty()){\n topicSubscriptions.remove(mqttClientChannelID);\n }\n } else {\n //If the connection is publisher based\n UUID publisherID = connector.removePublisher(mqttClientChannelID);\n if (null == publisherID) {\n log.warn(\"A subscriber or a publisher with Connection with id \" + mqttClientChannelID + \" cannot be \" +\n \"found to disconnect.\");\n }\n }\n }", "@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }", "public void stop(boolean unsubscribe) {\n if (unsubscribe) {\n stopMessageReceiver();\n\n try {\n if (consumer != null)\n consumer.close();\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"JMS consumer for JMS destination '\"\n + destinationJndiName + \"' received an error while closing its underlying MessageConsumer: \"\n + e.getMessage());\n }\n\n if (durableConsumers) {\n try {\n TopicSession topicSession = (TopicSession) session;\n topicSession.unsubscribe(durableSubscriptionName);\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"The proxied durable JMS subscription with name, \"\n + durableSubscriptionName + \" failed to unsubscribe : \"\n + e.toString());\n }\n }\n }\n super.stop();\n }", "void unsubscribe(String id);", "void wipeSubscriptions(String sessionID);", "public interface SubscriptionSession extends Session {\n\n /**\n * Closes this subscription session without closing the subscription\n * registered on the document repository.\n * The same subscription can be accessed later by another subscription session.\n */\n public void close();\n\n}", "private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqpUnsubscribeMessage =\n new AmqpUnsubscribeMessage(this.mqttEndpoint.clientIdentifier(), unsubscribe.topics());\n\n this.ssEndpoint.sendUnsubscribe(amqpUnsubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n this.mqttEndpoint.unsubscribeAcknowledge(messageId);\n\n // removing topics from local collection\n unsubscribe.topics().stream().forEach(topic -> {\n\n this.grantedQoSLevels.remove(topic);\n });\n\n LOG.info(\"UNSUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "public void onUnsubscribe() {\n\n }", "@DeleteMapping(\"/subscriptions/{id}\")\n @Timed\n public ResponseEntity<Void> deleteSubscription(@PathVariable String id) {\n log.debug(\"REST request to delete Subscription : {}\", id);\n subscriptionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n public void receive(SubscriptionDeletion event) {\n logger.info(\"###Received subscription deletion event with id:\" + event.getSubscription().getId());\n }", "@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }", "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "void unsubscribeAll();", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace);", "public void removeSubscriptionChannel(String id) {\n if (id == null) {\n return;\n }\n store.remove(id);\n }", "void delete(UnsubscribeRequest request);", "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n System.out.println(\"Channel unsubscribed at : \" + channel);\n }", "void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }", "public void deletePublisher(Publisher publisher) {\r\n log.info(\"deletePublisher - publisher.getContextId(): \" + publisher.getContextId());\r\n // remove first subscription from the other parent\r\n Set<Subscription> subscriptions = publisher.getSubscriptions();\r\n for (Iterator<Subscription> iterator = subscriptions.iterator(); iterator.hasNext();) {\r\n Subscription subscription = iterator.next();\r\n subscription.getSubscriber().removeSubscription(subscription);\r\n }\r\n genericDao.delete(publisher);\r\n }", "@Override\n public void unregister(Object subscriber) {\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace, \n @QueryMap DeleteCollectionNamespacedSubscription queryParameters);", "public void removeTopicDurableSubscriber(String name)\n {\n topicDurableSubscriberMap.remove(name);\n }", "public void removeSubscription(final String topic)\t\n\t{\n\t\tsynchronized (subscriptionControllers)\n\t\t{\n\t\t\tlogger.debug(\"Trying to remove subscription {}\", topic);\n\t\t\tfinal MqttSubscription subscription = subscriptionControllers.get(topic).getSubscription();\n\t\t\tsubscription.getConnection().unsubscribeAndRemove(subscription);\n\t\t\tsubscription.getStore().cleanUp();\n\t\t\tsubscriptionControllers.get(topic).onClose();\n\t\t\tTabUtils.requestClose(subscriptionControllers.get(topic).getTab());\n\t\t\tsubscriptionControllers.remove(topic);\n\t\t}\n\t}", "public void removeSubscriptions(String removeSub){\n\t subscriptions.remove(removeSub);\n\t}", "public synchronized void createDisconnectOrRemoveLocalSubscription(LocalSubscription subscription,\n SubscriptionChange type) throws AndesException {\n\n if (SubscriptionChange.ADDED == type) {\n localSubscriptionProcessor.addSubscription(subscription);\n\n //Store the subscription\n andesContextStore.storeDurableSubscription(subscription);\n log.info(\"Local subscription \" + type + \" \" + subscription.toString());\n\n } else if (SubscriptionChange.DELETED == type) {\n localSubscriptionProcessor.removeSubscription(subscription);\n\n removeSubscriptionDirectly(subscription);\n log.info(\"Local Subscription \" + type + \" \" + subscription.toString());\n\n } else if (SubscriptionChange.DISCONNECTED == type) {\n updateLocalSubscription(subscription);\n log.info(\"Local subscription \" + type + \" \" + subscription.toString());\n }\n\n // Update channel id map\n if (type == SubscriptionChange.ADDED) {\n channelIdMap.put(subscription.getChannelID(), subscription);\n } else { //@DISCONNECT or REMOVE\n UUID channelIDOfSubscription = subscription.getChannelID();\n //when we delete the mock durable topic subscription it has no underlying channel\n if (null != channelIDOfSubscription) {\n channelIdMap.remove(channelIDOfSubscription);\n }\n }\n\n }", "@Override\n public void onDestroy(){\n super.onDestroy();\n subscriptions.unsubscribe();\n }", "private void subscribeToDeleteEvents() {\n mDisposable.add(basketListAdapter.deleteItemSubject\n .observeOn(Schedulers.io())\n .flatMapCompletable(basketItemWithProduct -> mViewModel.deleteItemFromBasket(basketItemWithProduct.basketItem))\n .subscribeOn(AndroidSchedulers.mainThread())\n .subscribe(this::onItemDeleted, this::onItemDeleteFailed)\n );\n }", "void unsubscribe(Player player);", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\n public boolean deleteConsumer(consumer consumer)\n {\n boolean status = true;\n log.info(\"-------------------------------\");\n log.info(\"Using Hibernate Implementation\");\n log.info(\"-------------------------------\");\n log.info (\"deleteConsumer - ConsumerSvcHibernateImpl.java\");\n consumer appdb = consumer;\n Transaction tx = null;\n Session session = fetchSession();\n log.info (\"fetched session\");\n \n try \n {\n tx = session.beginTransaction();\n log.info (\"beginTransaction\");\n session.delete(appdb);\n log.info (\"session.delete(consumer passed in)\");\n log.info(\"consumer deleted. Check database for data not there!\");\n tx.commit();\n }\n catch(Exception e)\n {\n if (session.getTransaction() != null) {\n session.getTransaction().rollback();\n log.error (e.getClass() + \": \" + e.getMessage(), e);\n }\n }\n finally{\n session.close(); // added this line to fix session closing\n }\n return status;\n }", "public void removeSubscriptionDirectly(AndesSubscription subscriptionToRemove) throws AndesException {\n String destination = subscriptionToRemove.getSubscribedDestination();\n andesContextStore.removeDurableSubscription(subscriptionToRemove);\n if (log.isDebugEnabled()) {\n log.debug(\"Directly removed cluster subscription for \" + \"destination = \" + destination);\n }\n }", "public void remove(InnerSubscription<T> innerSubscription) {\r\n InnerSubscription<T>[] innerSubscriptionArr;\r\n InnerSubscription[] innerSubscriptionArr2;\r\n do {\r\n innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n int length = innerSubscriptionArr.length;\r\n if (length == 0) {\r\n break;\r\n }\r\n int i = -1;\r\n int i2 = 0;\r\n while (true) {\r\n if (i2 >= length) {\r\n break;\r\n } else if (innerSubscriptionArr[i2] == innerSubscription) {\r\n i = i2;\r\n break;\r\n } else {\r\n i2++;\r\n }\r\n }\r\n if (i >= 0) {\r\n if (length == 1) {\r\n innerSubscriptionArr2 = EMPTY;\r\n } else {\r\n InnerSubscription[] innerSubscriptionArr3 = new InnerSubscription[(length - 1)];\r\n System.arraycopy(innerSubscriptionArr, 0, innerSubscriptionArr3, 0, i);\r\n System.arraycopy(innerSubscriptionArr, i + 1, innerSubscriptionArr3, i, (length - i) - 1);\r\n innerSubscriptionArr2 = innerSubscriptionArr3;\r\n }\r\n } else {\r\n return;\r\n }\r\n } while (!this.subscribers.compareAndSet(innerSubscriptionArr, innerSubscriptionArr2));\r\n }", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "public void shutdown() {\n\t\ttry {\n\t\t\ttsub.close();\n\t\t} catch (JMSException e) {\n\t\t\tSystem.out.println(\"> Error while closing the topic subscriber\");\n\t\t}\n\t\tArrayList<String> list = msgList.removeAllMessages();\n\t\tfor (String s : list) {\n\t\t\t//TODO save unprocessed messages to file\n\t\t}\n\t}", "public void dispose() {\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.shutdown();\n }\n\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().unregisterLifecycleListener(this);\n }\n }\n\n Orient.instance().removeDbLifecycleListener(this);\n\n if (globalHook != null) {\n globalHook.shutdown(false);\n globalHook = null;\n }\n\n if (retainTask != null) {\n retainTask.cancel();\n }\n\n if (timer != null) {\n timer.cancel();\n }\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "public void streamSubscriberClose(ISubscriberStream stream);", "public void unsubscribe(String name, String clientId) throws RemoteException;", "@Override\n\tpublic void unsubscribe(Strategy strategy) {\n\t\t\n\t}", "public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}", "public void deleteSamSyndicator() {\r\n deletePublisher(TckPublisher.getSamPublisherId());\r\n }", "@Override\n protected synchronized void removeWrite(ChannelHandlerWriteSubscription subscription) {\n super.removeWrite(subscription);\n }", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "public synchronized void createDisconnectOrRemoveClusterSubscription(AndesSubscription subscription,\n SubscriptionChange type) throws AndesException {\n\n if (SubscriptionChange.ADDED == type) {\n clusterSubscriptionProcessor.addSubscription(subscription);\n } else if (SubscriptionChange.DELETED == type) {\n clusterSubscriptionProcessor.removeSubscription(subscription);\n } else if (SubscriptionChange.DISCONNECTED == type) {\n subscription.setHasExternalSubscriptions(false);\n clusterSubscriptionProcessor.updateSubscription(subscription);\n }\n }", "public void Unsubscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { //unsubscribe antoistoixi gia ena buslineid\n subscribedLists.remove(busLineID);\n Client client = subscribedThreads.get(busLineID);\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 6;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n Socket socket = subscribedSockets.get(busLineID);\n try {\n socket.close();\n } catch (IOException e) {\n }\n }", "@Override\n public void clearDB(DataBaseConnector contactsDB, DisposableObserver<String> clearDBSubscriber) {\n Observable<String> clearDBObservable = Observable.just(clearDBOperation(contactsDB));\n clearDBSubscriber = clearDBObservable.subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeWith(new DisposableObserver<String>() {\n @Override\n public void onComplete() {}\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n }\n\n @Override\n public void onNext(String value) { //called each time a new ViewModel is created\n\n }\n });\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "public ModelApiResponse deleteSubscription(String id) throws StatisticsException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn api.deleteSubscription(id);\r\n\t\t}\r\n\t\tcatch (ApiException ex)\r\n\t\t{\r\n\t\t\tthrow new StatisticsException(\"Cannot delete subscription\", ex);\r\n\t\t}\r\n\t}", "protected void destroyConsumer() {\n MessageConsumer c = consumer;\n consumer = null;\n JmsUtils.closeMessageConsumer(c);\n }", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "public interface Subscription {\n /**\n * Calling this will send the event to the subscribed service\n * @param event the event to transmit to the subscribed service\n */\n boolean onEvent(Event event);\n\n /**\n * Returns a stream of all subscribeRequests that are transmitted by the subbed service\n * @return a stream of subscribeRequests transmitted by subbed service\n */\n Observable<SubscribeRequest> getSubscribeRequestStream();\n\n /**\n * This completable will complete when the subscription is terminated for some reason (most likely a connection termination)\n * @return a completable that will complete when the subscription is terminated\n */\n Completable getCompletable();\n}", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "public void closeAllTopicSubscribers()\n {\n for(int ii = 0; ii < topicSubscriberList.size(); ii++)\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicSubscriberList.get(ii);\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "public void closeAllTopicDurableSubscribers()\n {\n Iterator keys = topicDurableSubscriberMap.keySet().iterator();\n while(keys.hasNext())\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicDurableSubscriberMap.get(keys.next());\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public void removeLocalSubscription(LocalSubscription subscription) throws AndesException {\n\n localSubscriptionProcessor.removeSubscription(subscription);\n\n removeSubscriptionDirectly(subscription);\n }", "public void unregister(Object aSubscriber)\r\n\t{\r\n\t\tfinal Iterator<SubscriberInfo> lIter = this.subscriberInfos.iterator();\r\n\t\twhile (lIter.hasNext())\r\n\t\t{\r\n\t\t\tfinal SubscriberInfo lInfo = lIter.next();\r\n\t\t\tif (lInfo.isGarbage() || lInfo.isForSpecifiedSubscriber(aSubscriber))\r\n\t\t\t{\r\n\t\t\t\tlIter.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }", "public void destroy() {\n/* 157 */ this.mDisposable.clear();\n/* */ }", "@Override\n public void unsubscribe(Entity e) {\n unsub_queue.add(e);\n }", "private void removeSubscriber(Function<? super E, Subscription> subscriber) {\n int index = -1;\n int i = 0;\n Iterator<Function<? super E, Subscription>> iter = subscribers.iterator();\n while (iter.hasNext() && index == -1) {\n Function<? super E, Subscription> s = iter.next();\n if (s == subscriber) {\n iter.remove();\n index = i;\n } else {\n i++;\n }\n }\n\n final int finalIndex = index;\n List<E> keys = new ArrayList<>(map.keySet());\n\n // if this subscriber is being removed, we no longer need to store\n // its corresponding subscription. Thus, it can be removed and unsubscribed\n keys.forEach(key -> map.get(key).remove(finalIndex).unsubscribe());\n }", "public interface Subscription {\n /**\n * Await cancelled.\n *\n * @throws InterruptedException the interrupted exception\n */\n void awaitCancelled() throws InterruptedException;\n\n /**\n * Await cancelled boolean.\n *\n * @param timeout the timeout\n * @param unit the unit\n * @return the boolean\n * @throws InterruptedException the interrupted exception\n */\n boolean awaitCancelled(long timeout, TimeUnit unit) throws InterruptedException;\n\n /**\n * Cancels this subscription. After this subscription has been cancelled. No more packets will be delivered to\n * the consumer.\n */\n void cancel();\n\n /**\n * Returns whether or not the subscription has been cancelled. @return the boolean\n *\n * @return the boolean\n */\n boolean isCancelled();\n }", "public abstract void unsubscribeImpl(String str, Resolver<Void> resolver);", "public void unsubscribe(String topic, String inboundPortUri) {\n\n\t}", "public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "private void release() {\n noxItemCatalog.release();\n noxItemCatalog.deleteObserver(catalogObserver);\n }", "@Test\n public void subscribe_unsubscribe() {\n String channelName = \"subscribe_unsubscribe_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* subscribe */\n MessageListener testListener = new MessageListener() {\n @Override\n public void onMessage(Message message) {\n }};\n channel.subscribe(\"test_event\", testListener);\n /* unsubscribe */\n channel.unsubscribe(\"test_event\", testListener);\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "public void deleteTopic(String nume, boolean notifySubscribers) throws RemoteException;", "public void unregister(Object subscriber)\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_bus.unregister(subscriber);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(TAG, \"Error in unregister: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n protected synchronized void removeReader(ChannelHandlerReadSubscription subscription) {\n super.removeReader(subscription);\n }", "@Override\n protected void onSubscribe() {\n Subscription s = subscription;\n Disposable d = Disposable.from(s);\n \n if (!TerminalAtomics.set(this, DISCONNECT, d)) {\n done = true;\n return;\n }\n \n connected = true;\n s.request(Flow.defaultBufferSize());\n }", "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "@Override\n\tpublic boolean deleteSubAccountAndSubScribe(int userId) {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tTransaction transaction = session.beginTransaction();\n\t\t\tTypedQuery query = session.createQuery(\"delete from Subscribe where subscriber.kullaniciid= :sub OR subaccount.kullaniciid= :suc\");\n\t\t\t\n\t\t\tquery.setParameter(\"sub\", userId);\n\t\t\t\n\t\t\tquery.setParameter(\"suc\", userId);\n\t\t\t\n\t\t\tquery.executeUpdate();\n\t\t\t\n\t\t\ttransaction.commit();\n\n\t\t\tsession.close();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void shutdown() {\n\tif (publisher != null)\n\t publisher.shutdown();\n\n\tif (handle != null) {\n\t handle.shutdown();\n\t}\n }", "@Override\n\tpublic void unregister(@NonNull Object lifecycle)\n\t{\n\t\tCompositeDisposable compositeDisposable = subscriptionsMap.remove(lifecycle);\n\t\tsubscriptionList.remove(lifecycle);\n\t\tif (compositeDisposable != null)\n\t\t{\n\t\t\tcompositeDisposable.dispose();\n\t\t}\n\t}", "public Builder clearSubscribe() {\n if (subscribeBuilder_ == null) {\n subscribe_ = messages.Facademessages.Subscribe.getDefaultInstance();\n onChanged();\n } else {\n subscribeBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000008);\n return this;\n }", "protected void unacknowledge() {\n\n ClientConsumer old = consumer;\n ClientSession oldSession = session;\n\n try {\n createSession();\n } catch (Exception e) {\n shutdown();\n throw new RuntimeException(e);\n\n } finally {\n try {\n old.close();\n } catch (ActiveMQException e) {\n }\n try {\n oldSession.close();\n } catch (ActiveMQException e) {\n }\n }\n }", "void unsubscribe(LogListener listener);", "public void syncUnsubscribe(String aSid)\n {\n SyncUnsubscribeOpenhomeOrgSubscriptionLongPoll1 sync = new SyncUnsubscribeOpenhomeOrgSubscriptionLongPoll1(this);\n beginUnsubscribe(aSid, sync.getListener());\n sync.waitToComplete();\n sync.reportError();\n }", "public boolean removeSubscription(AlertClassSubscription subscription) {\n\t\tif (subscription == null) { return false; }\n\t\treturn subs.remove(subscription);\n\t}", "@Override\n\tpublic void delete(Session sess, Subject sub) {\n\t\tsess.delete(sub);\n\t}", "public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}" ]
[ "0.6902147", "0.67019045", "0.6437361", "0.6224811", "0.6183925", "0.6168601", "0.6114826", "0.6088101", "0.6070818", "0.6047778", "0.60388386", "0.6013413", "0.5930529", "0.5895709", "0.58236146", "0.5820045", "0.57799786", "0.5742924", "0.5647183", "0.5620939", "0.5597662", "0.5593466", "0.55427134", "0.5530885", "0.5528591", "0.5522053", "0.5501129", "0.5479682", "0.53887033", "0.53858155", "0.53716063", "0.5364619", "0.5362862", "0.53554916", "0.53290105", "0.53177357", "0.531251", "0.5285626", "0.5268752", "0.5251719", "0.52516097", "0.5242788", "0.52210295", "0.52079594", "0.5196651", "0.51929647", "0.5169878", "0.5169032", "0.51669973", "0.51475257", "0.51316124", "0.51123255", "0.5092481", "0.50805956", "0.50774", "0.50697905", "0.5066193", "0.50611216", "0.5054517", "0.5047566", "0.5045856", "0.50280064", "0.5027345", "0.5022443", "0.5009405", "0.5006904", "0.5005815", "0.5004842", "0.4993632", "0.4965784", "0.49638066", "0.4951294", "0.4948772", "0.49478304", "0.49471223", "0.4945383", "0.49289507", "0.48911175", "0.48738024", "0.48694283", "0.4866462", "0.48574698", "0.4842352", "0.48414752", "0.48409006", "0.48342097", "0.4833204", "0.48288417", "0.48245132", "0.48236936", "0.4810063", "0.48002955", "0.4797267", "0.47896302", "0.47865576", "0.47860503", "0.47736904", "0.47713122", "0.4768282", "0.47632784", "0.47615626" ]
0.0
-1
Forcefully close all consumers and deletes the subscription.
@Override public CompletableFuture<Void> deleteForcefully() { return delete(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "public void closeAll()\n {\n closeAllTopicPublishers();\n closeAllTopicSubscribers();\n closeAllTopicDurableSubscribers();\n }", "public void close() {\n if (subscriptionAdminClient != null) {\n try {\n subscriptionAdminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up subscription admin client\", e);\n }\n }\n if (adminClient != null) {\n try {\n adminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up admin client\", e);\n }\n }\n if (pubsubChannel != null) {\n pubsubChannel.shutdown();\n }\n }", "public void closeAllTopicSubscribers()\n {\n for(int ii = 0; ii < topicSubscriberList.size(); ii++)\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicSubscriberList.get(ii);\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public void closeAllTopicDurableSubscribers()\n {\n Iterator keys = topicDurableSubscriberMap.keySet().iterator();\n while(keys.hasNext())\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicDurableSubscriberMap.get(keys.next());\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "protected void destroyConsumer() {\n MessageConsumer c = consumer;\n consumer = null;\n JmsUtils.closeMessageConsumer(c);\n }", "private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {\n CompletableFuture<Void> deleteFuture = new CompletableFuture<>();\n\n log.info(\"[{}][{}] Unsubscribing\", topicName, subName);\n\n CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();\n\n if (closeIfConsumersConnected) {\n this.disconnect().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(ex -> {\n log.error(\"[{}][{}] Error disconnecting and closing subscription\", topicName, subName, ex);\n closeSubscriptionFuture.completeExceptionally(ex);\n return null;\n });\n } else {\n this.close().thenRun(() -> {\n closeSubscriptionFuture.complete(null);\n }).exceptionally(exception -> {\n log.error(\"[{}][{}] Error closing subscription\", topicName, subName, exception);\n closeSubscriptionFuture.completeExceptionally(exception);\n return null;\n });\n }\n\n // cursor close handles pending delete (ack) operations\n closeSubscriptionFuture.thenCompose(v -> topic.unsubscribe(subName)).thenAccept(v -> {\n synchronized (this) {\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenRun(() -> {\n log.info(\"[{}][{}] Successfully deleted subscription\", topicName, subName);\n deleteFuture.complete(null);\n }).exceptionally(ex -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, ex);\n deleteFuture.completeExceptionally(ex);\n return null;\n });\n }\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n log.error(\"[{}][{}] Error deleting subscription\", topicName, subName, exception);\n deleteFuture.completeExceptionally(exception);\n return null;\n });\n\n return deleteFuture;\n }", "public void close() throws SubscriptionException {\n\t\tList<ISubscription<T>> list = new ArrayList<ISubscription<T>>();\n\t\t\n\t\tsynchronized(activeSubscriptions) {\n\t\t\tlist.addAll(activeSubscriptions);\n\t\t}\n\t\t\n\t\tfor(ISubscription<T> s : list) {\n\t\t\ts.cancel();\n\t\t}\n\t}", "public synchronized void close() {\n\t\tSystem.out.println(\"Closing consumer.\");\n\t\tclosed = true;\n\t\tconsumer.close();\n\t}", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "public void shutdown() {\n\t\ttry {\n\t\t\ttsub.close();\n\t\t} catch (JMSException e) {\n\t\t\tSystem.out.println(\"> Error while closing the topic subscriber\");\n\t\t}\n\t\tArrayList<String> list = msgList.removeAllMessages();\n\t\tfor (String s : list) {\n\t\t\t//TODO save unprocessed messages to file\n\t\t}\n\t}", "public void close() {\n synchronized (lock) {\n info(\"Closing all sync producers\");\n Iterator<SyncProducer> iter = syncProducers.values().iterator();\n while (iter.hasNext())\n iter.next().close();\n }\n }", "public void shutdown() {\n\tif (publisher != null)\n\t publisher.shutdown();\n\n\tif (handle != null) {\n\t handle.shutdown();\n\t}\n }", "public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}", "public void close() throws InterruptedException {\n LOGGER.info(\"Closing consumers\");\n queuePollService.stop();\n if (executor != null) {\n executor.awaitTermination(DEFAULT_MAX_LONG_POLLING_IN_SECONDS, SECONDS);\n }\n }", "public void closeAllTopicPublishers()\n {\n for(int ii = 0; ii < topicPublisherList.size(); ii++)\n {\n TopicPublisher publisher = (TopicPublisher)topicPublisherList.get(ii);\n try\n {\n publisher.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "void unsubscribeAll();", "public void close() {\n\t\tif (this.messageConsumer != null) {\n\t\t\ttry {\n\t\t\t\tthis.messageConsumer.close();\n\t\t\t} catch (JMSException ex) {\n\t\t\t\tlog.error(\"Failed to close MessageConsumer.\", ex);\n\t\t\t} finally {\n\t\t\t\tthis.messageConsumer = null;\n\t\t\t}\n\t\t}\n\t}", "public synchronized void close() {\n // The synchronized modifier avoids concurrent append and close operations\n\n if(this.closed)\n return;\n\n LogLog.debug(\"Closing appender [\"+name+\"].\");\n this.closed = true;\n\n try {\n if(topicSession != null)\n\ttopicSession.close();\n if(topicConnection != null)\n\ttopicConnection.close();\n } catch(Exception e) {\n LogLog.error(\"Error while closing JMSAppender [\"+name+\"].\", e);\n }\n // Help garbage collection\n topicPublisher = null;\n topicSession = null;\n topicConnection = null;\n }", "private void unsubscribe() {\n subscriber=null;\n }", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "@Override\n public void close() {\n while (!blocks.isEmpty()) {\n blocks.poll().clean();\n }\n }", "public void close() throws JMSException {\n\tcloseConsumer();\n\tcloseProducer();\n }", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "@Override\n public void close() {\n try {\n while (ftpBlockingQueue\n .iterator()\n .hasNext()) {\n FTPClient client = ftpBlockingQueue.take();\n ftpClientFactory.destroyObject(ftpClientFactory.wrap(client));\n }\n } catch (Exception e) {\n log.error(\"close ftp client ftpBlockingQueue failed...{}\", e.toString());\n }\n }", "public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }", "public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }", "static void destroyAll()\n {\n synchronized(allSchedulers)\n {\n // destroy all registered schedulers\n Iterator iter = allSchedulers.iterator();\n while (iter.hasNext())\n {\n Scheduler scheduler = (Scheduler) iter.next();\n \n // do not call cancel() since this method modifies allSchedulers\n scheduler.destroy();\n }\n \n if (logger.isInfoEnabled())\n {\n logger.info(allSchedulers.size() + \" scheduler instances destroyed\");\n }\n \n // be sure and clear set\n allSchedulers.clear();\n \n // and set flag that scheduler service ist stopped\n schedulerServiceRunning = false;\n }\n }", "public void dispose() {\n if (mainDocument != null) {\n mainDocument.dispose();\n }\n\n if (docAttachments != null) {\n for (DocumentItem d : docAttachments) {\n d.dispose();\n }\n\n docAttachments.clear();\n }\n\n if (documentLink != null) {\n documentLink.clear();\n }\n\n contextWidget = null;\n mainDocument = null;\n docAttachments = null;\n documentLink = null;\n callback = null;\n window = null;\n linkedData = null;\n }", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "public void closeAll() throws IOException {\n\t\tscMessages.close();\n\t\tscFiles.close();\n\t}", "static public void close() {\n renewalTimer.cancel();\n delegationTokens.clear();\n }", "public void cleanup()\n {\n \tsuper.cleanup();\n _channelHandler.cleanup();\n }", "@PreDestroy\n public void close() {\n connectionManagers.values().forEach(ConnectionManager::close);\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "public void streamSubscriberClose(ISubscriberStream stream);", "public void close()\n {\n myListenerHelper.close();\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n myProcessorsLock.writeLock().lock();\n try\n {\n for (final GeometryProcessor<? extends Geometry> proc : myGeometryProcessorsMap.values())\n {\n myProcessorBuilder.getPickManager().removeGeometries(proc.getGeometries());\n proc.close();\n }\n myGeometryProcessorsMap.clear();\n myInactiveGeometries.clear();\n recalculateCoveredTimeSpans();\n myGeometryProcessorsSnapshot = Collections.emptyList();\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n myUnprocessedGeometryLock.lock();\n try\n {\n removeTimeListeners();\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }", "void dispose() {\n for (int i = 0; i < days.size(); i++) {\n days.get(i).dispose();\n }\n days.clear();\n days = null;\n }", "public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}", "protected void unacknowledge() {\n\n ClientConsumer old = consumer;\n ClientSession oldSession = session;\n\n try {\n createSession();\n } catch (Exception e) {\n shutdown();\n throw new RuntimeException(e);\n\n } finally {\n try {\n old.close();\n } catch (ActiveMQException e) {\n }\n try {\n oldSession.close();\n } catch (ActiveMQException e) {\n }\n }\n }", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "public void dispose() {\n Collection<File> values = compareFiles.values();\n for (File file : values) {\n file.delete();\n }\n\n compareFiles.clear();\n }", "public void destroy()\n {\n lock.lock();\n try {\n if(isDestroyed) return;\n isDestroyed = true;\n } finally {\n lock.unlock();\n }\n for(int i=0; i<numChannel; ++i) \n {\n if(pvaClientChannelArray!=null) pvaClientChannelArray[i].destroy();\n pvaClientChannelArray[i] = null;\n }\n pvaClientChannelArray = null;\n }", "public synchronized void closeAllConnections() {\n\t\tstop();\n\t}", "public void dispose() {\n story = null;\n backlog = null;\n parent = null;\n }", "@Override\n public void onDestroy(){\n super.onDestroy();\n subscriptions.unsubscribe();\n }", "public void dispose() {\n processDispose(false);\n }", "public void disposeResources()\n {\n for (Disposable disposable : this.disposableObjects) {\n disposable.dispose();\n }\n }", "public void cancelAll() {\n this.disposables.dispose();\n }", "public void clearConsumerDestinations() {\n this.consumerDestinations_ = emptyProtobufList();\n }", "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 dispose() {\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.shutdown();\n }\n\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().unregisterLifecycleListener(this);\n }\n }\n\n Orient.instance().removeDbLifecycleListener(this);\n\n if (globalHook != null) {\n globalHook.shutdown(false);\n globalHook = null;\n }\n\n if (retainTask != null) {\n retainTask.cancel();\n }\n\n if (timer != null) {\n timer.cancel();\n }\n }", "void clearDisposable();", "@Override\n public void stop() {\n rabbitMQConnectionFactoryManager.stop();\n super.stop();\n }", "@After\n public void releaseConnection() throws JMSException {\n consumer.setMessageListener(msg -> { });\n // and shut the listening machinery down\n LOGGER.debug(this.getClass().getName() + \" releasing JMS connection.\");\n consumer.close();\n jmsSession.close();\n connection.close();\n }", "@PreDestroy\n\tprivate void closeAnalyser() {\n\t\tlog.info(\"Terminating all analysers\");\n\t\tfor (AnalyserPool analyserPool : analyserPools.values()) {\n\t\t\tanalyserPool.destroyAllAnalysers();\n\t\t}\n\t}", "@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }", "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n disposeProxy();\n iHandle = 0;\n iActionSubscribe.destroy();\n iActionUnsubscribe.destroy();\n iActionRenew.destroy();\n iActionGetPropertyUpdates.destroy();\n }\n }", "void drainFused() {\n int n;\n int n2 = 1;\n Subscriber<T> subscriber = this.actual;\n SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue;\n do {\n if (this.cancelled) {\n simpleQueueWithConsumerIndex.clear();\n return;\n }\n Throwable throwable = (Throwable)this.error.get();\n if (throwable != null) {\n simpleQueueWithConsumerIndex.clear();\n subscriber.onError(throwable);\n return;\n }\n n = simpleQueueWithConsumerIndex.producerIndex() == this.sourceCount ? 1 : 0;\n if (!simpleQueueWithConsumerIndex.isEmpty()) {\n subscriber.onNext(null);\n }\n if (n != 0) {\n subscriber.onComplete();\n return;\n }\n n2 = n = this.addAndGet(-n2);\n } while (n != 0);\n }", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "protected void cleanUpAndExit() {\n Enumeration<Sender> senderEnum = getSenders().elements();\n\n while (senderEnum.hasMoreElements()) {\n Sender nextSender = senderEnum.nextElement();\n try {\n nextSender.close();\n } catch (IOException e) {\n // TODO: better error output here?\n e.printStackTrace();\n }\n }\n\n System.exit(0);\n }", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "@Override\n public void close()\n {\n synchronized (this) {\n if (closed) {\n return;\n }\n closed = true;\n }\n\n readers.forEach(ExchangeStorageReader::close);\n }", "static void dispose() {\n for (final Writer w : logFiles.values()) {\n try {\n w.close();\n } catch (IOException ioe) {\n // don't care\n }\n }\n logFiles.clear();\n }", "public synchronized void closeReceivers() {\n if (closed) return;\n closed = true;\n for (SpanReceiver rcvr : receivers.values()) {\n try {\n rcvr.close();\n } catch (IOException e) {\n LOG.warn(\"Unable to close SpanReceiver correctly: \" + e.getMessage(), e);\n }\n }\n receivers.clear();\n }", "private void closeBrokers() {\n memberBroker.close();\naccountBroker.close();\n }", "public void close() {\n if (cleanup != null) {\n cleanup.disable();\n }\n if (isOpen()) {\n forceClose();\n }\n }", "public void cancelAllClients(){\n clientsPool.shutdownNow();\n }", "@Override\n protected void onDestroy() {\n mManager.clearLocalServices(mChannel, null);\n super.onDestroy();\n }", "@PreDestroy\n\tprivate void fini() throws Exception {\n\t\tListQueuesResult result = amazonSQSClient.listQueues();\n\t\tfor (String queueURL : result.getQueueUrls()) {\n\t\t\tamazonSQSClient.deleteQueue(queueURL);\n\t\t}\n\t}", "public void close() {\n\t\ttry {\n\t\t\tif(mMessageProducer != null) {\n\t\t\t\tmMessageProducer.close();\n\t\t\t}\n\t\t\tif(mMessageConsumer != null) {\n\t\t\t\tmMessageConsumer.close();\n\t\t\t}\n\t\t\tif(mSession != null) {\n\t\t\t\tmSession.close();\n\t\t\t}\n\t\t\tif(mConnection != null) {\n\t\t\t\tmConnection.close();\n\t\t\t}\n\t\t} catch (JMSException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void unsubscribe(){}", "private void closeStreams() {\n try {\n System.out.println(\"Closing streams and terminating thread.\");\n running = false;\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "public void closeConnections() throws MessagingException;", "void wipeSubscriptions(String sessionID);", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }", "@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }", "public void close() {\n\t\tshutdownClient(clientRef.get());\n\t}", "void deleteAllMessages() throws IOException;", "@Override\n\t\tpublic void closeAll() {\n\t\t\tfor (ClientHandler clientHandler : new ArrayList<ClientHandler>(this.running)) {\n\t\t\t\tclientHandler.close();\n\t\t\t}\n\t\t}", "@Override\n public void onDestroy() {\n BusProvider.getInstance().unregister(this);\n super.onDestroy();\n }", "public void onDestroy() {\r\n Disposable disposable = this.followingDisposable;\r\n if (disposable != null) {\r\n disposable.dispose();\r\n }\r\n Disposable disposable2 = this.unfollowingDisposable;\r\n if (disposable2 != null) {\r\n disposable2.dispose();\r\n }\r\n Disposable disposable3 = this.loadingDisposable;\r\n if (disposable3 != null) {\r\n disposable3.dispose();\r\n }\r\n Disposable disposable4 = this.personalizedRecommendDisposable;\r\n if (disposable4 != null) {\r\n disposable4.dispose();\r\n }\r\n EventBus.getDefault().unregister(this);\r\n super.onDestroy();\r\n }", "@PreDestroy\n public void destroy() {\n System.out.println(\"kafka-flink is closing...\");\n }", "@Override\n public void run() {\n Reference<? extends KafkaPublisher> ref = referenceQueue.poll();\n while (ref != null && isRunning()) {\n publishers.remove(ref).cancel();\n ref = referenceQueue.poll();\n }\n }", "public void closeQueue();", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "@Override\n\tpublic void dispose() {\n\t\tdestroy();\n\t}", "public synchronized void close() {\r\n\r\n\t\tif (done) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdone = true;\r\n\r\n\t\tabortScheduledTasks();\r\n\t}", "public void dispose() {\n if (exporterContainer != null) {\n exporterContainer.close();\n exporterContainer = null;\n }\n\n if (applicationContainer != null) {\n applicationContainer.close();\n applicationContainer = null;\n }\n\n if (network != null) {\n network.close();\n network = null;\n }\n\n httpClient = null;\n }", "private void close() {\r\n closeListener.run();\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(sendReceiver != null){\n\t\t\tunregisterReceiver(sendReceiver);\n\t\t}\n\t\tif(deliverReceiver != null){\n\t\t\tunregisterReceiver(deliverReceiver);\n\t\t}\n\t}", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "public void dispose()\n {\n getLogger().debug( \"dispose\" );\n }", "final private void closeAll() throws IOException {\n // This method is final since version 2.2\n\n try {\n // Close the socket\n if (clientSocket != null)\n clientSocket.close();\n\n // Close the output stream\n if (output != null)\n output.close();\n\n // Close the input stream\n if (input != null)\n input.close();\n } finally {\n // Set the streams and the sockets to NULL no matter what\n // Doing so allows, but does not require, any finalizers\n // of these objects to reclaim system resources if and\n // when they are garbage collected.\n output = null;\n input = null;\n clientSocket = null;\n }\n }", "public void cleanUp() { listener = null; }", "public void dispose() {\r\n\t\tclose();\r\n\t}", "public void clear() {\n streams.clear();\n }" ]
[ "0.71038437", "0.6854673", "0.68119985", "0.67956907", "0.66875327", "0.6673479", "0.66141564", "0.6611169", "0.6437687", "0.6194138", "0.6192441", "0.61882406", "0.61660016", "0.61524564", "0.61324143", "0.60999674", "0.6065243", "0.60561657", "0.6040517", "0.59106135", "0.58952266", "0.5894256", "0.58916134", "0.5866158", "0.586325", "0.5821518", "0.5807168", "0.5794895", "0.57918024", "0.57805765", "0.5773546", "0.5772471", "0.57507986", "0.5728872", "0.5727848", "0.5699153", "0.5696798", "0.5691694", "0.5671062", "0.5670822", "0.5670758", "0.56444675", "0.56431735", "0.56289303", "0.5606969", "0.55896205", "0.5586946", "0.5586128", "0.55573136", "0.55519646", "0.5544529", "0.5516323", "0.5515581", "0.55155116", "0.55102396", "0.5507517", "0.5492193", "0.54905564", "0.5487424", "0.5479902", "0.5472781", "0.5472247", "0.54718727", "0.54651403", "0.54576546", "0.5454658", "0.54540825", "0.54306024", "0.5424099", "0.5417141", "0.53993887", "0.5395947", "0.5395831", "0.5395524", "0.5394064", "0.539378", "0.53933734", "0.5392404", "0.5391646", "0.5389546", "0.5389546", "0.53886807", "0.538811", "0.5376252", "0.53760487", "0.53734434", "0.5372358", "0.5366771", "0.53596926", "0.5353671", "0.53466225", "0.53462344", "0.53349066", "0.53345877", "0.5331214", "0.5326846", "0.53248376", "0.532421", "0.5323258", "0.5322518", "0.5318324" ]
0.0
-1
Delete the subscription by closing and deleting its managed cursor. Handle unsubscribe call from admin layer.
private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) { CompletableFuture<Void> deleteFuture = new CompletableFuture<>(); log.info("[{}][{}] Unsubscribing", topicName, subName); CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>(); if (closeIfConsumersConnected) { this.disconnect().thenRun(() -> { closeSubscriptionFuture.complete(null); }).exceptionally(ex -> { log.error("[{}][{}] Error disconnecting and closing subscription", topicName, subName, ex); closeSubscriptionFuture.completeExceptionally(ex); return null; }); } else { this.close().thenRun(() -> { closeSubscriptionFuture.complete(null); }).exceptionally(exception -> { log.error("[{}][{}] Error closing subscription", topicName, subName, exception); closeSubscriptionFuture.completeExceptionally(exception); return null; }); } // cursor close handles pending delete (ack) operations closeSubscriptionFuture.thenCompose(v -> topic.unsubscribe(subName)).thenAccept(v -> { synchronized (this) { (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenRun(() -> { log.info("[{}][{}] Successfully deleted subscription", topicName, subName); deleteFuture.complete(null); }).exceptionally(ex -> { IS_FENCED_UPDATER.set(this, FALSE); if (dispatcher != null) { dispatcher.reset(); } log.error("[{}][{}] Error deleting subscription", topicName, subName, ex); deleteFuture.completeExceptionally(ex); return null; }); } }).exceptionally(exception -> { IS_FENCED_UPDATER.set(this, FALSE); log.error("[{}][{}] Error deleting subscription", topicName, subName, exception); deleteFuture.completeExceptionally(exception); return null; }); return deleteFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsubscribe(Subscription subscription);", "private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.deleteSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n }", "void unsubscribe(){}", "private void unsubscribe() {\n subscriber=null;\n }", "public void unsubscribe(String subscriptionId) {\n \n \t\tWebTarget wt = subscriptionsTarget.path(subscriptionId);\n \t\t\n \t\tResponse response = wt.request()\n \t\t\t .header(\"Authorization\", \"Bearer \" + playPlatformApiToken)\n \t\t\t .buildDelete()\n \t\t\t .invoke();\n \t\t\n \t\tlogger.debug(\"Unsubscribe response status : \"+response.getStatus());\n\t\tif (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {\n \t\t\tlogger.error(\"Unsubscription failed. HTTP Status Code: \"+response.getStatus());\n \t\t}\n\t\telse {\n \t\t\tsubscriptions.remove(subscriptionId);\n \t\t}\n \t\tresponse.close();\n \t}", "public void close() throws SubscriptionException {\n\t\tList<ISubscription<T>> list = new ArrayList<ISubscription<T>>();\n\t\t\n\t\tsynchronized(activeSubscriptions) {\n\t\t\tlist.addAll(activeSubscriptions);\n\t\t}\n\t\t\n\t\tfor(ISubscription<T> s : list) {\n\t\t\ts.cancel();\n\t\t}\n\t}", "public void close() {\n if (subscriptionAdminClient != null) {\n try {\n subscriptionAdminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up subscription admin client\", e);\n }\n }\n if (adminClient != null) {\n try {\n adminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up admin client\", e);\n }\n }\n if (pubsubChannel != null) {\n pubsubChannel.shutdown();\n }\n }", "void unsubscribe();", "@DeleteMapping(\"/subscriptions/{id}\")\n @Timed\n public ResponseEntity<Void> deleteSubscription(@PathVariable String id) {\n log.debug(\"REST request to delete Subscription : {}\", id);\n subscriptionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n public void unsubscribe(ISubscriber subscriber) {\n subscribers.remove(subscriber);\n }", "void unsubscribe(String id);", "public final void unsubscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (!sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is not subscribed to this topic\");\r\n }\r\n sessions.remove(session);\r\n afterUnsubscribe(session);\r\n }", "public interface SubscriptionSession extends Session {\n\n /**\n * Closes this subscription session without closing the subscription\n * registered on the document repository.\n * The same subscription can be accessed later by another subscription session.\n */\n public void close();\n\n}", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "void delete(UnsubscribeRequest request);", "void wipeSubscriptions(String sessionID);", "void removeSubscription(Topic topic, String clientID);", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "public void onUnsubscribe() {\n\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace);", "@Override\n public void receive(SubscriptionDeletion event) {\n logger.info(\"###Received subscription deletion event with id:\" + event.getSubscription().getId());\n }", "public void removeOrDisconnectClient(String mqttClientChannelID, String unSubscribedTopic, String username,\n SubscriptionEvent action) throws MQTTException {\n\n log.info(\"Disconnecting channel for clientID: \" + mqttClientChannelID);\n\n Collection<MQTTSubscription> topicSubscriptionList;\n MQTTopics mqtTopics = topicSubscriptions.get(mqttClientChannelID);\n\n if (null != mqtTopics) {\n if (null == unSubscribedTopic) {\n //this means we need to remove all subscriptions relevant for the channel\n topicSubscriptionList = mqtTopics.getAllSubscriptionsForChannel();\n } else {\n topicSubscriptionList = new ArrayList<>();\n topicSubscriptionList.add(mqtTopics.getSubscription(unSubscribedTopic));\n }\n\n for (MQTTSubscription subscription : topicSubscriptionList) {\n //Will get the topic name bound for subscription\n String topic = subscription.getTopicName();\n //Will remove the subscriber off the list\n mqtTopics.removeSubscriber(topic);\n String subscriberChannelID = subscription.getSubscriberChannelID();\n UUID subscriberChannel = subscription.getSubscriptionChannel();\n boolean isCleanSession = subscription.isCleanSession();\n QOSLevel qos = subscription.getQOSLevel();\n //The corresponding subscription created cluster wide will be topic name and the local channel id\n //Will remove the subscriber cluster wide\n try {\n //Will indicate the disconnection of the topic\n if (action == SubscriptionEvent.DISCONNECT && MQTTUtils.isDurable(isCleanSession, qos.getValue())) {\n connector.disconnectSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n } else {\n //If un-subscribed we need to remove the subscription off\n connector.removeSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n }\n if (log.isDebugEnabled()) {\n final String message = \"Subscription with cluster id \" + subscriberChannelID + \" disconnected \" +\n \"from topic \" + topic;\n log.debug(message);\n }\n\n } catch (MQTTException ex) {\n //Should re state the connection of the subscriber back to the map\n mqtTopics.addSubscriber(unSubscribedTopic, subscription);\n final String error = \"Error occurred while removing the subscription \" + mqttClientChannelID;\n log.error(error, ex);\n throw ex;\n }\n }\n\n //Finally will check if there're any relevant subscriptions for the topic\n //If there arn't we could remove the entry\n if(mqtTopics.getAllSubscriptionsForChannel().isEmpty()){\n topicSubscriptions.remove(mqttClientChannelID);\n }\n } else {\n //If the connection is publisher based\n UUID publisherID = connector.removePublisher(mqttClientChannelID);\n if (null == publisherID) {\n log.warn(\"A subscriber or a publisher with Connection with id \" + mqttClientChannelID + \" cannot be \" +\n \"found to disconnect.\");\n }\n }\n }", "@Override\n public void onDestroy(){\n super.onDestroy();\n subscriptions.unsubscribe();\n }", "private void subscribeToDeleteEvents() {\n mDisposable.add(basketListAdapter.deleteItemSubject\n .observeOn(Schedulers.io())\n .flatMapCompletable(basketItemWithProduct -> mViewModel.deleteItemFromBasket(basketItemWithProduct.basketItem))\n .subscribeOn(AndroidSchedulers.mainThread())\n .subscribe(this::onItemDeleted, this::onItemDeleteFailed)\n );\n }", "public ModelApiResponse deleteSubscription(String id) throws StatisticsException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn api.deleteSubscription(id);\r\n\t\t}\r\n\t\tcatch (ApiException ex)\r\n\t\t{\r\n\t\t\tthrow new StatisticsException(\"Cannot delete subscription\", ex);\r\n\t\t}\r\n\t}", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.Status> deleteCollectionNamespacedSubscription(\n @Path(\"namespace\") String namespace, \n @QueryMap DeleteCollectionNamespacedSubscription queryParameters);", "void unsubscribeAll();", "public void deletePublisher(Publisher publisher) {\r\n log.info(\"deletePublisher - publisher.getContextId(): \" + publisher.getContextId());\r\n // remove first subscription from the other parent\r\n Set<Subscription> subscriptions = publisher.getSubscriptions();\r\n for (Iterator<Subscription> iterator = subscriptions.iterator(); iterator.hasNext();) {\r\n Subscription subscription = iterator.next();\r\n subscription.getSubscriber().removeSubscription(subscription);\r\n }\r\n genericDao.delete(publisher);\r\n }", "public void deleteSamSyndicator() {\r\n deletePublisher(TckPublisher.getSamPublisherId());\r\n }", "@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "public void stop(boolean unsubscribe) {\n if (unsubscribe) {\n stopMessageReceiver();\n\n try {\n if (consumer != null)\n consumer.close();\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"JMS consumer for JMS destination '\"\n + destinationJndiName + \"' received an error while closing its underlying MessageConsumer: \"\n + e.getMessage());\n }\n\n if (durableConsumers) {\n try {\n TopicSession topicSession = (TopicSession) session;\n topicSession.unsubscribe(durableSubscriptionName);\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"The proxied durable JMS subscription with name, \"\n + durableSubscriptionName + \" failed to unsubscribe : \"\n + e.toString());\n }\n }\n }\n super.stop();\n }", "private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqpUnsubscribeMessage =\n new AmqpUnsubscribeMessage(this.mqttEndpoint.clientIdentifier(), unsubscribe.topics());\n\n this.ssEndpoint.sendUnsubscribe(amqpUnsubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n this.mqttEndpoint.unsubscribeAcknowledge(messageId);\n\n // removing topics from local collection\n unsubscribe.topics().stream().forEach(topic -> {\n\n this.grantedQoSLevels.remove(topic);\n });\n\n LOG.info(\"UNSUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }", "void unsubscribe(Player player);", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "public void dispose() {\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.shutdown();\n }\n\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().unregisterLifecycleListener(this);\n }\n }\n\n Orient.instance().removeDbLifecycleListener(this);\n\n if (globalHook != null) {\n globalHook.shutdown(false);\n globalHook = null;\n }\n\n if (retainTask != null) {\n retainTask.cancel();\n }\n\n if (timer != null) {\n timer.cancel();\n }\n }", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n public void unregister(Object subscriber) {\n }", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }", "public void removeSubscriptionChannel(String id) {\n if (id == null) {\n return;\n }\n store.remove(id);\n }", "@Override\n\tpublic void delete(Session sess, Subject sub) {\n\t\tsess.delete(sub);\n\t}", "public void removeSubscriptions(String removeSub){\n\t subscriptions.remove(removeSub);\n\t}", "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n System.out.println(\"Channel unsubscribed at : \" + channel);\n }", "public synchronized void createDisconnectOrRemoveLocalSubscription(LocalSubscription subscription,\n SubscriptionChange type) throws AndesException {\n\n if (SubscriptionChange.ADDED == type) {\n localSubscriptionProcessor.addSubscription(subscription);\n\n //Store the subscription\n andesContextStore.storeDurableSubscription(subscription);\n log.info(\"Local subscription \" + type + \" \" + subscription.toString());\n\n } else if (SubscriptionChange.DELETED == type) {\n localSubscriptionProcessor.removeSubscription(subscription);\n\n removeSubscriptionDirectly(subscription);\n log.info(\"Local Subscription \" + type + \" \" + subscription.toString());\n\n } else if (SubscriptionChange.DISCONNECTED == type) {\n updateLocalSubscription(subscription);\n log.info(\"Local subscription \" + type + \" \" + subscription.toString());\n }\n\n // Update channel id map\n if (type == SubscriptionChange.ADDED) {\n channelIdMap.put(subscription.getChannelID(), subscription);\n } else { //@DISCONNECT or REMOVE\n UUID channelIDOfSubscription = subscription.getChannelID();\n //when we delete the mock durable topic subscription it has no underlying channel\n if (null != channelIDOfSubscription) {\n channelIdMap.remove(channelIDOfSubscription);\n }\n }\n\n }", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "@Override\r\n \t\t\tpublic void deleteSessionsOfTenant(long tenantId) {\n \t\t\t\t\r\n \t\t\t}", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "public void Unsubscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { //unsubscribe antoistoixi gia ena buslineid\n subscribedLists.remove(busLineID);\n Client client = subscribedThreads.get(busLineID);\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 6;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n Socket socket = subscribedSockets.get(busLineID);\n try {\n socket.close();\n } catch (IOException e) {\n }\n }", "public void unsubscribe(String name, String clientId) throws RemoteException;", "@Override\n public void clearDB(DataBaseConnector contactsDB, DisposableObserver<String> clearDBSubscriber) {\n Observable<String> clearDBObservable = Observable.just(clearDBOperation(contactsDB));\n clearDBSubscriber = clearDBObservable.subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeWith(new DisposableObserver<String>() {\n @Override\n public void onComplete() {}\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n }\n\n @Override\n public void onNext(String value) { //called each time a new ViewModel is created\n\n }\n });\n }", "void deletingCatalogItemById(final Long id);", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "@Override\n protected synchronized void removeWrite(ChannelHandlerWriteSubscription subscription) {\n super.removeWrite(subscription);\n }", "@Override\n public void unsubscribe(Entity e) {\n unsub_queue.add(e);\n }", "private void release() {\n noxItemCatalog.release();\n noxItemCatalog.deleteObserver(catalogObserver);\n }", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "public void removeTopicDurableSubscriber(String name)\n {\n topicDurableSubscriberMap.remove(name);\n }", "public String deleteSub(Channel currentChannel)\n {\n return accessData.deleteSub(currentChannel);\n }", "public void onSelectDeleteRequest(@Nullable ZoomSubscribeRequest zoomSubscribeRequest) {\n if (zoomSubscribeRequest != null) {\n ZoomMessenger zoomMessenger = PTApp.getInstance().getZoomMessenger();\n if (zoomMessenger != null) {\n zoomMessenger.deleteSubscribeRequest(zoomSubscribeRequest.getRequestIndex());\n reloadAllItems();\n }\n }\n }", "@Override\r\n\tpublic int deletePurchase(PurchaseVo vo) {\n\t\treturn 0;\r\n\t}", "public void shutdown() {\n\t\ttry {\n\t\t\ttsub.close();\n\t\t} catch (JMSException e) {\n\t\t\tSystem.out.println(\"> Error while closing the topic subscriber\");\n\t\t}\n\t\tArrayList<String> list = msgList.removeAllMessages();\n\t\tfor (String s : list) {\n\t\t\t//TODO save unprocessed messages to file\n\t\t}\n\t}", "public void destroy() {\n/* 157 */ this.mDisposable.clear();\n/* */ }", "public void cleanup() throws ResourceException {\n checkIfDestroyed();\n\n logger.fine(\" 8.- (\" + myId + \") ManagedConnection::cleanup called\");\n\n invalidateJavaMailConnections();\n }", "@Override\n\tpublic boolean deleteSubAccountAndSubScribe(int userId) {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tTransaction transaction = session.beginTransaction();\n\t\t\tTypedQuery query = session.createQuery(\"delete from Subscribe where subscriber.kullaniciid= :sub OR subaccount.kullaniciid= :suc\");\n\t\t\t\n\t\t\tquery.setParameter(\"sub\", userId);\n\t\t\t\n\t\t\tquery.setParameter(\"suc\", userId);\n\t\t\t\n\t\t\tquery.executeUpdate();\n\t\t\t\n\t\t\ttransaction.commit();\n\n\t\t\tsession.close();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void remove(InnerSubscription<T> innerSubscription) {\r\n InnerSubscription<T>[] innerSubscriptionArr;\r\n InnerSubscription[] innerSubscriptionArr2;\r\n do {\r\n innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n int length = innerSubscriptionArr.length;\r\n if (length == 0) {\r\n break;\r\n }\r\n int i = -1;\r\n int i2 = 0;\r\n while (true) {\r\n if (i2 >= length) {\r\n break;\r\n } else if (innerSubscriptionArr[i2] == innerSubscription) {\r\n i = i2;\r\n break;\r\n } else {\r\n i2++;\r\n }\r\n }\r\n if (i >= 0) {\r\n if (length == 1) {\r\n innerSubscriptionArr2 = EMPTY;\r\n } else {\r\n InnerSubscription[] innerSubscriptionArr3 = new InnerSubscription[(length - 1)];\r\n System.arraycopy(innerSubscriptionArr, 0, innerSubscriptionArr3, 0, i);\r\n System.arraycopy(innerSubscriptionArr, i + 1, innerSubscriptionArr3, i, (length - i) - 1);\r\n innerSubscriptionArr2 = innerSubscriptionArr3;\r\n }\r\n } else {\r\n return;\r\n }\r\n } while (!this.subscribers.compareAndSet(innerSubscriptionArr, innerSubscriptionArr2));\r\n }", "@Override\n public void deleted(String pid) {\n ServiceRegistration oldRegistration = registrations.remove(pid);\n if (bundleContext != null) {\n Connect connect = (Connect) bundleContext.getService(oldRegistration.getReference());\n try {\n connect.close();\n } catch (LibvirtException e) {\n LOG.error(\"Error closing libvirt connection\", e);\n }\n }\n if (oldRegistration != null) {\n oldRegistration.unregister();\n }\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Conference : {}\", id);\n conferenceRepository.delete(id);\n }", "Mono<Long> deleteReactive(String collection);", "@Override\n\tpublic void unsubscribe(Strategy strategy) {\n\t\t\n\t}", "public void removeSubscription(final String topic)\t\n\t{\n\t\tsynchronized (subscriptionControllers)\n\t\t{\n\t\t\tlogger.debug(\"Trying to remove subscription {}\", topic);\n\t\t\tfinal MqttSubscription subscription = subscriptionControllers.get(topic).getSubscription();\n\t\t\tsubscription.getConnection().unsubscribeAndRemove(subscription);\n\t\t\tsubscription.getStore().cleanUp();\n\t\t\tsubscriptionControllers.get(topic).onClose();\n\t\t\tTabUtils.requestClose(subscriptionControllers.get(topic).getTab());\n\t\t\tsubscriptionControllers.remove(topic);\n\t\t}\n\t}", "public void removeSubscriptionDirectly(AndesSubscription subscriptionToRemove) throws AndesException {\n String destination = subscriptionToRemove.getSubscribedDestination();\n andesContextStore.removeDurableSubscription(subscriptionToRemove);\n if (log.isDebugEnabled()) {\n log.debug(\"Directly removed cluster subscription for \" + \"destination = \" + destination);\n }\n }", "void deletePhotos(Subscriber<BaseBean> subscriber, String id);", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "@Override\n\tpublic void delete_from_DB() throws CouponSiteMsg\n\t{\n\t\t\n\t}", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void streamSubscriberClose(ISubscriberStream stream);", "public void removeLocalSubscription(LocalSubscription subscription) throws AndesException {\n\n localSubscriptionProcessor.removeSubscription(subscription);\n\n removeSubscriptionDirectly(subscription);\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "@Override\n\t@Deactivate\n\tprotected void deactivate(final ComponentContext context) {\n\t\tLOGGER.debug(\"Deactivating MongoDB Component...\");\n\t\tLOGGER.info(\"Releasing CloudApplicationClient for {}...\", APP_ID);\n\n\t\tsuper.deactivate(context);\n\n\t\tLOGGER.debug(\"Deactivating MongoDB Component... Done.\");\n\t}", "@Override\n public void deleteInstitution() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteInstitution\");\n }\n\n deleteInstitution(selectedInstitution);\n }", "static public void close() {\n renewalTimer.cancel();\n delegationTokens.clear();\n }", "@Override\r\n\tpublic void stop() {\n\t\tmongoClient.close();\r\n\t}", "int deleteSellMediaByPrimaryKey(Integer id) throws SQLException;", "private void playUnsubscriptionConfirmationPromptAndUnsubscribeUser(String callerId) throws AgiException, DAOException\n\t{\n\t\tstreamFile(Constants.PROMPT_FOR_SUCCESSFUL_UNSUBSCRIPTION);\n\n\t\tUserBean user = UserManagerImpl.getInstance().loadByPrimaryKey(callerId);\n\n\t\tuser.setSubscriptionStatus(Constants.SUBSCRIPTION_STATUS_UNSUBSCRIBED);\n\n\t\tuser.update();\n\t}", "@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }", "public void closeAllTopicSubscribers()\n {\n for(int ii = 0; ii < topicSubscriberList.size(); ii++)\n {\n TopicSubscriber subscriber = (TopicSubscriber)topicSubscriberList.get(ii);\n try\n {\n subscriber.close();\n }\n catch(JMSException exc)\n {\n\n }\n }\n }", "public abstract void unsubscribeImpl(String str, Resolver<Void> resolver);", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "public boolean onDelete(Session s) throws CallbackException;", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }", "@Override\n\tpublic void onDestroy() {\n\t\tif(cursor!=null)\n\t\t\tcursor.close();\n\t\tsuper.onDestroy();\n\t}" ]
[ "0.6637103", "0.64795256", "0.63066375", "0.62289256", "0.62185925", "0.6188752", "0.6078942", "0.60579354", "0.5982122", "0.5908718", "0.582933", "0.5762236", "0.5757272", "0.573454", "0.56978106", "0.5679091", "0.5669469", "0.5664577", "0.55692595", "0.5543253", "0.55241865", "0.5474042", "0.5458858", "0.54413176", "0.54014283", "0.5377211", "0.5363335", "0.53567725", "0.53503025", "0.53363585", "0.5336309", "0.53285164", "0.53118217", "0.5296156", "0.5294411", "0.52695274", "0.52565986", "0.52348435", "0.522301", "0.5218991", "0.5217527", "0.52013916", "0.5185567", "0.51812434", "0.51808906", "0.5179935", "0.5145485", "0.51362056", "0.51342195", "0.5129562", "0.51097536", "0.5094628", "0.50916135", "0.5075045", "0.50666386", "0.5060188", "0.5056644", "0.5055163", "0.5032646", "0.50268704", "0.50247097", "0.5017912", "0.5015679", "0.4994453", "0.49725237", "0.49593347", "0.49554923", "0.4953154", "0.49511394", "0.49492684", "0.4945152", "0.493793", "0.49351266", "0.49348676", "0.49341133", "0.49340126", "0.49276686", "0.4927173", "0.49266404", "0.4913622", "0.49132258", "0.49107394", "0.4907584", "0.49036363", "0.48953828", "0.48840934", "0.48786542", "0.4874053", "0.4873475", "0.4853726", "0.48471895", "0.48465383", "0.48430055", "0.48385006", "0.48342162", "0.4828017", "0.48261565", "0.4823776", "0.48193902", "0.48135093" ]
0.6456132
2
Handle unsubscribe command from the client API Check with the dispatcher is this consumer can proceed with unsubscribe.
@Override public CompletableFuture<Void> doUnsubscribe(Consumer consumer) { CompletableFuture<Void> future = new CompletableFuture<>(); try { if (dispatcher.canUnsubscribe(consumer)) { consumer.close(); return delete(); } future.completeExceptionally( new ServerMetadataException("Unconnected or shared consumer attempting to unsubscribe")); } catch (BrokerServiceException e) { log.warn("Error removing consumer {}", consumer); future.completeExceptionally(e); } return future; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqpUnsubscribeMessage =\n new AmqpUnsubscribeMessage(this.mqttEndpoint.clientIdentifier(), unsubscribe.topics());\n\n this.ssEndpoint.sendUnsubscribe(amqpUnsubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n this.mqttEndpoint.unsubscribeAcknowledge(messageId);\n\n // removing topics from local collection\n unsubscribe.topics().stream().forEach(topic -> {\n\n this.grantedQoSLevels.remove(topic);\n });\n\n LOG.info(\"UNSUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "public void onUnsubscribe() {\n\n }", "void unsubscribe(){}", "private void doUnsubscribe(IoSession session, MessageProtocol request) throws Exception {\n \t\n \tdoExit(session);\n }", "@Override\n\tpublic void onUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "private void doUnsubscribe(JSONArray args, CallbackContext callbackContext,\n\t\t\tMqttAndroidClient client) throws JSONException {\n\t\tString topicFilter = args.getString(1);\n\t\tfinal JSONObject invocationContext = args.optJSONObject(2);\n\t\ttry {\n\t\t\tclient.unsubscribe(topicFilter, null,\n\t\t\t\t\tnew GeneralCallback(invocationContext, callbackContext));\n\t\t\n\t\t} catch (MqttException exception) {\n\t\t\tcallbackContext.error(createError(exception, invocationContext));\n\t\t}\n\t}", "public abstract void unsubscribeImpl(String str, Resolver<Void> resolver);", "public void unsubscribe(ClientAddress address, ChannelAddress channelAddress);", "void unsubscribe();", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "private void unsubscribe() {\n Log.i(TAG, \"Unsubscribing.\");\n Nearby.Messages.unsubscribe(mGoogleApiClient, mMessageListener);\n }", "private void unsubscribe() {\n subscriber=null;\n }", "public void Unsubscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { //unsubscribe antoistoixi gia ena buslineid\n subscribedLists.remove(busLineID);\n Client client = subscribedThreads.get(busLineID);\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 6;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n Socket socket = subscribedSockets.get(busLineID);\n try {\n socket.close();\n } catch (IOException e) {\n }\n }", "@Override\n public void onUnsubscribe(String channel, int subscribedChannels) {\n super.onUnsubscribe(channel, subscribedChannels);\n System.out.println(\"Channel unsubscribed at : \" + channel);\n }", "void unsubscribe(Subscription subscription);", "public void unsubscribe(String name, String clientId) throws RemoteException;", "void unsubscribe(String id);", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "@Override\n\tpublic void onPUnsubscribe(String arg0, int arg1) {\n\t\t\n\t}", "static void confirmUnSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_UnSubscribe_Event_C_en.valueOf(), response, null );\n }", "@Override\n\tpublic void unsubscribe(Strategy strategy) {\n\t\t\n\t}", "@Override\n public void unsubscribe(Entity e) {\n unsub_queue.add(e);\n }", "void delete(UnsubscribeRequest request);", "@Override\n public void unsubscribe(ISubscriber subscriber) {\n subscribers.remove(subscriber);\n }", "@Override\r\n public void unsubscribe() {\n t.interrupt();\r\n }", "public void unsubscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), null, null)).get();\n LOG.info(\"Unsubscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't unsubscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "@Override\n public void onPUnsubscribe(String s, int i) {\n }", "@Override\n\t\t\tpublic void onPUnsubscribe(String pattern, int subscribedChannels) {\n\t\t\t\tlog.debug(\"====== onPUnsubscribe(): pattern = {}, subscribedChannels = {}\", pattern, subscribedChannels);\n\t\t\t}", "public void unsubscribe() {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n if (server.removeSubscriber(PubSubAgent.this.agentID)) {\r\n subscriberKeywords.clear();\r\n subscriberTopics.clear();\r\n }\r\n System.out.print(\"Unsubscribed from all Topics.\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Unsubscribe from all the topics...\");\r\n }\r\n }).start();\r\n }", "default void unsubscribe()\n throws TopicReceiverException\n {\n try {\n close();\n } catch ( Exception e ) {\n throw new TopicReceiverException(getTopic(), e);\n }\n }", "@Override\n public void rxUnsubscribe() {\n if (placesSubscriber != null) {\n if (!placesSubscriber.isDisposed()) {\n placesSubscriber.dispose();\n }\n }\n }", "private void genericUnsubscribeFactory(String request, BandInfo band) {\n if (bandStreams.containsKey(band) && bandStreams.get(band).contains(request)) {\n if (bandStreams.get(band).size() == 1) {\n // Only stream open for this band, remove from bandStreams\n bandStreams.remove(band);\n } else {\n // Other streams open, remove from list\n bandStreams.get(band).remove(request);\n }\n\n // Remove stream from preferences\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> streams = prefs.getStringSet(Preferences.getDeviceKey(band.getMacAddress()), new HashSet<String>());\n if (streams.contains(request)) {\n Log.v(TAG, \"Removing stream \" + request);\n streams.remove(request);\n Log.v(TAG, \"Streams after removing \" + request + \": \" + streams);\n prefs.edit().putStringSet(Preferences.getDeviceKey(band.getMacAddress()), streams).apply();\n }\n\n // Unsubscribe from the appropriate stream\n switch (request) {\n case ACCEL_REQ_EXTRA:\n if (accManager != null)\n accManager.unSubscribe(band);\n break;\n case ALT_REQ_EXTRA:\n if (altManager != null)\n altManager.unSubscribe(band);\n break;\n case AMBIENT_REQ_EXTRA:\n if (ambManager != null)\n ambManager.unSubscribe(band);\n break;\n case BAROMETER_REQ_EXTRA:\n if (barometerManager != null)\n barometerManager.unSubscribe(band);\n break;\n case CALORIES_REQ_EXTRA:\n if (calManager != null)\n calManager.unSubscribe(band);\n break;\n case CONTACT_REQ_EXTRA:\n if (conManager != null)\n conManager.unSubscribe(band);\n break;\n case DISTANCE_REQ_EXTRA:\n if (distManager != null)\n distManager.unSubscribe(band);\n break;\n case GSR_REQ_EXTRA:\n if (gsrManager != null)\n gsrManager.unSubscribe(band);\n break;\n case GYRO_REQ_EXTRA:\n if (gyroManager != null)\n gyroManager.unSubscribe(band);\n break;\n case HEART_RATE_REQ_EXTRA:\n if (heartManager != null)\n heartManager.unSubscribe(band);\n break;\n case PEDOMETER_REQ_EXTRA:\n if (pedoManager != null)\n pedoManager.unSubscribe(band);\n break;\n case SKIN_TEMP_REQ_EXTRA:\n if (skinTempManager != null)\n skinTempManager.unSubscribe(band);\n break;\n case UV_REQ_EXTRA:\n if (uvManager != null)\n uvManager.unSubscribe(band);\n break;\n default:\n Log.e(TAG, \"Unknown subscription requested \" + request);\n }\n } else {\n if (!bandStreams.containsKey(band)) {\n Log.e(TAG, \"Error: unsubscribe request for a band that isnt stored\");\n Log.v(TAG, \"Band: \" + band.toString());\n for (BandInfo info :\n bandStreams.keySet()) {\n Log.v(TAG, \"Key: \" + info.toString());\n }\n } else {\n if (!bandStreams.get(band).contains(request)) {\n Log.e(TAG, \"Error: unsubscribe request for unregistered request\");\n }\n }\n }\n }", "@Override\n public void unregister(Object subscriber) {\n }", "protected void processUnsubscribe(IoSession session, String clientID, List<String> topics, int messageID) {\n LOG.debug(\"processSubscribe invoked\");\n \n for (String topic : topics) {\n subscriptions.removeSubscription(topic, clientID);\n }\n //ack the client\n UnsubAckMessage ackMessage = new UnsubAckMessage();\n ackMessage.setMessageID(messageID);\n \n LOG.info(\"replying with UnsubAck to MSG ID {0}\", messageID);\n session.write(ackMessage);\n }", "void unsubscribeAll();", "void unsubscribe(Player player);", "private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n if (requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.deleteSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n }", "public void unsubscribe(String subscriptionId) {\n \n \t\tWebTarget wt = subscriptionsTarget.path(subscriptionId);\n \t\t\n \t\tResponse response = wt.request()\n \t\t\t .header(\"Authorization\", \"Bearer \" + playPlatformApiToken)\n \t\t\t .buildDelete()\n \t\t\t .invoke();\n \t\t\n \t\tlogger.debug(\"Unsubscribe response status : \"+response.getStatus());\n\t\tif (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {\n \t\t\tlogger.error(\"Unsubscription failed. HTTP Status Code: \"+response.getStatus());\n \t\t}\n\t\telse {\n \t\t\tsubscriptions.remove(subscriptionId);\n \t\t}\n \t\tresponse.close();\n \t}", "@Override\n\tpublic void onUserListUnsubscription(User subscriber, User listOwner, UserList list) {\n\n\t}", "public void removeOrDisconnectClient(String mqttClientChannelID, String unSubscribedTopic, String username,\n SubscriptionEvent action) throws MQTTException {\n\n log.info(\"Disconnecting channel for clientID: \" + mqttClientChannelID);\n\n Collection<MQTTSubscription> topicSubscriptionList;\n MQTTopics mqtTopics = topicSubscriptions.get(mqttClientChannelID);\n\n if (null != mqtTopics) {\n if (null == unSubscribedTopic) {\n //this means we need to remove all subscriptions relevant for the channel\n topicSubscriptionList = mqtTopics.getAllSubscriptionsForChannel();\n } else {\n topicSubscriptionList = new ArrayList<>();\n topicSubscriptionList.add(mqtTopics.getSubscription(unSubscribedTopic));\n }\n\n for (MQTTSubscription subscription : topicSubscriptionList) {\n //Will get the topic name bound for subscription\n String topic = subscription.getTopicName();\n //Will remove the subscriber off the list\n mqtTopics.removeSubscriber(topic);\n String subscriberChannelID = subscription.getSubscriberChannelID();\n UUID subscriberChannel = subscription.getSubscriptionChannel();\n boolean isCleanSession = subscription.isCleanSession();\n QOSLevel qos = subscription.getQOSLevel();\n //The corresponding subscription created cluster wide will be topic name and the local channel id\n //Will remove the subscriber cluster wide\n try {\n //Will indicate the disconnection of the topic\n if (action == SubscriptionEvent.DISCONNECT && MQTTUtils.isDurable(isCleanSession, qos.getValue())) {\n connector.disconnectSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n } else {\n //If un-subscribed we need to remove the subscription off\n connector.removeSubscriber(this, topic, username, subscriberChannelID, subscriberChannel,\n isCleanSession, mqttClientChannelID, qos);\n }\n if (log.isDebugEnabled()) {\n final String message = \"Subscription with cluster id \" + subscriberChannelID + \" disconnected \" +\n \"from topic \" + topic;\n log.debug(message);\n }\n\n } catch (MQTTException ex) {\n //Should re state the connection of the subscriber back to the map\n mqtTopics.addSubscriber(unSubscribedTopic, subscription);\n final String error = \"Error occurred while removing the subscription \" + mqttClientChannelID;\n log.error(error, ex);\n throw ex;\n }\n }\n\n //Finally will check if there're any relevant subscriptions for the topic\n //If there arn't we could remove the entry\n if(mqtTopics.getAllSubscriptionsForChannel().isEmpty()){\n topicSubscriptions.remove(mqttClientChannelID);\n }\n } else {\n //If the connection is publisher based\n UUID publisherID = connector.removePublisher(mqttClientChannelID);\n if (null == publisherID) {\n log.warn(\"A subscriber or a publisher with Connection with id \" + mqttClientChannelID + \" cannot be \" +\n \"found to disconnect.\");\n }\n }\n }", "public void unregister() {\n this.dispatcher.context.unregisterReceiver(this);\n }", "@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }", "private void unbindQueue2Exchange(RoutingContext routingContext) {\n LOGGER.debug(\"Info: unbindQueue2Exchange method started;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/unbind\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult =\n managementApi.unbindQueue2Exchange(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: Unbinding queue to exchange\");\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "public Thread unsubscribeWithThread(Integer busLineID, ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Thread t = new UnsubscribeThread(busLineID, configurationActivity);\n t.start();\n return t;\n }", "@Override\n public void receive(SubscriptionDeletion event) {\n logger.info(\"###Received subscription deletion event with id:\" + event.getSubscription().getId());\n }", "@Override\n\t\tpublic void onUserListUnsubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "void unsubscribe(Player player, boolean fast);", "private void unsubscribeCompleted(Integer messageId) {\n List<String> request = this.pendingUnsubscribes.remove(messageId);\n if (request != null) {\n for (String topic : request) {\n notifySubscriptionState(topic, SubscriptionState.UNSUBSCRIBED, null);\n }\n }\n }", "public void unsubscribe(String inOutMethod) {\r\n unsubscribe(inOutMethod, inOutMethod, (Class<?>[]) null);\r\n }", "void unsubscribe(Contact contact)\n throws IllegalArgumentException, IllegalStateException, OperationFailedException;", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "@Override\n\tpublic SuccessMessage unsubscribe(Integer themeId, Integer userId) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}", "public org.csapi.schema.parlayx.subscribe.manage.v1_0.local.UnSubscribeServiceResponse unSubscribeService(org.csapi.schema.parlayx.subscribe.manage.v1_0.local.UnSubscribeServiceRequest parameters) {\n throw new UnsupportedOperationException(\"Not implemented yet.\");\r\n }", "@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testUnsubsribeFromRoomOkResponse() {\n // given\n final UnsubscribeRequest unsubscribeRequest =\n UnsubscribeRequest.builder().user(TEST_USER).room(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_UNSUBSCRIBE_COMMAND, unsubscribeRequest))\n .willReturn(OK_RESPONSE);\n\n // when\n multiUserChatService.unsubsribeFromRoom(TEST_USER, TEST_ROOM);\n\n // then\n }", "@Override\n public void unsubscribe(final Set<ValueSpecification> valueSpecifications) {\n LOGGER.debug(\"Unsubscribed from {}\", valueSpecifications);\n }", "@Test\n public void subscribe_unsubscribe() {\n String channelName = \"subscribe_unsubscribe_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n /* subscribe */\n MessageListener testListener = new MessageListener() {\n @Override\n public void onMessage(Message message) {\n }};\n channel.subscribe(\"test_event\", testListener);\n /* unsubscribe */\n channel.unsubscribe(\"test_event\", testListener);\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }", "public void unsubscribeSwitchState() {\n\t\t\n\t}", "protected void unregisterContractEvents()\n {\n for(final Subscription subscription : subscriptions)\n {\n Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n subscription.unsubscribe();\n return null;\n }\n });\n }\n\n subscriptions.clear();\n }", "public final /* synthetic */ void unregisterListener(Api.AnyClient anyClient, TaskCompletionSource taskCompletionSource) throws RemoteException {\n ((zzeo) ((zzaw) anyClient).getService()).zza(new zzgs(this.zzfq.getDriveId(), 1), (zzes) this.zzfr.zzgh, (String) null, (zzeq) new zzhq(taskCompletionSource));\n }", "public void unregister(Object subscriber)\n\t{\n\t\ttry\n\t\t{\n\t\t\tm_bus.unregister(subscriber);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(TAG, \"Error in unregister: \" + e.getMessage());\n\t\t}\n\t}", "public void stop(boolean unsubscribe) {\n if (unsubscribe) {\n stopMessageReceiver();\n\n try {\n if (consumer != null)\n consumer.close();\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"JMS consumer for JMS destination '\"\n + destinationJndiName + \"' received an error while closing its underlying MessageConsumer: \"\n + e.getMessage());\n }\n\n if (durableConsumers) {\n try {\n TopicSession topicSession = (TopicSession) session;\n topicSession.unsubscribe(durableSubscriptionName);\n } catch (Exception e) {\n if (Log.isWarn())\n Log.getLogger(JMSAdapter.LOG_CATEGORY).warn(\"The proxied durable JMS subscription with name, \"\n + durableSubscriptionName + \" failed to unsubscribe : \"\n + e.toString());\n }\n }\n }\n super.stop();\n }", "@Override\r\n\tprotected void onStop() {\n\t\tsuper.onStop();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t}", "public void clientWasRemoved(ChannelId channelId);", "public final void unsubscribe() throws InvalidSubscriptionException {\r\n WritableSession session = (WritableSession) WebsocketActionSupport.getInstance().getSession();\r\n if (!sessions.contains(session)) {\r\n throw new InvalidSubscriptionException(\"Current session is not subscribed to this topic\");\r\n }\r\n sessions.remove(session);\r\n afterUnsubscribe(session);\r\n }", "void unsubscribe(LogListener listener);", "void disconnect_pull_consumer ();", "boolean unregisterEventBusForEvent( EventBus eventBus, Consumer<List<? extends EventMessage<?>>> messageProcessor );", "private void stopPulling() {\n\n // un register this task\n eventDispatcher.unRegister(this);\n\n // tell the container to send response\n asyncContext.complete();\n\n // cancel data changed listening\n if (pullingTimeoutFuture != null){\n pullingTimeoutFuture.cancel(false);\n }\n }", "@Override\n public void handlerRemoved(final ChannelHandlerContext ctx) {\n ctx.pipeline().remove(HttpObjectAggregator.class);\n }", "@Override\n\tpublic void onUnSubscribeLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onUnSubscribeLobbyDone\");\n\t}", "private void unsubscribeAll(MicroService m){\n\t\tConcurrentLinkedQueue<Class> queue=microToEvent.get(m);\n\t\tif(queue!=null)\n\t\tfor(Class cla:queue){\n\t\t\tif(Broadcast.class.isAssignableFrom(cla)){\t\t// checks if broadcast is super/interface of cla (meaning cla implements/extends broadcast)\n\t\t\t\t\tbroadcastToMicroServices.get(cla).remove(m);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\teventToMicroHandlers.get(cla).remove(m);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void receiveMessageShutdown() {\n \n }", "private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }", "void onDisconnectChannel(@NonNull Context appContext);", "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"Completed Operations\");\n\t\t\t\tconnected_clients.remove(responseObserver);\n\t\t\t}", "Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);", "synchronized void m6640c() {\n if (!m6637a()) {\n this.f5128e = null;\n this.f5127d = true;\n try {\n this.f5126c.unbindService(this);\n } catch (IllegalArgumentException e) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Error unbinding service: \");\n stringBuilder.append(e.getMessage());\n Log.w(\"FJD.ExternalReceiver\", stringBuilder.toString());\n }\n }\n return;\n }", "void onStop() {\n if (subscription != null) {\n subscription.unsubscribe();\n subscription = null;\n }\n }", "@Override\n public void handleMessage(Message message) {\n // ...\n // When needed, stop the service with\n // stopSelf();\n }", "public void unsubscribe(String vbucketName, Reconfigurable rec) {\n BucketMonitor monitor = this.monitors.get(vbucketName);\n if (monitor != null) {\n monitor.deleteObserver(new ReconfigurableObserver(rec));\n }\n }", "@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testUnsubsribeFromRoomBadResponse() {\n // given\n final UnsubscribeRequest unsubscribeRequest =\n UnsubscribeRequest.builder().user(TEST_USER).room(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_UNSUBSCRIBE_COMMAND, unsubscribeRequest))\n .willReturn(BAD_RESPONSE);\n\n // when\n multiUserChatService.unsubsribeFromRoom(TEST_USER, TEST_ROOM);\n\n // then\n }", "public void unsubscribe(String topic, String inboundPortUri) {\n\n\t}", "protected abstract void unregisterObserver();", "void unRegister(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "public void handleDisconnect(){\r\n consoleAppend(this.getName() + \" disconnected.\");\r\n clientThreads.remove(getIndex(this.getName()));\r\n sendToAll(this.getName() + \" disconnected.\");\r\n sendCTToAll(new ControlToken(ControlToken.REMOVECODE, this.getName()));\r\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t}", "public void dispatchDisconnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientDisconnected(clientId);\n }\n }", "static <T> void unregisterObserver(@NonNull Observer<T> cb) {\n if (Thread.currentThread() != Looper.getMainLooper().getThread()) {\n throw new IllegalStateException(\"Must be called on UI thread.\");\n }\n for (Iterator<CallbackSubscriptionTuple> i=callbacks().iterator(); i.hasNext(); ) {\n CallbackSubscriptionTuple cbSub = i.next();\n if (cbSub.cb.equals(cb)) {\n cbSub.sub.unsubscribe();\n i.remove();\n return;\n }\n }\n }", "private void unsubscribeSent(AsyncResult<Integer> result, List<String> topics) {\n if (result.failed() || result.result() == null) {\n closeConnection(String.format(\"Failed to send unsubscribe request: %s\", result.cause()));\n } else {\n this.pendingUnsubscribes.put(result.result(), topics);\n }\n }", "public void invalidate(boolean notifyClient)\n {\n synchronized (lock)\n {\n if (!valid || invalidating)\n return; // Already shutting down.\n\n invalidating = true; // This thread gets to shut the MessageClient down.\n cancelTimeout();\n }\n\n // Record whether we're attempting to notify the client or not.\n attemptingInvalidationClientNotification = notifyClient;\n\n // Build a subscription invalidation message and push to the client if it is still valid.\n if (notifyClient && flexClient != null && flexClient.isValid())\n {\n CommandMessage msg = new CommandMessage();\n msg.setDestination(destination.getId());\n msg.setClientId(clientId);\n msg.setOperation(CommandMessage.SUBSCRIPTION_INVALIDATE_OPERATION);\n Set subscriberIds = new TreeSet();\n subscriberIds.add(clientId);\n try\n {\n ((MessageService) destination.getService()).pushMessageToClients(destination, subscriberIds, msg, false /* don't eval selector */);\n }\n catch (MessageException ignore)\n {\n }\n }\n\n // Notify messageClientDestroyed listeners that we're being invalidated.\n if (destroyedListeners != null && !destroyedListeners.isEmpty())\n {\n for (Iterator iter = destroyedListeners.iterator(); iter.hasNext();)\n {\n ((MessageClientListener) iter.next()).messageClientDestroyed(this);\n }\n destroyedListeners.clear();\n }\n\n // And generate unsubscribe messages for all of the MessageClient's subscriptions and\n // route them to the destination this MessageClient is subscribed to.\n // The reason we send a message to the service rather than just going straight to the SubscriptionManager\n // is that some adapters manage their own subscription state (i.e. JMS) in addition to us keeping track of\n // things with our SubscriptionManager.\n ArrayList unsubMessages = new ArrayList();\n synchronized (lock)\n {\n for (Iterator iter = subscriptions.iterator(); iter.hasNext();)\n {\n SubscriptionInfo subInfo = (SubscriptionInfo) iter.next();\n CommandMessage unsubMessage = new CommandMessage();\n unsubMessage.setDestination(destination.getId());\n unsubMessage.setClientId(clientId);\n unsubMessage.setOperation(CommandMessage.UNSUBSCRIBE_OPERATION);\n unsubMessage.setHeader(CommandMessage.SUBSCRIPTION_INVALIDATED_HEADER, Boolean.TRUE);\n unsubMessage.setHeader(CommandMessage.SELECTOR_HEADER, subInfo.selector);\n unsubMessage.setHeader(AsyncMessage.SUBTOPIC_HEADER_NAME, subInfo.subtopic);\n unsubMessages.add(unsubMessage);\n }\n }\n // Release the lock and send the unsub messages.\n for (Iterator iter = unsubMessages.iterator(); iter.hasNext();)\n {\n try\n {\n destination.getService().serviceCommand((CommandMessage) iter.next());\n }\n catch (MessageException me)\n {\n if (Log.isDebug())\n Log.getLogger(MESSAGE_CLIENT_LOG_CATEGORY).debug(\"MessageClient: \" + getClientId() + \" issued an unsubscribe message during invalidation that was not processed but will continue with invalidation. Reason: \" + ExceptionUtil.toString(me));\n }\n }\n\n synchronized (lock)\n {\n // If we didn't clean up all subscriptions log an error and continue with shutdown.\n int remainingSubscriptionCount = subscriptions.size();\n if (remainingSubscriptionCount > 0 && Log.isError())\n Log.getLogger(MESSAGE_CLIENT_LOG_CATEGORY).error(\"MessageClient: \" + getClientId() + \" failed to remove \" + remainingSubscriptionCount + \" subscription(s) during invalidation\");\n }\n\n // If someone registered this message client, invalidating it will free\n // their reference which will typically also remove this message client.\n if (registered)\n destination.getSubscriptionManager().releaseMessageClient(this);\n\n synchronized (lock)\n {\n valid = false;\n invalidating = false;\n }\n\n if (Log.isDebug())\n Log.getLogger(MESSAGE_CLIENT_LOG_CATEGORY).debug(\"MessageClient with clientId '\" + clientId + \"' for destination '\" + destinationId + \"' has been invalidated.\");\n }", "private void requestUnsubscribe(List<String> topics) {\n if (topics.isEmpty() || this.client == null || !this.client.isConnected()) {\n // nothing to do\n return;\n }\n\n for (String topic : topics) {\n // vertx-mqtt currently does not support unsubscribing from multi-topics due to an API limitation\n this.client\n .unsubscribe(topic)\n .onComplete(result -> unsubscribeSent(result, Collections.singletonList(topic)));\n }\n }", "public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}", "@Override\n public void unsubscribe() {\n try {\n assert future != null;\n future.get(5, TimeUnit.SECONDS); //wait for all the scheduled values fired\n } catch (Exception e) {\n Throwables.propagate(e); //just hide the checked exception\n }\n }", "@Override\n\t\tpublic void onDeactive(AcStatusEvent event) {\n\n\t\t}", "private void disconnectHandler(Void v) {\n\n LOG.info(\"DISCONNECT from MQTT client {}\", this.mqttEndpoint.clientIdentifier());\n this.detachForced = false;\n }", "@Unbind(aggregate=true,optional=true)\n public void unbindProcessor(HandlerProcessor processor) {\n }", "abstract protected void onDisconnection();", "private void handleInterruption() {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n Publishers.this.output.shutdown();\n\n// final CountDownLatch clientClosed = new CountDownLatch(clients.size());\n// for (ClientPublishTask client : clients) {\n// client.interrupt(new Callback<Void>() {\n// @Override\n// public void onSuccess(Void value) {\n// clientClosed.countDown();\n// CommandLindInterface.debug(Publishers.this.configuration, \"Connection to broker successfully closed\");\n// }\n//\n// @Override\n// public void onFailure(Throwable value) {\n// clientClosed.countDown();\n// CommandLindInterface.stderr(\"Connection close to broker failure!\");\n// }\n// });\n// }\n//\n// try {\n// clientClosed.await(5000, TimeUnit.MILLISECONDS);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n\n result.endTimeNanosec = System.nanoTime();\n output.display(configuration, result);\n }\n });\n }", "public abstract void onReceiveResponse(ExchangeContext context);", "@Test\n public void unregister() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n Object object1 = new Object() {\n @Subscriber\n public void onIntEvent(Integer event) {\n LOG.debug(\"handled event: {}\", event);\n }\n };\n\n Object object2 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n LOG.debug(\"handled event: {}\", event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n assertThat(eventBus.objectSubscriberMethods.size(), is(2));\n assertThat(eventBus.eventTypeToSubscriberMethods.size(), is(2));\n assertThat(eventBus.eventTypeToSubscriberMethods.get(String.class).size(), is(1));\n assertThat(eventBus.eventTypeToSubscriberMethods.get(Integer.class).size(), is(1));\n\n eventBus.unregister(object2);\n assertThat(eventBus.objectSubscriberMethods.size(), is(1));\n assertThat(eventBus.eventTypeToSubscriberMethods.size(), is(1));\n assertThat(eventBus.eventTypeToSubscriberMethods.containsKey(String.class), is(false));\n assertThat(eventBus.eventTypeToSubscriberMethods.get(Integer.class).size(), is(1));\n\n eventBus.unregister(object1);\n assertThat(eventBus.objectSubscriberMethods.size(), is(0));\n assertThat(eventBus.eventTypeToSubscriberMethods.size(), is(0));\n }" ]
[ "0.7334951", "0.7042834", "0.69792527", "0.6822029", "0.67915434", "0.66076815", "0.65918523", "0.657531", "0.6505734", "0.648674", "0.64597636", "0.64409065", "0.63718903", "0.63544095", "0.6288049", "0.62492", "0.62483364", "0.6238604", "0.62204087", "0.6214574", "0.6167777", "0.6153153", "0.60718054", "0.5984623", "0.5932281", "0.5917611", "0.5916792", "0.5871905", "0.5864875", "0.5841237", "0.58331066", "0.5832082", "0.5805864", "0.577132", "0.57705116", "0.5763326", "0.5742498", "0.5715678", "0.5639613", "0.56284064", "0.5627864", "0.56087536", "0.5594681", "0.5591996", "0.5559467", "0.5541763", "0.5529107", "0.55285716", "0.5528126", "0.5515889", "0.5508637", "0.55080104", "0.5486751", "0.5478362", "0.5432169", "0.54262316", "0.5401633", "0.5399791", "0.536484", "0.53544205", "0.5335431", "0.5290931", "0.5289694", "0.52787507", "0.5274924", "0.5274814", "0.5270193", "0.5240244", "0.5230733", "0.5229888", "0.52234614", "0.52195436", "0.5213837", "0.5213386", "0.5206778", "0.51936674", "0.51882315", "0.51824313", "0.5170881", "0.5168701", "0.51619524", "0.51550156", "0.5152188", "0.5140242", "0.5135914", "0.51228654", "0.5114514", "0.5100995", "0.509877", "0.5082447", "0.5080399", "0.5073607", "0.5069293", "0.50673133", "0.5061814", "0.5047314", "0.5040252", "0.5036402", "0.50288796", "0.5024233" ]
0.6354076
14
/Demo1 obj=new Demo1(); >The only purpose of the class Demo1 is to implement abc i.e to define the abstract method void show() then we can go use anonymous interface concept where you are creating object for an interface which is not possible in any other way
public static void main(String args[]) { abc obj=new abc() { public void show() { System.out.println("In Demo1 show...!"); } }; obj.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}", "interface A{\n void show();\n}", "public static void main(String[] args)\r\n{\n\tInterfaceDemo obj=new InterfaceDemo();\r\n\t//3. Reference variable can be created\r\n\tInterfaceDemo obj1=new Demo();\r\n}", "public static void main(String[] args) {\n\n //Implementation of Anonymous Inner Class using Interface\n PrintInterface pi = new PrintInterface() {\n @Override\n public void display() {\n System.out.println(\"Mayur knows Inner Class\");\n }\n\n @Override\n public boolean isDisplayed() {\n return false;\n }\n };\n pi.display();\n System.out.println(pi.isDisplayed());\n\n\n //Implementation of Anonymous Inner Class using abstract calss\n PrintMessage pm = new PrintMessage() {\n @Override\n void printMessage() {\n System.out.println(\"Print the Message----\");\n }\n };\n pm.printMessage();\n}", "public static void main(String[] args) {\nABC d= new ABC()\n{\n\tpublic void show() \n\t{\n\t\tSystem.out.println(\" i am in the B\"); \n\t}\n};\nd.show();\n\n\t}", "interface Employee {\n\tpublic void showEmployeeDetails();\n}", "public static void main(String args[]){\nA obj = new B();\n/*And this if I say */\n obj.show(); //This will execute but when I say\n/* obj.display();*/ // This is not possible because display doesnt belong to A interface it belongs\n // to C and I am restricting this user from using this display.\n//This is why Interface are largely used and this the importance of Interface.\n//1 Interface helps you to use Multiple Interface in Java. \n//2.It provides you security. \n//3.Whenever you want to instanstiate an interface we need to create a class which will implement\n// your interface.\n//4. \n}", "public static void main(String[] args) {\n\t\t\r\ni o=new interface_cl();\r\no.show();\r\n\t}", "public static void main(String[] args) {\n\t\tInterfacedemo2 obj1=new Interfacedemo2();\n\t\tobj1.display();\n\t\tobj1.show();\n\t}", "interface idemo\r\n{\r\n\t//variables are by default final\r\n\tint t=8;\r\n\tpublic int ttData();\r\n\t\r\n}", "public interface AnonymousClass1MS {\n void AHV();\n\n void AHo();\n}", "public static void main(String[] args) {\n\t\tA a=new A();\r\n\t\ta.display();\r\n\t\ta.a_display(); // non interface method.\r\n\t\t\r\n\t\t//output : ====A display====\r\n/* Exp: In the above code we defined referance variable \"a\" as A class type,\r\n \t\tin order to call display() method which A class implemented.*/\r\n\t\t\r\n\t//case 2: Now if we want to use display method in B class we will do following code\r\n\t\t\r\n\t\tB b=new B();\r\n\t\tb.display();\r\n\t\t\r\n\t\t//output : \t\t====B display====\r\n/* Exp: In the above code we defined referance variable \"b\" as B class type,\r\n \t\tin order to call display() method which B class implemented. */\r\n\t\t\r\n\t\tInn i=new A(); //new B() to access B class display()\r\n\t\ti.display();\r\n\t\t/*i.a_display(); this gives an error, since interface referance cannot\r\n\t\tpoint to non interface methods*/\r\n\t\t\r\n\t\t//output : ====A display====\r\n\t\t\r\n/*\t\tExp: The above code states that object of \"A\" class was stored in \"i\" variable\r\n\t\t\t which is of \"Inn\" interface type. Since A implements Inn, so Inn type varables\r\n\t\t\t can call all methods in that Interface. \r\n\t\t\t \r\n\t\t\t So display() which belongs to Inn and implemented by A class can be accesed \r\n\t\t\t by \"i\" varable. \r\n\t\t\t this results i.display() to give output \"====A display====\".\r\n\t\tin case2:\r\n\t\t\t Now if I want to access display() in B implementation we simple need\r\n\t\t\t TO CHANGE ONLY ONE LINE \" ie OBJECT CREATION\"\r\n\t\t\t Inn i= new B();\r\n\t\t\t\ti.display();\r\n\t\t\r\n\t\t//output : ====B display====\r\n\t\t\t */\r\n \t\t\r\n\t/*Now we can state that \"Inn\" Interface reference \"i\" is going point any\r\n\tclass object \"A\" or \"B\"\tthat implements \"Inn\"\r\n\t\tNOTE: AN INTERFANCE REFERENCE CANNOT POINT TO NON INTERFACE MENTHODS IN A CLASS \r\n\t\t*/\r\n\t}", "interface in12 \n{ \n\tfinal int a = 10; \n\tdefault void display() \n\t{ \n\t\tSystem.out.println(\"hello\"); \n\t} \n\tdefault void display1() \n\t{\t\n\t\tSystem.out.println(\"hello displa1\"); \n\t}\n}", "interface EmployeeInfo{\n void details();\n}", "public static void main(String[] args) {\n\n Animal lion = new Lion();\n\n lion.run();\n\n Employee employee = new Employee();\n\n\n // Anonymous class\n EmployeeInterface employeeInterface = new EmployeeInterface() {\n @Override\n public void showInfo() {\n\n }\n\n @Override\n public void addEmployee() {\n\n }\n\n @Override\n public void removeEmployee() {\n\n }\n };\n }", "@FunctionalInterface // or we can call it SAM\r\n interface ShowMe{\r\n\t\r\n\t void showOk();\r\n\t \r\n\tpublic default void one()\r\n\t {\r\n\t System.out.println(\"method one \");\r\n };\r\n \r\n public static void one1()\r\n {\r\n System.out.println(\"method one 1 \");\r\n };\r\n \r\n public default void one2()\r\n \t {\r\n \t System.out.println(\"method one2 \");\r\n };\r\n \r\n }", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "interface School\r\n{\r\n\tString sname=\"abc\";\t\r\n\r\n\tvoid display();\r\n\r\n}", "public interface DisplayInterface {\n\t\n\t// Abstract Method\n\t\n\t// Runnable \n\t\n\tpublic void display ();\n\n\n}", "public interface AnonymousClass4O {\n}", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface Employee{\n\n void takeCall();\n void endCall();\n}", "public interface AlarmInfoInterface {\n\n /**\n * 时间选择\n */\n void showDateDialog(int timetype);\n /**\n * 通知区县选择\n */\n void showCountrySelectDialog(int type);\n\n void showProgress(boolean isshow);\n /**\n * 显示图片\n */\n void showImage();\n /**\n * 显示图片\n */\n void showImageDetail(int imgpath);\n /**\n * 接警来源\n */\n void showOriginDialog();\n /**\n * 火情状态\n */\n void showStatusDialog();\n\n /**\n * 是否火灾\n */\n void showIsfireDialog();\n /**\n * 接警详细\n */\n void openAlarmInfoDetails(String id);\n\n\n\n\n}", "interface A {\n\t\tvoid displayA();\n\t}", "public interface a {\n }", "public interface i {\n}", "interface TestInterface1\n{\n // default method\n default void show()\n {\n System.out.println(\"Default TestInterface1\");\n }\n \n public static void show2()\n {\n System.out.println(\"Default TestInterface2\");\n }\n}", "public interface InterfaceTest {\n\n public String str = new String();\n public void testa();\n}", "public static void main(String[] args) {\n Interface i = () -> System.out.println(\"om sai ram ji\");\n i.m1();\n /*using Annonymous inner class*/\n// Interface i4= new Test(){\n// System.out.print(\"Annoymous inner class invoked\");\n// };\n\n\n /*using Method Reference for refering static method*/\n Interface i1 = Test::m3;\n i1.m1();\n\n /*using Method Reference for refering non static method*/\n Test t = new Test();\n Interface i2 = t::m2;\n i2.m1();\n\n }", "public interface a {\n void a();\n\n void a(al alVar);\n\n void b(al alVar);\n\n void c(al alVar);\n }", "public static void main(String[] args) {\n\n A obj = new A(){\n void fun1() {\n System.out.println(\"Anonumous Overidden method \");\n }\n // can't create \n // void fun2(){\n // System.out.println(\"fun2 method \");\n // }\n };\n obj.fun1(); // Anonymous Overidden method \n\n\n C obj2 = new C(){\n void funC1(){\n System.out.println(\"func1 \");\n }\n void funC2(){\n System.out.println(\"func2 \");\n }\n };\n obj2.funC1();//func1\n obj2.funC2(); //func2\n }", "public interface IZiFenLeiXiang {\n public String getid();\n public void showZiFenLeiXiang(ZiFenLeiXiangBean ziFenLeiXiangBean);\n}", "interface InterfaceA1 { // 1、接口。\n public String INFO = \"Hello world!\";\n\n public void print();\n}", "default void display1(){\n\t\tSystem.out.println(\"Default Method inside interface\");\n\t}", "public interface AnonymousClass0Y6 {\n void A3h();\n\n void A41();\n}", "public interface a {\n void a(String str);\n }", "public interface def2 {\n default void go(){\n System.out.println(\"def2\");\n }\n}", "private void createIAnalysisInterface(final Environment result,\n\t\t\tfinal Environment ext)\n\t{\n\n\t\tMethodFactory extMf = new MethodFactory()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic Method createCaseMethod(IClassDefinition cdef)\n\t\t\t{\n\t\t\t\tAnalysisAdaptorCaseMethod aacm = new AnalysisAdaptorCaseMethod();\n\t\t\t\taacm.setClassDefinition(cdef);\n\t\t\t\treturn aacm;\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Method createDefaultCaseMethod(IClassDefinition cdef)\n\t\t\t{\n\t\t\t\tAnalysisAdaptorDefaultMethod aadm = new AnalysisAdaptorDefaultMethod();\n\t\t\t\taadm.setClassDefinition(cdef);\n\t\t\t\treturn aadm;\n\t\t\t}\n\n\t\t};\n\n\t\tcreateAnalysisInterface(Arrays.asList(new String[0]), \"Analysis\", result.TAG_IAnalysis, extMf, ext, result, base);\n\t}", "public interface Component {\n void show();\n\n}", "public interface AnonymousClass0RF {\n}", "public static void main(String[] args) {\n\t\tDomestic_Consumer dc=new Domestic_Consumer(111,\"vishal\");\r\n\t\t//better way to implement runtime polymorhism\r\n\t\t//ref variable of interface pointing to implementing class\r\n\t\tElectric_Domestic dom=new Domestic_Consumer(123,\"java\");\r\n\t\tint bill=dom.calcBill(130);\r\n\t\tSystem.out.println(\"Totl bill is \"+bill);\r\n\t\t bill=dc.calcBill(100);\r\n\t\tSystem.out.println(\"bill is\" +bill);\r\n\r\n\t}", "public interface PreviewImpl {\n void ilog(String msg);\n void ierror(String msg);\n void record(int i,boolean isRecord);\n void capture(String path);\n void iToast(String msg);\n void showBattery(int i);\n void isConnect(boolean isConnect);\n void setAngleAnimation(RotateAnimation ra_swing, RotateAnimation ra_picth, RotateAnimation ra_roll, RotateAnimation ra_head);\n void stop();\n\n void setEnvironmentData(EnvironmentInfo environmentData);\n\n}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface Ave {\n\n public void voar();\n\n}", "public interface Display {\r\n\tvoid display();\r\n}", "public interface IBiz{\n\tpublic void BizCallBack(Action action);//biz层接口\n}", "public interface Observer{\n //一发现别人有动静,自己也要行动起来\n public void update(String context);\n\n\n}", "interface A9 {\r\n void test(int i, String s1); //test method is taking some argument\r\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tInstitude i1=new Institude(10,\"Pune\",new Branch(11,\"Bas\",new Subject(20,\"Java\",new Topic\r\n\t\t\t\t(30,\"Method Overloading\",new SubTopic(40,\"Method Overriding\",new Question(50,\"What is class\"))))));\r\n\t\t\r\n\t\tSystem.out.println(i1);\r\n\t\t\r\n\t\t\r\n//\t\tInstitude i1=new Institude();\r\n//\t\ti1.setId(10);\r\n//\t\ti1.setName(\"Pune\");\r\n//\t\t\r\n//\t\tBranch b1=new Branch();\r\n//\t\tb1.setId(11);\r\n//\t\tb1.setName(\"Bsc\");\r\n//\t\t\r\n//\t\tSubject s1=new Subject();\r\n//\t\ts1.setId(20);\r\n//\t\ts1.setName(\"Java\");\r\n//\t\t\r\n//\t\tTopic t1=new Topic();\r\n//\t\tt1.setId(30);\r\n//\t\tt1.setName(\"Method Overloading\");\r\n//\t\t\r\n//\t\tSubTopic s2=new SubTopic();\r\n//\t\ts2.setId(40);\r\n//\t\ts2.setName(\"Method overriding\");\r\n//\t\t\r\n//\t\tQuestion q1=new Question();\r\n//\t\tq1.setId(50);\r\n//\t\tq1.setName(\"What is Class ?\");\r\n//\t\t\r\n//\t\t\r\n//\t\ti1.setB1(b1);\r\n//\t\tb1.setS1(s1);\r\n//\t\ts1.setT1(t1);\r\n//\t\tt1.setSt(s2);\r\n//\t\ts2.setQ1(q1);\r\n//\t\t\r\n//\t\tSystem.out.println(i1);\r\n\t\r\n\t\t}", "public interface Zrada\n{\n void accuse();\n}", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "abc createabc();", "public interface a {\n b nJ(String str);\n}", "public interface Phone {\n\t\n\tpublic abstract void interfaceInfo();\n\t\t//System.out.println(\"interface is a class - can't be implemented/declared only\");\n\t\n\tpublic abstract void call();\n\tpublic abstract void message();\n\tpublic abstract void camera();\n\t//we can implement these abstract methods by writing in a concrete class- or Iphone1 (see the codes in Iphone1 class)\n\t\n\tpublic default void battery() {\n\t\tSystem.out.println(\"battery is a default method from Java 1.8\");\n\t}\n\tpublic static void wireless() {\n\t\tSystem.out.println(\"wireless is a static method from Java 1.8\");\n\t}\n\t\n\t\n\t\n\t//We can only apply extends keyword but NOT implements for inheritance in interface. \n\t//Interface can inherit multiple interfaces using extends keyword.\n\t\n\t\n\t\n\n}", "public interface IOrderView {\n // 展示数据的方法\n void ShowData(SearchOrderBean bean);\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "interface InterfaceA {\n\tint a = 5;\n\tvoid show();\n\tint display();\n}", "public interface AInterface {\n\n public void say();\n\n}", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "public interface AnonymousClass05L {\n}", "public static void main(String[] args) {\n\t\t\n\t\tTestInterface1 obj1 = new Test1(); //TestInterface1= Interface we created, obj1= object ref, Test1= class in which we call the interface and Complete\n\t\tTestInterface2 obj2 = new Test1();\n\t\tobj1.Test1();\n\t\tobj2.Sample();\n\t\t\n\t\tTest1 obj = new Test1();\n\t\tobj.Test1();\n\t\tobj.Test2();\n\t\tobj.Test3();\n\t\tobj.Sample();\n\t\t\n\t\t\n\t}", "public interface Showable {\n void show();\n}", "public interface Experiment {\n void test1(String name);\n}", "public interface Animal {\n\n //Animal reproduce();\n\n}", "public interface ZhiHuDetailsInfoPresenter extends BasePresenter {\n\t//请求详情数据\n\tvoid requestInfo(int id);\n\n}", "interface Test4{\r\n\tpublic void m1();\r\n}", "public interface SimpleInterface {\n void f();\n}", "public static void main(String[] args) {\n\t\tInterface_Impl3 obj = new Interface_Impl3();\r\n\t\t\r\n\t}", "public interface Product {\n void show();\n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "public interface Animal {\n\n void print();\n}", "public interface Citizen {\n public abstract void sayHello();\n}", "interface C34503a {\n void bMl();\n }", "public void hello(){\n\t\tSystem.out.println(\"hello Interface\\n\");\n\t}", "public interface ITestInterface {\n\t\tdefault public void sayHello() {\n\t\t\tSystem.out.println(\"Hi World!\");\n\t\t}\n\t}", "public interface Display {\n\n void show(String information);\n}", "public interface test {\n void test();\n}", "public static interface _cls1\n{\n\n public static final _cls1 a = new aky.f() {\n\n public alb a(alb alb)\n {\n return alb;\n }\n\n };\n\n public abstract alb a(alb alb);\n\n}", "public static void main(String[] args){\n \n new Eatable(){ // this is anonemous class\n \n public void eat(){\n System.out.println(\"This Method Override Message\");\n }\n }.eat();\n }", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public interface IEmployeeDetails {\n /**\n * 员工详情\n */\n Object getEmployeeDetails(EmployeeDetailsParam employeeDetailsParam);\n}", "abstract interface I1 {\n public abstract void m1();\n}", "public interface Behaviour {\n/**abstract method of the Behaviour interface*/\n\tvoid sad();\n}", "public static void main(String[] args) \n\t{\n\t\tAno_A obj = new Ano_A() \t // Anonymous class creation during object instantiation therefore class Ano_B is not required anymore\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void show()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Anonymous class for method Overriding..\");\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\tobj.show();\t\n\t}", "public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\tExampleDemo Demo=new ExampleDemo();//taking an object\r\n\t\r\n\t\tDemo.display();\r\n\t\t\r\n\t//here it is accepting the object class \r\n\t}", "public interface C12861aa {\n void initOfferwall(Activity activity, String str, String str2, JSONObject jSONObject);\n\n void setInternalOfferwallListener(C12878j jVar);\n}", "public interface IShowWeatherInfoPresenter {\r\n public void showWeatherInfoPresenter();\r\n}", "public static void main(String[] args) {\n com.abc.Demo d=new demo();\n Demo d1= new Demo1();\n \n\t}", "public interface VuActivityMain extends Vu.ActivityVu {\n void showBtn(String st);\n\n void showBtn2(String st);\n}", "public interface BaseballActionViewController {\n //void init();\n //void show();\n //void dismiss();\n}", "public void calling(){ // when the abstract method is implemented in other class 'public' keyword is used..\r\n System.out.println(\"I am calling...\");\r\n }", "public interface ABC extends Unionpay { //农行卡\n public boolean payPhoneBill(String phone , double money );//交话费\n}", "public interface b {\n void a();\n }", "public interface b {\n void a();\n }", "public interface o {\n void onSupportActionModeFinished(b bVar);\n\n void onSupportActionModeStarted(b bVar);\n\n b onWindowStartingSupportActionMode(a aVar);\n}", "public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}", "public interface Animal {\n\npublic String voice();\n\n}", "public interface Hello {\n\n String hello();\n}" ]
[ "0.7579533", "0.6958325", "0.6949679", "0.6826586", "0.6747593", "0.6728034", "0.6697212", "0.6658855", "0.6469203", "0.6408291", "0.64082193", "0.6338201", "0.6326792", "0.63046706", "0.629144", "0.6267601", "0.6239805", "0.6239805", "0.62263775", "0.6220747", "0.6176741", "0.61763406", "0.611656", "0.60974157", "0.6097173", "0.60795355", "0.6076195", "0.6053327", "0.60441613", "0.60387665", "0.60074794", "0.600269", "0.59980917", "0.5990587", "0.5984792", "0.5984456", "0.5981539", "0.59683937", "0.59661674", "0.5952379", "0.5950676", "0.5934426", "0.5934317", "0.5920626", "0.5916513", "0.59118307", "0.5908707", "0.5902786", "0.58713555", "0.58670443", "0.5864064", "0.58621246", "0.5860774", "0.58601505", "0.58592075", "0.58535457", "0.585169", "0.5850239", "0.58451545", "0.5844111", "0.5838449", "0.5837876", "0.58373743", "0.5835963", "0.58337444", "0.5832355", "0.5824175", "0.5816907", "0.5814911", "0.5811014", "0.5801727", "0.57976", "0.57975584", "0.5787215", "0.57834935", "0.5780958", "0.5780564", "0.57741576", "0.57741296", "0.5767277", "0.57664275", "0.57548016", "0.57544094", "0.5748869", "0.5743445", "0.57350904", "0.5732064", "0.572516", "0.5719459", "0.5716582", "0.57121164", "0.57116735", "0.5710624", "0.5710214", "0.5707036", "0.5707036", "0.5705962", "0.570342", "0.5700721", "0.5700508" ]
0.7626855
0
TODO Autogenerated method stub
protected void initialize() { requires(simpleVision); }
{ "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
protected void execute() { ParticleAnalysisReport[] reports = simpleVision.getFrame(); for (int i = 0; i < reports.length; i++) { // print results ParticleAnalysisReport r = reports[i]; SmartDashboard.putString("Particle" + i, r.center_mass_x + ", " + r.center_mass_y); } }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
protected boolean isFinished() { return 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
protected void end() { }
{ "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
protected void interrupted() { }
{ "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
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mappedBy);", "Builder addMainEntity(String value);", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "@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 }", "Builder addMainEntity(Thing value);", "private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }", "public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public PimsSysReqFieldDaoHibernate() {\n super(PimsSysReqField.class);\n }", "FieldDefinition createFieldDefinition();", "protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) {\n MetaClass metaClass = container.getEntityMetaClass();\n Range range = metaProperty.getRange();\n\n boolean isRequired = isRequired(metaProperty);\n\n UiEntityAttributeContext attributeContext = new UiEntityAttributeContext(metaClass, metaProperty.getName());\n accessManager.applyRegisteredConstraints(attributeContext);\n\n if (!attributeContext.canView())\n return;\n\n if (range.isClass()) {\n UiEntityContext entityContext = new UiEntityContext(range.asClass());\n accessManager.applyRegisteredConstraints(entityContext);\n if (!entityContext.isViewPermitted()) {\n return;\n }\n }\n\n ValueSource valueSource = new ContainerValueSource<>(container, metaProperty.getName());\n\n ComponentGenerationContext componentContext =\n new ComponentGenerationContext(metaClass, metaProperty.getName());\n componentContext.setValueSource(valueSource);\n\n Field field = (Field) uiComponentsGenerator.generate(componentContext);\n\n if (requireTextArea(metaProperty, getItem(), MAX_TEXTFIELD_STRING_LENGTH)) {\n field = uiComponents.create(TextArea.NAME);\n }\n\n if (isBoolean(metaProperty)) {\n field = createBooleanField();\n }\n\n if (range.isClass()) {\n EntityPicker pickerField = uiComponents.create(EntityPicker.class);\n\n EntityLookupAction lookupAction = actions.create(EntityLookupAction.class);\n lookupAction.setScreenClass(EntityInspectorBrowser.class);\n lookupAction.setScreenOptionsSupplier(() -> new MapScreenOptions(\n ParamsMap.of(\"entity\", metaProperty.getRange().asClass().getName())));\n lookupAction.setOpenMode(OpenMode.THIS_TAB);\n\n pickerField.addAction(lookupAction);\n pickerField.addAction(actions.create(EntityClearAction.class));\n\n field = pickerField;\n }\n\n field.setValueSource(valueSource);\n field.setCaption(getPropertyCaption(metaClass, metaProperty));\n field.setRequired(isRequired);\n\n isReadonly = isReadonly || (disabledProperties != null && disabledProperties.contains(metaProperty.getName()));\n if (range.isClass() && !metadataTools.isEmbedded(metaProperty)) {\n field.setEditable(metadataTools.isOwningSide(metaProperty) && !isReadonly);\n } else {\n field.setEditable(!isReadonly);\n }\n\n field.setWidth(fieldWidth);\n\n if (isRequired) {\n field.setRequiredMessage(messageTools.getDefaultRequiredMessage(metaClass, metaProperty.getName()));\n }\n form.add(field);\n }", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "public interface JdlFieldView extends JdlField, JdlCommentView {\n //TODO This validation should be handled in JdlService\n default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }\n\n default String constraints() {\n List<String> constraints = new ArrayList<>();\n if (renderRequired()) constraints.add(requiredConstraint());\n if (isUnique()) constraints.add(uniqueConstraint());\n getMin().ifPresent(min -> constraints.add(minConstraint(min)));\n getMax().ifPresent(max -> constraints.add(maxConstraint(max)));\n getPattern().ifPresent(pattern -> constraints.add(patternConstraint(pattern)));\n return (!constraints.isEmpty()) ? \" \".concat(Joiner.on(\" \").join(constraints)) : null;\n }\n\n // TODO do not write required when field is primary key\n default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }\n\n @NotNull\n default String requiredConstraint() {\n return \"required\";\n }\n\n @NotNull\n default String uniqueConstraint() {\n return \"unique\";\n }\n\n default String minConstraint(int min) {\n return switch (getType()) {\n case STRING -> validationMinLength(min);\n default -> validationMin(min);\n };\n }\n\n default String maxConstraint(int max) {\n return switch (getType()) {\n case STRING -> validationMaxLength(max);\n default -> validationMax(max);\n };\n }\n\n //TODO This validation should be handled in JdlService\n default String patternConstraint(String pattern) {\n return switch (getType()) {\n case STRING -> validationPattern(pattern);\n default -> throw new RuntimeException(\"Only String can have a pattern\");\n };\n }\n\n @NotNull\n default String validationMax(final int max) {\n return \"max(\" + max + \")\";\n }\n\n @NotNull\n default String validationMin(final int min) {\n return \"min(\" + min + \")\";\n }\n\n default String validationMaxLength(final int max) {\n return \"maxlength(\" + max + \")\";\n }\n\n @NotNull\n default String validationMinLength(final int min) {\n return \"minlength(\" + min + \")\";\n }\n\n @NotNull\n default String validationPattern(final String pattern) {\n return \"pattern(/\" + pattern + \"/)\";\n }\n}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}", "void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);", "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating field\");\n } finally {\n span.finish();\n }\n }", "@Test\n\tpublic void testFieldCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal String entityInputTypeName = Entity6.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityInputType = getFullType(introspection, entityInputTypeName);\n\t\tfinal String entity6TypeName = Entity6.class.getSimpleName();\n\t\tfinal IntrospectionFullType entityType = getFullType(introspection, entity6TypeName);\n\t\t// Check field attr1 is not readable\n\t\tfinal Optional<IntrospectionTypeField> attr1Field = getOptionalField(entityType, \"attr1\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a readable field [{}] in [{}].\", \"typeField\", entity6TypeName),\n\t\t\t\tattr1Field.isPresent());\n\t\t// Check field attr2 is not saveable\n\t\tfinal Optional<IntrospectionInputValue> attr2InputField = getOptionalInputField(entityInputType, \"attr2\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a not saveable field [{}] in [{}].\", \"attr2\", entityInputTypeName),\n\t\t\t\tattr2InputField.isPresent());\n\t\t// Check field attr3 is not nullable\n\t\tassertInputField(entityInputType, \"attr3\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr4 is not nullableForCreate\n\t\tassertInputField(entityInputType, \"attr4\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr5 is not nullableForUpdate\n\t\tassertInputField(entityInputType, \"attr5\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr6 is not filterable\n\t\tfinal String entityFilterTypeName = Entity6.class.getSimpleName()\n\t\t\t\t+ schemaConfig.getQueryGetListFilterEntityTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityFilterInputType = getFullType(introspection, entityFilterTypeName);\n\t\tfinal Optional<IntrospectionInputValue> attr4IinputField = getOptionalInputField(entityFilterInputType,\n\t\t\t\t\"attr6\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a filterable field [{}] in [{}].\", \"attr6\", entityFilterTypeName),\n\t\t\t\tattr4IinputField.isPresent());\n\t\t// Check field attr7 is mandatory\n\t\t// Check field attr8 is mandatory for update\n\t\t// Check field attr9 is mandatory for create\n\n\t\t// Check field attr10 is not readable for ROLE1\n\t\t// Check field attr10 is not readable for ROLE1\n\n\t\t// Check field attr11 is not saveable for ROLE1\n\n\t\t// Check field attr12 is not nullable for ROLE1\n\n\t\t// Check field attr13 is not nullable for update for ROLE1\n\n\t\t// Check field attr14 is not nullable for create for ROLE1\n\n\t\t// Check field attr15 is mandatory for ROLE1\n\n\t\t// Check field attr16 is mandatory for update for ROLE1\n\n\t\t// Check field attr17 is mandatory for create for ROLE1\n\n\t\t// Check field attr18 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr19 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr20 is not readable for ROLE1 and not saveable ROLE2\n\n\t\t// Check field attr21 is not readable and not nullable for ROLE1 and\n\t\t// ROLE2\n\n\t\t// Check field attr21 is readable and nullable for other roles than ROLE\n\t\t// 1 and ROLE2\n\n\t\t// Check field attr22 is readable for ROLE1\n\n\t\t// Check field attr22 is not readable for everybody except ROLE1\n\t}", "public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }", "Builder addMainEntity(Thing.Builder value);", "public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}", "void addFieldBinding( FieldBinding binding );", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void setEntityAddDate(String entityAddDate);", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "private void setNewField(String fieldName) {\n setNewField(fieldName, DBCreator.STRING_TYPE, null);\n }", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "private void handleIdFields(JFieldVar field, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.IS_ID_COLUMN) && propertyNode.get(JpaConstants.IS_ID_COLUMN).asBoolean(true)) {\n field.annotate(Id.class);\n }\n\n if (propertyNode.has(JpaConstants.GENERATED_VALUE)) {\n JsonNode generatedValueNode = propertyNode.get(JpaConstants.GENERATED_VALUE);\n JAnnotationUse jAnnotationUse = field.annotate(GeneratedValue.class);\n if (generatedValueNode.has(JpaConstants.STRATEGY)) {\n jAnnotationUse.param(JpaConstants.STRATEGY, GenerationType.valueOf(generatedValueNode.get(JpaConstants.STRATEGY).asText()));\n }\n }\n }", "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className\n );", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "HxField createField(final String fieldType,\n final String fieldName);", "public static CommonTableField createUpdatedEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(UPDATED_TITLE)\n .entityFieldName(UPDATED_ENTITY_FIELD_NAME)\n .type(UPDATED_TYPE)\n .tableColumnName(UPDATED_TABLE_COLUMN_NAME)\n .columnWidth(UPDATED_COLUMN_WIDTH)\n .order(UPDATED_ORDER)\n .editInList(UPDATED_EDIT_IN_LIST)\n .hideInList(UPDATED_HIDE_IN_LIST)\n .hideInForm(UPDATED_HIDE_IN_FORM)\n .enableFilter(UPDATED_ENABLE_FILTER)\n .validateRules(UPDATED_VALIDATE_RULES)\n .showInFilterTree(UPDATED_SHOW_IN_FILTER_TREE)\n .fixed(UPDATED_FIXED)\n .sortable(UPDATED_SORTABLE)\n .treeIndicator(UPDATED_TREE_INDICATOR)\n .clientReadOnly(UPDATED_CLIENT_READ_ONLY)\n .fieldValues(UPDATED_FIELD_VALUES)\n .notNull(UPDATED_NOT_NULL)\n .system(UPDATED_SYSTEM)\n .help(UPDATED_HELP)\n .fontColor(UPDATED_FONT_COLOR)\n .backgroundColor(UPDATED_BACKGROUND_COLOR)\n .nullHideInForm(UPDATED_NULL_HIDE_IN_FORM)\n .endUsed(UPDATED_END_USED)\n .options(UPDATED_OPTIONS);\n return commonTableField;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "protected synchronized void addFieldEntity(int fld_i, String entity) {\r\n // System.err.println(\"addFieldEntity(\" + fld_i + \",\\\"\" + entity + \"\\\")\");\r\n //\r\n // fld_i is used to indicate if this is a second iteration of addFieldEntity() to prevent\r\n // infinite recursion... not sure if it's correct... for example, what happens when\r\n // a post-processor transform converts a domain to an ip address - shouldn't that IP\r\n // address then be further decomposed?\r\n //\r\n if (fld_i != -1 && entity.equals(BundlesDT.NOTSET)) {\r\n ent_2_i.put(BundlesDT.NOTSET, -1); \r\n fld_dts.get(fld_i).add(BundlesDT.DT.NOTSET);\r\n\r\n //\r\n // Decompose a tag into it's basic elements\r\n //\r\n } else if (fld_i != -1 && fieldHeader(fld_i).equals(BundlesDT.TAGS)) {\r\n addFieldEntity(-1,entity); // Add the tag itself\r\n Iterator<String> it = Utils.tokenizeTags(entity).iterator();\r\n while (it.hasNext()) {\r\n String tag = it.next(); addFieldEntity(-1, tag);\r\n\tif (Utils.tagIsHierarchical(tag)) {\r\n String sep[] = Utils.tagDecomposeHierarchical(tag);\r\n\t for (int i=0;i<sep.length;i++) addFieldEntity(-1, sep[i]);\r\n\t} else if (Utils.tagIsTypeValue(tag)) {\r\n String sep[] = Utils.separateTypeValueTag(tag);\r\n\t tag_types.add(sep[0]);\r\n\t addFieldEntity(-1,sep[1]);\r\n\t}\r\n }\r\n\r\n //\r\n // Otherwise, keep track of the datatype to field correlation and run post\r\n // processors on the item to have those lookups handy.\r\n //\r\n } else {\r\n // System.err.println(\"determining datatype for \\\"\" + entity + \"\\\"\"); // DEBUG\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(entity); if (dt_count_lu.containsKey(datatype) == false) dt_count_lu.put(datatype,0);\r\n // System.err.println(\"datatype for \\\"\" + entity + \"\\\" ==> \" + datatype); // DEBUG\r\n if (datatype != null) {\r\n// System.err.println(\"390:fld_i = \" + fld_i + \" (\" + fld_dts.containsKey(fld_i) + \")\"); // abc DEBUG\r\n// try { System.err.println(\" \" + fieldHeader(fld_i)); } catch (Throwable t) { } // abc DEBUG\r\n if (fld_i != -1) fld_dts.get(fld_i).add(datatype);\r\n if (ent_2_i.containsKey(entity) == false) {\r\n\t // Use special rules to set integer correspondance\r\n\t switch (datatype) {\r\n\t case IPv4: ent_2_i.put(entity, Utils.ipAddrToInt(entity)); break;\r\n\t case IPv4CIDR: ent_2_i.put(entity, Utils.ipAddrToInt((new StringTokenizer(entity, \"/\")).nextToken())); break;\r\n\t case INTEGER: ent_2_i.put(entity, Integer.parseInt(entity)); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n\t break;\r\n case FLOAT: ent_2_i.put(entity, Float.floatToIntBits(Float.parseFloat(entity))); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n break;\r\n\t case DOMAIN: ent_2_i.put(entity, Utils.ipAddrToInt(\"127.0.0.2\") + dt_count_lu.get(datatype)); // Put Domains In Unused IPv4 Space\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n\r\n\t // Pray that these don't collide - otherwise x/y scatters will be off...\r\n\t default: ent_2_i.put(entity, dt_count_lu.get(datatype));\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n }\r\n\t}\r\n\t// Map out the derivatives so that they will have values int the lookups\r\n\t// - Create the post processors\r\n\tif (post_processors == null) {\r\n\t String post_proc_strs[] = BundlesDT.listEnabledPostProcessors();\r\n\t post_processors = new PostProc[post_proc_strs.length];\r\n\t for (int i=0;i<post_processors.length;i++) post_processors[i] = BundlesDT.createPostProcessor(post_proc_strs[i], this);\r\n\t}\r\n\t// - Run all of the post procs against their correct types\r\n if (fld_i != -1) for (int i=0;i<post_processors.length;i++) {\r\n if (post_processors[i].type() == datatype) {\r\n\t String strs[] = post_processors[i].postProcess(entity);\r\n\t for (int j=0;j<strs.length;j++) {\r\n if (entity.equals(strs[j]) == false) addFieldEntity(-1, strs[j]);\r\n\t }\r\n }\r\n\t}\r\n } else if (ent_2_i.containsKey(entity) == false) {\r\n ent_2_i.put(entity, not_assoc.size());\r\n\tnot_assoc.add(entity);\r\n }\r\n }\r\n }", "void add(E entity) throws ValidationException, RepositoryException;", "private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}", "@Label(\"Organization存储\")\npublic interface OrganizationRepository extends ModelQueryAndBatchUpdateRepository<Organization, EOrganization, Integer> {\n\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public void setUWCompany(entity.UWCompany value);", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "@PrePersist()\r\n\tpublic void initEntity(){\r\n\t\tthis.name = WordUtils.capitalizeFully(this.name);\r\n\t}", "public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addEntityMetadata() throws Exception {\n\n\t\tEntityMetadata entity = new EntityMetadata(entityType, false);\n\t\tentity.setRepositoryInstance(\"OperationalDB\");\n\t\tentity.setProviderType(\"RDBMSDataProvider\");\n\n\t\tMap<String, List<String>> providerParams = new HashMap<String, List<String>>();\n\t\tproviderParams.put(\"table\",\n\t\t\t\tArrays.asList(new String[] { \"APPLICATION_OBJECT\" }));\n\t\tproviderParams.put(\"id_column\", Arrays.asList(new String[] { \"ID\" }));\n\t\tproviderParams.put(\"id_type\", Arrays.asList(new String[] { \"guid\" }));\n\t\tproviderParams.put(\"optimistic_locking\",\n\t\t\t\tArrays.asList(new String[] { \"false\" }));\n\t\tproviderParams.put(\"flex_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_VC\" }));\n\t\tproviderParams.put(\"flex_non_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_VC\" }));\n\t\tproviderParams.put(\"flex_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_DT\" }));\n\t\tproviderParams.put(\"flex_non_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_DT\" }));\n\t\tproviderParams.put(\"flex_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_NUM\" }));\n\t\tproviderParams.put(\"flex_non_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_NUM\" }));\n\t\tproviderParams.put(\"flex_blob_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_BLOB\" }));\n\n\t\tentity.setProviderParameters(providerParams);\n\t\tentity.setContainer(false);\n\n\t\tHashMap<String, Map<String, String>> metadataAttachments = new HashMap<String, Map<String, String>>();\n\t\tMap<String, String> prop = new HashMap<String, String>();\n\t\tprop.put(\"isEncrypted\", \"false\");\n\t\tmetadataAttachments.put(\"properties\", prop);\n\t\tAttributeDefinition attrDef = null;\n\t\tFieldDefinition fieldDef = null;\n\n\t\t// parameters: name, type, description, isRequired, isSearchable, isMLS,\n\t\t// defaultValue, groupName, metadataAttachments\n\n\t\tattrDef = new AttributeDefinition(\"givenName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"lastName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"email\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"startDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"endDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"employeeNo\", \"number\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\n\n\t\tattrDef = new AttributeDefinition(\"__UID__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_UID\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__UID__\", \"AO_UID\");\n\t\t\n\t\tattrDef = new AttributeDefinition(\"__NAME__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_NAME\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__NAME__\", \"AO_NAME\");\n\n\t\t/*\n\t\t * attrDef = new AttributeDefinition(childEntityType, childEntityType,\n\t\t * null, false, true, false, null, \"Basic\", metadataAttachments);\n\t\t * entity.addChildEntityAttribute(attrDef);\n\t\t */\n\n\t\tString xmlString = getStringfromDoc(entity);\n\n\t\ttry {\n\t\t\tmgrConfig.createEntityMetadata(entity);\n\t\t\tSystem.out.println(\"Created entity type: \" + entityType);\n\n\t\t} catch (Exception e) {\n\t\t\t//fail(\"Unexpected exception: \" + getStackTrace(e));\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "public void createFieldEditors()\n\t{\n\t}", "private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "public interface FieldDAO extends CrudRepository<Field, Integer> {\n\n}", "protected Component constructCustomField(EntityModel<U> entityModel, AttributeModel attributeModel) {\n // override in subclasses\n return null;\n }", "public EsIndexPropertyBuilder addField(String fieldName, AllowableFieldEntry field) {\n this.fieldMap.put(fieldName, field);\n return this;\n }", "public AttributeField(Field field){\n this.field = field;\n }", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}", "@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "void addEntity(IViewEntity entity);", "private void createListFields(SGTable table) {\n\t\t\t\n\t\t ListGridField LIST_COLUMN_FIELD = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145); \n\t\t LIST_COLUMN_FIELD.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105); \n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\",Util.TI18N.LIST_COLUMN_WIDTH(),40); \n\t\t ListGridField LIST_SHOW_FLAG = new ListGridField(\"SHOW_FLAG\",Util.TI18N.LIST_SHOW_FLAG(),50);\n\t\t LIST_SHOW_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t ListGridField MODIFY_FLAG=new ListGridField(\"MODIFY_FLAG\",\"\",50);\n\t\t MODIFY_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t MODIFY_FLAG.setHidden(true);\n\t\t table.setFields(LIST_COLUMN_FIELD, LIST_COLUMN_CNAME, LIST_COLUMN_WIDTH, LIST_SHOW_FLAG,MODIFY_FLAG);\n\t}", "public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }", "ObjectField createObjectField();", "public JsonField() {\n }", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "@Test(enabled = false) //ExSkip\n public void insertMergeField(final DocumentBuilder builder, final String fieldName, final String textBefore, final String textAfter) throws Exception {\n FieldMergeField field = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n field.setFieldName(fieldName);\n field.setTextBefore(textBefore);\n field.setTextAfter(textAfter);\n }", "protected abstract void createFieldEditors();", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "private void exposeExposedFieldsToJs() {\n if (fieldsWithNameExposed.isEmpty()) {\n return;\n }\n\n MethodSpec.Builder exposeFieldMethod = MethodSpec\n .methodBuilder(\"vg$ef\")\n .addAnnotation(JsMethod.class);\n\n fieldsWithNameExposed\n .forEach(field -> exposeFieldMethod\n .addStatement(\"this.$L = $T.v()\",\n field.getName(),\n FieldsExposer.class)\n );\n\n exposeFieldMethod\n .addStatement(\n \"$T.e($L)\",\n FieldsExposer.class,\n fieldsWithNameExposed.stream()\n .map(ExposedField::getName)\n .collect(Collectors.joining(\",\"))\n );\n componentExposedTypeBuilder.addMethod(exposeFieldMethod.build());\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public void addField (String label, String field) {\n addField (label, field, \"\");\n }", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrganisationTypeMapper extends EntityMapper<OrganisationTypeDTO, OrganisationType> {\n\n\n @Mapping(target = \"organisations\", ignore = true)\n OrganisationType toEntity(OrganisationTypeDTO organisationTypeDTO);\n\n default OrganisationType fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrganisationType organisationType = new OrganisationType();\n organisationType.setId(id);\n return organisationType;\n }\n}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}", "private void createUserListFields(SGTable table) {\n\t\t ListGridField LIST_COLUMN_ID = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145);\n\t\t LIST_COLUMN_ID.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\", Util.TI18N.LIST_COLUMN_WIDTH(), 40);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t table.setFields(LIST_COLUMN_ID, LIST_COLUMN_CNAME, COLUMN_WIDTH);\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "Builder addMainEntityOfPage(String value);", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "public static void providePOJOsFieldAndGetterSetter(\n final FileWriterWrapper writer,\n final Field field)\n throws IOException {\n String javaType = mapType(field.getOriginalDataType());\n\n writer.write(\" private \" + javaType + \" \" + field.getJavaName()\n + \" = null;\\n\\n\");\n\n writer.write(\" public \" + javaType + \" \" + field.getGetterName()\n + \"() {\\n\");\n writer.write(\" return \" + field.getJavaName() + \";\\n\");\n writer.write(\" }\\n\\n\");\n\n writer.write(\" public void \" + field.getSetterName() + \"(\"\n + javaType + \" newValue) {\\n\");\n writer.write(\" \" + field.getJavaName() + \" = newValue\"\n + \";\\n\");\n writer.write(\" }\\n\\n\");\n }", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Override\n public boolean isDisableMetadataField() {\n return false;\n }", "@SuppressWarnings(\"all\")\n public AField create(IAPresenter source, Field reflectedJavaField, AEntity entityBean) {\n AField algosField = null;\n List items = null;\n boolean nuovaEntity = text.isEmpty(entityBean.id);\n EAFieldType type = annotation.getFormType(reflectedJavaField);\n String caption = annotation.getFormFieldName(reflectedJavaField);\n AIField fieldAnnotation = annotation.getAIField(reflectedJavaField);\n String width = annotation.getWidthEM(reflectedJavaField);\n boolean required = annotation.isRequired(reflectedJavaField);\n boolean focus = annotation.isFocus(reflectedJavaField);\n boolean enabled = annotation.isFieldEnabled(reflectedJavaField, nuovaEntity);\n Class targetClazz = annotation.getComboClass(reflectedJavaField);\n// boolean visible = annotation.isFieldVisibile(reflectedJavaField, nuovaEntity);\n Object bean;\n\n //@todo RIMETTERE\n// int rows = annotation.getNumRows(reflectionJavaField);\n// boolean nullSelection = annotation.isNullSelectionAllowed(reflectionJavaField);\n// boolean newItems = annotation.isNewItemsAllowed(reflectionJavaField);\n\n if (type == EAFieldType.text.noone) {\n return null;\n }// end of if cycle\n\n //@todo RIMETTERE\n// //--non riesco (per ora) a leggere le Annotation da una classe diversa (AEntity)\n// if (fieldAnnotation == null && reflectionJavaField.getName().equals(Cost.PROPERTY_ID)) {\n// type = EAFieldType.id;\n// }// end of if cycle\n\n if (type != null) {\n algosField = fieldFactory.crea(source, type, reflectedJavaField, entityBean);\n }// end of if cycle\n\n if (type == EAFieldType.combo && targetClazz != null && algosField != null) {\n bean = context.getBean(targetClazz);\n\n if (bean instanceof AService) {\n items = ((AService) bean).findAll();\n }// end of if cycle\n\n if (array.isValid(items)) {\n ((AComboField) algosField).fixCombo(items, false, false);\n }// end of if cycle\n }// end of if cycle\n\n\n //@todo RIMETTERE\n// if (type == EAFieldType.enumeration && targetClazz != null && algosField != null) {\n// if (targetClazz.isEnum()) {\n// items = new ArrayList(Arrays.asList(targetClazz.getEnumConstants()));\n// }// end of if cycle\n//\n// if (algosField != null && algosField instanceof AComboField && items != null) {\n// ((AComboField) algosField).fixCombo(items, false, false);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.radio && targetClazz != null && algosField != null) {\n// //@todo PATCH - PATCH - PATCH\n// if (reflectionJavaField.getName().equals(\"attivazione\") && entityBean.getClass().getName().equals(Preferenza.class.getName())) {\n// items = new ArrayList(Arrays.asList(PrefEffect.values()));\n// }// end of if cycle\n// //@todo PATCH - PATCH - PATCH\n//\n// if (items != null) {\n// ((ARadioField) algosField).fixRadio(items);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.link && targetClazz != null && algosField != null) {\n// String lowerName = text.primaMinuscola(targetClazz.getSimpleName());\n// Object bean = context.getBean(lowerName);\n// algosField.setTarget((ApplicationListener) bean);\n// }// end of if cycle\n//\n if (algosField != null && fieldAnnotation != null) {\n// algosField.setVisible(visible);\n algosField.setEnabled(enabled);\n algosField.setRequiredIndicatorVisible(required);\n algosField.setCaption(caption);\n// if (text.isValid(width)) {\n algosField.setWidth(width);\n// }// end of if cycle\n// if (rows > 0) {\n// algosField.setRows(rows);\n// }// end of if cycle\n algosField.setFocus(focus);\n//\n// if (LibParams.displayToolTips()) {\n// algosField.setDescription(fieldAnnotation.help());\n// }// end of if cycle\n//\n// if (type == EAFieldType.dateNotEnabled) {\n// algosField.setEnabled(false);\n// }// end of if cycle\n }// end of if cycle\n\n return algosField;\n }", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}", "public EntityPropertyBean() {}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }" ]
[ "0.62935424", "0.5985966", "0.59330326", "0.5805937", "0.5701243", "0.56256855", "0.56225914", "0.56027466", "0.5590212", "0.55272454", "0.5524442", "0.55027753", "0.5450715", "0.5450022", "0.544771", "0.54397124", "0.542143", "0.53969616", "0.5391886", "0.538626", "0.53792155", "0.5367837", "0.5364089", "0.535507", "0.5353715", "0.53195065", "0.52998656", "0.52816814", "0.5277013", "0.52768844", "0.52729267", "0.5260628", "0.5250849", "0.52386785", "0.52324116", "0.52250737", "0.5224353", "0.5219982", "0.52096975", "0.52081805", "0.52063334", "0.52028495", "0.51916045", "0.5187871", "0.51823795", "0.51453453", "0.51362425", "0.5135708", "0.51344556", "0.5132252", "0.51319075", "0.51292616", "0.51219916", "0.5120357", "0.5116559", "0.5109264", "0.5097271", "0.50854385", "0.5077566", "0.507692", "0.5073939", "0.5070652", "0.5067018", "0.50645334", "0.5061686", "0.50569856", "0.5054185", "0.5053907", "0.50535077", "0.5052703", "0.505118", "0.50487965", "0.50482005", "0.5045496", "0.5041334", "0.5030856", "0.5028865", "0.50241727", "0.5022403", "0.5009591", "0.5006663", "0.5005492", "0.50031775", "0.49985835", "0.4988221", "0.4971053", "0.4958291", "0.4957369", "0.49545625", "0.4954534", "0.49496993", "0.4929643", "0.49284106", "0.4927226", "0.49250922", "0.49236828", "0.49136642", "0.49089125", "0.49065113", "0.49064544", "0.49019954" ]
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CategoriaDespesa categoriaDespesa = (CategoriaDespesa) o; if (categoriaDespesa.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), categoriaDespesa.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "@Mapper(componentModel = \"spring\")\npublic interface SaleMapper extends EntityMapper<SaleDto, Sale> {\n\n @Mapping(source = \"client.id\", target = \"clientId\")\n @Mapping(source = \"client.name\", target = \"clientName\")\n SaleDto toDto(Sale sale);\n\n @Mapping(source = \"clientId\", target = \"client.id\")\n Sale toEntity(SaleDto saleDTO);\n\n default Sale fromId(Long id) {\n if (id == null) {\n return null;\n }\n Sale sale = new Sale();\n sale.setId(id);\n return sale;\n }\n\n}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "@Mapper(componentModel = \"spring\", uses = {SabegheMapper.class, NoeSabegheMapper.class})\npublic interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {\n\n @Mapping(source = \"sabeghe.id\", target = \"sabegheId\")\n @Mapping(source = \"sabeghe.name\", target = \"sabegheName\")\n @Mapping(source = \"noeSabeghe.id\", target = \"noeSabegheId\")\n @Mapping(source = \"noeSabeghe.name\", target = \"noeSabegheName\")\n AdamKhesaratDTO toDto(AdamKhesarat adamKhesarat);\n\n @Mapping(source = \"sabegheId\", target = \"sabeghe\")\n @Mapping(source = \"noeSabegheId\", target = \"noeSabeghe\")\n AdamKhesarat toEntity(AdamKhesaratDTO adamKhesaratDTO);\n\n default AdamKhesarat fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdamKhesarat adamKhesarat = new AdamKhesarat();\n adamKhesarat.setId(id);\n return adamKhesarat;\n }\n}", "public void toEntity(){\n\n }", "public interface EmployeeMapper extends BaseMapper<Employee> {\n\n @Override\n @Select(\"select * from employee\")\n List<Employee> findAll();\n\n @Override\n int save(Employee employee);\n}", "public interface RepositoryJpaMetadataProvider extends\n ItdTriggerBasedMetadataProvider {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "@ProviderType\npublic interface LichChiTietModel\n\textends BaseModel<LichChiTiet>, GroupedModel, ShardedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a lich chi tiet model instance should use the {@link LichChiTiet} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this lich chi tiet.\n\t *\n\t * @return the primary key of this lich chi tiet\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this lich chi tiet.\n\t *\n\t * @param primaryKey the primary key of this lich chi tiet\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @return the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic long getLichChiTietId();\n\n\t/**\n\t * Sets the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @param lichChiTietId the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic void setLichChiTietId(long lichChiTietId);\n\n\t/**\n\t * Returns the group ID of this lich chi tiet.\n\t *\n\t * @return the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this lich chi tiet.\n\t *\n\t * @param groupId the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the language of this lich chi tiet.\n\t *\n\t * @return the language of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLanguage();\n\n\t/**\n\t * Sets the language of this lich chi tiet.\n\t *\n\t * @param language the language of this lich chi tiet\n\t */\n\tpublic void setLanguage(String language);\n\n\t/**\n\t * Returns the company ID of this lich chi tiet.\n\t *\n\t * @return the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this lich chi tiet.\n\t *\n\t * @param companyId the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this lich chi tiet.\n\t *\n\t * @return the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this lich chi tiet.\n\t *\n\t * @param userId the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this lich chi tiet.\n\t *\n\t * @return the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this lich chi tiet.\n\t *\n\t * @param userUuid the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this lich chi tiet.\n\t *\n\t * @return the user name of this lich chi tiet\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this lich chi tiet.\n\t *\n\t * @param userName the user name of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this lich chi tiet.\n\t *\n\t * @return the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this lich chi tiet.\n\t *\n\t * @param createDate the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the created by user of this lich chi tiet.\n\t *\n\t * @return the created by user of this lich chi tiet\n\t */\n\tpublic long getCreatedByUser();\n\n\t/**\n\t * Sets the created by user of this lich chi tiet.\n\t *\n\t * @param createdByUser the created by user of this lich chi tiet\n\t */\n\tpublic void setCreatedByUser(long createdByUser);\n\n\t/**\n\t * Returns the modified date of this lich chi tiet.\n\t *\n\t * @return the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this lich chi tiet.\n\t *\n\t * @param modifiedDate the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the modified by user of this lich chi tiet.\n\t *\n\t * @return the modified by user of this lich chi tiet\n\t */\n\tpublic long getModifiedByUser();\n\n\t/**\n\t * Sets the modified by user of this lich chi tiet.\n\t *\n\t * @param modifiedByUser the modified by user of this lich chi tiet\n\t */\n\tpublic void setModifiedByUser(long modifiedByUser);\n\n\t/**\n\t * Returns the gio bat dau of this lich chi tiet.\n\t *\n\t * @return the gio bat dau of this lich chi tiet\n\t */\n\tpublic Date getGioBatDau();\n\n\t/**\n\t * Sets the gio bat dau of this lich chi tiet.\n\t *\n\t * @param gioBatDau the gio bat dau of this lich chi tiet\n\t */\n\tpublic void setGioBatDau(Date gioBatDau);\n\n\t/**\n\t * Returns the mo ta of this lich chi tiet.\n\t *\n\t * @return the mo ta of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getMoTa();\n\n\t/**\n\t * Sets the mo ta of this lich chi tiet.\n\t *\n\t * @param moTa the mo ta of this lich chi tiet\n\t */\n\tpublic void setMoTa(String moTa);\n\n\t/**\n\t * Returns the nguoi tham du of this lich chi tiet.\n\t *\n\t * @return the nguoi tham du of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiThamDu();\n\n\t/**\n\t * Sets the nguoi tham du of this lich chi tiet.\n\t *\n\t * @param nguoiThamDu the nguoi tham du of this lich chi tiet\n\t */\n\tpublic void setNguoiThamDu(String nguoiThamDu);\n\n\t/**\n\t * Returns the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @return the nguoi chu tri of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiChuTri();\n\n\t/**\n\t * Sets the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @param nguoiChuTri the nguoi chu tri of this lich chi tiet\n\t */\n\tpublic void setNguoiChuTri(String nguoiChuTri);\n\n\t/**\n\t * Returns the selected date of this lich chi tiet.\n\t *\n\t * @return the selected date of this lich chi tiet\n\t */\n\tpublic Date getSelectedDate();\n\n\t/**\n\t * Sets the selected date of this lich chi tiet.\n\t *\n\t * @param selectedDate the selected date of this lich chi tiet\n\t */\n\tpublic void setSelectedDate(Date selectedDate);\n\n\t/**\n\t * Returns the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @return the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic int getTrangthaiChiTiet();\n\n\t/**\n\t * Sets the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @param trangthaiChiTiet the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic void setTrangthaiChiTiet(int trangthaiChiTiet);\n\n\t/**\n\t * Returns the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @return the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic long getLichCongTacId();\n\n\t/**\n\t * Sets the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @param lichCongTacId the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic void setLichCongTacId(long lichCongTacId);\n\n\t/**\n\t * Returns the address of this lich chi tiet.\n\t *\n\t * @return the address of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this lich chi tiet.\n\t *\n\t * @param address the address of this lich chi tiet\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the note of this lich chi tiet.\n\t *\n\t * @return the note of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNote();\n\n\t/**\n\t * Sets the note of this lich chi tiet.\n\t *\n\t * @param note the note of this lich chi tiet\n\t */\n\tpublic void setNote(String note);\n\n\t/**\n\t * Returns the lydo tra ve of this lich chi tiet.\n\t *\n\t * @return the lydo tra ve of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLydoTraVe();\n\n\t/**\n\t * Sets the lydo tra ve of this lich chi tiet.\n\t *\n\t * @param lydoTraVe the lydo tra ve of this lich chi tiet\n\t */\n\tpublic void setLydoTraVe(String lydoTraVe);\n\n\t/**\n\t * Returns the organization ID of this lich chi tiet.\n\t *\n\t * @return the organization ID of this lich chi tiet\n\t */\n\tpublic long getOrganizationId();\n\n\t/**\n\t * Sets the organization ID of this lich chi tiet.\n\t *\n\t * @param organizationId the organization ID of this lich chi tiet\n\t */\n\tpublic void setOrganizationId(long organizationId);\n\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public interface CreateEntityView<E extends SerializableEntity> extends EntityView {\r\n\r\n\t/**\r\n\t * Make save handler enabled\r\n\t * \r\n\t * @param enabled\r\n\t */\r\n\tvoid setSaveHandlerEnabled(boolean enabled);\r\n\t\r\n}", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "public interface SaleRowDTOProperties {\n\n Vehicle.KapschVehicle getVehicle();\n\n void setVehicle(Vehicle.KapschVehicle vehicle);\n\n}", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MisteriosoMapper extends EntityMapper<MisteriosoDTO, Misterioso> {\n\n \n\n \n\n default Misterioso fromId(Long id) {\n if (id == null) {\n return null;\n }\n Misterioso misterioso = new Misterioso();\n misterioso.setId(id);\n return misterioso;\n }\n}", "@ProviderType\npublic interface PersonModel extends BaseModel<Person> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a person model instance should use the {@link Person} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this person.\n\t *\n\t * @return the primary key of this person\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this person.\n\t *\n\t * @param primaryKey the primary key of this person\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this person.\n\t *\n\t * @return the uuid of this person\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this person.\n\t *\n\t * @param uuid the uuid of this person\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the person ID of this person.\n\t *\n\t * @return the person ID of this person\n\t */\n\tpublic long getPersonId();\n\n\t/**\n\t * Sets the person ID of this person.\n\t *\n\t * @param personId the person ID of this person\n\t */\n\tpublic void setPersonId(long personId);\n\n\t/**\n\t * Returns the name of this person.\n\t *\n\t * @return the name of this person\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this person.\n\t *\n\t * @param name the name of this person\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the age of this person.\n\t *\n\t * @return the age of this person\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * Sets the age of this person.\n\t *\n\t * @param age the age of this person\n\t */\n\tpublic void setAge(int age);\n\n\t/**\n\t * Returns the gender of this person.\n\t *\n\t * @return the gender of this person\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this person.\n\t *\n\t * @param gender the gender of this person\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the email ID of this person.\n\t *\n\t * @return the email ID of this person\n\t */\n\t@AutoEscape\n\tpublic String getEmailId();\n\n\t/**\n\t * Sets the email ID of this person.\n\t *\n\t * @param emailId the email ID of this person\n\t */\n\tpublic void setEmailId(String emailId);\n\n\t/**\n\t * Returns the nationality of this person.\n\t *\n\t * @return the nationality of this person\n\t */\n\t@AutoEscape\n\tpublic String getNationality();\n\n\t/**\n\t * Sets the nationality of this person.\n\t *\n\t * @param nationality the nationality of this person\n\t */\n\tpublic void setNationality(String nationality);\n\n\t/**\n\t * Returns the occupation of this person.\n\t *\n\t * @return the occupation of this person\n\t */\n\t@AutoEscape\n\tpublic String getOccupation();\n\n\t/**\n\t * Sets the occupation of this person.\n\t *\n\t * @param occupation the occupation of this person\n\t */\n\tpublic void setOccupation(String occupation);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface GradeMapper extends EntityMapper<GradeDTO, Grade> {\n\n\n @Mapping(target = \"subjects\", ignore = true)\n @Mapping(target = \"contents\", ignore = true)\n Grade toEntity(GradeDTO gradeDTO);\n\n default Grade fromId(Long id) {\n if (id == null) {\n return null;\n }\n Grade grade = new Grade();\n grade.setId(id);\n return grade;\n }\n}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "public void setUWCompany(entity.UWCompany value);", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EightydMapper extends EntityMapper<EightydDTO, Eightyd> {\n\n\n\n default Eightyd fromId(Long id) {\n if (id == null) {\n return null;\n }\n Eightyd eightyd = new Eightyd();\n eightyd.setId(id);\n return eightyd;\n }\n}", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "public interface RoleMapper {\n\n @Insert(\"insert into role values (role,desc) values (#{model.role},#{model.desc})\")\n @Options(useGeneratedKeys = true,keyProperty = \"model.id\")\n int insertRole(@Param(\"model\") RoleModel model);\n\n\n /**\n * 获取所有角色信息\n * @return\n */\n @Select(\"select id,role,desc,data_added,last_modified from role\")\n List<RoleModel> getAllRoles();\n\n\n /**\n * 获取角色Id\n * @param role\n * @return\n */\n @Select(\"select id from role where role=#{role}\")\n int getRoleId(String role);\n}", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@DSDerby\n@Repository\npublic interface HillMapper extends BaseMapper<Hill> {\n\n}", "@MapperScan\npublic interface AdminMapper{\n //------------------Add your code here---------------------\n\n //------------------以下代码自动生成-----------------------\n\n /**\n * 根据条件查询全部\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为查询的条件,默认为等于\n * 要改动sql请修改 *Mapper 类里的 _query() 方法\n */\n @SelectProvider(type = AdminSql.class,method = \"_queryAll\")\n List<AdminEntity> _queryAll(Map pagerParam);\n\n /**\n * 检验账号密码\n * @param account\n * @param password\n * @return\n */\n @SelectProvider(type = AdminSql.class,method = \"check\")\n List<AdminEntity> check(@Param(\"account\") String account, @Param(\"password\") String password);\n\n /**\n * 按id查询\n * 参数:\n * id : 要查询的记录的id\n */\n @SelectProvider(type = AdminSql.class,method = \"_get\")\n AdminEntity _get(String id);\n\n /**\n * 删除(逻辑)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_delete\")\n int _delete(String id);\n\n /**\n * 删除(物理)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_deleteForce\")\n int _deleteForce(String id);\n\n /**\n * 新增\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为要插入的key值\n */\n @InsertProvider(type = AdminSql.class,method = \"_add\")\n int _add(Map params);\n\n /**\n * 按实体类新增\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_addEntity\")\n int _addEntity(AdminEntity bean);\n\n /**\n * 更新\n * 参数:\n * id : 要更新的记录的id\n * 其他map里的参数,key为属性名(字段首字母小写)\n * value为要更新成的值\n */\n @InsertProvider(type = AdminSql.class,method = \"_update\")\n int _update(Map params);\n\n /**\n * 按实体类更新\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_updateEntity\")\n int _updateEntity(AdminEntity bean);\n\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CountryMapper extends EntityMapper<CountryDTO, Country> {\n\n\n @Mapping(target = \"cities\", ignore = true)\n @Mapping(target = \"countryLanguages\", ignore = true)\n Country toEntity(CountryDTO countryDTO);\n\n default Country fromId(Long id) {\n if (id == null) {\n return null;\n }\n Country country = new Country();\n country.setId(id);\n return country;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}", "public interface AllergyModelProperties extends PropertyAccess<AllergyModel> {\n ModelKeyProvider<AllergyModel> id();\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public sealed interface EntityMapper<D, E>permits CarMapper,\n ModelMapper, ModelOptionMapper, PricingClassMapper, UserInfoMapper,\n TownMapper, AddressMapper, RoleMapper, BookingMapper, RentMapper {\n\n E toEntity(D dto);\n\n D toDto(E entity);\n\n Collection<E> toEntity(Collection<D> dtoList);\n\n Collection<D> toDto(Collection<E> entityList);\n\n @Named(\"partialUpdate\")\n @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\n void partialUpdate(@MappingTarget E entity, D dto);\n}", "@Bean\n\t@Lazy(false)\n\tAdditionalModelsConverter additionalModelsConverter() {\n\t\treturn new AdditionalModelsConverter();\n\t}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}", "void generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}", "@Bean\n\tpublic ExtendedMetadata extendedMetadata() {\n\t\tExtendedMetadata extendedMetadata = new ExtendedMetadata();\n\t\textendedMetadata.setIdpDiscoveryEnabled(true);\n\t\textendedMetadata.setSignMetadata(false);\n\t\textendedMetadata.setEcpEnabled(true);\n\t\treturn extendedMetadata;\n\t}", "public EntityPropertyBean() {}", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "EntityBeanDescriptor createEntityBeanDescriptor();", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Mapper(componentModel = \"spring\", uses = {ClientMapper.class, UserAppMapper.class, DistrictMapper.class})\npublic interface CampusMapper extends EntityMapper<CampusDTO, Campus> {\n\n @Mapping(source = \"client\", target = \"clientDto\")\n @Mapping(source = \"district\", target = \"districtDto\")\n CampusDTO toDto(Campus campus);\n\n @Mapping(source = \"clientDto\", target = \"client\")\n @Mapping(source = \"districtDto\", target = \"district\")\n @Mapping(target = \"fields\", ignore = true)\n Campus toEntity(CampusDTO campusDTO);\n\n default Campus fromId(Long id) {\n if (id == null) {\n return null;\n }\n Campus campus = new Campus();\n campus.setId(id);\n return campus;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ProvinciaMapper.class})\npublic interface CodigoPostalMapper extends EntityMapper<CodigoPostalDTO, CodigoPostal> {\n\n @Mapping(source = \"provincia.id\", target = \"provinciaId\")\n @Mapping(source = \"provincia.nombreProvincia\", target = \"provinciaNombreProvincia\")\n CodigoPostalDTO toDto(CodigoPostal codigoPostal);\n\n @Mapping(source = \"provinciaId\", target = \"provincia\")\n CodigoPostal toEntity(CodigoPostalDTO codigoPostalDTO);\n\n default CodigoPostal fromId(Long id) {\n if (id == null) {\n return null;\n }\n CodigoPostal codigoPostal = new CodigoPostal();\n codigoPostal.setId(id);\n return codigoPostal;\n }\n}", "@Mapper\npublic interface UserMapper {\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return int\n */\n int registerAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param baseUser\n * @return int\n */\n int registerBaseUser(BaseUser baseUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return com.example.app.entity.BaseUser\n */\n AppUser loginAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param\n * @return java.util.List<com.example.app.entity.College>\n */\n @Select(\"select * from col\")\n List<College> allCollege();\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param user\n * @return int\n */\n int hasUser(BaseUser user);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param col_id\n * @return int\n */\n int hasCol(int col_id);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param sms\n * @return int\n */\n int registerCode(SMS sms);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param code\n * @return int\n */\n int getCode(@Param(\"code\") Integer code);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrder(Order order);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrderCount(Order order);\n\n}", "public interface TdHtFuncroleRelRepository {\n\n /**\n * @Purpose 根据id查找角色id和功能id\n * @version 4.0\n * @author lizhun\n * @param map\n * @return TdHtFuncroleRelDto\n */\n public TdHtFuncroleRelDto findFuncroleRelByRoleIdAndFuncId(Map<String,Integer> map);\n\n /**\n * @Purpose 根据权限id查找角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @param role_id\n * @return List<TdHtFuncroleRelDto>\n */\n public List<TdHtFuncroleRelDto> findFuncroleRelsByRoleId(int role_id);\n /**\n * @Purpose 添加角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void insertFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色所有功能不可用\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRelByRoleId(int role_id);\n}", "public interface AEntityProperty {\n}", "public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor {\n\t/**\n\t * Obtain the primary table for this entity.\n\t *\n\t * @return The primary table.\n\t */\n\tpublic TableSpecificationSource getPrimaryTable();\n\n\t/**\n\t * Obtain the secondary tables for this entity\n\t *\n\t * @return returns an iterator over the secondary tables for this entity\n\t */\n\tpublic Map<String,SecondaryTableSource> getSecondaryTableMap();\n\n\tpublic String getXmlNodeName();\n\n\t/**\n\t * Obtain the named custom tuplizer classes to be used.\n\t *\n\t * @return The custom tuplizer class names\n\t */\n\tpublic Map<EntityMode,String> getTuplizerClassMap();\n\n\t/**\n\t * Obtain the name of a custom persister class to be used.\n\t *\n\t * @return The custom persister class name\n\t */\n\tpublic String getCustomPersisterClassName();\n\n\t/**\n\t * Is this entity lazy (proxyable)?\n\t *\n\t * @return {@code true} indicates the entity is lazy; {@code false} non-lazy.\n\t */\n\tpublic boolean isLazy();\n\n\t/**\n\t * For {@link #isLazy() lazy} entities, obtain the interface to use in constructing its proxies.\n\t *\n\t * @return The proxy interface name\n\t */\n\tpublic String getProxy();\n\n\t/**\n\t * Obtain the batch-size to be applied when initializing proxies of this entity.\n\t *\n\t * @return returns the the batch-size.\n\t */\n\tpublic int getBatchSize();\n\n\t/**\n\t * Is the entity abstract?\n\t * <p/>\n\t * The implication is whether the entity maps to a database table.\n\t *\n\t * @return {@code true} indicates the entity is abstract; {@code false} non-abstract; {@code null}\n\t * indicates that a reflection check should be done when building the persister.\n\t */\n\tpublic Boolean isAbstract();\n\n\t/**\n\t * Did the source specify dynamic inserts?\n\t *\n\t * @return {@code true} indicates dynamic inserts will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicInsert();\n\n\t/**\n\t * Did the source specify dynamic updates?\n\t *\n\t * @return {@code true} indicates dynamic updates will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicUpdate();\n\n\t/**\n\t * Did the source specify to perform selects to decide whether to perform (detached) updates?\n\t *\n\t * @return {@code true} indicates selects will be done; {@code false} otherwise.\n\t */\n\tpublic boolean isSelectBeforeUpdate();\n\n\t/**\n\t * Obtain the name of a named-query that will be used for loading this entity\n\t *\n\t * @return THe custom loader query name\n\t */\n\tpublic String getCustomLoaderName();\n\n\t/**\n\t * Obtain the custom SQL to be used for inserts for this entity\n\t *\n\t * @return The custom insert SQL\n\t */\n\tpublic CustomSql getCustomSqlInsert();\n\n\t/**\n\t * Obtain the custom SQL to be used for updates for this entity\n\t *\n\t * @return The custom update SQL\n\t */\n\tpublic CustomSql getCustomSqlUpdate();\n\n\t/**\n\t * Obtain the custom SQL to be used for deletes for this entity\n\t *\n\t * @return The custom delete SQL\n\t */\n\tpublic CustomSql getCustomSqlDelete();\n\n\t/**\n\t * Obtain any additional table names on which to synchronize (auto flushing) this entity.\n\t *\n\t * @return Additional synchronized table names or 0 sized String array, never return null.\n\t */\n\tpublic String[] getSynchronizedTableNames();\n\n\t/**\n\t * Get the actual discriminator value in case of a single table inheritance\n\t *\n\t * @return the actual discriminator value in case of a single table inheritance or {@code null} in case there is no\n\t * explicit value or a different inheritance scheme\n\t */\n\tpublic String getDiscriminatorMatchValue();\n\n\t/**\n\t * @return returns the source information for constraints defined on the table\n\t */\n\tpublic Collection<ConstraintSource> getConstraints();\n\n\t/**\n\t * Obtain the filters for this entity.\n\t *\n\t * @return returns an array of the filters for this entity.\n\t */\n\tpublic FilterSource[] getFilterSources();\n\n\tpublic List<JaxbHbmNamedQueryType> getNamedQueries();\n\n\tpublic List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries();\n\n\tpublic TruthValue quoteIdentifiersLocalToEntity();\n\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface PerformerMapper extends EntityMapper<PerformerDTO, Performer> {\n\n\n\n default Performer fromId(Long id) {\n if (id == null) {\n return null;\n }\n Performer performer = new Performer();\n performer.setId(id);\n return performer;\n }\n}", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "@Api(tags = \"Address Entity\")\n@RepositoryRestResource(collectionResourceRel = \"taxInformation\", path =\"taxInformation\")\npublic interface TaxInformationRepository extends PagingAndSortingRepository<TaxInformation,Integer> {\n}", "public interface EmployeeRepository extends ArangoRepository<Employee, String> {}", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "public void setupEntities() {\n }", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrderPaymentMapper extends EntityMapper<OrderPaymentDTO, OrderPayment> {\n\n\n\n default OrderPayment fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrderPayment orderPayment = new OrderPayment();\n orderPayment.setId(id);\n return orderPayment;\n }\n}", "@Repository\n@Mapper\npublic interface AppInfoMapper extends BaseMapper<AppInfoEntity> {\n}", "public interface LevelClearRecordService {\n\n /**\n * description: 根据传入bean查询挑战记录 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:34 <br>\n * author: zhengzhiqiang <br>\n *\n * @param selectParam\n * @return siyi.game.dao.entity.LevelClearRecord\n */\n LevelClearRecord selectByBean(LevelClearRecord selectParam);\n\n /**\n * description: 插入挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:37 <br>\n * author: zhengzhiqiang <br>\n *\n * @param insertRecord\n * @return void\n */\n void insertSelective(LevelClearRecord insertRecord);\n\n /**\n * description: 根据主键更新挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:39 <br>\n * author: zhengzhiqiang <br>\n *\n * @param levelClearRecord\n * @return void\n */\n void updateByIdSelective(LevelClearRecord levelClearRecord);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "public interface HealthBlockRecordsDataService extends MotechDataService<HealthBlock> {\n\n /**\n * finds the Health Block details by its parent code\n *\n * @param stateCode\n * @param districtCode\n * @param talukaCode\n * @param healthBlockCode\n * @return HealthBlock\n */\n @Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Owner3Mapper extends EntityMapper <Owner3DTO, Owner3> {\n \n @Mapping(target = \"car3S\", ignore = true)\n Owner3 toEntity(Owner3DTO owner3DTO); \n default Owner3 fromId(Long id) {\n if (id == null) {\n return null;\n }\n Owner3 owner3 = new Owner3();\n owner3.setId(id);\n return owner3;\n }\n}", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public interface ApiBaseUserRolePostSwitchPoService extends feihua.jdbc.api.service.ApiBaseService<BaseUserRolePostSwitchPo, BaseUserRolePostSwitchDto, String> {\n\n /**\n * 根据用户查询\n * @param userId\n * @return\n */\n BaseUserRolePostSwitchPo selectByUserId(String userId);\n}", "@JsonGetter(\"price_money\")\r\n public Money getPriceMoney() {\r\n return priceMoney;\r\n }", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public interface BaseService<Kiruvchi, Chiquvchi, ID> {\n\n //Create Entity\n ApiResponse addEntity(Kiruvchi kiruvchi);\n\n //Get Page<Entity>\n Page<Chiquvchi> getEntiyPageBySort(Optional<Integer> page, Optional<Integer> size, Optional<String> sortBy);\n\n //Get by id Optional<Entity> Sababi Http Status kodini tog'ri jo'natish uchun\n Optional<Chiquvchi> getEntityById(ID id);\n\n //Update Entity by id\n ApiResponse editState(ID id, Kiruvchi kiruvchi);\n\n //Delete Entity by id\n ApiResponse deleteEntityById(Integer id);\n}", "public interface ApplyOrderMapper extends CrudRepository<OrderEntity, Long> {\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, CustomerMapper.class})\npublic interface WorkDayMapper extends EntityMapper<WorkDayDTO, WorkDay> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n @Mapping(source = \"customer.id\", target = \"customerId\")\n WorkDayDTO toDto(WorkDay workDay);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(source = \"customerId\", target = \"customer\")\n WorkDay toEntity(WorkDayDTO workDayDTO);\n\n default WorkDay fromId(Long id) {\n if (id == null) {\n return null;\n }\n WorkDay workDay = new WorkDay();\n workDay.setId(id);\n return workDay;\n }\n}", "@RepositoryRestResource\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> {\n\n}", "@Mapper\npublic interface BCategoriesMapper {\n\n @Select(\"select * from t_categories\")\n List<CategoriesPo> findAll();\n\n @Select(\"select id,categoriesName,cAbbreviate from t_categories where id=#{id}\")\n CategoriesPo getById(@Param(\"id\") int id);\n\n @Insert(\"insert ignore into t_categories(categoriesName,cAbbreviate) values(#{categoriesName},#{cAbbreviate})\")\n boolean save(@Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Update(\"update t_categories set categoriesName=#{categoriesName},cAbbreviate=#{cAbbreviate} where id=#{id}\")\n boolean edit(@Param(\"id\") int id, @Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Delete(\"delete from t_categories where id=#{id}\")\n boolean deleteById(@Param(\"id\") int id);\n}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OTHERMapper extends EntityMapper<OTHERDTO, OTHER> {\n\n\n\n default OTHER fromId(Long id) {\n if (id == null) {\n return null;\n }\n OTHER oTHER = new OTHER();\n oTHER.setId(id);\n return oTHER;\n }\n}", "@SuppressWarnings(\"deprecation\")\npublic interface SyntheticModelProviderPlugin extends Plugin<ModelContext> {\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n springfox.documentation.schema.Model create(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);\n\n\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n ModelSpecification createModelSpecification(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<PropertySpecification> propertySpecifications(ModelContext context);\n\n /**\n * Creates a dependencies for the synthetic model\n *\n * @param context - context to create the model dependencies from\n * @return model - when the plugin indicates it supports it, it may return dependent model types.\n */\n Set<ResolvedType> dependencies(ModelContext context);\n}", "@JsonIgnoreProperties({\"ezdUmg\"})\npublic interface BigretUsersFilter {\n}", "@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }", "@Bean\n public ModelMapper modelMapper() {\n ModelMapper mapper = new ModelMapper();\n\n mapper.addMappings(new PropertyMap<Permit, PermitDto>() {\n @Override\n protected void configure() {\n Converter<List<Code>, List<Integer>> codeConverter = mappingContext -> {\n List<Integer> result = new ArrayList<>();\n mappingContext.getSource().forEach(code -> result.add(code.getId()));\n return result;\n };\n\n using(codeConverter).map(source.getCodes()).setCodeIds(null);\n }\n });\n return mapper;\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifMapper extends EntityMapper <TarifDTO, Tarif> {\n \n \n default Tarif fromId(Long id) {\n if (id == null) {\n return null;\n }\n Tarif tarif = new Tarif();\n tarif.setId(id);\n return tarif;\n }\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChipsAdminRepository extends JpaRepository<ChipsAdmin, Long> {}", "@Bean\n public ExtendedMetadata extendedMetadata() {\n return new ExtendedMetadata();\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MedicoCalendarioMapper extends EntityMapper<MedicoCalendarioDTO, MedicoCalendario> {\n\n\n\n default MedicoCalendario fromId(Long id) {\n if (id == null) {\n return null;\n }\n MedicoCalendario medicoCalendario = new MedicoCalendario();\n medicoCalendario.setId(id);\n return medicoCalendario;\n }\n}", "public interface AutoParamsRepository {\n AvtoParams getAvtoParamsById(@Param(\"id\")UUID id);\n /* void addAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void updateAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void deleteAvtoParams(@Param(\"id\")UUID id);*/\n}" ]
[ "0.63286126", "0.6107704", "0.56600153", "0.5650253", "0.5532135", "0.5463501", "0.5462676", "0.54489154", "0.54330343", "0.5414924", "0.5386955", "0.5378861", "0.53504336", "0.5340984", "0.53362584", "0.532892", "0.5322672", "0.53224915", "0.5315536", "0.53031385", "0.52921456", "0.5277444", "0.52697843", "0.5263797", "0.5241962", "0.52404004", "0.52397937", "0.5225441", "0.52250695", "0.5207966", "0.5202164", "0.519871", "0.5195379", "0.51940215", "0.5185134", "0.517764", "0.51703423", "0.51657337", "0.5162845", "0.51573366", "0.5156201", "0.514891", "0.51470006", "0.51430714", "0.5141474", "0.5132268", "0.51284784", "0.5125364", "0.5123723", "0.51213217", "0.5112396", "0.5104617", "0.5102288", "0.50960106", "0.5094632", "0.50919384", "0.5091752", "0.5089347", "0.5072882", "0.5069823", "0.50607824", "0.5054911", "0.5051142", "0.50502944", "0.50485045", "0.50480455", "0.5038455", "0.5038255", "0.50352347", "0.502763", "0.5026967", "0.50254226", "0.5024016", "0.5020335", "0.5017677", "0.50123894", "0.50122124", "0.5010827", "0.5010157", "0.49991715", "0.49940664", "0.49925825", "0.49834865", "0.4983258", "0.49807242", "0.49789605", "0.4977218", "0.4976616", "0.49734518", "0.4970734", "0.49681884", "0.49673778", "0.4965772", "0.496538", "0.49652907", "0.4964101", "0.49634862", "0.49604023", "0.49566028", "0.49495438", "0.49483463" ]
0.0
-1
handles request for saving attached document
@RequestMapping(value = "save", method = RequestMethod.POST) public ModelAndView save(@ModelAttribute("document") Document document, @RequestParam(value = "file", required = false) MultipartFile file, ModelMap modelMap) { try { if (document.getpOrg() == null) throw new ValidationException( "The Finantial Institution can not be null"); ProducerOrg pOrg = document.getpOrg(); documentService.validate(document); if (file != null && file.getSize() > 0) { String extension = DocumentServiceImpl .getExtensionFromPath(file.getOriginalFilename()); if (StringUtils.isBlank(extension)) { extension = DocumentServiceImpl .getDocumentExtension(document); } String contentType = DocumentServiceImpl.getMimeType(extension); if (StringUtils.isBlank(contentType)) { contentType = file.getContentType(); } document.setDocumentExtension(extension); document.setContentType(contentType); document.setDocumentInputStream(file.getInputStream()); } Document existingDocument = document; if (StringUtils.isNotEmpty(document.getId())) { existingDocument = documentService.getDocumentById(document .getId()); existingDocument.setName(document.getName()); existingDocument.setContentType(document.getContentType()); existingDocument.setDocumentType(document.getDocumentType()); existingDocument.setDocumentExtension(document .getDocumentExtension()); existingDocument.setDocumentUrl(document.getDocumentUrl()); existingDocument.setOtherInfo(document.getOtherInfo()); existingDocument.setpOrg(document .getpOrg()); } else { if (file == null || file.getSize() == 0) throw new ValidationException("File is required"); existingDocument.setDateCreated(Calendar.getInstance() .getTime()); existingDocument .setCreatedBy(OXMSecurityUtil.getLoggedInUser()); existingDocument.setId(null); pOrg.addDocument(existingDocument); } if (file != null && file.getSize() > 0) { documentService.saveDocument(existingDocument, file.getInputStream()); porgService.save(pOrg); } else documentService.saveDocument(existingDocument, null); modelMap.put(WebConstants.MODEL_ATTRIBUTE_SYSTEM_MESSAGE, "Financial Document Saved sucessfully."); return view(pOrg.getId(), modelMap); } catch (Exception ex) { log.error(null, ex); modelMap.put(WebConstants.MODEL_ATTRIBUTE_ERROR_MESSAGE, " - " + ex.getMessage()); modelMap.put("document", document); modelMap.put("pOrg", document.getpOrg()); modelMap.put(WebConstants.CONTENT_HEADER, "Retry Add/Edit Document of " + document.getpOrg().getName()); return new ModelAndView("pOrgDocForm", modelMap); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean processSaveDocument(Document document);", "void saveDocument(SingleDocumentModel model, Path newPath);", "HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);", "@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).saveAttachment();\n }", "@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}", "public void saveDocument() throws IOException;", "@Override\r\n\tprotected void saveDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}", "public void fileSaved(OpenDefinitionsDocument doc) { }", "public void fileSaved(OpenDefinitionsDocument doc) { }", "Document saveDocument(Document document) throws EntityExistsException;", "void documentAdded(SingleDocumentModel model);", "void documentFilePathUpdated(SingleDocumentModel model);", "void documentFilePathUpdated(SingleDocumentModel model);", "protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }", "public void save(String collection, JsonObject document, final AsyncResultHandler<Void> resultHandler) {\r\n\t\tJsonObject request = new JsonObject();\r\n\t\trequest.putString(\"action\", \"save\");\r\n\t\trequest.putString(\"collection\", collection);\r\n\t\trequest.putObject(\"document\", document);\r\n\t\teventBus.send(address, request, new Handler<Message<JsonObject>>() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(Message<JsonObject> message) {\r\n\t\t\t\tfinal JsonObject body = message.body();\r\n\t\t\t\tif (resultHandler != null) resultHandler.handle(new AsyncResult<Void>() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean succeeded() {\r\n\t\t\t\t\t\treturn \"ok\".equals(body.getString(\"status\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Void result() {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic boolean failed() {\r\n\t\t\t\t\t\treturn !succeeded();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Throwable cause() {\r\n\t\t\t\t\t\treturn failed() ? new Throwable(body.getString(\"message\")) : null;\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}", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "void save(JournalPage page);", "@Override\n\tpublic Boolean uploadDocument(Document document) {\n\t\treturn null;\n\t}", "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "public void save() {\n }", "protected abstract void doSave();", "@Override\n public void save() {\n \n }", "@Override\n public void save()\n {\n \n }", "@Override\r\n\tpublic void save(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "@Override\r\n\tpublic void save(DocumentDTO documentDto) {\n\t\tDocument document=convertDocumentBean(documentDto);\r\n\t}", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "@Override\n public void save() {\n\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "public void save(View view) {\n \t\n \t// Cannot perform save unless there's a locked document.\n \tLockedDocument mlocked = mObjects.getLockedDoc();\n \tif (mlocked == null)\n \t\treturn;\n \t\n \ttry {\n \t\tmlocked.setTitle(text1.getText().toString());\n \tmlocked.setContents(text2.getText().toString());\n \t\tmObjects.addStatusList(\"Attemping to save document.\");\n \t\tUnlockedDocument unlocked = service.saveDocument(mlocked);\n \t\t\n \t\t// If expected document is saved, display the document.\n\t \tif (mObjects.getWaitingKey() == null || \n\t \t\t\tmObjects.getWaitingKey().equals(unlocked.getKey())) {\n\t \t\tmObjects.addStatusList(\"Document '\" + unlocked.getTitle()\n\t \t\t\t\t+ \"' successfully saved.\");\n\t \t\tsetView(unlocked);\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, lock the error.\n\t\t\t\tLog.d(TAG,\"Saved document is not the anticipated document.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error saving document due to invalid request\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n\t\t\t\n\t\t\t// Release the lock if there's error saving document.\n\t\t\treleaseLock(mlocked);\n\t\t} catch (LockExpired e) {\n\t\t\tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock had already expired; save failed.\");\n\t\t}\n\t\t\n\t\t// If saving is not successful, modify client's local documents state as well.\n\t\t// This part will only get called if exception were caught. mlocked is set\n\t\t// to null if document is saved correctly. \n\t\tif (mlocked != null) {\n\t\t\tmObjects.setUnlockedDoc(mlocked.unlock());\n\t\t\tsetView(mlocked.unlock());\n\t\t}\n }", "public void save() {\t\n\t\n\t\n\t}", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "@Override\n public void whenDone() {\n getDocumentController().setFile(fileToSaveTo);\n getDocumentController().setHasChanged(false);\n getDocumentController().notifyChange();\n }", "public void saveFile(MultipartFile file,Document document){\n document.setKey(UUID.randomUUID().toString());\n document.setLink(UUID.randomUUID().toString());\n\n }", "@Override\n\tpublic void doSaveAs() {\n\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "@RequestMapping(value = \"/add-document\", method = RequestMethod.POST)\n public String addOwnership(@Valid @ModelAttribute Document document, ModelMap modelMap){\n documentService.addDocument(document);\n List<Document> documents= documentService.retrieveAllDocuments(document.getEntity().getId());\n modelMap.addAttribute(\"documents\", documents);\n modelMap.addAttribute(\"entityId\", document.getEntity().getId());\n return \"documents\";\n }", "@Override\n\tpublic void doSaveAs() {\n\t}", "@Override\n public void onSuccess(Uri uri) {\n Log.i(\"upload diary\", \"photo in storage\");\n uploadDiary.setPhotoUri(uri.toString());\n db.collection(\"Diary\").document(diary.getTime() + \":\" + diary.getUsername()).set(uploadDiary).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.i(\"upload diary\", \"photo succ\");\n }\n });\n }", "public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}", "@Override\n public void Save() {\n\t \n }", "public void save(NSSRequestBean bean);", "public void saveDocumentContent(long arg0, byte[] arg1) throws ContestManagementException {\r\n }", "@Override\n public void onSuccess(DocumentReference documentReference) {\n\n\n\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "public boolean doSave() {\n\n if (fDocument.getFile() == null) {\n return doSaveAs(fDocument.getFormat());\n }\n \n return fDocument.save();\n }", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "UploadDocumentResponseModel saveFile(MultipartFile multipartFile, String userId,\n String category) throws IOException, UploadDocumentException;", "public void saveOneWord(Pojo.OneWord e){ \n template.save(e); \n}", "void save();", "void save();", "void save();", "public void save(Activity e){ \n\t template.save(e); \n\t}", "@Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"DocumentSnapshot successfully written!\");\n }", "@Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"DocumentSnapshot successfully written!\");\n }", "public void actionPerformed(ActionEvent actionEvent) {\r\n Object source = actionEvent.getSource();\r\n /*if Upload , then set 'fileSelected' as true, get the filename from file chooser and set it to the txtFilename,\r\n set the BLOB data and enable the view button*/\r\n if(source.equals(awardAddDocumentForm.btnUpload)){\r\n CoeusFileChooser fileChooser = new CoeusFileChooser(dlgAwardUploadDoc);\r\n fileChooser.setAcceptAllFileFilterUsed(true);\r\n fileChooser.showFileChooser();\r\n if(fileChooser.isFileSelected()){\r\n String fileName = fileChooser.getSelectedFile();\r\n if(fileName != null && !fileName.trim().equals(EMPTY_STRING)){\r\n int index = fileName.lastIndexOf('.');\r\n if(index != -1 && index != fileName.length()){\r\n setFileSelected(true);\r\n awardAddDocumentForm.txtFileName.setText(fileChooser.getFileName().getName());\r\n setBlobData(fileChooser.getFile());\r\n //Added with case 4007: Icon based on mime type\r\n CoeusDocumentUtils docTypeUtils = CoeusDocumentUtils.getInstance();\r\n CoeusAttachmentBean attachmentBean = new CoeusAttachmentBean(fileName,getBlobData());\r\n setMimeType(docTypeUtils.getDocumentMimeType(attachmentBean));\r\n //4007 End\r\n awardAddDocumentForm.btnView.setEnabled(true);\r\n }else{\r\n CoeusOptionPane.showErrorDialog(coeusMessageResources.parseMessageKey(\r\n \"correspType_exceptionCode.1012\"));\r\n setFileSelected(false);\r\n setBlobData(null);\r\n setMimeType(null);//4007\r\n return;\r\n }\r\n }\r\n }\r\n } else if(source.equals(awardAddDocumentForm.btnOk)){\r\n try{\r\n /*Check the function type and awardDocumentBean is null or not*/\r\n if(awardDocumentBean != null){\r\n if(functionType == MODIFY_DOCUMENT){\r\n awardDocumentBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n newVersion = false;\r\n newDocumentId = false;\r\n ComboBoxBean cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n if(!cmbTypeCode.getCode().equals(\"\") && !cmbTypeCode.getDescription().equals(\"\")){\r\n if(awardAddDocumentForm.cmbDocumentType.getSelectedItem() != null\r\n && !awardAddDocumentForm.cmbDocumentType.getSelectedItem().equals(EMPTY_STRING)){\r\n cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n awardDocumentBean.setDocumentTypeCode(Integer.parseInt(cmbTypeCode.getCode()));\r\n awardDocumentBean.setDocumentTypeDescription((awardAddDocumentForm.cmbDocumentType.getSelectedItem().toString()));\r\n docTypeEmpty = false;\r\n }\r\n }\r\n \r\n if(awardAddDocumentForm.txtDescription.getText() != null &&\r\n !awardAddDocumentForm.txtDescription.getText().equals(EMPTY_STRING)){\r\n if(awardAddDocumentForm.txtDescription.getText().length() > 200){\r\n String description = awardAddDocumentForm.txtDescription.getText().substring(0,201);\r\n awardDocumentBean.setDescription(description);\r\n docTypeEmpty = false;\r\n }else{\r\n awardDocumentBean.setDescription(awardAddDocumentForm.txtDescription.getText());\r\n }\r\n }else {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"awardDocuments_DescDoc_exceptionCode.1115\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.txtDescription.requestFocusInWindow();\r\n return;\r\n }\r\n if(awardAddDocumentForm.txtFileName.getText() != null\r\n && !awardAddDocumentForm.txtFileName.getText().equals(EMPTY_STRING)){\r\n awardDocumentBean.setFileName(awardAddDocumentForm.txtFileName.getText());\r\n docTypeEmpty = false;\r\n }else{\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"awardDocuments_AttachDoc_exceptionCode.1113\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.btnUpload.requestFocusInWindow();\r\n return;\r\n }\r\n if(fileSelected && getBlobData() != null){\r\n awardDocumentBean.setDocument(getBlobData());\r\n awardDocumentBean.setMimeType(getMimeType());\r\n }\r\n modifyFormData(awardDocumentBean);\r\n }\r\n } else {\r\n saveFormData();\r\n }\r\n// if(okClicked){\r\n if(isOkClicked() || !docTypeEmpty){\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n /* if View, check value for fileSelected,\r\n if true the display the blob data else throw an error msg*/\r\n else if(source.equals(awardAddDocumentForm.btnView)){\r\n if(fileSelected){\r\n try{\r\n viewDocument();\r\n }catch (Exception exception){\r\n exception.printStackTrace();\r\n if(!( exception.getMessage().equals(\r\n coeusMessageResources.parseMessageKey(\r\n \"protoDetFrm_exceptionCode.1130\")) )){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n return;\r\n }\r\n }\r\n }\r\n } else if(source.equals(awardAddDocumentForm.btnCancel)){\r\n dataValuesChanged();\r\n if(dataChanged){\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n JOptionPane.YES_OPTION);\r\n switch(option){\r\n case JOptionPane.YES_OPTION:\r\n try{\r\n if(this.functionType != 'M'){\r\n saveFormData();\r\n } else{\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n if(isOkClicked()){\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n break;\r\n case JOptionPane.NO_OPTION :\r\n dlgAwardUploadDoc.dispose();\r\n break;\r\n default:\r\n \r\n try {\r\n requestDefaultFocusToComp();\r\n } catch (CoeusException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n }\r\n }else{\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n }\r\n }", "void closeDocument(SingleDocumentModel model);", "public void savePhoto() {\n\n\t\tFacesMessage msg = new FacesMessage();\n\n\t\tSystem.err.println(\"save photo: url----------\" + url);\n\n\t\ttry {\n\n\t\t\t// if not uploading file\n\t\t\tif (url == null || url.equals(\"null\") || url.isEmpty()) {\n\n\t\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_WARN);\n\t\t\t\tmsg.setSummary(bundleDocument.getString(\"document_warn_info\") + \": \"\n\t\t\t\t\t\t+ bundleDocument.getString(\"document_warn_charge_photo\"));\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.err.println(\"etudiantid:\" + this.dossierEtudiantId);\n\n\t\t\tif (this.dossierEtudiantId == null || this.dossierEtudiantId.equals(\"null\")\n\t\t\t\t\t|| this.dossierEtudiantId.isEmpty()) {\n\n\t\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_WARN);\n\t\t\t\tmsg.setSummary(bundleDocument.getString(\"document_error_passage_parametres_photo\"));\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t\tdossierEtudiantDto = dossierEtudiantService.findById(Integer.parseInt(dossierEtudiantId));\n\n\t\t\tDossierEtudiantDto oldDossierEtudiant = dossierEtudiantService\n\t\t\t\t\t.findById(Integer.parseInt(dossierEtudiantId));\n\n\t\t\tif (oldDossierEtudiant.getPhoto() == null || oldDossierEtudiant.getPhoto().trim().isEmpty()) {\n\n\t\t\t\tdossierEtudiantDto.setPhoto(url);\n\t\t\t\tdossierEtudiantService.insertOrUpdate(dossierEtudiantDto);\n\t\t\t\tSystem.out.println(\"--------oldDossierEtudiant---------->>>\" + url);\n\t\t\t\tmoveFile(url);\n\t\t\t\tSystem.err.println(\"-----------------file moved------\");\n\t\t\t\t// deleteTempFileByName(url);// probleme en ours d'utilisation\n\n\t\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_INFO);\n\t\t\t\tmsg.setSummary(bundleDocument.getString(\"document_msg_success\") + \": \"\n\t\t\t\t\t\t+ bundleDocument.getString(\"document_msg_success_photo_saved\"));\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t\tif (!oldDossierEtudiant.getPhoto().equals(url)) {\n\n\t\t\t\t// String oldUrl = oldDossierEtudiant.getPhoto();\n\n\t\t\t\tdossierEtudiantDto.setPhoto(url);\n\t\t\t\tdossierEtudiantService.insertOrUpdate(dossierEtudiantDto);\n\t\t\t\tSystem.out.println(\"-------------------->>>\" + url);\n\t\t\t\tmoveFile(url);\n\n\t\t\t\t// deleteFileByName(oldUrl);// probleme en ours d'utilisation\n\n\t\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_INFO);\n\t\t\t\tmsg.setSummary(bundleDocument.getString(\"document_msg_success\") + \": \"\n\t\t\t\t\t\t+ bundleDocument.getString(\"document_msg_success_photo_saved\"));\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t\t}\n\n\t\t} catch (Exception e2) {\n\n\t\t\tmsg.setSeverity(FacesMessage.SEVERITY_ERROR);\n\t\t\tmsg.setSummary(bundleDocument.getString(\"document_error_echec\") + \": \"\n\t\t\t\t\t+ bundleDocument.getString(\"document_error_persistence_photo\"));\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\n\t\t\tlog.info(e2.getMessage());\n\t\t}\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "boolean saveDocument(String termFieldName, String termFieldValue, Document document);", "public void onSaveFile(){\n\n\t\t\n\t\tFormUtil.dlg.setText(\"Saving...\");\n\t\tFormUtil.dlg.show();\n\t\tGWT.runAsync(new RunAsyncCallback() {\n\t public void onFailure(Throwable caught) {}\n\t public void onSuccess() {\t \n\t\t\t\t//DeferredCommand.addCommand(new Command() {\n\t \t Scheduler scheduler = Scheduler.get();\n\t \t scheduler.scheduleDeferred(new Command() {\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t FormDef form = controller.getSelectedForm();\t\t\t\t \t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(form != null){\n\t\t\t\t\t\t\t\tsaveFile(false);\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\n\t\t\t\t\t\t\t\tString fileName = \"filename\";\n\t\t\t\t\t\t\t\tfileName = form.getName();\n\t\t\t\t\t\t\t\tString xmlFormStr = FormHandler.writeToXML(form);\n\t\t\t\t\t\t\t\tSaveToFileDialog dlg = SaveToFileDialog.getInstnace(xmlFormStr, fileName);\n\t\t\t\t\t\t\t\tdlg.center();\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\tFormUtil.dlg.hide();\n\t\t\t\t\t\t\t\tWindow.alert(\"No form to save\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception ex){\n\t\t\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t }\n\t\t});\n\t}", "public void saveFormData() throws CoeusException {\r\n ComboBoxBean cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n if(!cmbTypeCode.getCode().equals(\"\") && !cmbTypeCode.getDescription().equals(\"\")){\r\n RequesterBean requesterBean = new RequesterBean();\r\n AwardDocumentBean awardDocumentBean = new AwardDocumentBean();\r\n awardDocumentBean.setAwardNumber(awardBaseBean.getMitAwardNumber());\r\n awardDocumentBean.setSequenceNumber(awardBaseBean.getSequenceNumber());\r\n if(awardAddDocumentForm.cmbDocumentType.getSelectedItem() != null\r\n && !awardAddDocumentForm.cmbDocumentType.getSelectedItem().equals(EMPTY_STRING)){\r\n cmbTypeCode =(ComboBoxBean)awardAddDocumentForm.cmbDocumentType.getSelectedItem();\r\n awardDocumentBean.setDocumentTypeCode(Integer.parseInt(cmbTypeCode.getCode()));\r\n awardDocumentBean.setDocumentTypeDescription((awardAddDocumentForm.cmbDocumentType.getSelectedItem().toString()));\r\n docTypeEmpty = false;\r\n }else{\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_NoDocType_exceptionCode.1112\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.cmbDocumentType.requestFocusInWindow(); \r\n return;\r\n }\r\n if(awardAddDocumentForm.txtDescription.getText() != null &&\r\n !awardAddDocumentForm.txtDescription.getText().equals(EMPTY_STRING)){\r\n if(awardAddDocumentForm.txtDescription.getText().length() > 200){\r\n String description = awardAddDocumentForm.txtDescription.getText().substring(0,201);\r\n awardDocumentBean.setDescription(description);\r\n docTypeEmpty = false;\r\n }else{\r\n awardDocumentBean.setDescription(awardAddDocumentForm.txtDescription.getText());\r\n }\r\n }\r\n else {\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_DescDoc_exceptionCode.1115\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.txtDescription.requestFocusInWindow();\r\n return;\r\n }\r\n if(awardAddDocumentForm.txtFileName.getText() != null\r\n && !awardAddDocumentForm.txtFileName.getText().equals(EMPTY_STRING)){\r\n awardDocumentBean.setFileName(awardAddDocumentForm.txtFileName.getText());\r\n docTypeEmpty = false;\r\n }else{\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"awardDocuments_AttachDoc_exceptionCode.1113\"));\r\n docTypeEmpty = true;\r\n awardAddDocumentForm.btnUpload.requestFocusInWindow(); \r\n return;\r\n }\r\n if(fileSelected && getBlobData() != null){\r\n awardDocumentBean.setDocument(getBlobData());\r\n awardDocumentBean.setMimeType(getMimeType());//4007\r\n }\r\n awardDocumentBean.setAcType(\"I\");\r\n awardDocumentBean.setDocStatusCode(\"A\");\r\n awardDocumentBean.setDocStatusDescription(\"ACTIVE\");\r\n requesterBean.setDataObject(awardDocumentBean);\r\n requesterBean.setFunctionType(ADD_VOID_AWARD_DOC_DATA);\r\n AppletServletCommunicator appletServletCommunicator = new\r\n AppletServletCommunicator(AWARD_MAINTENANCE_SERVLET, requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responder = appletServletCommunicator.getResponse();\r\n if(!responder.isSuccessfulResponse()){\r\n setOkClicked(false);\r\n dlgAwardUploadDoc.dispose();\r\n CoeusOptionPane.showErrorDialog(responder.getMessage());\r\n throw new CoeusException(responder.getMessage(),0);\r\n }else{\r\n setOkClicked(true);\r\n }\r\n }else{\r\n docTypeEmpty = true;\r\n setOkClicked(false);\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"awardDocuments_NoDocType_exceptionCode.1112\"));\r\n awardAddDocumentForm.cmbDocumentType.requestFocusInWindow();\r\n return;\r\n } \r\n }", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "org.hl7.fhir.Attachment addNewValueAttachment();", "@Override\n public int save( Mention obj ) {\n return 0;\n }", "void savePost(Post post);", "private void viewDocument() throws Exception{ \r\n CoeusVector cvDataObject = new CoeusVector();\r\n HashMap hmDocumentDetails = new HashMap();\r\n hmDocumentDetails.put(\"awardNumber\", awardBaseBean.getMitAwardNumber());\r\n hmDocumentDetails.put(\"sequenceNumber\", EMPTY_STRING+awardBaseBean.getSequenceNumber());\r\n hmDocumentDetails.put(\"fileName\", awardAddDocumentForm.txtFileName.getText());\r\n hmDocumentDetails.put(\"document\", getBlobData()); \r\n cvDataObject.add(hmDocumentDetails);\r\n RequesterBean requesterBean = new RequesterBean();\r\n DocumentBean documentBean = new DocumentBean();\r\n Map map = new HashMap();\r\n map.put(\"DATA\", cvDataObject);\r\n map.put(DocumentConstants.READER_CLASS, \"edu.mit.coeus.award.AwardDocumentReader\");\r\n map.put(\"USER\", CoeusGuiConstants.getMDIForm().getUserId());\r\n map.put(\"MODULE_NAME\", \"VIEW_DOCUMENT\");\r\n documentBean.setParameterMap(map);\r\n requesterBean.setDataObject(documentBean);\r\n requesterBean.setFunctionType(DocumentConstants.GENERATE_STREAM_URL); \r\n AppletServletCommunicator appletServletCommunicator = new\r\n AppletServletCommunicator(STREAMING_SERVLET, requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responder = appletServletCommunicator.getResponse(); \r\n if(!responder.isSuccessfulResponse()){\r\n throw new CoeusException(responder.getMessage(),0);\r\n }\r\n map = (Map)responder.getDataObject();\r\n String url = (String)map.get(DocumentConstants.DOCUMENT_URL);\r\n if(url == null || url.trim().length() == 0 ) {\r\n CoeusOptionPane.showErrorDialog(\r\n coeusMessageResources.parseMessageKey(\"protocolUpload_exceptionCode.1009\"));\r\n return;\r\n }\r\n url = url.replace('\\\\', '/') ;\r\n try{\r\n URL urlObj = new URL(url);\r\n URLOpener.openUrl(urlObj);\r\n }catch (MalformedURLException malformedURLException) {\r\n malformedURLException.printStackTrace();\r\n }catch( Exception ue) {\r\n ue.printStackTrace() ;\r\n }\r\n }", "public abstract boolean processApproveDocument(ApproveDocumentEvent approveEvent);", "void handleSaveClicked(ActionEvent event);", "public void saveDocumentContent(long documentId, byte[] documentContent) throws ContestManagementException {\r\n\r\n }", "@Override\n public void onSaveAttachmentToUserProvidedDirectory(final AttachmentViewInfo attachment) {\n MessageViewFragment fragment = messageViewFragmentWeakReference.get();\n if (fragment == null) {\n return;\n }\n\n Intent intent = new Intent();\n intent.putExtra(\"attachmentInfo\", attachment);\n FileBrowserHelper.getInstance().showFileBrowserActivity(fragment, null,\n MessageViewFragment.ACTIVITY_CHOOSE_DIRECTORY, new FileBrowserHelper.FileBrowserFailOverCallback() {\n @Override\n public void onPathEntered(String path) {\n getAttachmentController(attachment).saveAttachmentTo(path);\n }\n\n @Override\n public void onCancel() {\n // Do nothing\n }\n }, intent);\n\n }", "@Override\n\tpublic void save(CompanyImgAndDoc companyImgDoc) {\n\t\tcompanyImgAndDocDAO.save(companyImgDoc);\n\t\t\n\t}", "@Override\r\n\tpublic int save() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "public void saveDocumentAs( final URL url ) {\n\t\ttry {\n\t\t\tSystem.out.println( \"Saving to: \" + url );\n\t\t\tif ( _optics.save( this ) ) {\n\t\t\t\tsetHasChanges( false );\n\t\t\t\t// to do: really should make a logbook entry about this\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog( getMainWindow(), \"The save operation was cancelled.\", \"Save Cancelled\" , JOptionPane.WARNING_MESSAGE );\n\t\t\t}\n\t\t}\n\t\tcatch( Exception exception ) {\n\t\t\tdisplayError( \"Save Failed\", \"Exception while attempting to save changes\", exception );\n\t\t}\n\t}", "@Override\n public String persistAttachmentBinary(HttpServletRequest request, Attachment attachment)\n throws PersistenceException {\n if (request == null) {\n return null;\n }\n\n String path = getAttachmentAbsolutePath(attachment, request);\n try {\n FileUtil.write(path, attachment.getData());\n } catch (IOException e) {\n throw new PersistenceException(\"Unable to persist file \" + attachment.getFilename()\n + \"to path \" + path, e);\n }\n\n final String context = request.getContextPath();\n final String urlPath = context + PATH_FORMAT.format(new Object[]{ attachment.getGuid(),attachment.getFilename()});\n return urlPath;\n }", "public void doSaveAs() {\n\t\tif (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty())\n\t\t\tupdateIntroEditor();\n\t\tif (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty()))\n\t\t\tupdateFile();\n\t\tIEditorPart editor = getTextEditor();\n\t\teditor.doSaveAs();\n\t\tsetPageText(getTextEditorIndex(), editor.getTitle());\n\t\tsetInput(editor.getEditorInput());\n\t}", "public static native boolean saveDocument(String doc, String toFile);", "public void saveAuthor(Author authorObject);", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "@RequestMapping(value = \"/saveDocuments\", method = RequestMethod.POST)\n\tpublic ModelAndView saveDocumentUpload(@ModelAttribute(\"manual\") InstructionManualForm form, BindingResult bindingResult, Model model,\n\t\t\tHttpServletRequest request, HttpServletResponse response, HttpSession session, RedirectAttributes redirectAttributes,\n\t\t\t@RequestParam CommonsMultipartFile uploadImageFile, @RequestParam CommonsMultipartFile uploadDocFile) {\n\t\t\n\t\tModelAndView mv = new ModelAndView();\n\t\ttry {\n\t\t\tLoginForm loggedInUser = (LoginForm) session.getAttribute(\"loginDetail\");\n\t\t\tif (uploadDocFile != null) {\n\t\t\t\t// String rootFilePath=env.getProperty(\"file.root_folder_path\") + File.separator + env.getProperty(\"file.instruction_manual_folder\");\n\t\t\t\tString rootFilePath= PharmacyUtil.getRootFolderForInstructionManual(session, env);\n\t\t\t\tboolean isSaved = manualService.saveDocumentFiles(uploadDocFile, uploadImageFile, form, rootFilePath, loggedInUser);\n\t\t\t\tif (isSaved) {\n\t\t\t\t\tredirectAttributes.addFlashAttribute(\"saveStatus\", \"true\");\n\t\t\t\t\tredirectAttributes.addFlashAttribute(\"message\", \"Instruction manual uploaded successfully\");\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Document uploaded successfully\");\n\t\t\t\t} else {\n\t\t\t\t\tredirectAttributes.addFlashAttribute(\"saveStatus\", \"false\");\n\t\t\t\t\tredirectAttributes.addFlashAttribute(\"message\", \"failed to upload Instruction manual\");\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Fail to upload Document\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tmv.setViewName(\"redirect:documentUpload\");\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tmodel.addAttribute(\"message\", \"Admin Account failed to create.\");\n\t\t\tmv.setViewName(\"error500\");\n\t\t}\n\t\treturn mv;\n\t}", "void documentModifyStatusUpdated(SingleDocumentModel model);", "void documentModifyStatusUpdated(SingleDocumentModel model);", "void saveSaves(Object data, Context context);", "@Override\n public DocumentServiceEntry saveDocument(String documentId, String etag, String title,\n String contents) throws DocumentServiceException {\n if (documentId == null || documentId.equals(\"\")) {\n return createDocument(title, contents);\n } else {\n return setDocumentContents(documentId, etag, contents);\n }\n }", "public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "public SfJdDocAudit saveFN(SfJdDocAudit inData, RequestMeta requestMeta) {\n if (inData.getJdDocAuditId()==null ) {\r\n\r\n ZcSUtil su=new ZcSUtil();\r\n BigDecimal id=new BigDecimal(su.getNextVal(SfJdDocAudit.SEQ_SF_JD_DOC_AUDIT_ID));\r\n inData.setJdDocAuditId(id); \r\n\r\n boolean isDraft = false;\r\n String userId = requestMeta.getSvUserID();\r\n String compoId = requestMeta.getCompoId();\r\n \r\n if (inData.getProcessInstId() == null || inData.getProcessInstId().longValue() == -1) {\r\n Long draftid = workflowDao.createDraftId();\r\n inData.setProcessInstId(draftid);\r\n isDraft = true;\r\n } \r\n insert(inData,requestMeta);\r\n if (isDraft) {\r\n AsWfDraft asWfDraft = new AsWfDraft();\r\n asWfDraft.setCompoId(compoId);\r\n asWfDraft.setWfDraftName(inData.getName());\r\n asWfDraft.setUserId(userId);\r\n asWfDraft.setMasterTabId(compoId);\r\n asWfDraft.setWfDraftId(BigDecimal.valueOf(inData.getProcessInstId().longValue()));\r\n workflowDao.insertAsWfdraft(asWfDraft);\r\n }\r\n }else{\r\n update(inData,requestMeta);\r\n }\r\n return inData;\r\n }", "public void saveOffice(Office office) {\n\t\t\n\t}", "@Override\n\tpublic void save(T obj) throws Exception {\n\t\t\n\t}", "public String save(UrlObject urlObject);", "public interface Saveable {\n void save( String key,File file,Context context);\n}" ]
[ "0.7160098", "0.6964952", "0.6925324", "0.6859366", "0.6778618", "0.6649702", "0.64266676", "0.6349694", "0.6349694", "0.6318765", "0.62453246", "0.6243321", "0.6243321", "0.6199095", "0.60964096", "0.6057666", "0.6023837", "0.6020857", "0.59550446", "0.5946453", "0.5923336", "0.59136236", "0.5885581", "0.588554", "0.5884961", "0.5877504", "0.5874164", "0.58704054", "0.5865764", "0.58657074", "0.58657074", "0.58649427", "0.58649427", "0.5857785", "0.5853299", "0.58073246", "0.5792254", "0.57915086", "0.57840824", "0.57743967", "0.57743967", "0.57743967", "0.57743967", "0.5741651", "0.57342947", "0.57278305", "0.5716012", "0.570096", "0.56983626", "0.5689089", "0.5681336", "0.566258", "0.5661055", "0.56465375", "0.56444216", "0.56306326", "0.5613047", "0.5605212", "0.5605212", "0.5605212", "0.560039", "0.5586688", "0.5586688", "0.55848277", "0.55726266", "0.556961", "0.55658853", "0.5564347", "0.5553963", "0.5552126", "0.55518305", "0.55499536", "0.5544467", "0.55412763", "0.5536138", "0.55300313", "0.55280435", "0.552716", "0.55105704", "0.54905075", "0.54897785", "0.54880786", "0.5487936", "0.5483818", "0.5479762", "0.5477816", "0.54750437", "0.54747224", "0.54594314", "0.54563546", "0.5450777", "0.5450777", "0.5447379", "0.5442066", "0.5442064", "0.5439035", "0.54381585", "0.54256743", "0.5413424", "0.5410305" ]
0.586782
28
Atributos No hay Constructor Constructor de TCubico
public TCubico(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Alojamiento() {\r\n\t}", "public Caso_de_uso () {\n }", "public Candidatura (){\n \n }", "private ControleurAcceuil(){ }", "public Cgg_jur_anticipo(){}", "public Kullanici() {}", "public AntrianPasien() {\r\n\r\n }", "public Pasien() {\r\n }", "public Vehiculo() {\r\n }", "public CCuenta()\n {\n }", "public Aritmetica(){ }", "public Chauffeur() {\r\n\t}", "public prueba()\r\n {\r\n }", "public FiltroMicrorregiao() {\r\n }", "public Coche() {\n super();\n }", "public MorteSubita() {\n }", "public Clade() {}", "public PersonaFisica() {}", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "public Carrera(){\n }", "protected Asignatura()\r\n\t{}", "public Contato() {\n }", "private BaseDatos() {\n }", "public CarteCaisseCommunaute() {\n super();\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public AfiliadoVista() {\r\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public TebakNusantara()\n {\n }", "public CuentaDeposito() {\n super();\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public ContaBancaria() {\n }", "public Constructor(){\n\t\t\n\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "public Troco() {\n }", "public Corso() {\n\n }", "public DABeneficios() {\n }", "public Ciudad()\n {\n\n }", "public Tarifa() {\n ;\n }", "public YonetimliNesne() {\n }", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }", "public Propuestas() {}", "public Veiculo() {\r\n\r\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public CorreoElectronico() {\n }", "public Pitonyak_09_02() {\r\n }", "public Busca(){\n }", "public Nota() {\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Transportista() {\n }", "public Factura() {\r\n }", "public Factura() {\r\n }", "public Cohete() {\n\n\t}", "public Persona() {\n\t}", "public FicheConnaissance() {\r\n }", "public Achterbahn() {\n }", "public Prova() {}", "public Persona() {\n \t\n }", "public Classe() {\r\n }", "public Unidadmedida() {\r\n\t}", "public Aktie() {\n }", "private UsineJoueur() {}", "public Facturacion() {\n }", "public Odontologo() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Persona(){\n \n }", "public Persona(){\n \n }", "public AtributoAsientoBean() {\n }", "public Cidade(String nome){\n super(0, nome, 0.0, 0.0);\n }", "public SlanjePoruke() {\n }", "public NhanVien()\n {\n }", "public MPaciente() {\r\n\t}", "public Exercicio(){\n \n }", "public Persona() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public CLElenco() {\n /** rimanda al costruttore di questa classe */\n this(null);\n }", "public Curso() {\r\n }", "public Banco(){}", "public CrearQuedadaVista() {\n }", "public TTau() {}", "public Tabono() {\n }", "public Producto() {\r\n }", "public Propiedad(){\n\t}", "private void __sep__Constructors__() {}", "public DetalleTablaComplementario() {\r\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "protected Persona (String nombre,String apellido, String fechaNac){\r\n this.nombre = nombre;\r\n this.apellido = apellido;\r\n this.fechaNac = fechaNac;\r\n }", "public TutorIndustrial() {}", "public Datos(){\n }", "public TipoCaracteresException() {\n\t\tsuper(\"Los campos 'nombre' y ' apellido' solo pueden contener letras\");\n\t}", "public Utilisateur() {\n\t\tsuper();\n\t}", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public DarAyudaAcceso() {\r\n }", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "public Personaje(Juego juego,Celda c) {\r\n\t\tsuper(juego,c);\r\n\t}" ]
[ "0.7364801", "0.7296862", "0.7286193", "0.72850907", "0.7283375", "0.72493577", "0.7241083", "0.7234526", "0.7232215", "0.71430135", "0.7142133", "0.71277213", "0.71226156", "0.71183", "0.70890003", "0.70732486", "0.70509666", "0.70421654", "0.70328563", "0.7015571", "0.7013827", "0.70132315", "0.7013178", "0.7008709", "0.70079243", "0.7000606", "0.6989572", "0.6970333", "0.6966945", "0.69663113", "0.6945006", "0.69345087", "0.69153637", "0.6903391", "0.69015646", "0.68991023", "0.6897402", "0.68863314", "0.6878881", "0.68758297", "0.6875715", "0.68680555", "0.68584096", "0.6852145", "0.68482643", "0.68473613", "0.6847212", "0.6838355", "0.68320626", "0.6827456", "0.6822947", "0.6819712", "0.6819712", "0.6800529", "0.67983675", "0.67958564", "0.6793137", "0.678905", "0.6775123", "0.6764701", "0.67610556", "0.6757753", "0.67518157", "0.6746691", "0.67430377", "0.6740943", "0.6735935", "0.6735935", "0.67311513", "0.67209727", "0.67176425", "0.67027867", "0.66978854", "0.6696105", "0.66760033", "0.6673575", "0.6670912", "0.666656", "0.6665877", "0.6662841", "0.6661789", "0.66615313", "0.66594416", "0.66508025", "0.66354984", "0.6627986", "0.6617292", "0.6610327", "0.66017544", "0.65909654", "0.6589231", "0.6586894", "0.6586845", "0.6581548", "0.6581304", "0.6578236", "0.65777385", "0.6577444", "0.6552935", "0.65522856" ]
0.79779965
0
Metodos Ingresa la capacidad de TCubico
@Override public void ingresarCapacidad(){ double capacidad = Math.pow(alto, 3); int capacidadInt = Double.valueOf(capacidad).intValue(); super.capacidad = capacidadInt; super.cantidadRestante = capacidadInt; System.out.println(capacidadInt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void asignarCapacidades ()\n\t{\n\t\tif(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_ECONOMICO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_60;\n\t\t}\n\t\t\n\t\telse if(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_MEDIO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_45;\n\t\t}\n\t\t\n\t\telse capacidadKilometrosPorGalon = CAPACIDAD_30;\n\t}", "public void setCapacidad(Integer capacidad) {\n this.capacidad = capacidad;\n }", "public Integer getCapacidad() {\n return capacidad;\n }", "private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}", "public String tipoConta() {\n return \"Conta Comum\";\n }", "void datos(ConversionesCapsula c) {\n String v;\n\n\n v = d.readString(\"Selecciona opcion de conversion\"\n + \"\\n1 ingles a metrico\"\n + \"\\n2 metrico a ingles\"\n + \"\\n3 metrico a metrico\"\n + \"\\n4 ingles a ingles\");\n c.setopc((Integer.parseInt(v)));\n int opc = (int) conversion.getopc();\n switch (opc) {\n case 1:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a metros\"\n + \"\\n2 Pies a centimetros\"\n + \"\\n3 Pies a Metros y Centimetros\"\n + \"\\n4 Pulgadas a metros\"\n + \"\\n5 Pulgadas a centimetros\"\n + \"\\n6 Pulgadas a Metros y Centimetros\"\n + \"\\n7 Pies y Pulgadas a metros\"\n + \"\\n8 Pies y Pulgadas a centimetros\"\n + \"\\n9 Pies y Pulgadas a Metros y Centimetros\");\n c.setopc1((Integer.parseInt(v)));\n\n\n break;\n case 2:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Pies\"\n + \"\\n2 Metros a Pulgadas\"\n + \"\\n3 Metros a Pies y Pulgadas\"\n + \"\\n4 Centimetros a Pies\"\n + \"\\n5 Centimetros a Pulgadas\"\n + \"\\n6 Centimetros a Pies y Pulgadas\"\n + \"\\n7 Metros y Centimetros a Pies\"\n + \"\\n8 Metros y Centimetros a Pulgadas\"\n + \"\\n9 Metros y Centimetros a Pies y Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 3:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Metros a Centimetros\"\n + \"\\n2 Metros a Metros y Centimetros\"\n + \"\\n3 Centimetros a Metros\"\n + \"\\n4 Centimetros a Metros y Centimetros\"\n + \"\\n5 Metros y Centimetros a Centimetros\"\n + \"\\n9 Metros y Centimetros a Metros\");\n c.setopc1((Integer.parseInt(v)));\n break;\n case 4:\n v = d.readString(\"Selecciona la opcion de conversion\"\n + \"\\n1 Pies a Pulgadas\"\n + \"\\n2 Pies a Pies y Pulgadas\"\n + \"\\n3 Pulgadas a Pies\"\n + \"\\n4 Pulgadas a Pies y Pulgadas\"\n + \"\\n5 Pies y Pulgadas a Pies\"\n + \"\\n9 Pies y Pulgadas a Pulgadas\");\n c.setopc1((Integer.parseInt(v)));\n break;\n }\n\n do v = d.readString(\"\\n Ingrese el valor: \\n\");\n while (!isNum(v));\n c.setvalor((Double.parseDouble(v)));\n }", "@Override\n\tpublic int getCapacite() {\n\t\t// TODO Auto-generated method stub\n\t\treturn capacite;\n\t}", "int obtenerCapital(){\n int capital, valorPropiedades = 0, numEdificaciones = 0;\n \n //Calculamos el valor de todas las propiedades del jugador.\n for(TituloPropiedad propiedad: this.propiedades){\n \n //Obtenemos el número de edificacionesque tiene el titulo de propiedad. cada hotel equivale a cuatro casas mas coste edificación.\n numEdificaciones = propiedad.getCasilla().getNumCasas() + propiedad.getCasilla().getNumHoteles();\n \n //Valor total de la propiedad\n valorPropiedades = valorPropiedades + propiedad.getAlquilerBase() +(numEdificaciones * propiedad.getPrecioEdificar());\n \n if(propiedad.isHipotecada())\n valorPropiedades = valorPropiedades - propiedad.getHipotecaBase();\n }\n \n capital = valorPropiedades + this.saldo;\n \n return capital;\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();", "teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "public int cuantosCursos(){\n return inscripciones.size();\n }", "public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}", "public Cafetera(int maximo) {\n\t\t super();\n\t\t this._capacidadMaxima=maximo;\n\t\t this.cantidadActual=maximo;\n\t }", "@Override\n protected String elaboraFooterCategorie() {\n String text = CostBio.VUOTO;\n\n text += A_CAPO;\n text += LibWiki.setRigaCat(\"Liste di persone per cognome| \");\n text += LibWiki.setRigaCat(\"Progetto Antroponimi|Cognomi\");\n\n return text;\n }", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public interface Comestivel {\n\t\n\t/** Metodo Que retorna o nome do item do cardapio\n\t * @return Retorna o Nome do item\n\t */\n\tpublic String getNome();\n\t\n\t/** Metodo que retorna o valor do item do cardapio\n\t * @return Retorna o Preco a ser pago\n\t */\n\tpublic double getPreco();\n\t\n\t/** Metodo que retorna uma descricao do item do cardapio\n\t * @return Retorna a Descricao do item\n\t */\n\tpublic String getDescricao();\n}", "public SiacTRecapitoSoggetto() {\n\t}", "public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}", "public Pilas(int cap) { // el constructor, de parametro la capacidad de la pila\r\n capacidad = cap; // le asignamos a capacidad lo que se pase por parametro\r\n array = new int[capacidad]; // al arreglo le decimos (asignamos) su longitud\r\n top = -1; // inicializamos la cima (como no hay aun nada, la cima es -1)\r\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public List<Comentario> buscaPorTopico(Topico t);", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "public MVCModelo(int capacidad)\n\t{\n\t\tllave = \"\";\n\t\tvalue = 0.0;\n\t}", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "private ControleurAcceuil(){ }", "public abstract java.util.Collection getTecnico_peticion();", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "int getNombreColonnesPlateau();", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "public abstract java.lang.String getAcma_descripcion();", "public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "private void cargarTarjetaTuberculosis() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_HC_TUBERCULOSIS,\r\n\t\t\t\tIRutas_historia.LABEL_HC_TUBERCULOSIS, parametros);\r\n\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "@Override\n\tpublic String toString() {\n\t\treturn \"Chiclete Vendido: \" + maquinaDeChiclete.quantidadeDeChicletes + \" chicletes\"; \n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public Espacio (int id, int capacidad, int ocupacion, TipoEspacio tipo, Localizacion localizacion){\n this.id = id;\n this.capacidad = capacidad;\n this.ocupacion = ocupacion;\n this.TIPO = tipo;\n this.localizacion = localizacion;\n }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "private static void cajas() {\n\t\t\n\t}", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Chancleta pc = new Chancleta();\n //pc.asiento = 'A';\n //pc.fila = 3;\n pc.chicle = 2;\n pc.imprimir();\n System.out.println(\"precio: \" + pc.getPrecio());\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}", "public TCubico(){}", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "public int getCiclo() { return this.ciclo; }", "public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }", "private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }", "public Mazo()\n {\n cartasBaraja = new ArrayList<>();\n for(Palo paloActual: Palo.values()){ \n String palo = paloActual.toString().toLowerCase();\n for(int i = 1; i < 13; i ++){\n\n if(i > 7 && i < 10){\n i = 10;\n }\n Carta carta = new Carta(i, paloActual);\n cartasBaraja.add(carta);\n }\n }\n }", "public Collection<AreaTrabajoDTO> obtenerAreaSublugarTrabajo(Integer codigoCompania, Integer centroDistribucion);", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "private void copiaTabuleiro () {\n\t\tTabuleiro tab = Tabuleiro.getTabuleiro ();\n\t\t\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tCasa.copia (casa[i][j], tab.getCasa (i, j));\n\t\t}\n\t}", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getCitta() {\n return citta;\n }", "private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "@Override\n\tpublic int canalMais() {\n\t\treturn 0;\n\t}", "public String getPuissanceCampMechant(){ \n Integer total = 0;\n total+=bonusTemporaireMechant;\n for(Monstre p : CampMechant)\n total += p.getPuissance(); \n return total.toString();\n }", "@Override\n public void buildHabilidadSecundaria(int tipo) {\n \n String habilidad;\n \n habilidad = switch (tipo) {\n case 1 -> \"Burbuja\";\n case 2 -> \"Corriente marina\";\n case 3 -> \"Compresion\";\n default -> \"Tsunami\";\n };\n \n this.personaje.setHabilidadSecundaria(habilidad);\n }", "@Test\r\n public void testVerificaPossibilidade9() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n usucapiao.setRegistroDeOutroImovel(true);\r\n usucapiao.setTamanhoTerreno(250);\r\n usucapiao.setPrazo(2);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"possivel-agora\", result);\r\n }", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "@Override\n public List<Ambito> buscarCCPPP(Ambito ambito) {\n Criteria criteria = this.getSession().createCriteria(Ambito.class);\n criteria.add(Restrictions.isNull(\"ambitoPadre\"));\n criteria.add(Restrictions.like(\"nombreAmbito\", \"%\" + ambito.getNombreAmbito().toUpperCase() + \"%\"));\n return (List<Ambito>) criteria.list();\n\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\n\tpublic String getCultivos() {\n\t\treturn model.getCultivos();\n\t}", "int getNombreLignesPlateau();", "public String getClasz() {\r\n \t\treturn clasz;\r\n \t}", "public String recuperaCultivoByVariedadAsigCA(){\n\t\tlstVariedad = iDAO.recuperaVariedadByInicilizacionEsquema(idInicializacionEsquema, idCultivo);\n\t\treturn SUCCESS;\t\t\n\t}", "public MotgaCltalCtrctBsSgmt() {\n\t\tsuper();\n\t}", "public int getCosto() {\n\t\treturn producto.getCosto();\n\t}", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public com.upslogisticstech.www.UPSLT.TransportationSuite.TransportationWebService.Quantities getCapacities() {\n return capacities;\n }", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "@Override\n\tpublic String getTareas() {\n\t\treturn \"TAREA COMERCIAL 3: VENDE MUCHO TODOS LOS DÍAS\";\n\t}", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "public void mostrarEstadisticas(String promedio, int rechazados, String caracteristicas){\n System.out.println(\"El tiempo promedio es de: \" + promedio);\n System.out.println(\"La cantidad de carros rechazados es de: \" + rechazados);\n System.out.println(\"El modelo mas usado en parqueos es: \" + caracteristicas);\n }", "public void mostrarAyuda() {\r\n\t\t\r\n\t\tEnum_Instrucciones[] arrayEnumerado;\r\n\t\t\r\n\t\tarrayEnumerado = Enum_Instrucciones.getArrayEnumerados();\r\n\t\t\r\n\t\t// El tamano del array de enumerados es 8.\r\n\t\tfor(int i = 0; i < Enum_Instrucciones.tamanoArrayEnumerados(); i++) {\r\n\t\t\tSystem.out.println(arrayEnumerado[i].getDescripcionOrden());\r\n\t\t}\r\n\t}" ]
[ "0.69070756", "0.6487838", "0.6443693", "0.59934574", "0.5953816", "0.5908737", "0.5833421", "0.5822824", "0.57863927", "0.5747077", "0.5731083", "0.56804633", "0.56557727", "0.56557727", "0.56506956", "0.56432277", "0.56268734", "0.55763716", "0.55744636", "0.5566874", "0.55364627", "0.55258983", "0.5510839", "0.55070573", "0.55058986", "0.5486185", "0.5483974", "0.5474741", "0.54730487", "0.54713583", "0.5456477", "0.54517853", "0.54409254", "0.5429561", "0.54248655", "0.5422163", "0.5418039", "0.5411373", "0.54083025", "0.5385407", "0.5383784", "0.53817075", "0.53675336", "0.53548163", "0.53439665", "0.5338829", "0.53333443", "0.53319836", "0.5326463", "0.5323288", "0.53168225", "0.5296862", "0.52904904", "0.52878624", "0.5283501", "0.5281442", "0.527628", "0.52721083", "0.52700347", "0.52685887", "0.52642727", "0.5252613", "0.5249556", "0.52484906", "0.5236544", "0.5228661", "0.52273273", "0.52258193", "0.522535", "0.52239627", "0.52227473", "0.52173597", "0.5216161", "0.5212167", "0.5211913", "0.5205246", "0.5201704", "0.5200885", "0.52008843", "0.51979935", "0.5196621", "0.5196354", "0.5194022", "0.51888", "0.51887816", "0.51821756", "0.5180454", "0.5177868", "0.5177582", "0.5170504", "0.51689154", "0.5166108", "0.5164861", "0.5163071", "0.5162313", "0.516052", "0.5157122", "0.5153506", "0.5151994", "0.5149923" ]
0.5956038
4
you can define some common methods here
void printCarInfo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void logic(){\r\n\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "@Override\n public void perish() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void getExras() {\n }", "private CommonMethods() {\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "Operations operations();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private stendhal() {\n\t}", "public abstract void afvuren();", "protected void additionalProcessing() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public abstract String use();", "@Override\n\tprotected void interr() {\n\t}", "public interface IRDubboProInvestImageService {\n /**\n * searchProInvestHotList\n * 品类网 特殊定制 合并调用 拼 pic 获取url\n @param hotStatus hot表状态\n * @param hot_siteId hot表站点id\n * @param orderType hot排序\n * @param webCategory 分类\n * @param num 显示条数\n * @param oldPicFormat old规格\n * @param newPicFormat new规格\n * @return\n * String\n * @author guoYang\n * @supply\n * @date 2013-8-8 下午3:44:53\n * @exception\n * @since 1.0\n */\n public String searchProInvestHotList(int hotStatus,int hot_siteId,String orderType,String webCategory,int num,\n String oldPicFormat,String newPicFormat);\n}", "public void doGeneralThings() {\n logger.debug(\"Overrided or implememted method - doGeneralThings!\");\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public interface SGTView extends IView {\n\n void getSGTHomeData(ApiResponse<List<SGTHomeListEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSGTSearchData(ApiResponse<List<FootSSEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSearchFootInfoData(ApiResponse<SearchFootEntity> listApiResponse, String msg, Throwable mThrowable);//搜索足环号码\n\n// void getSGTSearchData(List<FootSSEntity> data, String msg);//赛格通足环搜索页\n\n void getFootImg(List<SGTImgEntity> imgDatas, String str);//获取足环照片\n\n void getFootInfo(SGTFootInfoEntity infoData, String str);//获取足环详情\n\n void getGZImgEntity(List<GZImgEntity> gzImgData, String str);//获取鸽主图片\n\n void uploadResults(ApiResponse<Object> dateApiResponse, String msg);//上传图片结果\n\n void getTagData(List<TagEntitiy> tagDatas);//获取标签数据\n\n void getGeZhuFootData(ApiResponse<GeZhuFootEntity> listApiResponse, String msg);//获取鸽主下的足环列表\n\n void getUserInfo_SGT(ApiResponse<SGTUserInfo> dataApiResponse, String msg);//获取赛鸽通用户信息\n\n void getSetRpTimeResults(ApiResponse<Object> dataApiResponse, String msg);//设置本届比赛入棚时间(修改足环号码)\n\n void getSetGPKrysResults(ApiResponse<Object> dataApiResponse, String msg);//设置公棚可容羽数\n}", "protected abstract void switchOnCustom();", "abstract void uminus();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "public interface CommonService {\n public String getUUID() throws Exception;\n\n public List<NlbsDistributor> selectChildrenListDistributor(String distributorCode) throws Exception;\n\n public List<NlbsUser> selectChildrenListUser(String userCode) throws Exception;\n\n List<Map> queryAllMaterialTypeList() throws Exception;\n\n List<Map> queryAllApplyRecordStatusList() throws Exception;\n\n List<NlbsCity> queryAllCity() throws Exception;\n\n public NlbsUser queryNlbsUserByUserNoIgnoreStatus(String userNo) throws Exception;\n\n public boolean isAdministrator(String userNo, List<String> roleList) throws Exception;\n\n}", "public abstract void userValues();", "@Override\n\tpublic void particular1() {\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}", "public void designBasement() {\n\t\t\r\n\t}", "public interface MetaInformationService extends BasicEcomService{\n\n public String listMetaInformationTypesForPage(String page);\n public Integer getTotalPagesForMetaInformationTypes();\n public Integer getTotalPagesForSearchedMetaInformationTypes(String metaType);\n public String listSearchedMetaInformationTypesForPage(String metaType,String page);\n\n\n}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public abstract void mo56925d();", "public abstract void mo30696a();", "public FuncionesSemanticas(){\r\n\t}", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void prot() {\n }", "public abstract String tiposervicio();", "public void miseAJour();", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "abstract void method();", "public interface BaseView {\n\n /**\n * 返回请求信息\n * @param value\n */\n void showReqResult(String value);\n\n}", "abstract int pregnancy();", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public abstract void mo35054b();", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public abstract void mo102899a();", "protected FanisamBato(){\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public abstract void operation();", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tpublic void initUtils() {\n\n\t}", "protected abstract Set method_1559();", "public abstract void mo2150a();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}", "protected Doodler() {\n\t}", "public interface CrossDateTimeParser {\n\n\t\n\t\n\t/**\n\t * format dari date menjadi string format. pls refer pada\n\t * @param date tanggal yang akan di format menjadi string\n\t * @param dateFormat format dari date \n\t **/\n\tpublic String format (Date date , String dateFormat) ;\n\t\n\t\n\t\n\t/**\n\t * worker utnuk mem-parse dari string menjadi date\n\t * @param dateAsString date yang di jadikan string. ini apa yang akan di jadikan date\n\t * @param dateFormat format dari date\n\t **/\n\tpublic Date parse (String dateAsString , String dateFormat) throws Exception ; \n}", "public contrustor(){\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "private void test() {\n\n\t}", "public interface IAisMsgCommondService {\n\n /**\n * 常规预报AIS消息控制\n * */\n public int generalForecastCommond(GeneralForecastBo generalForecastBo);\n\n /**\n * 数值预报AIS消息控制\n * */\n public int numericalForecastCommond(List<NumericalForecastBo> numericalForecastBoList);\n\n /**\n * 短消息控制\n * */\n public int messageCommond(MessageBo msgBo);\n}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}" ]
[ "0.6203616", "0.60774803", "0.6071782", "0.60540605", "0.60540605", "0.60359424", "0.59590185", "0.5946159", "0.5941488", "0.5941488", "0.5883198", "0.5868424", "0.5868424", "0.5853461", "0.58443296", "0.57764065", "0.5772049", "0.5755987", "0.5733863", "0.5724825", "0.5720018", "0.57174796", "0.5708163", "0.5699227", "0.56987", "0.5676507", "0.5672039", "0.56711936", "0.5671171", "0.56514794", "0.5649364", "0.56424445", "0.56389135", "0.56279963", "0.56143934", "0.56133664", "0.55615824", "0.5555698", "0.551851", "0.5506682", "0.55065817", "0.55021864", "0.5500684", "0.5496162", "0.5490116", "0.548903", "0.54780895", "0.54779357", "0.54762053", "0.5462868", "0.5436495", "0.54361206", "0.5434877", "0.5416054", "0.5411958", "0.540314", "0.5401733", "0.5401733", "0.53880423", "0.53703475", "0.53673774", "0.5361955", "0.5354921", "0.5350002", "0.5345061", "0.534498", "0.5344731", "0.534235", "0.5338452", "0.5336103", "0.53320163", "0.53233206", "0.5321904", "0.5320788", "0.53189063", "0.53161716", "0.53134096", "0.530994", "0.53078425", "0.53021836", "0.53010416", "0.5300807", "0.5282684", "0.52816814", "0.52813685", "0.52798706", "0.5269356", "0.52688634", "0.5264739", "0.5263573", "0.5262171", "0.5260299", "0.5256957", "0.5246066", "0.52458143", "0.52419376", "0.5237982", "0.52367467", "0.523643", "0.5228931", "0.5224502" ]
0.0
-1
This function is run when the robot is first started up and should be used for any initialization code.
@Override public void robotInit() { SmartDashboard.putData(new TestLIDARCommand()); driveSubsystem = new DriveSubsystem(); shooterSubsystem = new ShooterSubsystem(); feederSubsystem = new FeederSubsystem(); intakeSubsystem = new IntakeSubsystem(); gearSubsystem = new GearSubsystem(); climberSubsystem = new ClimberSubsystem(); cameraSubsystem = new CameraSubsystem(); navigator = new Navigator(); oi = new OI(); m_chooser = new SendableChooser<>(); m_chooser.addDefault("Do Nothing", new PistonReleaseCommand()); //m_chooser.addObject("Boiler Auto (side hopper)", new SelectBoilerAutoCommand()); m_chooser.addObject("Boiler Auto (front hopper)", new SelectBoilerAutoFrontCommand()); m_chooser.addObject("Test drive straight", new MeasureDistanceCommand(1500, 100000)); m_chooser.addObject("Test max speed", new TimedDriveCommand(5.0, 1.00)); m_chooser.addObject("Gear Auto (boiler)", new SelectGearBoilerCommand()); m_chooser.addObject("Gear Auto (feeder)", new SelectGearFeederCommand()); m_chooser.addObject("Gear Auto (middle)", new SelectGearMiddleAutoCommand()); SmartDashboard.putData("Auto mode", m_chooser); Robot.navigator.startMeasuringDistance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "public void robotInit() {\n\n }", "public void robotInit() {\n\n }", "protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}", "public void robotInit() {\r\n CommandBase.init();\r\n OI.init();\r\n System.out.println(\"ROBOT READY!\");\r\n }", "@Override\n public void init() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Initialized\"); //\n }", "@Override\n public void init() {\n\n robot.init(hardwareMap);\n\n // Tell the driver that initialization is complete.\n\n telemetry.addData(\"Robot Mode:\", \"Initialized\");\n telemetry.update();\n }", "@Override\n public void robotInit() {\n\toi = new OI();\n\tgameData = new GameData();\n\tcubeVision.start();\n\n\tinitializeDashboard();\n }", "public void robotInit() {\n\t\t\n\t\tupdateDashboard();\n\t\t\n \tautoChooser = new SendableChooser();\n \tautoChooser.addDefault(\"Default Autonomous does nothing!\", new Default());\n \t// Default Autonomous does nothing\n \tautoChooser.addObject(\"Cross the Low Bar Don't Run This it doesn't work\", new LowBar());\n \tautoChooser.addObject(\"Cross Rough Patch/Stone Wall\", new Main());\n \tautoChooser.addObject(\"Cross the Low Bar, Experimental!\", new LowBarEx());\n \t//autoChooser.addObject(\"If Jonathan lied to us and we can cross twice\", new RoughPatch());\n \tCameraServer server = CameraServer.getInstance();\n\n \tserver.setQuality(50);\n \t\n \tSmartDashboard.putData(\"Autonomous\", autoChooser);\n\n \tserver.startAutomaticCapture(\"cam0\");\n \tLowBar.gyro.reset();\n \t\n \tDriverStation.reportWarning(\"The Robot is locked and loaded. Time to kick some ass guys!\", !(server.isAutoCaptureStarted()));\n\n\t}", "public void robotInit() {\n\t\tmyRobot = new RobotDrive(0,1);\n\t\tteleop = new Teleop(myRobot);\n\t\tauto = new AutonomousDrive(myRobot);\n\t}", "@Override\n public void init() {\n robot.init(hardwareMap);\n telemetry.addData(\"Status\", \"Initialized\");\n }", "public void robotInit()\n\t{\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\t// autonomousCommand = new Driver();\n\t}", "public void robotInit() {\n RobotMap.init();\n driveWithJoystick = new DriveTrain();\n \n oi = new OI();\n }", "@Override\n public void init() {\n runtime.reset();\n robot.init(hardwareMap);\n\n telemetry.addData(\"Status\", \"Initialized\");\n }", "public void robotInit() {\n RobotMap.init();\n driveTrain = new DriveTrain();\n oi = new OI();\n flippy = new Flipper();\n flappy = new Flapper();\n autonomousCommand = new AutoFlip();\n \n OI.init();\n CommandBase.init();\n autoChooser = new SendableChooser();\n autoChooser.addDefault(\"Flap Left\", new AutoFlip());\n SmartDashboard.putData(\"Autonomous_Mode\", autoChooser); \n }", "public void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\tteleopCommand = new TeleopCommand();\n }", "public void robotInit() {\n // North.registerCommand(\"setSetpoint\", (params) -> ??, [\"Setpoint\"]);\n // North.registerCondition(\"atSetpoint\", elevator::atSetpoint);\n\n //NOTE: init(name, size, logic provider, drive & nav)\n North.init(/*NorthUtils.readText(\"name.txt\")*/ \"lawn chair\", 24/12, 24/12, drive);\n North.default_drive_controller = HoldController.I;\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n }", "public void robotInit() {\n System.out.println(\"Default robotInit() method... Override me!\");\n }", "@Override\n public void robotInit() {\n\t\t// set up logging\n\t\tlogger = EventLogging.getLogger(Robot.class, Level.INFO);\n\n // set up hardware\n RobotMap.init();\n\n // set up subsystems\n //initalized drive subsystem, which control motors to move robot\n driveSubsystem = new DriveSubsystem();\n\t\tbuttonSubstyem = new ButtonSubsystem();\n servoSubsystem = new ServoSubsystem();\n wingSubsystem = new WingSubsystem();\n flagSpinnerSubsystem = new FlagSpinnerSubsystem();\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n\n // Add commands to Autonomous Sendable Chooser\n chooser.addDefault(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "public void robotInit() {\n RobotMap.init();\r\n CommandBase.init();\r\n //Add autonomous prefs\r\n Preferences p = Preferences.getInstance();\r\n if (!p.containsKey(\"AutonInitialDelay\")) {\r\n p.putDouble(\"AutonInitialDelay\", kDefaultInitialDelay);\r\n }\r\n if (!p.containsKey(\"AutonTimeout\")) {\r\n p.putDouble(\"AutonTimeout\", kDefaultTimeout);\r\n }\r\n if (!p.containsKey(\"HangerLastSecondOn\")) {\r\n p.putBoolean(\"HangerLastSecondOn\", kDefaultLastSecondOn);\r\n }\r\n if (!p.containsKey(\"HangerLastSecondTimeout\")) {\r\n p.putDouble(\"HangerLastSecondTimeout\", kDefaultLastSecondTimeout);\r\n }\r\n }", "@Override\n\tpublic void onInit(RobotAPI arg0) {\n\n\t}", "@Override\r\n public void init() {\r\n /* Initialize the hardware variables.\r\n * The init() method of the hardware class does all the work here\r\n */\r\n robot.init(hardwareMap);\r\n\r\n // Send telemetry message to signify robot waiting;\r\n telemetry.addData(\"Status\", \"Initialized\");\r\n }", "@Override\n public void robotInit() \n {\n CommandBase.init();\n PIDCommandBase.init();\n\n CameraServer.getInstance().startAutomaticCapture();\n\n start.addDefault(\"Left\", Autonomous.StartPosition.LEFT);\n start.addObject(\"Center\", Autonomous.StartPosition.CENTER);\n start.addObject(\"Right\", Autonomous.StartPosition.RIGHT);\n SmartDashboard.putData(\"Start\", start);\n \n chooser.addObject(\"Scale\", Autonomous.AutoMode.SCALE);\n chooser.addObject(\"Switch\", Autonomous.AutoMode.SWITCH);\n chooser.addDefault(\"Drive\", Autonomous.AutoMode.DRIVE);\n SmartDashboard.putData(\"Auto Mode\", chooser);\n\n compressor = new Compressor();\n compressor.start();\n }", "public void robotInit() {\n\t\toi = OI.getInstance();\r\n\t\t\r\n\t\t// instantiate the command used for the autonomous and teleop period\r\n\t\treadings = new D_SensorReadings();\r\n\t\t// Start pushing values to the SD.\r\n\t\treadings.start();\r\n\t\t//Gets the single instances of driver and operator, from OI. \r\n\t\tdriver = oi.getDriver();\r\n\t\toperator = oi.getOperator();\r\n\r\n\t\t//Sets our default auto to NoAuto, if the remainder of our code doesn't seem to work. \r\n\t\tauto = new G_NoAuto();\r\n\t\t\r\n\t\t//Sets our teleop commandGroup to T_TeleopGroup, which contains Kaj,ELevator, Intake, and Crossbow Commands. \r\n\t\tteleop = new T_TeleopGroup();\r\n\t\t\r\n\t}", "public void robotInit() {\n\t\toi = new OI();\n // instantiate the command used for the autonomous period\n }", "public void robotInit(){\n\t\tSmartDashboard.putNumber(\"Climber Arm Speed: \", 0.5);\n\t\tSmartDashboard.putNumber(\"Climber Winch Speed: \", 0.25);\n\t}", "public void robotInit() {\n RobotMap.init();\n initDashboardInput();\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveTrain = new DriveTrain();\n power = new Power();\n arm = new Arm();\n sensors = new Sensors();\n ballGrabberSubsystem = new BallGrabberSubsystem();\n winch = new Winch();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n\n // instantiate the command used for the autonomous period\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n arcadeDrive = new ArcadeDrive();\n\n readPreferences();\n }", "protected void initialize() {\n\t\tRobot.conveyor.Forward();\n\n\t}", "public void robotInit() {\n \tboardSubsystem = new BoardSubsystem();\n }", "@Override\n protected void initialize() {\n Robot.collector.open();\n }", "@Override public void init() {\n drive = MecanumDrive.standard(hardwareMap); // Comment this line if you, for some reason, don't need to use the drive motors\n\n // Uncomment the next three lines if you need to use the gyroscope\n // gyro = IMUGyro.standard(hardwareMap);\n // gyro.initialize();\n // gyro.calibrate();\n\n // Uncomment the next two lines if you need to use the vision system\n // vision = new Vision(hardwareMap);\n // vision.init();\n\n // Uncomment the next line if you have a servo\n // myServo = hardwareMap.get(Servo.class, \"myServo\");\n\n /** Place any code that should run when INIT is pressed here. **/\n }", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n // robot.leftBumper.setPosition(.5);\n // robot.leftStageTwo.setPosition(1);\n // robot.rightStageTwo.setPosition(0.1);\n robot.colorDrop.setPosition(0.45);\n robot.align.setPosition(0.95);\n\n // robot.rightBumper.setPosition(.7);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "public void robotInit()\r\n {\r\n // Initialize all subsystems\r\n CommandBase.init();\r\n // instantiate the command used for the autonomous period\r\n //Initializes triggers\r\n mecanumDriveTrigger = new MechanumDriveTrigger();\r\n tankDriveTrigger = new TankDriveTrigger();\r\n resetGyro = new ResetGyro();\r\n }", "protected void initialize() {\n Robot.limelight.setPipeline(0.0);\n }", "protected void initialize() {\n\t\tRobot.resetSensors();\n\t}", "@Override\n public void robotInit() {\n robot = RobotSoftware.getInstance();\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n watcher = new Watcher(robot.leftDistanceStream.getWatchable(\"left dist\"),\n robot.rightDistanceStream.getWatchable(\"right dist\"));\n watcher.outputToDashboard();\n robot.runCompressor.set(false);\n teleop = new TeleopMain(robot);\n toggleCompressor = true;\n teleop.init();\n }", "protected void initialize() {\n \tSystem.out.println(\"initialize ReturnToStart\");\n \tRobot.claw.goRetract();\n \tRobot.claw.goUp();\n \tRobot.claw.goOpen();\n \tRobot.claw.spinStop();\n }", "protected void initialize() {\n \tRobot.gearIntake.setIsDown(true);\n }", "protected void initialize() {\r\n\r\n Robot.pneumatics.pneuOpen();\r\n }", "@Override\n\tpublic void robotInit() //starts once when the code is started\n\t{\n\t\tm_oi = new OI(); //further definition of OI\n\t\t\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\t//SmartDashboard.putData(\"Auto mode\", m_chooser);\n\t\t\n\t\tnew Thread(() -> {\n\t\t\tUsbCamera camera1 = CameraServer.getInstance().startAutomaticCapture();\n\t\t\tcamera1.setResolution(640, 480);\n\t\t\tcamera1.setFPS(30);\n\t\t\tcamera1.setExposureAuto();\n\t\t\t\n\t\t\tCvSink cvSink = CameraServer.getInstance().getVideo();\n\t\t\tCvSource outputStream = CameraServer.getInstance().putVideo(\"Camera1\", 640, 480); \n\t\t\t//set up a new camera with this name in SmartDashboard (Veiw->Add->CameraServer Stream Viewer)\n\t\t\t\n\t\t\tMat source = new Mat();\n\t\t\tMat output = new Mat();\n\t\t\t\n\t\t\twhile(!Thread.interrupted())\n\t\t\t{\n\t\t\t\tcvSink.grabFrame(source);\n\t\t\t\tImgproc.cvtColor(source, output, Imgproc.COLOR_BGR2RGB);//this will show the video in black and white \n\t\t\t\toutputStream.putFrame(output);\n\t\t\t}\t\t\t\t\t\n\t\t}).start();//definition of camera, runs even when disabled\n\t\t\n\t\tdriveStick = new Joystick(0); //further definition of joystick\n\t\tgyroRotate.gyroInit(); //initializing the gyro - in Rotate_Subsystem\n\t\tultrasonic = new Ultrasonic_Sensor(); //further definition of ultrasonic\n\t\tRobotMap.encoderLeft.reset();\n\t\tRobotMap.encoderRight.reset();\n\t\tdriveToDistance.controllerInit();\n\t}", "public void robotInit() {\n // Initialize all subsystems\n CommandBase.init();\n \n SmartDashboard.putNumber(RobotMap.Autonomous.MODE_KEY, 0);\n \n //temperary method to test door closing speeds\n SmartDashboard.putNumber(RobotMap.Force.DOOR_FORCE_KEY, 50);\n }", "protected void initialize()\n {\n // Set the pid up for driving straight\n Robot.drivetrain.getAngleGyroController().setPID(Constants.DrivetrainAngleGyroControllerP, Constants.DrivetrainAngleGyroControllerI, Constants.DrivetrainAngleGyroControllerD);\n //Robot.drivetrain.resetGyro();\n if (setpointSpecified == true)\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.initialGyroAngle); \n }\n else\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.drivetrain.getGyroValue());\n }\n Robot.drivetrain.setDirection(driveDirection);\n Robot.drivetrain.setMagnitude(drivePower);\n Robot.drivetrain.getAngleGyroController().enable();\n timer.reset();\n timer.start();\n }", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n //ColorSensor colorSensor;\n //colorSensor = hardwareMap.get(ColorSensor.class, \"Sensor_Color\");\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n //starts the dual cameras\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n //auto start (disabled atm)\n //pressBoy.setClosedLoopControl(true);\n pressBoy.setClosedLoopControl(false);\n \n \n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n \n //Initialize Drive Train Motors/\n LeftFront = new WPI_TalonSRX(11);\n RightFront = new WPI_TalonSRX(13);\n LeftBack = new WPI_TalonSRX(10);\n RightBack = new WPI_TalonSRX(12);\n RobotDT = new MecanumDrive(LeftFront, LeftBack, RightFront, RightBack);\n \n //Initialize Xbox Controller or Joystick/\n xcontroller1 = new XboxController(0);\n xcontroller2 = new XboxController(1);\n \n //Initialize Cameras/\n RoboCam = CameraServer.getInstance();\n FrontCamera = RoboCam.startAutomaticCapture(0);\n BackCamera = RoboCam.startAutomaticCapture(1);\n\n //GPM Init/\n mGPM = new GPM();\n \n }", "@Override\n public void initialize() {\n //m_camera.setDriverMode(true);\n //m_camera.setLED(LEDMode.kOn);\n RobotContainer.m_Drive.auto = true;\n RobotContainer.m_Drive.setLightMode(3);\n }", "public void robotInit() {\n\t\trightFront = new CANTalon(1);\n\t\tleftFront = new CANTalon(3);\n\t\trightBack = new CANTalon(2);\n\t\tleftBack = new CANTalon(4);\n\t\t\n\t\trightBack.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\tleftBack.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\t\n\t\tleftBack.set(leftFront.getDeviceID());\n\t\trightBack.set(rightFront.getDeviceID());\n\t\t\n\t\tturn = new Joystick(0);\n\t\tthrottle = new Joystick(1);\n\t}", "@Override\r\n public void robotInit() {\r\n // Instantiate our RobotContainer. This will perform all our button bindings\r\n robotContainer = new RobotContainer();\r\n }", "@Override\n\tpublic void robotInit() {\n\t\tdrive = new Drive();\n\t\tintake = new Intake();\n\t\tshooter = new Shooter();\n\t\taimShooter = new AimShooter();\n\t\tvision = new Vision();\n\t\tintakeRoller = new IntakeRoller();\n\t\taManipulators = new AManipulators();\n\t\tshooterLock = new ShooterLock();\n\n\t\t// autochooser\n\t\t// autoChooser = new SendableChooser();\n\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\tlowGearCommand = new LowGear();\n\n\t\t// auto chooser commands\n\t\t// autoChooser.addDefault(\"FarLeftAuto\", new FarLeftAuto());\n\t\t// autoChooser.addObject(\"MidLeftAuto\", new MidLeftAuto());\n\t\t// autoChooser.addObject(\"MidAuto\", new MidAuto());\n\t\t// autoChooser.addObject(\"MidRightAuto\", new MidRightAuto());\n\t\t// autoChooser.addObject(\"FarRightAuto\", new FarRightAuto());\n\t\t// autoChooser.addObject(\"Uber Auto\", new UberAuto());\n\t\t// autoChooser.addObject(\"Paper Weight\", new PaperWeightAuto());\n\t\t//\n\t\t// SmartDashboard.putData(\"Autonomous\", autoChooser);\n\n\t\t// autonomousCommand = (Command) autoChooser.getSelected();\n\t\tautonomousCommand = new FarLeftAuto();\n\t\t// autonomousCommand = new MidAuto();\n\t\t// CameraServer.getInstance().startAutomaticCapture(\"cam3\");\n\t\t// autonomousCommand = new FarLeftAuto\n\n\t\tpovUpTrigger.whenActive(new MoveActuatorsUp());\n\t\tpovDownTrigger.whenActive(new MoveActuatorsDown());\n\t}", "protected void initialize() {\n timeStarted = timeSinceInitialized();\n RobotMap.shootState=true;\n this.setTimeout(2.0);\n }", "@Override\n public void robotInit() {\n // Hardware.getInstance().init();\n hardware.init();\n\n controllerMap = ControllerMap.getInstance();\n controllerMap.controllerMapInit();\n\n controllerMap.intake.IntakeInit();\n\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n\n intakeCam = CameraServer.getInstance().startAutomaticCapture(\"Driver Camera :)\", 0);\n intakeCam.setPixelFormat(PixelFormat.kMJPEG);\n intakeCam.setResolution(160, 120);\n intakeCam.setFPS(15);\n // climberCam = CameraServer.getInstance().startAutomaticCapture(1);\n\n }", "protected void initialize() {\n \tRobot.driveTrain.driveMotionMagic(distanceToTravel);\n }", "protected void initialize() {\n \ttime.start();\n \tRobot.camera.setExposureManual(20);\n \tzach();\n\t\tSystem.out.println(\"josh\");\n\t\t\n }", "protected void initialize() {\n \tRobot.driveBase.stopDead();\n \tRobot.driveBase.resetDriveSensors();\n }", "public void robotInit() {\n\t\t//Get preferences from robot flash memory\n\t\tprefs = Preferences.getInstance();\n\t\tarmCalMinPosition = prefs.getDouble(\"armCalMinPosition\", 0);\n\t\tarmCal90DegPosition = prefs.getDouble(\"armCal90DegPosition\", 0);\n\t\tif (armCalMinPosition==0 || armCal90DegPosition==0) {\n\t\t\tDriverStation.reportError(\"Error: Preferences missing from RoboRio for Shooter Arm position calibration. Shooter arm disabled.\", true);\n\t\t\tshooterArmEnabled = false;\n\t\t} else {\n\t\t\tshooterArmEnabled = true;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tdebugStream = new FileWriter(\"/home/lvuser/debug.log\", true);\n\t\t\tdebugStream.write(\"Robot program started\\n\");\n\t\t\tdebugStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not open debug file: \" + e);\n\t\t}\n\n\t\t//Instantiates the subsystems\n\t\tdriveTrain = new DriveTrain();\n\t\tshifter = new Shifter();\n\t\tshooterArm = new ShooterArm();\n\t\tshooter = new Shooter();\n\t\tintake = new Intake();\n\t\tvision = new Vision();\n\t\tpanel = new PowerDistributionPanel();\n\t\tarmPiston = new ArmPiston();\n\n\t\t// OI must be constructed after subsystems. If the OI creates Commands\n\t\t// (which it very likely will), subsystems are not guaranteed to be\n\t\t// constructed yet. Thus, their requires() statements may grab null\n\t\t// pointers. Bad news. Don't move it.\n\t\toi = new OI();\n\n intake.motorCurrentTrigger.whenActive(new IntakeMotorStop());\n\n timerLEDs.start();\n timerTilt.start();\n timerRumble.start();\n \n // instantiate the command used for the autonomous period\n\t\t//autonomousCommand = new AutonomousCommandGroup();\n\t\traiseArm90 = new ShooterArmMoveToSetLocation(90);\n\t\t\n\t\t// Display active commands and subsystem status on SmartDashboard\n\t\tSmartDashboard.putData(Scheduler.getInstance());\n\t\tSmartDashboard.putData(driveTrain);\n\t\tSmartDashboard.putData(shifter);\n\t\tSmartDashboard.putData(shooterArm);\n\t\tSmartDashboard.putData(shooter);\n\t\tSmartDashboard.putData(intake);\n\t\tSmartDashboard.putData(vision);\n\t\tSmartDashboard.putData(armPiston);\n\t}", "protected void initialize() {\n \tRobot.telemetry.setAutonomousStatus(\"Starting \" + commandName + \": \" + distance);\n \tRobot.drivetrain.resetEncoder();\n \t\n \tRobot.driveDistancePID.setSetpoint(distance);\n \tRobot.driveDistancePID.setRawTolerance(RobotPreferences.drivetrainTolerance());\n \tRobot.driveDistancePID.enable();\n \t\n \texpireTime = timeSinceInitialized() + (RobotPreferences.timeOut());\n }", "public void robotInit() {\n\t\toi = new OI();\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", new ExampleCommand());\n// chooser.addObject(\"My Auto\", new MyfAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n \n //Drive\n //this.DriveTrain = new DriveTrain();\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickLeft);\n \n //Buttons\n // oi.button1.whenPressed(new SetMaxMotorOutput());\n \n //Ultrasonic\n sonic1 = new Ultrasonic(0,1);\n sonic1.setAutomaticMode(true);\n \n }", "protected void initialize() {\n \tSystem.out.println(\"HoldGear STARTING!!\");\n }", "@Override\n public void init() {\n robot.init(hardwareMap, telemetry, false);\n //robot.resetServo();\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.addData(\"Status\", \"Initialized\");\n // robot.FL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.FR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.BL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.BR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n }", "protected void initialize() {\n\t\tthis.oi = Robot.getInstance().getOI();\n\n }", "public void robotInit() {\r\n\t\t// Create and start the compressor. It will control pressure automagically\r\n\t\tCompressor comp = new Compressor(RobotMap.pneumaticPreasureSwitch, RobotMap.compresserRelay);\r\n\t\tcomp.start();\r\n\r\n\t\t// instantiate the command used for the autonomous period\r\n\t\tautonomousCommand = new Autonomous();\r\n\r\n\t\t// Initialize all subsystems\r\n\t\tCommandBase.init();\r\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tleftDriveBack = new VictorSP(0); // PWM Port, madke sure this is set correctly.\n\t\tleftDriveFront = new VictorSP(1);\n\t\t\n\t\trightDriveFront = new VictorSP(2);\n\t\trightDriveBack = new VictorSP(3);\n\t\t\n\t\tleftIntake = new Spark(5);\n\t\trightIntake = new Spark(6);\n\t\t\n\t\tarmMotor = new TalonSRX(10);\n\t\tarmMotor.setNeutralMode(NeutralMode.Brake);\n\t\tarmMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Absolute, 0, 0);\n\t\tarmMotor.configPeakCurrentLimit(30, 0);\n\t\tarmMotor.configPeakCurrentDuration(250, 0);\n\t\tarmMotor.configContinuousCurrentLimit(20, 0);\n\t\tarmMotor.configClosedloopRamp(0.25, 0);\n\t\tarmMotor.configOpenloopRamp(0.375, 0);\n\t\tarmMotor.enableCurrentLimit(true);\n\t\t\n\t\tarmMotor.configPeakOutputForward(1.0, 0);\n\t\tarmMotor.configPeakOutputReverse(-1.0, 0);\n\t\t\n\t\tarmMotor.config_kP(0, 0.0, 0);\n\t\t\n\t\tarmSetpoint = armMotor.getSelectedSensorPosition(0);\n\t\t\n\t\tstick = new Joystick(0);\n\t\tstickReversed = false;\n\t\txbox = new XboxController(1); // USB port, set in driverstation.\n\t\t\n\t\tdriveCamera = CameraServer.getInstance().startAutomaticCapture(0);\n\t}", "@Override\n public void robotInit() {\n m_robotContainer = new RobotContainer();\n // Initiate the limelight network table\n NetworkTable table = NetworkTableInstance.getDefault().getTable(\"limelight\");\n tx = table.getEntry(\"tx\");\n ty = table.getEntry(\"ty\");\n ta = table.getEntry(\"ta\");\n RobotContainer.turretSub.tsrxTurret.setSelectedSensorPosition(0);\n }", "@Override\n\tpublic void robotInit() {\n\t\tprefs = Preferences.getInstance();\n\t\tDEBUG = prefs.getBoolean(\"DEBUG\", false);\n\t\t\n\t\tinitCamera(\"Primary Camera\", 0);\n\t\tinitCamera(\"Secondary Camera\", 1);\n\t\t\n\t\tRobotMap.robotDriveMain = new DifferentialDrive(RobotMap.leftDrive, RobotMap.rightDrive);\n\t\t\n\t\tautoChooser.setDefaultOption(\"Left\", \"left\");\n\t\tautoChooser.addOption(\"Middle\", \"middle\");\n\t\tautoChooser.addOption(\"Right\", \"right\");\n\t\t\n\t\tSmartDashboard.putData(\"Auto Mode:\", autoChooser);\n\t}", "public void robotInit() {\r\n\r\n shootstate = down;\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n initialpot = Components.ShooterPot.getAverageVoltage();\r\n //shootpotdown +=initialpot;\r\n //shootpotlow+= initialpot;\r\n //shootpotmiddle+= initialpot;\r\n //shootpothigh+=initialpot;\r\n\r\n }", "protected void initialize() {\n\t\tRobot.motor.getPIDController().setPID(SmartDashboard.getDouble(\"MotorP\"), SmartDashboard.getDouble(\"MotorI\"), SmartDashboard.getDouble(\"MotorD\"));\n\t\tRobot.motor.setOutputRange(0, 1);\n\t\tRobot.motor.setSetpoint(SmartDashboard.getDouble(\"MotorSpeed\"));\n \tRobot.motor.enable();\n }", "@Override\n public void robotInit() {\n SmartDashboard.putBoolean(\"CLIMB\", false);\n SmartDashboard.putNumber(\"servo\", 0);\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n //coast.\n if (RobotMap.DRIVE_TRAIN_DRAGON_FLY_IS_AVAILABLE)\n getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(false, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n\n getRobotContainer().configureButtonBindings();\n getRobotContainer().getTecbotSensors().initializeAllSensors();\n getRobotContainer().getTecbotSensors().getTecbotGyro().reset();\n\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_LEFT_CHASSIS_PORTS);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_RIGHT_CHASSIS_PORTS);\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n\n m_chooser.addOption(\"Move 3 m\", new SpeedReductionStraight(3, .75, 0));\n m_chooser.addOption(\"Rotate 90 degrees\", new SpeedReductionTurn(90, .5));\n m_chooser.setDefaultOption(\"El chido\", new DR01D3K4());\n m_chooser.addOption(\"Collect, go back and shoot\", new CollectPowerCellsGoBackShoot());\n m_chooser.addOption(\"Transport\", new SequentialCommandGroup(new FrontIntakeSetRaw(.75),\n new TransportationSystemSetRaw(.5)));\n m_chooser.addOption(\"Shoot 3PCs n' Move\", new SHOOT_3_PCs_N_MOVE());\n SmartDashboard.putData(\"Auto Mode\", m_chooser);\n\n //camera.setExposureManual(79);\n\n\n }", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tJoy = new Joystick(0);\n\t\ts1 = new DoubleSolenoid(1, 0);\n\t\ts2 = new DoubleSolenoid(2, 3);\n\t\tairCompressor = new Compressor();\n\t\ttriggerValue = false;\n\t\ts1Value = false;\n\t}", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n robot.leftDriveMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightDriveMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n // Possibly add a delay\n robot.leftDriveMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n robot.rightDriveMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "protected void initialize() {\n \tRobot.chassisSubsystem.setShootingMotors(0);\n }", "@Override\n protected void initialize() {\n if (Robot.useDrive) {\n joy = Robot.oi.getJoystick();\n }\n Robot.drive.setBrakeMode();\n\n }", "protected void initialize ()\n\t{\n\t\tSubsystems.goalVision.processNewImage();\n\t\t\n \t//Send positive values to go forwards.\n \tSubsystems.transmission.setLeftJoystickReversed(true);\n \tSubsystems.transmission.setRightJoystickReversed(true);\n\t}", "@Override\n public void init() {\n swerveDebug(500, \"SwerveAutoTEST::init\", \"STARTing init for TETS\");\n\n // Run initialization of other parts of the class\n // Note that the class will connect to all of our motors and servos\n super.init();\n\n crater = Boolean.TRUE;\n\n\n // Robot and autonomous settings are read in from files in the core class init()\n // Report the autonomous settings\n showAutonomousGoals();\n\n swerveLog( \"X S6\", ourSwerve.getOrientLog());\n\n swerveDebug(500, \"SwerveAutoTEST::init\", \"DONE\");\n }", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n\n initialize();\n }", "public void autonomousInit() {\n \n }", "@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initialized Interative TeleOp Mode\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n leftDrive = hardwareMap.dcMotor.get(\"leftDrive\");\n rightDrive = hardwareMap.dcMotor.get(\"rightDrive\");\n armMotor = hardwareMap.dcMotor.get(\"armMotor\");\n\n leftGrab = hardwareMap.servo.get(\"leftGrab\");\n rightGrab = hardwareMap.servo.get(\"rightGrab\");\n colorArm = hardwareMap.servo.get(\"colorArm\");\n leftTop = hardwareMap.servo.get(\"leftTop\");\n rightTop = hardwareMap.servo.get(\"rightTop\");\n\n /*\n left and right drive = motion of robot\n armMotor = motion of arm (lifting the grippers)\n extendingArm = motion of slider (used for dropping the fake person)\n left and right grab = grippers to get the blocks\n */\n\n }", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tm_frontRight = new PWMVictorSPX(0);\n\t\tm_frontLeft = new PWMVictorSPX(2);\n\t\tm_backRight = new PWMVictorSPX(1);\n\t\tm_backLeft = new PWMVictorSPX(3);\n\n\t\tx_aligning = false;\n\n\t\tJoy = new Joystick(0);\n\t\tmyTimer = new Timer();\n\n\t\tfinal SpeedControllerGroup m_left = new SpeedControllerGroup(m_frontLeft, m_backLeft);\n\t\tfinal SpeedControllerGroup m_right = new SpeedControllerGroup(m_frontRight, m_backRight);\n\n\t\tm_drive = new DifferentialDrive(m_left, m_right);\n\n\t\tdistanceToTarget = 0;\n\n\t\tcounter = new Counter(9);\n\t\tcounter.setMaxPeriod(10.0);\n\t\tcounter.setSemiPeriodMode(true);\n\t\tcounter.reset();\n\t}", "public void initialize() {\n\n Robot.driveSubsystem.resetGyro();\n\n }", "protected void initialize() {\n \tclaw = Robot.getClaw();\n\n \tclaw.open();\n }", "protected void initialize() {\n finished = false;\n Robot.shooter.Spin();//Spin up wheels\n Timer.delay(3);\n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n \n Robot.shooter.TriggerExtend();//Reset Trigger\n Timer.delay(.2);\n Robot.shooter.FeederExtend();//Drop Frisbee\n Timer.delay(1.5);\n Robot.shooter.TriggerRetract();//Fire frisbee\n Timer.delay(.2);\n Robot.shooter.FeederRetract();//Reset Feeder\n Timer.delay(.4);\n //Robot.shooter.Stop();\n Robot.shooter.TriggerExtend();//Reset Trigger\n \n Robot.driveTrain.DriveBack();//Drives backwards from pyramid\n Timer.delay(1.5);\n Robot.driveTrain.TurnAround();//Turns Bob around\n Timer.delay(1);\n Robot.driveTrain.Stop();//Stops Bob\n \n Robot.pneumatics.CompressorOn();//Turns compressor on\n }", "protected void initialize() {\n \tRobot.driveTrain.arcade(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n leftFrontMotor = new CANSparkMax(10, MotorType.kBrushless);\n leftBackMotor = new CANSparkMax(11, MotorType.kBrushless);\n rightFrontMotor = new CANSparkMax(12, MotorType.kBrushless);\n rightBackMotor = new CANSparkMax(13, MotorType.kBrushless);\n leftFrontMotor.setIdleMode(IdleMode.kCoast);\n leftBackMotor.setIdleMode(IdleMode.kCoast);\n rightFrontMotor.setIdleMode(IdleMode.kCoast);\n rightBackMotor.setIdleMode(IdleMode.kCoast);\n gyro = new ADXRS450_Gyro();\n gyro.calibrate();\n stick = new Joystick(1);\n controller = new XboxController(0);\n origGyro = 0;\n }", "@Override\n protected void initialize() {\n //Robot.limelight.setLiveStream(0);\n Robot.limelight.setLEDMode(3);\n }", "protected void initialize() {\r\n Robot.driveTrain.resetRangefinder();\r\n }", "protected void initialize() {\n \tRobot.intake.runIntake(this.m_speed, this.m_speed);\n }", "@Override\n protected void initialize() {\n headingPID.enable();\n headingPID.resetPID();\n Robot.driveBase.enableDriveBase();\n ahrs.reset();\n }", "@Override\n public void init() {\n \n \n rightFront = hardwareMap.dcMotor.get(\"frontR\");\n rightBack = hardwareMap.dcMotor.get(\"backR\");\n \n \n \n rightFront.setDirection(DcMotor.Direction.FORWARD); \n rightBack.setDirection(DcMotor.Direction.FORWARD);\n \n \n \n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "protected void initialize() {\n \tRobot.io.bottomGyro.reset();\n \tRobot.io.topGyro.reset();\n \tpid.reset();\n \tpid.setSetpoint(rotAngle);\n \tpid.enable();\n }", "protected void initialize() {\n \tRobot.conveyor.stop();\n }", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }", "public void autonomousInit() {\n\t\t\n\t}", "protected void initialize() {\n \tRobot.driveBase.resetEnc(2);\n \tRobot.gyro.reset();\n \t//stop extraneous moving parts\n }", "protected void initialize() {\n \t\n \n \t\n \tRobotMap.motorLeftTwo.setSelectedSensorPosition(0,0,0);\n\t\tRobotMap.motorRightTwo.setSelectedSensorPosition(0,0,0);\n \t\n \torientation.setSetPoint(desiredAngle);\n \tstartTime = Timer.getFPGATimestamp();\n }", "@Override\r\n protected void initialize() {\r\n // initialize for computing deltaT\r\n mPreviousTime = System.currentTimeMillis(); \r\n // the controllers don't use position data\r\n // but they do need Yaw Data, which can come from\r\n // either the IMU or the Position Tracker. We\r\n // initialize both so we can change our minds\r\n // in the drivetrain code later on, depending\r\n // upon the relative performance of the two approaches.\r\n Robot.drivetrain.resetGyro();\r\n \tRobot.drivetrain.resetEncodersAndStats(); \r\n \tRobot.drivetrain.resetPosition(true);\r\n \tRobot.drivetrain.setInitialOrientationDegCCW(mStartOrientationDegCCW); \r\n double dist = Robot.visionSubSys.getDistFt() ;\r\n double bearing = Robot.visionSubSys.getBearingDegCW() ;\r\n double orient = Robot.drivetrain.getOrientDegCCW() ; \t\r\n mDistController.start(dist,bearing);\r\n mBearingController.start(dist,bearing,orient);\r\n \r\n Robot.logger.appendLog(\"CmdDualPidFollowVision Init\");\r\n \tRobot.drivetrain.setLoggingOn();\r\n }", "protected void initialize() {\n\t\tRobot._driveTrain.setAuton(true);\n\t\tRobot._driveTrain.clearEncoder();\n\t\tRobot._driveTrain.clearGyro();\n\t\tdistanceToCenter = SmartDashboard.getNumber(\"toteOffset\", 0);\n\t\tif (Robot._pneumatics.getArms() != DoubleSolenoid.Value.kReverse) {\n\t\t\tRobot._pneumatics.setArms(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t}", "private void initializeStartup()\n {\n /* Turn off Limelight LED when first started up so it doesn't blind drive team. */\n m_limelight.turnOffLED();\n\n /* Start ultrasonics. */\n m_chamber.startUltrasonics();\n }", "@Override\n\tpublic void robotInit() {\n\t\tfr = new Spark(HardwareMap.PWM.DRIVE_FR);\n\t\tfl = new Spark(HardwareMap.PWM.DRIVE_FL);\n\t\tbr = new Spark(HardwareMap.PWM.DRIVE_BR);\n\t\tbl = new Spark(HardwareMap.PWM.DRIVE_BL);\n\t\t\n\t\t// Create the side modules\n\t\tleftGroup = new SpeedControllerGroup(bl, fl);\n\t\trightGroup = new SpeedControllerGroup(br, fr);\n\n\t\t// Init the the drive train\n\t\tdrive = new DifferentialDrive(leftGroup, rightGroup);\n\t\t\n\t\t//Init the gyro\n\t\tgyro.calibrate();\n\t\tSmartDashboard.putData(\"Gyro\", gyro);\n\t\t\n\t\tdrive.setSafetyEnabled(false);\n\t\tthis.setName(Subsystems.DRIVE);\n\t}" ]
[ "0.8392803", "0.8392803", "0.8392803", "0.83547866", "0.83547866", "0.82538813", "0.82371646", "0.8115441", "0.810368", "0.8069614", "0.8047264", "0.8046606", "0.80160177", "0.797614", "0.797426", "0.79708314", "0.7918923", "0.78927255", "0.7879521", "0.7868995", "0.78505576", "0.7849145", "0.78352785", "0.7810227", "0.7798388", "0.77498305", "0.7739797", "0.77338976", "0.7732593", "0.7730485", "0.7728961", "0.7723727", "0.7711205", "0.7692709", "0.769153", "0.7686851", "0.7677994", "0.76625127", "0.76538926", "0.7625723", "0.76228356", "0.7605333", "0.76025885", "0.75919807", "0.75894785", "0.75851", "0.75845355", "0.7582087", "0.7576524", "0.7572781", "0.7572696", "0.756362", "0.75524616", "0.7550553", "0.75425357", "0.7542506", "0.7533431", "0.7531347", "0.75285614", "0.75280714", "0.75141996", "0.7512023", "0.7504306", "0.749646", "0.749581", "0.7483033", "0.74711484", "0.74488395", "0.74471456", "0.7440872", "0.74323964", "0.7430205", "0.74270195", "0.7420902", "0.74208194", "0.74146277", "0.7394893", "0.7393816", "0.7384493", "0.73572737", "0.7356429", "0.7345001", "0.7344076", "0.73438805", "0.7341624", "0.73354965", "0.73329777", "0.7319544", "0.7316414", "0.7313726", "0.7305319", "0.7301019", "0.7301019", "0.72980505", "0.7297013", "0.7294771", "0.7292839", "0.7273078", "0.72400177", "0.72370785" ]
0.73065454
90
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled.
@Override public void disabledInit() { Robot.driveSubsystem.setCoastMode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void disabledInit() {\n\t\tprocessRobotModeChange(RobotMode.DISABLED);\n }", "void disableMod();", "private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n mValue = \"Disabled by emulator\";\n\n Message msg = Message.obtain();\n msg.what = SENSOR_STATE_CHANGED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }", "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 }", "public void disabledInit()\n {\n //cam.stopCapture();\n m_USBVCommand.start();\n }", "@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 }", "@Override\n public void disabledInit() {\n //Diagnostics.writeString(\"State\", \"DISABLED\");\n }", "@Override\n public void disabledInit() {\n\t// new SetElevator(0).start();\n\tif (autonomousCommand != null)\n\t autonomousCommand.cancel();\n\tScheduler.getInstance().removeAll();\n }", "public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "public void disable() {\n operating = false;\n }", "protected void onDisabled() {\n // Do nothing.\n }", "public void setEngineOff();", "void disable() {\n }", "protected void initialize() {\n \tRobot.driveBase.stopDead();\n \tRobot.driveBase.resetDriveSensors();\n }", "public void onDisable() {\r\n }", "public void disable() {\n disabled = true;\n circuit.disable();\n updateSign(true);\n notifyChipDisabled();\n }", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "protected void initialize() {\n \tRobot.chassisSubsystem.setShootingMotors(0);\n }", "@Override\n public void onDisabled() {\n }", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "private void resetSense() {\r\n\t\tArrays.fill(this.senseBytes, (byte)0x00);\r\n\t\tthis.updateUnitStatus();\r\n\t}", "public void onDisable() {\n }", "public void onDisable() {\n }", "@Override\n public void onDisable() {\n }", "@Override\n\tpublic void powerOff() {\n\t\tSystem.out.println(\"samsongTV powerOff\");\n\n\t}", "public void disable(){\n if(criticalStop) return;\n getModel().setStatus(false);\n }", "public void setSensorOff() {\n\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "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 }", "void disablePWM();", "void disable();", "void disable();", "public void onDisable()\n {\n }", "@Override\n public void turnOff() {\n System.out.println(\"this wont happen\");\n }", "public void onDisable() {\n }", "@Override\r\n\tpublic void disable() {\n\t\tcurrentState.disable();\r\n\t}", "private void softReset() {\n // variables\n lapMap.clear();\n // ui\n sessionTView.setText(\"\");\n positionTView.setText(\"-\");\n currentLapTView.setText(\"--:--:---\");\n lastLapTView.setText(\"--:--:---\");\n bestLapTView.setText(\"--:--:---\");\n currentLapNumberTView.setText(\"-\");\n gapTView.setText(\" -.---\");\n fastestDriver = Float.MAX_VALUE;\n fastestDriverName = null;\n fastestDriverTView.setText(\"--:--:---\");\n fastestDriverNameTView.setText(\"Fastest lap\");\n Log.d(TAG, \"SOFT Reset: between game states\");\n }", "@Override\r\n\tpublic void onDisable() {\n\t}", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "public void disable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Coast);\n }", "public void disable();", "public void stopRobot(){\n LAM.setPower(0);\n RAM.setPower(0);\n ILM.setPower(0);\n IRM.setPower(0);\n BLM.setPower(0);\n BRM.setPower(0);\n FLM.setPower(0);\n FRM.setPower(0);\n }", "@Override\r\n\tpublic void powerOff() {\n\r\n\t\tSystem.out.println(\"ig tv power off\");\r\n\r\n\t}", "public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.disable(mBinder);\n } catch (RemoteException e) {\n Log.e(TAG, \"disable failed\");\n }\n }", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "@Override\n\tpublic void onDisable() {\n\n\t}", "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}", "@Override\n public void disabledInit()\n {\n \n }", "protected abstract void disable();", "public abstract void onDisable();", "public void initialize() {\n\n Robot.driveSubsystem.resetGyro();\n\n }", "@Override\n protected void initialize() {\n headingPID.enable();\n headingPID.resetPID();\n Robot.driveBase.enableDriveBase();\n ahrs.reset();\n }", "public void disabledInit()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void disabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}", "@Override\n public void disabledInit(){\n\n }", "protected void onHardReset() {\n\t\tonReset();\n\t}", "public void resetMode() {\n\t\televatorManager.resetMode();\n\t}", "@Override\n public void disabledInit()\n {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n protected void end() {\n drive.setEnabled(false);\n drive.setLeftPower(0);\n drive.setRightPower(0);\n }", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "public void disabledInit() {\n\t\tvision.disableCameraSaving();\n\t}", "protected void initialize() {\n\t\tRobot.resetSensors();\n\t}", "@Override\n\tpublic void onDisable() {\n\t\tgetLogger().info(\"SimplyWrapper successfully disabled !\");\n\t}", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n public void disabledInit() {\n }", "@Override\n\tpublic void disabledInit() \n\t{\n\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\t\n\t}", "@Override\n\tpublic void disabledInit() {\n\t\t\n\t}", "@Override\n\tpublic void disabledInit() {\n\t}", "public void reset() {\n cycles = 0;\n nextHaltCycle = GB_CYCLES_PER_FRAME;\n nextUpdateCycle = 0;\n running = false;\n timer.reset();\n \n cpu.reset();\n ram.reset();\n soundHandler.reset();\n }", "protected void initialize() {\n \tRobot.driveBase.resetEnc(2);\n \tRobot.gyro.reset();\n \t//stop extraneous moving parts\n }", "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"turn off the \"+name+\" Light\");\n\t}", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public void disabledInit(){\n\n }", "public abstract void Disabled();", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }", "@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}", "protected void initialize() {\n \tRobot.autonomous_command_group.cancel();\n }", "private void hardReset() {\n softReset();\n // variables\n recordLap = 0; // force first query on database after race restart\n trackName = null;\n // ui\n recordLapTView.setText(\"--:--:---\");\n trackTView.setText(\"Track location\");\n carTView.setText(\"Car\");\n Log.d(TAG, \"HARD Reset: main menu\");\n }", "@Override\n public void disabledInit() {}", "public void setDisabled() {\n\t\tdisabled = true;\n\t}", "@Override\n public void onDisable() {\n getLogger().info(\"Successfully disabled.\");\n }", "@Override\n\tpublic void turnOff() {\n\n\t}", "@Override\n protected void initialize() {\n Robot.powerCellManipulator.stopIntake();\n }", "@Override\n\tpublic void disabledInit() {\n\n\t}", "@Override\n\tpublic void disabledInit() {\n\n\t}", "default void onDisable() {}", "@Override\n protected void end() {\n Robot.m_drive.SetPower(0);\n }", "public void disable()\n {\n openGate = null;\n }", "@Override\n\tpublic void disabledInit() {\n\t\t\n\n\t}" ]
[ "0.73160666", "0.6703275", "0.6676034", "0.66627425", "0.6615973", "0.6569662", "0.65616435", "0.6510648", "0.64056295", "0.64017236", "0.6401332", "0.6392209", "0.6385473", "0.6375316", "0.6363548", "0.635353", "0.63370466", "0.63349396", "0.63309455", "0.63309205", "0.63207304", "0.62953025", "0.6293903", "0.6267845", "0.62486136", "0.6234512", "0.6234512", "0.62318164", "0.62318075", "0.6221275", "0.6214558", "0.6212018", "0.62117124", "0.6203303", "0.6201414", "0.6201414", "0.620007", "0.61970365", "0.61855584", "0.61814684", "0.61773515", "0.617472", "0.61606604", "0.61504364", "0.6127608", "0.6111088", "0.61036426", "0.6100071", "0.60965765", "0.6096461", "0.6095423", "0.60914606", "0.6088058", "0.60870314", "0.6084507", "0.60797685", "0.60684913", "0.60603946", "0.6054484", "0.60537946", "0.6043017", "0.6038395", "0.6036382", "0.60297036", "0.6019904", "0.6016874", "0.6010908", "0.6007757", "0.600371", "0.600371", "0.600371", "0.60035336", "0.60011566", "0.60011566", "0.59987354", "0.59967184", "0.59956765", "0.5993631", "0.5984382", "0.5984382", "0.5984382", "0.5984382", "0.5984382", "0.5978843", "0.59747463", "0.5971862", "0.59696347", "0.5963865", "0.5962549", "0.5950624", "0.59503007", "0.5948677", "0.5943024", "0.59428763", "0.5941516", "0.5941516", "0.5940934", "0.59294075", "0.5924798", "0.5923685" ]
0.6724014
1
This autonomous (along with the chooser code above) shows how to select between different autonomous modes using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and uncomment the getString code to get the auto name from the text box below the Gyro You can add additional auto modes by adding additional commands to the chooser code above (like the commented example) or additional comparisons to the switch structure below with additional strings & commands.
@Override public void autonomousInit() { Robot.driveSubsystem.shiftDown(); Robot.driveSubsystem.setBrakeMode(); m_autoCmd = m_chooser.getSelected(); if (m_autoCmd != null) { m_autoCmd.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n SmartDashboard.putData(leftMotor1);\n SmartDashboard.putData(leftMotor2);\n SmartDashboard.putData(rightMotor1);\n SmartDashboard.putData(rightMotor2);\n SmartDashboard.putData(firstMotor);\n SmartDashboard.putData(secondMotor);\n \n\n\n\n }", "public void autonomousInit() {\n\t\ttimer.start();\n\t\tautonomousCommand = autoChooser.getSelected();\n\t\t//This outputs what we've chosen in the SmartDashboard as a string.\n\t\tSystem.out.println(autonomousCommand);\n\t\tif (DriverStation.getInstance().isFMSAttached()) {\n\t\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\t}\n\t\telse {\n\t\t\tgameData=\"RLR\";\n\t\t}\n\t\t//armSwing.setAngle(90); //hopefully this will swing the arms down. not sure what angle it wants though\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\t\n\t\t// runs the autonomous smartdashboard display for auton\n\t\tActuators.getLeftDriveMotor().setEncPosition(0);\n\t\tActuators.getRightDriveMotor().setEncPosition(0);\n\t\tautonomousCommand = (Command) autoChooser.getSelected();\n\t\t\n//\t\tbackupCommand = (Command) backupChooser.getSelected();\n//\t\tActuators.getLeftDriveMotor().changeControlMode(TalonControlMode.MotionProfile);\n//\t\tActuators.getRightDriveMotor().changeControlMode(TalonControlMode.MotionProfile);\n//\t\tif (NetworkTables.getControlsTable().getBoolean(\"camera0\", false)) {//Auto for working camera\n\t\t\n\t\tif(autonomousCommand != null){\t\n\t\t\tSystem.out.println(autonomousCommand);\n\t\t\tautonomousCommand.start();\n\t\t}\n\t\t\n//\t\t\tSystem.out.println(\"I got here auto Command start\");\n//\t\t\t}\n//\t\telse{\n//\t\t\tbackupCommand.start();\t\t\t\n//\t\t}\n//\t\t\tDrive.driveWithPID(distance, distance);\n\n\t\tstate = \"auton\";\n\t\t// autoSelected = chooser.getSelected();\n\t\t// // autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t// // defaultAuto);\n\t\t// System.out.println(\"Auto selected: \" + autoSelected);\n\t\tNetworkTables.getControlsTable().putBoolean(\"auton\", true);\n\n\t}", "private void initializeAutoChooser()\n {\n /* Add options (which autonomous commands can be selected) to chooser. */\n m_autoChooser.setDefaultOption(\"DEFAULT COMMAND NAME HERE\", \"default\");\n m_autoChooser.addOption(\"TEST\", \"test\");\n m_autoChooser.addOption(\"THREE BALL FORWARD\", \"three_ball_forward\");\n m_autoChooser.addOption(\"THREE BALL BACKWARD\", \"three_ball_backward\");\n m_autoChooser.addOption(\"SIX BALL\", \"six_ball\");\n\n /*\n * Display chooser on SmartDashboard for operators to select which autonomous\n * command to run during the auto period.\n */\n SmartDashboard.putData(\"Autonomous Command\", m_autoChooser);\n }", "public void autonomousInit() {\n \tautoSelected = (String) chooser.getSelected();\n//\t\tautoSelected = SmartDashboard.getString(\"Auto Selector\", defaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + autoSelected);\n }", "public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption​(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }", "@Override\n\tpublic void autonomousInit() {\n//\t\tm_autonomousCommand = m_chooser.getSelected();\n\t\t\n\t\tif(m_startPosition.getSelected().equals(\"Center\")) {\n\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\tm_autonomousCommand = new AUTO_centerRight();\n\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\tm_autonomousCommand = new AUTO_centerLeft();\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t\t\n\t\t}else if(m_startPosition.getSelected().equals(\"Right\")) {\n\t\t\tif(m_gameElement.getSelected().equals(\"switch\")) {\n\t\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightSwitchRight();\n\t\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightSwitchLeft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(m_gameElement.getSelected().equals(\"scale\")) {\n\t\t\t\tif(getGameSpecificData(\"scale\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightScaleRight();\n\t\t\t\t}else if(getGameSpecificData(\"scale\") == L) {\n\t\t\t\t\tm_autonomousCommand = new HowToTestAutoPath();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t\t\n\t\t}else if(m_startPosition.getSelected().equals(\"Left\")) {\n\t\t\tif(m_gameElement.getSelected().equals(\"switch\")) {\n\t\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\t\tm_autonomousCommand = new HowToTestAutoPath();//AUTO_leftSwitchRight();\n\t\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftSwitchLeft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(m_gameElement.getSelected().equals(\"scale\")) {\n\t\t\t\tif(getGameSpecificData(\"scale\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftScaleRight();\n\t\t\t\t}else if(getGameSpecificData(\"scale\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftScaleLeft();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\tSmartDashboard.putData(\"auto command\",m_autonomousCommand);\n\t\t\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) {\n\t\t\tm_autonomousCommand.start();\n\t\t}\n\t\t\n\t\tgetSwitchColor();\n//\t\tSmartDashboard.putBoolean(\"Alliance_R\", alliance_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Alliance_L\", alliance_L_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Scale_R\", R_scaleState);\n//\t\tSmartDashboard.putBoolean(\"Scale_L\", L_scaleState);\n//\t\tSmartDashboard.putBoolean(\"oppisite_R\", opposite_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"opposite_L\", opposite_L_SwitchState);\n\t\t\n\t}", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto mode\", chooser);\n\t\tSystem.out.println(\"I am here\");\n\t\ttopRight = new CANTalon(1);\n\t\tmiddleRight = new CANTalon(3);\n\t\tbottomRight = new CANTalon(2);\n\t\ttopLeft = new CANTalon(5);\n\t\tmiddleLeft = new CANTalon(6);\n\t\tbottomLeft = new CANTalon(7);\n\t\tclimber = new CANTalon(4);\n\t\tshifter = new DoubleSolenoid(2,3);\n\t\tshifter.set(Value.kForward);\n\t\tbucket= new DoubleSolenoid(0, 1);\n\t\tclimber.reverseOutput(true);\n\t\t//Setting Followers\n\t\t//topRight is Right Side Master (TalonSRX #1)0.062, 0.00062, 0.62)\n\t\t//middleRight.reset();\n//\t\tmiddleRight.setProfile(0);\n//\t\tmiddleRight.setPID( 0.0, 0.0, 0.0);//TODO: make multiple profiles\n\t\t\n//\t\tmiddleRight.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Absolute);\n//\t\tmiddleRight.setEncPosition(0);\n//\t\tmiddleRight.setAllowableClosedLoopErr(10);\n\t\tmiddleRight.reverseSensor(true);\n//\t\tmiddleRight.configNominalOutputVoltage(+0f, -0f);\n//\t\tmiddleRight.configPeakOutputVoltage(+12f, -12f);\n\t\ttopRight.changeControlMode(TalonControlMode.Follower);\n\t\ttopRight.set(middleRight.getDeviceID());\n\t\ttopRight.reverseOutput(true);\n\t\tbottomRight.changeControlMode(TalonControlMode.Follower); //TalonSRX #3\n\t\tbottomRight.set(middleRight.getDeviceID());\n//\t\tmiddleRight.setProfile(1);\n//\t\tmiddleRight.setPID( 0.0, 0.0, 0.0);\n\t\t//climber is the climber Motor (TalonSRX #4)\n\t\t//TopLeft is Right Side Master (TalonSRX #5)\n\t\t//middleLeft.reset();\n\t\t//middleLeft.setProfile(0);\n//\t\tmiddleLeft.setPID(0.0, 0.00, 0.0);\n//\t\tmiddleLeft.setEncPosition(0);\n//\t\tmiddleLeft.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Absolute);\n//\t\tmiddleLeft.configNominalOutputVoltage(+0f, -0f);\n//\t\tmiddleLeft.configPeakOutputVoltage(+12f, -12f);\n\t\tmiddleLeft.reverseSensor(false);\n//\t\tmiddleLeft.setAllowableClosedLoopErr(10);\n\t\ttopLeft.changeControlMode(TalonControlMode.Follower); //TalonSRX #6\n\t\ttopLeft.set(middleLeft.getDeviceID());\n\t\ttopLeft.reverseOutput(true);\n\t\tbottomLeft.changeControlMode(TalonControlMode.Follower); //TalonSRX #7\n\t\tbottomLeft.set(middleLeft.getDeviceID());\n//\t\tmiddleLeft.setProfile(1);\n//\t\tmiddleLeft.setPID(0, 0, 0);\n\t\t//Sensors\n\t\timu = new ADIS16448IMU();\n\t\tclimberSubsystem = new ClimberSubsystem();\n\t\tbucketSubsystem = new BucketSubsystem();\n\t\tdriveSubsystem = new DriveSubsystem();\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\t//SmartDashboard.getData(\"Driver File\");\n\t\t//SmartDashboard.getData(\"Operator File\");\n\t\tautonomousCommand = chooser.getSelected();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tRobot.numToSend = 3;\n\t\tdrivebase.resetGyro();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tRobot.gearManipulator.gearManipulatorPivot.setPosition(0);\n\t\tRobot.gearManipulator.gearManipulatorPivot.setSetpoint(0);\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n leftFrontMotor = new CANSparkMax(10, MotorType.kBrushless);\n leftBackMotor = new CANSparkMax(11, MotorType.kBrushless);\n rightFrontMotor = new CANSparkMax(12, MotorType.kBrushless);\n rightBackMotor = new CANSparkMax(13, MotorType.kBrushless);\n leftFrontMotor.setIdleMode(IdleMode.kCoast);\n leftBackMotor.setIdleMode(IdleMode.kCoast);\n rightFrontMotor.setIdleMode(IdleMode.kCoast);\n rightBackMotor.setIdleMode(IdleMode.kCoast);\n gyro = new ADXRS450_Gyro();\n gyro.calibrate();\n stick = new Joystick(1);\n controller = new XboxController(0);\n origGyro = 0;\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\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }", "@Override\n public void autonomousInit() {\n //ds.set(Value.kForward);\n /*m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n * \n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n //new VisionProcess().start();\n //SmartDashboard.putNumber(\"heerer\", value)\n new TeleOpCommands().start();\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void robotInit()\n {\n wireUpOperatorInterface();\n chooser.setDefaultOption(\"Default Auto\", driveCommand);\n // chooser.addOption(\"My Auto\", new MyAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }", "public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n//\t\t m_autoSelected = SmartDashboard.getString(\"Auto Selector\",\n//\t\t \t\tkDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.addDefault(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addObject(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\t\t\n\t\ttalonMotor10.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor11.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor12.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor13.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor14.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor15.setNeutralMode(NeutralMode.Brake);\n\t}", "@Override\n public void autonomousInit() {\n //Diagnostics.writeString(\"State\", \"AUTO\");\n //m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\", \"Default\");\n * switch(autoSelected) { case \"My Auto\": autonomousCommand = new\n * MyAutoCommand(); break; case \"Default Auto\": default: autonomousCommand = new\n * ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n\n teleopInit();\n }", "private void initializeDashboard() {\n\t// Autonomous control\n\tchooserMode.addDefault(ROCK, new MartianRock());\n\tchooserMode.addObject(SWITCH, new SwitchAuto());\n\tchooserMode.addObject(SCALE, new ScaleAuto());\n\tchooserMode.addObject(AUTO_LINE, new AutoLine());\n\t// chooserMode.setName(\"Choose Mode\");\n\n\tchooserPosition.addDefault(\"Center\", CENTER);\n\tchooserPosition.addObject(\"Left\", LEFT);\n\tchooserPosition.addObject(\"Right\", RIGHT);\n\n\tchooserCrossSide.addDefault(\"Allow crossing\", YES);\n\tchooserCrossSide.addObject(\"Don't allow crossing\", NO);\n\n\toldVersion.addDefault(\"2 cube scale\", NO);\n\toldVersion.addObject(\"Orlando scale\", YES);\n\t// SmartDashboard.putBoolean(\"Cross to other Side\", chooseCross);\n\n\t// SmartDashboard.putData(AUTO_MODE_LABEL, chooser);\n\tSmartDashboard.putData(\"Auto Mode\", chooserMode);\n\tSmartDashboard.putData(\"Start Position\", chooserPosition);\n\tSmartDashboard.putData(\"Allow Cross Side?\", chooserCrossSide);\n\tSmartDashboard.putData(\"Orlando scale\", oldVersion);\n\tSmartDashboard.putBoolean(\"Enable processing\", true);\n\t// SmartDashboard.putData(\"Run switch\", new SwitchAuto());\n\t// SmartDashboard.putData(\"Run scale\", new ScaleAuto());\n\t/*\n\t * // Configuration fields // SmartDashboard.putNumber(ELEVATOR_SPEED_LABEL,\n\t * .9); // SmartDashboard.putNumber(\"ELevator speed down\", .75); //\n\t * SmartDashboard.putNumber(\"Elevator nuetral speed\", .15);\n\t * \n\t * // Diagnostic data // updateDiagnostics();\n\t * \n\t * // Command buttons for one-time execution\n\t */\n\t// SmartDashboard.putData(DRIVE_FORWARD_FIVE_FEET_LABEL, new DriveForward(60));\n\t/*\n\t * 0.6)); SmartDashboard.putData(TURN_LEFT_LABEL, new TurnLeft(90));\n\t * SmartDashboard.putData(TURN_RIGHT_LABEL, new TurnRight(90));\n\t */\n\t// SmartDashboard.putData(\"Left 45\", new TurnLeft(45));\n\t// SmartDashboard.putData(\"Left 90\", new TurnLeft(90));\n\t/*\n\t * SmartDashboard.putData(\"Right 45\", new TurnRight(45));\n\t * SmartDashboard.putData(STOP_LABEL, new Stop());\n\t * SmartDashboard.putData(MOVE_FROM_WALL, new DriveDistanceFromWall(558));\n\t * SmartDashboard.putData(DRIVE_TO_CUBE, new DriveToCubeTeleop());\n\t * SmartDashboard.putData(\"Elevator to -500\", new SetElevator(-500));\n\t * SmartDashboard.putData(\"Reset elevator\", new SetElevator(0));\n\t * SmartDashboard.putData(\"Shift arms\", new ShiftArms());\n\t * SmartDashboard.putData(\"Drive back\", new DriveForward(12, -.75));\n\t */\n\tSmartDashboard.putData(\"Latch chain\", new BreakChain());\n\t/*\n\t * SmartDashboard.putData(\"Turn left without pid\", new TurnLeftWithoutPid(90));\n\t */\n\t// SmartDashboard.putData(\"Autonomous cube\", new\n\t// DriveToCubeAuto(CubeVisionThread.SelectorType.bottom, 1));\n\t// SmartDashboard.putNumber(\"P\", -.1);\n\t// SmartDashboard.putNumber(\"D\", -.05);\n\t// SmartDashboard.putNumber(\"I\", -.0);\n\t// SmartDashboard.putString(\"Override\", \"Don't override\");\n }", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n\t\t// m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n\t\t// m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\tdrivebase.calibrateGyro();\n\t\tSmartDashboard.putData(\"Zero Gyro\", new ZeroGyro());\n\t\tSmartDashboard.putData(\"Calibrate Gyro - WHILE ROBOT NOT MOVING\", new CalibrateGyro());\n\t\tchooser.addDefault(\"Default Prepare Gear Auto\", new PrepareGearManipulator());\n\t\t//shooterModeChooser.addDefault(\"Shooter at Nominal Preset when Pressed\", object);\n\t\t/*chooser.addObject(\"Left Gear Auto\", new LeftGearGroup());\n\t\tchooser.addObject(\"Center Gear Auto\", new CenterGearGroup());*/\n\t//\tchooser.addObject(\"Test Vision Auto\", new TurnTillPerpVision(true));\n\t//\tchooser.addObject(\"Testing turn gyro\", new RotateToGyroAngle(90,4));\n\t\t//chooser.addObject(\"DriveStraightTest\", new GoAndReturn());\n\t\t //UNNECESSARY AUTOS FOR TESTING ^\n\t\tchooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\tchooser.addObject(\"Vision center TESTING!!!\", new TurnTillPerpVision());\n\t\tchooser.addObject(\"Boiler Auto RED\", new BoilerAuto(true));\n\t\tchooser.addObject(\"Boiler Auto BLUE\", new BoilerAuto(false));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t//\tchooser.addObject(\"Center Gear Encoder Auto (do not place )\", new DriveToFace(false, false, false));\n\t\tchooser.addObject(\"Baseline\", new DriveToLeftRightFace(false,false,false,false));\n\t\tchooser.addObject(\"TEST DRIVETANK AUTO\", new DriveTimedTank(0.7,0.7,5));\n\t\tchooser.addObject(\"Side Gear Auto RIGHT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,false));\n\n\t\tchooser.addObject(\"Side Gear Auto LEFT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,true));\n\t\t//chooser.addObject(\"Side Gear Auto (place)\", new DriveToLeftRightFace(true,false,false,false));\n\t\t//chooser.addObject(\"Test DriveStraight Auto\", new DriveStraightPosition(10,5));\n\t\t//chooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\t/*InterpreterGroup interp = new InterpreterGroup();\n\t\t(interp.init()){\n\t\t\tchooser.addObject(\"Interpreter\",interp);\n\t\t}*/\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto Chooser\", chooser);\n\n\t\tRobot.drivebase.leftDrive1.setPosition(0);\n \tRobot.drivebase.rightDrive1.setPosition(0);\n \t\n\t\t\n \tRobot.leds.initializei2cBus();\n \tbyte mode = 0;\n \tRobot.leds.setMode(mode);\n \tgearcamera = CameraServer.getInstance();\n\t\t\n \tUsbCamera gearUsb = gearcamera.startAutomaticCapture();\n \tgearUsb.setFPS(25);\n \tgearUsb.setResolution(256, 144);\n\n\t\t//NetworkTable.setClientMode();\n \t//NetworkTable.setIPAddress(\"raspberrypi.local\");\n\t\t\n\t\t\n\t\t/*\n\t\t * new Thread(() -> { UsbCamera goalcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * goalcamera.setResolution(320, 240); goalcamera.setFPS(30);\n\t\t * goalcamera.setBrightness(1); goalcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink goalCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { goalCvSink.grabFrame(source);\n\t\t * goaloutputmat = source; } }).start();\n\t\t * goalPipeline.process(goaloutputmat);\n\t\t * \n\t\t * new Thread(() -> { UsbCamera gearcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * gearcamera.setResolution(320, 240); gearcamera.setFPS(30);\n\t\t * gearcamera.setBrightness(1); gearcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink gearCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { gearCvSink.grabFrame(source);\n\t\t * gearoutputmat = source; } }).start();\n\t\t * gearPipeline.process(gearoutputmat);\n\t\t */\n\t}", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n //starts the dual cameras\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n //auto start (disabled atm)\n //pressBoy.setClosedLoopControl(true);\n pressBoy.setClosedLoopControl(false);\n \n \n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n\n /* lets grab the 360 degree position of the MagEncoder's absolute position */\n /* mask out the bottom12 bits, we don't care about the wrap arounds */ \n\t\tint absolutePosition = elevator.getSelectedSensorPosition(0) & 0xFFF;\n \n /* use the low level API to set the quad encoder signal */\n elevator.setSelectedSensorPosition(absolutePosition, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\n /* choose the sensor and sensor direction */\n elevator.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, \n Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\n /* Ensure sensor is positive when output is positive */\n elevator.setSensorPhase(false);\n\n /**\n * Set based on what direction you want forward/positive to be.\n * This does not affect sensor phase. \n */ \n //elevator.setInverted(Constants.kMotorInvert);\n \n /* Config the peak and nominal outputs, 12V means full */\n elevator.configNominalOutputForward(0, Constants.kTimeoutMs);\n elevator.configNominalOutputReverse(0, Constants.kTimeoutMs);\n //elevator.configPeakOutputForward(1, Constants.kTimeoutMs);\n elevator.configNominalOutputForward(0.5);\n //elevator.configPeakOutputForward(1, Constants.kTimeoutMs);\n elevator.configPeakOutputForward(0.5);\n elevator.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n \n /**\n * Config the allowable closed-loop error, Closed-Loop output will be\n * neutral within this range. See Table in Section 17.2.1 for native\n * units per rotation.\n */\n //elevator.configAllowableClosedloopError(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n \n /* Config Position Closed Loop gains in slot0, typically kF stays zero. */\n elevator.config_kF(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n elevator.config_kP(Constants.kPIDLoopIdx, 0.5, Constants.kTimeoutMs);\n elevator.config_kI(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n elevator.config_kD(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n\n\n }", "@Override\n\tpublic void autonomousInit() {\n\t\tvision_.startGearLiftTracker(15);\n\t\tgyro_.reset();\n\t\tautoCommand = (Command) autoChooser.getSelected();\n\t\tif(autoCommand != null)\n\t\t{\n\t\t\tautoCommand.start();\n\t\t}\n\t}", "@Override\n public void robotInit() {\n m_oi = new OI();\n m_chooser.setDefaultOption(\"Default Auto\", new ExampleCommand());\n // chooser.addOption(\"My Auto\", new MyAutoCommand());\n SmartDashboard.putData(\"Auto mode\", m_chooser);\n\n Comp = new Compressor();\n\n //ClimbBack = new DoubleSolenoid(PCM_COMP_24V, 0, 1);\n //ClimbFront = new DoubleSolenoid(PCM_COMP_24V, 2, 3);\n LegFrontL = new VictorSPX(30);\n LegFrontR = new Spark(9);\n LegBackL = new VictorSPX(31);\n LegBackR = new VictorSPX(32);\n\n BackFootMover = new VictorSP(1);\n FrontFootMover = new Spark(2);\n //FeetMovers = new SpeedControllerGroup(BackFootMoverFootMover);\n\n MainRight = new CANSparkMax(9, MotorType.kBrushless);\n AltRight = new CANSparkMax(10, MotorType.kBrushless);\n MainLeft = new CANSparkMax(11, MotorType.kBrushless);\n AltLeft = new CANSparkMax(12, MotorType.kBrushless);\n\n MainRight.setIdleMode(IdleMode.kCoast);\n AltRight.setIdleMode(IdleMode.kCoast);\n MainLeft.setIdleMode(IdleMode.kCoast);\n AltLeft.setIdleMode(IdleMode.kCoast);\n\n AltLeft.follow(MainLeft);\n AltRight.follow(MainRight);\n\n Drive = new DifferentialDrive(MainLeft, MainRight);\n\n Lifter = new TalonSRX(6);\n Lifter.setNeutralMode(NeutralMode.Brake);\n Lifter.enableCurrentLimit(false);\n /*Lifter.configContinuousCurrentLimit(40);\n Lifter.configPeakCurrentLimit(50);\n Lifter.configPeakCurrentDuration(1500);*/\n //Lifter.configReverseSoftLimitEnable(true);\n //Lifter.configReverseSoftLimitThreshold(-27000);\n //Lifter.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n //Lifter.configClearPositionOnLimitF(true, 0);\n Lifter.selectProfileSlot(0, 0);\n LiftSetpoint = 0;\n\n LiftFollower = new TalonSRX(5);\n LiftFollower.follow(Lifter);\n LiftFollower.setNeutralMode(NeutralMode.Brake);\n\n ArmExtender = new Solenoid(0);\n ArmOpener = new Solenoid(1);\n ArmGrippers = new Spark(0);\n\n HatchSwitch0 = new DigitalInput(0);\n HatchSwitch1 = new DigitalInput(1);\n\n Accel = new BuiltInAccelerometer(Range.k2G);\n\n //Diagnostics = new DiagnosticsLogger();\n // Uncomment this line to enable diagnostics. Warning: this may\n // cause the robot to be slower than it is supposed to be because of lag.\n //Diagnostics.start();\n\n xbox = new XboxController(0);\n joystick = new Joystick(1);\n \n LiftRamp = new SRamp();\n SpeedRamp = new SRamp();\n\n NetworkTableInstance nt = NetworkTableInstance.getDefault();\n\n VisionTable = nt.getTable(\"ChickenVision\");\n TapeDetectedEntry = VisionTable.getEntry(\"tapeDetected\");\n TapePitchEntry = VisionTable.getEntry(\"tapePitch\");\n TapeYawEntry = VisionTable.getEntry(\"tapeYaw\");\n\n LedTable = nt.getTable(\"LedInfo\");\n LedScript = LedTable.getEntry(\"CurrentScript\");\n LedScriptArgument = LedTable.getEntry(\"ScriptArgument\");\n LedArmsClosed = LedTable.getEntry(\"ArmsClosed\");\n\n UsbCamera cam = CameraServer.getInstance().startAutomaticCapture();\n cam.setPixelFormat(PixelFormat.kMJPEG);\n cam.setResolution(320, 240);\n cam.setFPS(15);\n \n\n LedScript.setString(\"ColorWaves\");\n LedScriptArgument.setString(\"\");\n\n limits = new DigitalInput[8];\n\n for (int i = 0; i < limits.length; i++) {\n limits[i] = new DigitalInput(i + 2);\n }\n }", "public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\n }", "public void autonomousInit() {\n Jagbot.isAutonomous = true;\n int mode = (int)SmartDashboard.getNumber(RobotMap.Autonomous.MODE_KEY);\n switch (mode) {\n case 0:\n System.out.println(\"Standing still\");\n new StandStill().start();\n break;\n case 1:\n System.out.println(\"Driving forward\");\n new DriveStraight(1).start();\n break;\n \n case 2:\n System.out.println(\"Turning left and shooting to score\");\n new TurnAndScore(-1).start();\n break;\n case 3:\n System.out.println(\"Turning right and shooting to score\");\n new TurnAndScore(1).start();\n break;\n }\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n\n Intake.getInstance().releaseHatch();\n }", "@Override\r\n\tpublic String getSmartDashboardType() {\r\n\t\treturn \"Gyro\";\r\n\t}", "public void autonomousInit() {\n\t\tswitch (autoMode) {\r\n\t\tcase 0:\r\n\t\t\tauto = new G_NoAuto();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tauto = new G_Step();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tauto = new G_BlockThenFour();\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tauto = new G_BinTwoLeft();\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tauto = new G_StepBinCentre();\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tauto = new G_StepBinLeft();\t\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tauto = new G_Block();\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t//Start the chosen Autonomous command. \r\n\t\tauto.start();\r\n\t\t//Cancel the tele-op command, in case it was running before autonomous began. \r\n\t\tteleop.cancel();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\r\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tJoy = new Joystick(0);\n\t\ts1 = new DoubleSolenoid(1, 0);\n\t\ts2 = new DoubleSolenoid(2, 3);\n\t\tairCompressor = new Compressor();\n\t\ttriggerValue = false;\n\t\ts1Value = false;\n\t}", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n \n //Initialize Drive Train Motors/\n LeftFront = new WPI_TalonSRX(11);\n RightFront = new WPI_TalonSRX(13);\n LeftBack = new WPI_TalonSRX(10);\n RightBack = new WPI_TalonSRX(12);\n RobotDT = new MecanumDrive(LeftFront, LeftBack, RightFront, RightBack);\n \n //Initialize Xbox Controller or Joystick/\n xcontroller1 = new XboxController(0);\n xcontroller2 = new XboxController(1);\n \n //Initialize Cameras/\n RoboCam = CameraServer.getInstance();\n FrontCamera = RoboCam.startAutomaticCapture(0);\n BackCamera = RoboCam.startAutomaticCapture(1);\n\n //GPM Init/\n mGPM = new GPM();\n \n }", "@Override\n\tpublic void robotInit() {\n\t\tprefs = Preferences.getInstance();\n\t\tDEBUG = prefs.getBoolean(\"DEBUG\", false);\n\t\t\n\t\tinitCamera(\"Primary Camera\", 0);\n\t\tinitCamera(\"Secondary Camera\", 1);\n\t\t\n\t\tRobotMap.robotDriveMain = new DifferentialDrive(RobotMap.leftDrive, RobotMap.rightDrive);\n\t\t\n\t\tautoChooser.setDefaultOption(\"Left\", \"left\");\n\t\tautoChooser.addOption(\"Middle\", \"middle\");\n\t\tautoChooser.addOption(\"Right\", \"right\");\n\t\t\n\t\tSmartDashboard.putData(\"Auto Mode:\", autoChooser);\n\t}", "public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }", "@Override\n public void 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 }", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n\n initialize();\n }", "@Override\n public void autonomousInit() {\n\n Robot.m_driveTrain.driveTrainLeftFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightRearMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainLeftRearMotor.setSelectedSensorPosition(0);\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n }", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n \n // camera stuff\n robotCamera = CameraServer.getInstance();\n robotCamera.setQuality(50);\n robotCamera.startAutomaticCapture(\"cam0\");\n\n //our robot stuff\n // myChassis\t= new RobotDrive(0,1);\n leftSide\t= new VictorSP(1);\n rightSide\t= new VictorSP(0);\n spinWheels\t= new TalonSRX(2);\n armLifty\t= new TalonSRX(3);\n drivePad\t= new Joystick(0);\n statesPad\t= new Joystick(1);\n LiveWindow.addActuator(\"stud\", \"talonsrx\", armLifty);\n \n //arm position stuff\n armPosition\t\t= new AnalogInput(0);\n armPortSwitch\t= new DigitalInput(0);\n \n //solenoid stuff\n //solenoidThing = new Solenoid(1);\n \n //init button states\n lBPX\t\t\t= false;\n bIPX\t\t\t= false;\n \n //driver buttons\n ballSpitButton\t= 4;\n ballSuckButton\t= 2;\n \n //state machine variables\n defaultState\t\t= 0;\n portState\t\t\t= 1;\n chevellState\t\t= 2;\n ballGrabState\t\t= 10;\n driveState\t\t\t= 11;\n lowBarState\t\t\t= 8;\n rockState\t\t\t= driveState;\n roughState\t\t\t= driveState;\n moatState\t\t\t= driveState;\n rampartState\t\t= driveState;\n drawState\t\t\t= driveState;\n sallyState\t\t\t= driveState;\n liftOverride\t\t= 0.09;\n terrainStates\t\t= 0;\n autoLiftSpeed\t\t= 1.0;\n armLiftBuffer\t\t= 0.01;\n //port state variables\n portPosition1\t\t= 1.7;\n portPosition2\t\t= 0.9;\n portSwitch\t\t\t= 0;\n //chevell state variables\n chevellPosition1\t= 1.135;\n chevellPosition2\t= 2.0;\n chevellSwitch \t\t= 0;\n chevellWheelSpeed\t= 0.3;\n //ball grab state variables\n ballGrabPosition1\t= 1.35;\n ballGrabSwitch\t\t= 0;\n ballGrabWheelSpeed\t= -0.635;\n ballSpitWheelSpeed\t= 1.0;\n //lowbar state variables\n lowBarPosition\t\t= 1.6;\n lowBarSwitch\t\t= 0;\n //drive state variables\n driveSwitch\t\t\t= 1;\n \n }", "public void robotInit() {\n\t\toi = new OI();\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", new ExampleCommand());\n// chooser.addObject(\"My Auto\", new MyfAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n \n //Drive\n //this.DriveTrain = new DriveTrain();\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickLeft);\n \n //Buttons\n // oi.button1.whenPressed(new SetMaxMotorOutput());\n \n //Ultrasonic\n sonic1 = new Ultrasonic(0,1);\n sonic1.setAutomaticMode(true);\n \n }", "public void autonomousPeriodic() {\n \tswitch(autoSelected) {\n \tcase customAuto:\n //Put custom auto code here \n break;\n \tcase defaultAuto:\n \tdefault:\n \t//Put default auto code here\n break;\n \t}\n }", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }", "public void runOpMode() {\n leftBackDrive = hardwareMap.get(DcMotor.class, \"left_back_drive\"); //port 0, hub1\n rightBackDrive = hardwareMap.get(DcMotor.class, \"right_back_drive\"); //port 1, hub1\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"left_front_drive\"); //port 2, hub1\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"right_front_drive\"); //port 3, hub1\n craneExtend = hardwareMap.get(DcMotor.class, \"craneExtend\"); //port 0, hub2\n cranePitch = hardwareMap.get(DcMotor.class, \"cranePitch\"); //port 1, hub2\n craneElevate = hardwareMap.get(DcMotor.class, \"craneElevate\"); //port 2, hub2\n fakeMotor = hardwareMap.get(DcMotor.class, \"fakeMotor\"); //port 2, hub3\n craneGrab = hardwareMap.get(Servo.class, \"craneGrab\"); //port 0, servo\n craneGrabAttitude = hardwareMap.get(Servo.class, \"craneGrabAttitude\"); //port 2, servo\n trayGrab = hardwareMap.get(Servo.class, \"trayGrab\"); //port 1, servo\n flipperLeft = hardwareMap.get(Servo.class, \"flipperLeft\"); //port 3. servo\n flipperRight = hardwareMap.get(Servo.class, \"flipperRight\"); //port 4, servo\n \n //Setting the motor directions\n leftBackDrive.setDirection(DcMotor.Direction.FORWARD);\n rightBackDrive.setDirection(DcMotor.Direction.REVERSE);\n leftFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n rightFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //Initializing variables\n \n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update(); //Done initalizing\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n \n//******************************************************************************\n\n //Drive controls\n if (gamepad1.left_trigger>0 || gamepad1.right_trigger>0) { //Crab\n leftBackDrive.setPower(gamepad1.left_stick_x*0.8);\n rightBackDrive.setPower(-gamepad1.left_stick_x*0.8);\n leftFrontDrive.setPower(-gamepad1.left_stick_x*0.8);\n rightFrontDrive.setPower(gamepad1.left_stick_x*0.8);\n }\n\n else { //Tank\n leftBackDrive.setPower(-gamepad1.left_stick_x);\n rightBackDrive.setPower(-gamepad1.right_stick_x);\n leftFrontDrive.setPower(-gamepad1.left_stick_x);\n rightFrontDrive.setPower(-gamepad1.right_stick_x);\n }\n }\n \n//******************************************************************************\n\n //Crane control\n \n \n//******************************************************************************\n\n //Telemetry display\n telemetry.addData(\"Run Time:\", \"\" + runtime.toString());\n telemetry.addData(\"Motor Power\", \"L (%.2f), R (%.2f)\", gamepad1.left_stick_y, gamepad1.right_stick_y);\n telemetry.update();\n }", "@Override\n public void robotInit() {\n SmartDashboard.putBoolean(\"CLIMB\", false);\n SmartDashboard.putNumber(\"servo\", 0);\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n //coast.\n if (RobotMap.DRIVE_TRAIN_DRAGON_FLY_IS_AVAILABLE)\n getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(false, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n\n getRobotContainer().configureButtonBindings();\n getRobotContainer().getTecbotSensors().initializeAllSensors();\n getRobotContainer().getTecbotSensors().getTecbotGyro().reset();\n\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_LEFT_CHASSIS_PORTS);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_RIGHT_CHASSIS_PORTS);\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n\n m_chooser.addOption(\"Move 3 m\", new SpeedReductionStraight(3, .75, 0));\n m_chooser.addOption(\"Rotate 90 degrees\", new SpeedReductionTurn(90, .5));\n m_chooser.setDefaultOption(\"El chido\", new DR01D3K4());\n m_chooser.addOption(\"Collect, go back and shoot\", new CollectPowerCellsGoBackShoot());\n m_chooser.addOption(\"Transport\", new SequentialCommandGroup(new FrontIntakeSetRaw(.75),\n new TransportationSystemSetRaw(.5)));\n m_chooser.addOption(\"Shoot 3PCs n' Move\", new SHOOT_3_PCs_N_MOVE());\n SmartDashboard.putData(\"Auto Mode\", m_chooser);\n\n //camera.setExposureManual(79);\n\n\n }", "public void robotInit() {\n\t\t\n\t\tupdateDashboard();\n\t\t\n \tautoChooser = new SendableChooser();\n \tautoChooser.addDefault(\"Default Autonomous does nothing!\", new Default());\n \t// Default Autonomous does nothing\n \tautoChooser.addObject(\"Cross the Low Bar Don't Run This it doesn't work\", new LowBar());\n \tautoChooser.addObject(\"Cross Rough Patch/Stone Wall\", new Main());\n \tautoChooser.addObject(\"Cross the Low Bar, Experimental!\", new LowBarEx());\n \t//autoChooser.addObject(\"If Jonathan lied to us and we can cross twice\", new RoughPatch());\n \tCameraServer server = CameraServer.getInstance();\n\n \tserver.setQuality(50);\n \t\n \tSmartDashboard.putData(\"Autonomous\", autoChooser);\n\n \tserver.startAutomaticCapture(\"cam0\");\n \tLowBar.gyro.reset();\n \t\n \tDriverStation.reportWarning(\"The Robot is locked and loaded. Time to kick some ass guys!\", !(server.isAutoCaptureStarted()));\n\n\t}", "default void onAutoModeChanged(int autoMode) {}", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }", "@Override\n public void runOpMode() {\n try {\n leftfrontDrive = hardwareMap.get(DcMotor.class, \"frontLeft\");\n leftfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n rightfrontDrive = hardwareMap.get(DcMotor.class, \"frontRight\");\n rightfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftbackDrive = hardwareMap.get(DcMotor.class, \"backLeft\");\n leftbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftbackDrive.setDirection(DcMotor.Direction.REVERSE);\n\n rightbackDrive = hardwareMap.get(DcMotor.class, \"backRight\");\n rightbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n lift = hardwareMap.get(DcMotor.class, \"Lift\");\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setDirection(DcMotor.Direction.REVERSE);\n\n markerArm = hardwareMap.get(Servo.class, \"markerArm\");\n\n armActivator = hardwareMap.get(DcMotor.class, \"armActivator\");\n armActivator.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n } catch (IllegalArgumentException iax) {\n bDebug = true;\n }\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n waitForStart(); //the rest of the code begins after the play button is pressed\n\n sleep(3000);\n\n drive(0.35, 0.5);\n\n turn(90.0f);\n\n drive(1.8, 0.5);\n\n turn(45.0f);\n\n drive(2.5, -0.5);\n\n sleep(1000);\n\n markerArm.setPosition(1);\n\n sleep(1000);\n\n markerArm.setPosition(0);\n\n sleep(1000);\n\n drive(2.5,.75);\n\n turn(179.0f);\n\n drive(1.5, 1.0);\n\n requestOpModeStop(); //end of autonomous\n }", "public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }", "public static void startAuto(){\n cancelAuto();\n //Turn our ID into a Command\n \tswitch(autonomousChooser.getSelected()){\n case 0:\n command = new BaseLine();\n break;\n default:\n\t\t\t\tSystem.out.println(\"No auto picked\");\n command = null;\n }\n //Run the Command\n\t\tif (command != null){\n\t\t\tcommand.start();\n\t\t}\n }", "@Override\n\tpublic void autonomousInit() //initialization of the autonomous code\n\t{\n\t\t//m_autonomousCommand = m_chooser.getSelected();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) //if we have any autonomous code, start it\n\t\t{\n\t\t\tm_autonomousCommand.start();\n\t\t}\n\t\tRobotMap.encoderLeft.reset(); //reset the values of the encoder\n\t\tRobotMap.encoderRight.reset(); //reset the values of the encoder\n\t\tultrasonic.getInitialDist(); //if nullPointerException, use \"first\" boolean inside the method and run in periodic()\n\t}", "public void runOpMode(){\n JAWLDrive3796 drive = new JAWLDrive3796(hardwareMap.dcMotor.get(\"left_drive\"), hardwareMap.dcMotor.get(\"right_drive\"));\n //Set the drive motors to run without encoders\n drive.setEncoders(false);\n //Create Grabber object\n JAWLGrabber3796 grabber = new JAWLGrabber3796(hardwareMap.servo.get(\"left_arm\"), hardwareMap.servo.get(\"right_arm\"));\n //Create Lift object\n JAWLLift3796 lift = new JAWLLift3796(hardwareMap.dcMotor.get(\"lift_motor\"));\n //Create color arm object\n JAWLColorArm3796 colorArm = new JAWLColorArm3796(hardwareMap.servo.get(\"color_arm\"));\n //Creates color sensor name\n ColorSensor colorSensorTemp = hardwareMap.get(ColorSensor.class, \"color_distance\");\n //Creates distance sensor name\n DistanceSensor distanceSensorTemp = hardwareMap.get(DistanceSensor.class, \"color_distance\");\n //Creates the color-distance sensor object\n JAWLColorSensor3796 colorDistanceSensor = new JAWLColorSensor3796(colorSensorTemp, distanceSensorTemp);\n //Creates the variable that will hold the color of the jewel\n String colorOfBall;\n //Creates relic arm objects\n //TTTTRelicArm3796 relicArm = new TTTTRelicArm3796(hardwareMap.dcMotor.get(\"relic_up_down\"), hardwareMap.dcMotor.get(\"relic_out_in\"), hardwareMap.dcMotor.get(\"relic_grab\"));\n //We never ended up having a relic arm!\n //The lift helper will set the idle power of the motor to a small double, keeping the lift from idly falling down\n boolean liftHelper = false;\n int i = 0;\n\n waitForStart();\n\n colorArm.armUp();\n\n while (opModeIsActive()) {\n //Here is where we define how the controllers should work\n //In theory, no logic retaining to controlling the components should be in here\n\n /*\n * Drive\n */\n\n //The left drive wheel is controlled by the opposite value of the left stick's y value on the first gamepad\n //The right drive is the same way except with the right drive wheel\n drive.leftDrive(-gamepad1.left_stick_y);\n drive.rightDrive(-gamepad1.right_stick_y);\n\n /*\n * Lift\n */\n telemetry.addData(\"Gamepad2 Right Stick Y\", -gamepad2.right_stick_y);\n\n if (-gamepad2.right_stick_y > 0) {\n //First checks to see if the right stick's negative y value is greater then zero.\n lift.moveMotor(-gamepad2.right_stick_y);\n //If it is, it sets the power for the motor to 1, and adds telemetry\n telemetry.addData(\"Lift Power\", 1);\n } else if (-gamepad2.right_stick_y < 0) {\n //Checks if the negative value of the right right stick's y position is less than zero\n lift.moveMotor(-0.1);\n //Sets the power for the motor to -0.1, and adds telemetry\n telemetry.addData(\"Lift Power\", -0.1);\n } else {\n //We check to see if the liftHelper is enabled\n if(liftHelper) {\n lift.moveMotor(0.1466 );\n } else {\n lift.moveMotor(0);\n }\n }\n\n\n\n /*\n * Lift helper control\n */\n\n if(gamepad2.a) {\n if(i == 0) {\n liftHelper = !liftHelper;\n }\n i = 5;\n }\n\n if(i != 0) {\n i--;\n }\n\n telemetry.addData(\"Lift Helper Enabled\", liftHelper);\n\n\n\n /*\n * Grabbers\n */\n if (gamepad2.left_trigger > 0) {\n //Closes the left arm, then displays the position in telemetry\n grabber.leftArmClose();\n double a = grabber.leftPosition();\n //Adds telemetry to display positions of grabbers, mostly for testing, but can be useful later on\n telemetry.addData(\"Left\", a);\n }\n\n if (gamepad2.left_bumper) {\n //Opens the left arm, then displays the position in telemetry\n grabber.leftArmOpen();\n double b = grabber.leftPosition();\n //We made the variables different as to avoid any and all possible errors\n telemetry.addData(\"Left\", b);\n }\n\n if (gamepad2.right_trigger > 0) {\n //Opens the right arm, then displays the position in telemetry\n grabber.rightArmClose();\n double c = grabber.rightPosition();\n telemetry.addData(\"Right\", c);\n }\n\n if (gamepad2.right_bumper) {\n //Closes the right arm, then displays the position in telemetry\n grabber.rightArmOpen();\n double d = grabber.rightPosition();\n telemetry.addData(\"Right\", d);\n }\n\n if (gamepad2.dpad_left){\n //Closes the left arm to a shorter distance\n grabber.leftArmShort();\n }\n\n if(gamepad2.dpad_right){\n //Closes the right arm to a shorter distance\n grabber.rightArmShort();\n\n }\n\n //Update all of our telemetries at once so we can see all of it at the same time\n telemetry.update();\n }\n }", "int getACMode();", "@Override\n\tpublic void autonomousInit() {\n\t\tselectedAutonomousCommand = new AutoModeCommandGroup(autoChooser.getSelected());\n\t\tif (selectedAutonomousCommand!=null) {\n\t\t\tselectedAutonomousCommand.start();\n\t\t}\n\t}", "@Override\n public void runOpMode () {\n motor1 = hardwareMap.get(DcMotor.class, \"motor1\");\n motor2 = hardwareMap.get(DcMotor.class, \"motor2\");\n\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n //Wait for game to start (driver presses PLAY)\n waitForStart();\n\n /*\n the overridden runOpMode method happens with every OpMode using the LinearOpMode type.\n hardwareMap is an object that references the hardware listed above (private variables).\n The hardwareMap.get method matches the name of the device used in the configuration, so\n we would have to change the names (ex. motorTest to Motor 1 or Motor 2 (or something else))\n if not, the opMode won't recognize the device\n\n in the second half of this section, it uses something called telemetry. In the first and\n second lines it sends a message to the driver station saying (\"Status\", \"Initialized\") and\n then it prompts the driver to press start and waits. All linear functions should have a wait\n for start command so that the robot doesn't start executing the commands before the driver\n wants to (or pushes the start button)\n */\n\n //run until end of match (driver presses STOP)\n double tgtpower = 0;\n while (opModeIsActive()) {\n telemetry.addData(\"Left Stick X\", this.gamepad1.left_stick_x);\n telemetry.addData(\"Left Stick Y\", this.gamepad1.left_stick_y);\n telemetry.addData(\"Right Stick X\", this.gamepad1.right_stick_x);\n telemetry.addData(\"Right Stick Y\", this.gamepad1.right_stick_y);\n if (this.gamepad1.left_stick_y < 0){\n tgtpower=-this.gamepad1.left_stick_y;\n motor1.setPower(tgtpower);\n motor2.setPower(-tgtpower);\n }else if (this.gamepad1.left_stick_y > 0){\n tgtpower=this.gamepad1.left_stick_y;\n motor1.setPower(-tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x > 0){\n tgtpower=this.gamepad1.left_stick_x;\n motor1.setPower(tgtpower);\n motor2.setPower(tgtpower);\n }else if (this.gamepad1.left_stick_x < 0){\n tgtpower=-this.gamepad1.left_stick_x;\n motor1.setPower(-tgtpower);\n motor2.setPower(-tgtpower);\n }else{\n motor1.setPower(0);\n motor2.setPower(0);\n }\n telemetry.addData(\"Motor1 Power\", motor1.getPower());\n telemetry.addData(\"Motor2 Power\", motor2.getPower());\n telemetry.addData(\"Status\", \"Running\");\n telemetry.update ();\n\n\n /*\n if (this.gamepad1.right_stick_x == 1){\n //trying to make robot turn right, == 1 may be wrong\n motor2.setPower(-1);\n }\n else if (this.gamepad1.right_stick_x == -1){\n //trying to make robot turn left, == -1 may be wrong\n motor1.setPower(-1);\n }\n else {\n\n }\n */\n\n\n /*\n After the driver presses start,the opMode enters a while loop until the driver presses stop,\n while the loop is running it will continue to send messages of (\"Status\", \"Running\") to the\n driver station\n */\n\n\n }\n }", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tm_frontRight = new PWMVictorSPX(0);\n\t\tm_frontLeft = new PWMVictorSPX(2);\n\t\tm_backRight = new PWMVictorSPX(1);\n\t\tm_backLeft = new PWMVictorSPX(3);\n\n\t\tx_aligning = false;\n\n\t\tJoy = new Joystick(0);\n\t\tmyTimer = new Timer();\n\n\t\tfinal SpeedControllerGroup m_left = new SpeedControllerGroup(m_frontLeft, m_backLeft);\n\t\tfinal SpeedControllerGroup m_right = new SpeedControllerGroup(m_frontRight, m_backRight);\n\n\t\tm_drive = new DifferentialDrive(m_left, m_right);\n\n\t\tdistanceToTarget = 0;\n\n\t\tcounter = new Counter(9);\n\t\tcounter.setMaxPeriod(10.0);\n\t\tcounter.setSemiPeriodMode(true);\n\t\tcounter.reset();\n\t}", "@Override\n public void autonomousPeriodic() {\n switch (m_autoSelected) {\n case kCustomAuto:\n // Put custom auto code here\n break;\n case kDefaultAuto:\n default:\n // Put default auto code here\n break;\n }\n }", "@Override\n public void autonomousPeriodic() {\n switch (m_autoSelected) {\n case kCustomAuto:\n // Put custom auto code here\n break;\n case kDefaultAuto:\n default:\n // Put default auto code here\n break;\n }\n }", "@Override\n public void autonomousPeriodic() {\n switch (m_autoSelected) {\n case kCustomAuto:\n // Put custom auto code here\n break;\n case kDefaultAuto:\n default:\n // Put default auto code here\n break;\n }\n }", "@Override\n public void autonomousPeriodic() {\n switch (m_autoSelected) {\n case kCustomAuto:\n // Put custom auto code here\n break;\n case kDefaultAuto:\n default:\n // Put default auto code here\n break;\n }\n }", "@Override\n\tpublic void autonomousInit() {\n\t\tautonomousCommand = new Auto();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "public void updateSwitches(){\r\n if(this.ar){\r\n this.augmentedReality.setChecked(true);\r\n }else{\r\n this.augmentedReality.setChecked(false);\r\n }\r\n\r\n if(this.easy){\r\n this.easyMode.setChecked(true);\r\n }else{\r\n this.easyMode.setChecked(false);\r\n }\r\n }", "public Command getAutonomousCommand() \n {\n switch (m_autoChooser.getSelected())\n {\n case \"default\":\n return null;\n case \"test\":\n return new CommandGroupTemplate();\n case \"three_ball_forward\":\n return new AutonomousThreeBall(1, 2.0);\n case \"three_ball_backward\":\n return new AutonomousThreeBall(-1, 3.0);\n case \"six_ball\":\n return new AutonomousSixBall();\n default:\n System.out.println(\"\\nError selecting autonomous command:\\nCommand selected: \" + m_autoChooser.getSelected() + \"\\n\");\n return null;\n }\n }", "@Override\n\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n // FR = hardwareMap.get(DcMotor.class, \"FR\");\n // FL = hardwareMap.get(DcMotor.class, \"FL\");\n // BR = hardwareMap.get(DcMotor.class, \"BR\");\n //BL = hardwareMap.get(DcMotor.class, \"BL\");\n //yoo are ___\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n/* FR.setDirection(DcMotor.Direction.FORWARD);\n FL.setDirection(DcMotor.Direction.REVERSE);\n BR.setDirection(DcMotor.Direction.FORWARD);\n BL.setDirection(DcMotor.Direction.REVERSE);\n\n */ RevBlinkinLedDriver blinkinLedDriver;\n RevBlinkinLedDriver.BlinkinPattern pattern;\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n blinkinLedDriver = this.hardwareMap.get(RevBlinkinLedDriver.class, \"PrettyBoi\");\n blinkinLedDriver.setPattern(RevBlinkinLedDriver.BlinkinPattern.RAINBOW_WITH_GLITTER);\n// runtime.reset();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n\n\n // Show the elapsed game time and wheel power.\n// telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n// // telemetry.addData(\"Motors\", \"FL (%.2f), FR (%.2f), BL (%.2f), BR (%.2f)\", v1, v2, v3, v4);\n// telemetry.update();\n }\n }", "@Override\n public void autonomousInit() {\n\n autonomousCommand = new Autonomous(start.getSelected(), chooser.getSelected());\n \n autonomousCommand.start();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\t//For some reason, right is inverted in auto instead of left\n\t\tString start = autonomousCommand; //from smartDashboard\n\t\t//String start = \"R\";//R for right, FR for far right, L for far left\n\t\t//Starting Far Right\n\t\tif (start == \"FR\") {\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t//Go forward for 5 seconds\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t//stop going\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (start == \"R\") {\n\t\t\t//Starting on the right, aligned with the switch\n\t\t\tif(autoStep==0) {\n\t\t\t\tif (timer.get() < 2) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'R') {\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 15 && timer.get() > 7) {\n\t\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t}\n\t\t}\n\t\telse if (start == \"L\") {\n\t\t//This is for starting on the far left\n\t\t\tif(autoStep == 0) {\n\t\t\t\tif (timer.get() < 2.5) {\n\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t}\n\t\t\t\tif(gameData.charAt(0) == 'L') {/**Change this to R if we start on the right side, comment out if we're on the far right or left side**/\n\t\t\t\t\trotateTo(270);\n\t\t\t\t\tif (timer.get()>3 && timer.get()<4) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif(timer.get()< 4) {\n\t\t\t\t\t\tmotorLift.set(.25);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorLift.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (timer.get() < 7 && timer.get() > 4) {\n\t\t\t\t\t\tmotorGL.set(1);\n\t\t\t\t\t\tmotorGR.set(-1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorGL.set(0);\n\t\t\t\t\t\tmotorGR.set(0);\n\t\t\t\t\t}\n\t\t\t\t\tautoStep++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Default Code\n\t\t\tif (true) {\n\t\t\t\tif(autoStep==0) {\n\t\t\t\t\tif (timer.get() < 3) {\n\t\t\t\t\t\tmotorRB.set(-0.5);\n\t\t\t\t\t\tmotorRF.set(-0.5);\n\t\t\t\t\t\tmotorLB.set(0.5);\n\t\t\t\t\t\tmotorLF.set(0.5);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmotorRB.set(0);\n\t\t\t\t\t\tmotorRF.set(0);\n\t\t\t\t\t\tmotorLB.set(0);\n\t\t\t\t\t\tmotorLF.set(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void execute()\n {\n // obtain object references\n ttlAG = (TTL_Autoguider)TTL_Autoguider.getInstance();\n AUTOGUIDE a = (AUTOGUIDE)command;\n AGS_State desired = null;\n pmc = new AltAzPointingModelCoefficients();\n telescope.getMount().getPointingModel().addCoefficients( pmc );\n\n // start of command execution\n Timestamp start = telescope.getTimer().getTime();\n\n try\n {\n AutoguideMode mode = a.getAutoguideMode();\n\n // Guide on the Brightest guide star\n if( mode == AutoguideMode.BRIGHTEST )\n {\n\tttlAG.guideOnBrightest();\n\tdesired = AGS_State.E_AGS_ON_BRIGHTEST;\n }\n\n // Gide on a guide star between magnitudes i1 and i2\n else if( mode == AutoguideMode.RANGE )\n {\n\tint i1 = (int)\n\t ( Math.rint\n\t ( a.getFaintestMagnitude() ) * 1000.0 );\n\n\tint i2 = (int)\n\t ( Math.rint\n\t ( a.getBrightestMagnitude() ) * 1000.0 );\n\n\tttlAG.guideOnRange( i1, i2 );\n\tdesired = AGS_State.E_AGS_ON_RANGE;\n }\n\n // Guide on teh Nth brightest star\n else if( mode == AutoguideMode.RANK )\n {\n\tttlAG.guideOnRank( a.getBrightnessRank() );\n\tdesired = AGS_State.E_AGS_ON_RANK;\n }\n\n // Guide on the star at pixel coords X,Y\n else if( mode == AutoguideMode.PIXEL )\n {\n\tint i1 = (int)\n\t ( Math.rint( a.getXPixel() * 1000.0 ) );\n\n\tint i2 = (int)\n\t ( Math.rint( a.getYPixel() * 1000.0 ) );\n\n\tttlAG.guideOnPixel( i1, i2 );\n\tdesired = AGS_State.E_AGS_ON_PIXEL;\n }\n\n\n // wait for AGS state change and see if it's the desired one\n // after 200 seconds\n int sleep = 5000;\n while( ( ttlAG.get_AGS_State() == AGS_State.E_AGS_WORKING )&&\n\t ( slept < TIMEOUT ) )\n {\n\n\ttry\n\t{\n\t Thread.sleep( sleep );\n\t slept += sleep;\n\t}\n\tcatch( InterruptedException ie )\n\t{\n\t logger.log( 1, logName, ie.toString() );\n\t}\n }\n\n AGS_State actual = ttlAG.get_AGS_State();\n if( actual != desired )\n {\n\tString s = ( \"after \"+slept+\"ms AGS has acheived \"+actual.getName()+\n\t\t \" state, desired state is \"+desired.getName() );\n\tcommandDone.setErrorMessage( s );\n\tlogger.log( 1, logName, s );\n\treturn;\n }\n\n\n // get x,y of guide star depending on mode and check for age of\n // returned centroids - centroids MUST have been placed SINCE this\n // cmd impl was started.\n TTL_AutoguiderCentroid centroid;\n\n // sleep for 0.5 sec to check values have been updated\n int updateSleep = 500;\n do\n {\n\ttry\n\t{\n\t Thread.sleep( 500 );\n\t slept += 500;\n\t}\n\tcatch( InterruptedException ie )\n\t{\n\t logger.log( 1, logName, ie.toString() );\n\t}\n\n\tcentroid = ttlAG.getCentroidData();\n }\n while( centroid.getTimestamp().getSeconds() < start.getSeconds() );\n\n guideStar = ttlAG.getGuideTarget( centroid );\n\n }\n catch( TTL_SystemException se )\n {\n\n }\n\n stopGuiding = false;\n new Thread( this ).start();\n\n commandDone.setSuccessful( true );\n }", "@Override\n public void robotInit() {\n\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drive = new Drive();\n pDP = new PDP();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n camera1 = CameraServer.getInstance().startAutomaticCapture(0);\n camera2 = CameraServer.getInstance().startAutomaticCapture(1);\n camera1.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n camera2.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n server = CameraServer.getInstance().getServer();\n flipped = true;\n server.setSource(camera1);\n vexGyro = new AnalogGyro(0);\n vexGyro.setSensitivity(.00175);\n //rightEncoder = new Encoder(0, 1, false);\n //leftEncoder = new Encoder(2, 3, true);\n // Add commands to Autonomous Sendable Chooser\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n chooser.setDefaultOption(\"Autonomous Command\", new AutonomousCommand());\n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n if(centerBlock == null)\n {\n SmartDashboard.putString(\"target good? \", \"no, is null\");\n }\n else{\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out);\n if (centerBlock.yCenter < 200){\n SmartDashboard.putString(\"target good?\", \"YES!!! ycenter less than 200\");\n }\n }\n \n \n\n\n \n \n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n SmartDashboard.putData(\"Auto mode\", chooser);\n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n }", "private void actionChangedEstimatorSettingsAuto ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() //runs the autonomous mode, repeating every 20ms\n\t{\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n\t\tdriveExecutor.execute(); //running the execute() method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "private void changeUIMode(int mode){\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.GONE);\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.GONE);\n findViewById(R.id.saving_text1).setVisibility(View.GONE);\n\n if(mode == 0){\n mSavingText = (TextView) findViewById(R.id.saving_text);\n mTargetTempText = (TextView) findViewById(R.id.target_temp);\n\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.VISIBLE);\n findViewById(R.id.coin_view).setVisibility(View.VISIBLE);\n }else if(mode == 1){\n mSavingText = (TextView) findViewById(R.id.saving_text1);\n mTargetTempText = (TextView) findViewById(R.id.target_thermometer_temp);\n\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.VISIBLE);\n findViewById(R.id.thermometer).setVisibility(View.VISIBLE);\n mSavingText.setVisibility(View.VISIBLE);\n }else if(mode == 2){\n mTargetTempText = (TextView) findViewById(R.id.target_temp);\n mSavingText = (TextView) findViewById(R.id.saving_text1);\n\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.VISIBLE);\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.VISIBLE);\n mCoinStackImg.setVisibility(View.VISIBLE);\n mSavingText.setVisibility(View.VISIBLE);\n\n findViewById(R.id.thermometer).setVisibility(View.GONE);\n findViewById(R.id.coin_view).setVisibility(View.GONE);\n }\n updateViews();\n }", "public void autoMode1Blue(int delay){\n \taddParallel(new LightCommand(0.5));\n// \taddSequential(new OpenGearSocketCommand());\n//\t\taddSequential(new OpenBoilerSocketCommand());\n\t\taddParallel(new EnvelopeCommand(true));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n \taddSequential(new WaitCommand(2));\n// \tif(Robot.envelopeSubsystem.gearCheck()){\n// \t\taddParallel(new EnvelopeCommand(false));\n// \t\taddSequential(new AutoDriveUltraSonicBackwardCommand(-.7, 35));\n// \t\taddSequential(new VisionGearTargetCommand(\"targets\"));\n// \t\taddSequential(new TargetGearSortCommand());\n// \t\taddSequential(new AutoTurnCommand());\n// \t\taddParallel(new EnvelopeCommand(true));\n// \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n// \t\taddSequential(new WaitCommand(2));\n// \t}\n \taddParallel(new EnvelopeCommand(false));\n \taddSequential(new AutoDriveCommand(-1));\n \taddSequential(new TurnWithPIDCommand(100));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(1, 45));\n \taddSequential(new VisionBoilerTargetCommand(\"targets\"));\n\t\taddSequential(new TargetBoilerSortCommand());\n\t\taddSequential(new AutoTurnCommand());\n \taddSequential(new ShootCommand(true,.85));\n \t\n }", "@Override\n\tpublic void robotInit() {\n\t\tdrive = new Drive();\n\t\tintake = new Intake();\n\t\tshooter = new Shooter();\n\t\taimShooter = new AimShooter();\n\t\tvision = new Vision();\n\t\tintakeRoller = new IntakeRoller();\n\t\taManipulators = new AManipulators();\n\t\tshooterLock = new ShooterLock();\n\n\t\t// autochooser\n\t\t// autoChooser = new SendableChooser();\n\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\tlowGearCommand = new LowGear();\n\n\t\t// auto chooser commands\n\t\t// autoChooser.addDefault(\"FarLeftAuto\", new FarLeftAuto());\n\t\t// autoChooser.addObject(\"MidLeftAuto\", new MidLeftAuto());\n\t\t// autoChooser.addObject(\"MidAuto\", new MidAuto());\n\t\t// autoChooser.addObject(\"MidRightAuto\", new MidRightAuto());\n\t\t// autoChooser.addObject(\"FarRightAuto\", new FarRightAuto());\n\t\t// autoChooser.addObject(\"Uber Auto\", new UberAuto());\n\t\t// autoChooser.addObject(\"Paper Weight\", new PaperWeightAuto());\n\t\t//\n\t\t// SmartDashboard.putData(\"Autonomous\", autoChooser);\n\n\t\t// autonomousCommand = (Command) autoChooser.getSelected();\n\t\tautonomousCommand = new FarLeftAuto();\n\t\t// autonomousCommand = new MidAuto();\n\t\t// CameraServer.getInstance().startAutomaticCapture(\"cam3\");\n\t\t// autonomousCommand = new FarLeftAuto\n\n\t\tpovUpTrigger.whenActive(new MoveActuatorsUp());\n\t\tpovDownTrigger.whenActive(new MoveActuatorsDown());\n\t}", "@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }", "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 }", "protected void choixModeTri(){\r\n boolean choix = false;\r\n OPMode.menuChoix=true;\r\n OPMode.telemetryProxy.addLine(\"**** CHOIX DU MODE DE TRI ****\");\r\n OPMode.telemetryProxy.addLine(\" Bouton X : GAUCHE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton B : DROITE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton Y : UNE SEULE COULEUR\");\r\n OPMode.telemetryProxy.addLine(\" Bouton A : MANUEL\");\r\n OPMode.telemetryProxy.addLine(\" CHOIX ? .........\");\r\n OPMode.telemetryProxy.update();\r\n while (!choix){\r\n if (gamepad.x){\r\n OPMode.modeTri = ModeTri.GAUCHE;\r\n choix = true;\r\n }\r\n if (gamepad.b){\r\n OPMode.modeTri = ModeTri.DROITE;\r\n choix = true;\r\n }\r\n if (gamepad.y){\r\n OPMode.modeTri = ModeTri.UNI;\r\n choix = true;\r\n }\r\n if (gamepad.a){\r\n OPMode.modeTri = ModeTri.MANUEL;\r\n choix = true;\r\n }\r\n }\r\n OPMode.menuChoix = false;\r\n\r\n }", "public static void autoInit() {\n\t\tint col = allianceChooser.getSelected();\n\t\tRobot.navX.reset();\n\t\tif (col == 1) {\n\t\t\tRobot.redLight.set(false);\n\t\t\tRobot.blueLight.set(false);\n\t\t\tRobot.backLight.set(false);\n\t\t}\n\t\tif (col == 2) {\n\t\t\tRobot.redLight.set(true);\n\t\t\tRobot.backLight.set(true);\n\t\t\tRobot.blueLight.set(false);\n\t\t}\n\t\tif (col == 3) {\n\t\t\tRobot.redLight.set(false);\n\t\t\tRobot.backLight.set(false);\n\t\t\tRobot.blueLight.set(true);\n\t\t}\n\t\tint numchoose = chooser.getSelected();\n\t\t//numchoose = 2;\n\t\tif (numchoose == 1)\n\t\t\tmid();//moveDistance(1.4, 0, Robot.navX.getFusedHeading(), 130);\n\t\tif (numchoose == 2)\n\t\t\tleft();\n\t\tif (numchoose == 3)\n\t\t\tmid();\n\t\tif (numchoose == 4)\n\t\t\tright();\n\t\tif (numchoose == 5)\n\t\t\tLeftVis();\n\t\tif (numchoose == 6)\n\t\t\tMidVis();\n\t\tif (numchoose == 7)\n\t\t\tRightVis();\n\t\tif (numchoose == 8)\n\t\t\tshootRedDirect();\n\t\tif (numchoose == 9)\n\t\t\tshooterRedHopper();\n\t\tif (numchoose == 10)\n\t\t\tshooterBlueHopper();\n\n\t}", "@Override\n public void runOpMode() {\n float strafeRight;\n float strafeLeft;\n\n frontRight = hardwareMap.dcMotor.get(\"frontRight\");\n backRight = hardwareMap.dcMotor.get(\"backRight\");\n frontLeft = hardwareMap.dcMotor.get(\"frontLeft\");\n backLeft = hardwareMap.dcMotor.get(\"backLeft\");\n flipper = hardwareMap.crservo.get(\"flipper\");\n\n // Put initialization blocks here.\n frontRight.setDirection(DcMotorSimple.Direction.REVERSE);\n backRight.setDirection(DcMotorSimple.Direction.REVERSE);\n waitForStart();\n while (opModeIsActive()) {\n // Power to drive\n frontRight.setPower(gamepad1.right_stick_y * 0.5);\n frontRight.setPower(gamepad1.right_stick_y * 0.75);\n backRight.setPower(gamepad1.right_stick_y * 0.75);\n frontLeft.setPower(gamepad1.left_stick_y * 0.75);\n backLeft.setPower(gamepad1.left_stick_y * 0.75);\n flipper.setPower(gamepad2.left_stick_y);\n // Strafing code\n strafeRight = gamepad1.right_trigger;\n strafeLeft = gamepad1.left_trigger;\n if (strafeRight != 0) {\n frontLeft.setPower(-(strafeRight * 0.8));\n frontRight.setPower(strafeRight * 0.8);\n backLeft.setPower(strafeRight * 0.8);\n backRight.setPower(-(strafeRight * 0.8));\n } else if (strafeLeft != 0) {\n frontLeft.setPower(strafeLeft * 0.8);\n frontRight.setPower(-(strafeLeft * 0.8));\n backLeft.setPower(-(strafeLeft * 0.8));\n backRight.setPower(strafeLeft * 0.8);\n }\n // Creep\n if (gamepad1.dpad_up) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n } else if (gamepad1.dpad_down) {\n frontRight.setPower(0.4);\n backRight.setPower(0.4);\n frontLeft.setPower(0.4);\n backLeft.setPower(0.4);\n } else if (gamepad1.dpad_right) {\n frontRight.setPower(-0.4);\n backRight.setPower(-0.4);\n } else if (gamepad1.dpad_left) {\n frontLeft.setPower(-0.4);\n backLeft.setPower(-0.4);\n }\n if (gamepad1.x) {\n frontLeft.setPower(1);\n backLeft.setPower(1);\n frontRight.setPower(1);\n backRight.setPower(1);\n sleep(200);\n frontRight.setPower(1);\n backRight.setPower(1);\n frontLeft.setPower(-1);\n backLeft.setPower(-1);\n sleep(700);\n }\n telemetry.update();\n }\n }", "@Override\n public void runOpMode() {\n RobotMain main = new RobotMain(this,hardwareMap,telemetry);\n\n //initialize controls\n imuTeleOpDualGamepad control = new imuTeleOpDualGamepad(main,gamepad1,gamepad2);\n\n waitForStart();\n\n //Pull the tail back from autonomous\n main.JewelArm.setServo(.65);\n\n //Continually run the control program in the algorithm\n while (opModeIsActive()) control.run();\n }", "@Override\n\tpublic void robotInit() {\n\t\tSmartDashboard.putData(new TestLIDARCommand());\n\n\t\tdriveSubsystem = new DriveSubsystem();\n\t\tshooterSubsystem = new ShooterSubsystem();\n\t\tfeederSubsystem = new FeederSubsystem();\n\t\tintakeSubsystem = new IntakeSubsystem();\n\t\tgearSubsystem = new GearSubsystem();\n\t\tclimberSubsystem = new ClimberSubsystem();\n\t\tcameraSubsystem = new CameraSubsystem();\n\n\t\tnavigator = new Navigator();\n\t\toi = new OI();\n\n\t\tm_chooser = new SendableChooser<>();\n\t\tm_chooser.addDefault(\"Do Nothing\", new PistonReleaseCommand());\n\t\t//m_chooser.addObject(\"Boiler Auto (side hopper)\", new SelectBoilerAutoCommand());\n\t\tm_chooser.addObject(\"Boiler Auto (front hopper)\", new SelectBoilerAutoFrontCommand());\n\t\tm_chooser.addObject(\"Test drive straight\", new MeasureDistanceCommand(1500, 100000));\n\t\tm_chooser.addObject(\"Test max speed\", new TimedDriveCommand(5.0, 1.00));\n\t\tm_chooser.addObject(\"Gear Auto (boiler)\", new SelectGearBoilerCommand());\n\t\tm_chooser.addObject(\"Gear Auto (feeder)\", new SelectGearFeederCommand());\n\t\tm_chooser.addObject(\"Gear Auto (middle)\", new SelectGearMiddleAutoCommand());\n\t\tSmartDashboard.putData(\"Auto mode\", m_chooser);\n\n\t\tRobot.navigator.startMeasuringDistance();\n\t}", "@Override\r\n public void runOpMode() {\n robot.init(hardwareMap);\r\n\r\n telemetry.addData(\"Status\", \"Initialized\");\r\n telemetry.update();\r\n\r\n //Wait for the Pressing of the Start Button\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n\r\n motorSpeed[0] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[0];\r\n motorSpeed[1] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[1];\r\n motorSpeed[2] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[2];\r\n motorSpeed[3] = driveSpeed(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad2.left_stick_x)[3];\r\n\r\n robot.drive1.setPower(motorSpeed[0]);\r\n robot.drive1.setPower(motorSpeed[1]);\r\n robot.drive1.setPower(motorSpeed[2]);\r\n robot.drive1.setPower(motorSpeed[3]);\r\n\r\n telemetry.addData(\"Drive 1 Speed\", motorSpeed[0]);\r\n telemetry.addData(\"Drive 2 Speed\", motorSpeed[1]);\r\n telemetry.addData(\"Drive 3 Speed\", motorSpeed[2]);\r\n telemetry.addData(\"Drive 4 Speed\", motorSpeed[3]);\r\n telemetry.update();\r\n\r\n }\r\n }", "String getACModeName();", "public void autoMode4Red(int delay){\n \taddParallel(new LightCommand(0.25));\n// \taddSequential(new OpenGearSocketCommand());\n//\t\taddSequential(new OpenBoilerSocketCommand());\n \taddSequential(new AutoDriveCommand(6));\n \taddSequential(new TurnWithPIDCommand(-45)); \n \taddSequential(new WaitWithoutCheckCommand(.5));\n \taddSequential(new VisionGearTargetCommand(\"targets\"));\n \taddSequential(new TargetGearSortCommand());\n \taddSequential(new AutoTurnCommand());\n \taddParallel(new EnvelopeCommand(true));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n \taddSequential(new WaitCommand(2));\n// \tif(Robot.envelopeSubsystem.gearCheck()){\n// \t\taddParallel(new EnvelopeCommand(false));\n// \t\taddSequential(new AutoDriveUltraSonicBackwardCommand(-.7, 35));\n// \t\taddSequential(new VisionGearTargetCommand(\"targets\"),0.5);\n// \t\taddSequential(new TargetGearSortCommand(),0.5);\n// \t\taddSequential(new AutoTurnCommand());\n// \t\taddParallel(new EnvelopeCommand(true));\n// \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n// \t\taddSequential(new WaitCommand(2));\n// \t}else{\n// \t\n// \t}\n }", "public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }", "private void actionChangedEstimatorSettingsManual ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t}", "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 }", "protected void initialize() {\n \tif (temp.equalsIgnoreCase(\"RRR\")) {\n\t\t\tauto = AutoSelect.RightRightRight;\n\t\t}else if (temp.equalsIgnoreCase(\"RRL\")) {\n\t\t\tauto = AutoSelect.RightRightLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"RLR\")) {\n\t\t\tauto = AutoSelect.RightLeftRight;\n\t\t}else if (temp.equalsIgnoreCase(\"RLL\")) {\n\t\t\tauto = AutoSelect.RightLeftLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"LRR\")) {\n\t\t\tauto = AutoSelect.LeftRightRight;\n\t\t}else if (temp.equalsIgnoreCase(\"LRL\")) {\n\t\t\tauto = AutoSelect.LeftRightLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"LLR\")) {\n\t\t\tauto = AutoSelect.LeftLeftRight;\n\t\t}else {\n\t\t\tauto = AutoSelect.LeftLeftLeft;\n\t\t}\n \t\n \tDriverStation.reportError(\"------------------------------------------------\", false);\n \tDriverStation.reportError(\"-------------------AutonomousMid----------------\", false);\n \tDriverStation.reportError(\"------------------\" + auto + \"--------------\", false);\n \tDriverStation.reportError(\"------------------------------------------------\", false);\n }", "public void autonomous() {\n robot.drive(0.5); //Drives in a square\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n robot.drive(0.5);\n Timer.delay(0.5);\n robot.tankDrive(0.5, -0.5);\n Timer.delay(0.25);\n }", "void setMotorsMode(DcMotor.RunMode runMode);", "@Override\n public void runOpMode() {\n ringShooterMotor1 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor1\");\n ringShooterMotor2 = hardwareMap.get(DcMotorEx.class, \"ringShooterMotor2\");\n ringFeederServo = hardwareMap.get(Servo.class, \"ringFeederServo\");\n ringFeederServo.setPosition(0.6); // sets initial position of servo\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // runs until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n // here: add telemetry to see motor velocity if you want\n telemetry.addData(\"ring motor velocity\", ringShooterMotor1.getVelocity());\n telemetry.update();\n\n\n // Press right trigger for ring feeder servo\n if (gamepad2.right_trigger == 1) {\n// if (ringShooterMotor1.getVelocity() <= powerShootMotorVelocity){\n ringFeederServo.setPosition(1);\n sleep(300);\n ringFeederServo.setPosition(0.6);\n// }\n }\n\n // press Y for shooter motor for tower goal\n if (gamepad2.y) {\n ringShooterMotor1.setVelocity(towerGoalMotorVelocity);\n ringShooterMotor2.setVelocity(towerGoalMotorVelocity);\n\n }\n\n // press X for shooter motor for powershot\n if (gamepad2.x) {\n ringShooterMotor1.setVelocity(powerShootMotorVelocity);\n ringShooterMotor2.setVelocity(powerShootMotorVelocity);\n\n }\n }\n }", "public void robotInit() {\n RobotMap.init();\n driveTrain = new DriveTrain();\n oi = new OI();\n flippy = new Flipper();\n flappy = new Flapper();\n autonomousCommand = new AutoFlip();\n \n OI.init();\n CommandBase.init();\n autoChooser = new SendableChooser();\n autoChooser.addDefault(\"Flap Left\", new AutoFlip());\n SmartDashboard.putData(\"Autonomous_Mode\", autoChooser); \n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tswitch (m_autoSelected) {\n\t\t\tcase kCustomAuto:\n\t\t\t\t// Put custom auto code here\n\t\t\t\tbreak;\n\t\t\tcase kDefaultAuto:\n\t\t\tdefault:\n\t\t\t\t// Put default auto code here\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tswitch (m_autoSelected) {\n\t\t\tcase kCustomAuto:\n\t\t\t\t// Put custom auto code here\n\t\t\t\tbreak;\n\t\t\tcase kDefaultAuto:\n\t\t\tdefault:\n\t\t\t\t// Put default auto code here\n\t\t\t\tbreak;\n\t\t}\n\t}" ]
[ "0.69108605", "0.6875947", "0.6748199", "0.662725", "0.66085553", "0.65296865", "0.6484286", "0.6482721", "0.6420751", "0.63882685", "0.6360747", "0.63457465", "0.6341353", "0.63260144", "0.63260144", "0.63260144", "0.63260144", "0.6320272", "0.6299703", "0.6289783", "0.6287832", "0.6268987", "0.6265186", "0.6255441", "0.6216347", "0.6216347", "0.61951154", "0.61766934", "0.6137549", "0.6129865", "0.61208344", "0.6110339", "0.61074", "0.6104217", "0.60919195", "0.60857725", "0.60777235", "0.5997661", "0.5980754", "0.59642106", "0.59560466", "0.59071153", "0.5904613", "0.5888837", "0.58808434", "0.5880284", "0.58383447", "0.579035", "0.5733779", "0.5711664", "0.5710227", "0.56838363", "0.56779903", "0.56685174", "0.56498855", "0.56401557", "0.5635791", "0.5634852", "0.5630362", "0.56028074", "0.55951416", "0.55935895", "0.55822384", "0.5563288", "0.5563288", "0.5563288", "0.5563288", "0.55627567", "0.5545784", "0.5545141", "0.5529102", "0.5525649", "0.55135983", "0.5502579", "0.54916483", "0.54869413", "0.5480543", "0.5473441", "0.5460016", "0.54551315", "0.5435826", "0.543047", "0.5418493", "0.54126453", "0.5399828", "0.53940725", "0.53922623", "0.53899443", "0.53749174", "0.53726363", "0.5369573", "0.5360474", "0.53534305", "0.5349631", "0.53492403", "0.5344529", "0.5339939", "0.5337318", "0.53360033", "0.53360033" ]
0.5387082
88
This function is called periodically during autonomous
@Override public void autonomousPeriodic() { SmartDashboard.putNumber("Left Speed", Robot.driveSubsystem.getLeftSpeed()); SmartDashboard.putNumber("Right Speed", Robot.driveSubsystem.getRightSpeed()); Scheduler.getInstance().run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n drive.updateAuto();\n sensor.updateAuto();\n }", "public void autonomousPeriodic() {\n \n }", "public void autonomousPeriodic() {\n \tauto.autonomousPeriodic();\n\t}", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public void autonomousPeriodic() {\r\n \r\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "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 public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tSmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tvisionNetworkTable.getGearData();\n\t\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\t\n\t\tupdateLedState();\n\t\t//visionNetworkTable.getHighData();\n\t}", "public void autonomousPeriodic() {\n if (m_apFirstRun) {\n System.out.println(\"Default autonomousPeriodic() method... Override me!\");\n m_apFirstRun = false;\n }\n }", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Override\npublic void autonomousPeriodic() {\n\n}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tif (state == \"auton\") {\n\t\t\tlastState = \"auton\";\n\t\t}\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putNumber(\"Left encoder\", Actuators.getLeftDriveMotor().getEncPosition());\n\t\tSmartDashboard.putNumber(\"Right encoder\", Actuators.getRightDriveMotor().getEncPosition());\n\t\tSmartDashboard.putNumber(\"Left speed\", Actuators.getLeftDriveMotor().get());\n\t\tSmartDashboard.putNumber(\"Right speed\", Actuators.getRightDriveMotor().get());\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() //runs the autonomous mode, repeating every 20ms\n\t{\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n\t\tdriveExecutor.execute(); //running the execute() method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void periodic() {\n UpdateDashboard();\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 }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "@Override\n\tpublic void robotPeriodic() {\n\t}", "@Override\n\tpublic void robotPeriodic() {\n\t}", "public void teleopPeriodic() {\n\t\t// resetAndDisable();\n\t\tupdateDashboard();\n\t\tLogitechJoystick.controllers();\n\t\tDrivetrain.arcadeDrive();\n\t\tShooterAngleMotor.angleShooter();\n\t\tBallShooter.shootBalls();\n\t\tSonicSensor.updateSensors();\n\t\t\n\t\t//if(LogitechJoystick.rightBumper2)\n\t\t\t//{\n\t\t\t\t//LowBar.makeArmStable();\n\t\t\t//}\n\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }", "public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }", "@Override\n public void 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 }", "public void updatePeriodic() {\r\n }", "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 }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }" ]
[ "0.8242393", "0.8238804", "0.8235853", "0.8235853", "0.8235853", "0.820495", "0.8199907", "0.8194021", "0.8194021", "0.8177311", "0.8151588", "0.8147766", "0.81250346", "0.81250346", "0.80807847", "0.8016792", "0.8016792", "0.79744554", "0.79655135", "0.7948241", "0.7948241", "0.7948241", "0.7948241", "0.7948241", "0.7948241", "0.7943544", "0.79032373", "0.78828543", "0.77641433", "0.77600986", "0.7759355", "0.77590984", "0.77569574", "0.7660986", "0.7649747", "0.76439685", "0.76273406", "0.7605097", "0.7603722", "0.758448", "0.75753826", "0.7555205", "0.7555205", "0.7555205", "0.7555205", "0.7537244", "0.75159377", "0.75070035", "0.75070035", "0.75070035", "0.75070035", "0.75070035", "0.75070035", "0.74829936", "0.7457939", "0.7456864", "0.74545246", "0.743304", "0.7385487", "0.7385487", "0.7343646", "0.7335342", "0.72733426", "0.72733426", "0.7264387", "0.72604746", "0.72574127", "0.7238183", "0.722407", "0.7209448", "0.7209448", "0.7209448", "0.7209448", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939", "0.7169939" ]
0.72546506
67
This function is called periodically during operator control
@Override public void teleopPeriodic() { Robot.intakeSubsystem._getSpeed(); Robot.driveSubsystem.operatorOverride(); Scheduler.getInstance().run(); TargetRegion boilerTarget = Robot.navigator.getBoilerTarget(); if (boilerTarget != null) { SmartDashboard.putNumber("Target Center X", boilerTarget.m_centerTop); SmartDashboard.putNumber("Target Center Y", boilerTarget.m_bounds.m_top); } else { SmartDashboard.putNumber("Target Center X", -1); SmartDashboard.putNumber("Target Center Y", -1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void teleopPeriodic() {\n \t\n \twhile (isOperatorControl() && isEnabled()) {\n \t\tdebug();\n \t\tsmartDashboardVariables();\n \t\t//driver control functions\n \t\tdriverControl();\n \t//state machine\n \tterrainStates();\n \t//this function always comes last\n \t//armSlack();\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n \tTimer.delay(0.005);\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n// if (oi.driveStick.getRawButton(4)) {\n// System.out.println(\"Left Encoder Distance: \" + RobotMap.leftDriveEncoder.getDistance());\n// System.out.println(\"RightEncoder Distance: \" + RobotMap.rightDriveEncoder.getDistance());\n// }\n\n }", "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "public void operatorControl() {\n myRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tmyRobot.tankDrive(controller, 2, controller, 5);\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n }", "@Override\n public void teleopPeriodic() {\n try {\n mDriveController.update();\n mOperatorController.update();\n driverControl();\n \n } catch (Throwable t) {\n CrashTracker.logThrowableCrash(t);\n throw t;\n }\n \n }", "@Override\n public void teleopPeriodic() {\n }", "@Override\n public void teleopPeriodic() {\n }", "public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\r\n }", "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }", "public void operatorControl() {\n \tmyRobot.setSafetyEnabled(true);\n while (isOperatorControl() && isEnabled()) {\n \tdouble x = stick2.getRawAxis(0);\n \tdouble y = stick2.getRawAxis(1);\n \tdouble rot = stick.getRawAxis(0);\n \tSmartDashboard.putNumber(\"x1\", x);\n SmartDashboard.putNumber(\"y1\", y);\n SmartDashboard.putNumber(\"rot1\", rot);\n \tif(Math.abs(x) < .2)\n \t\tx = 0;\n \tif(Math.abs(y) < .2)\n \t\ty = 0;\n \tif(Math.abs(rot) < .2)\n \t\trot = 0;\n \tmyRobot.mecanumDrive_Cartesian(x*-1, y*-1,rot*-1, gyro.getAngle());\n double current1 = pdp.getCurrent(0);\n double current2 = pdp.getCurrent(13);\n double current3 = pdp.getCurrent(15);\n double current4 = pdp.getCurrent(12);\n SmartDashboard.putNumber(\"Front Left current\", current1);\n SmartDashboard.putNumber(\"back Left current\", current2);\n SmartDashboard.putNumber(\"Front right current\", current3);\n SmartDashboard.putNumber(\"back right current\", current4);\n SmartDashboard.putNumber(\"x\", x);\n SmartDashboard.putNumber(\"y\", y);\n SmartDashboard.putNumber(\"rot\", rot);\n SmartDashboard.putNumber(\"Gyro\", gyro.getAngle());\n \tTimer.delay(0.005);\t\t// wait for a motor update time\n }\n }", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}", "public void teleopPeriodic() {\n \tteleop.teleopPeriodic();\n }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "public void teleopPeriodic() {\n driverScreen.updateLCD();\n }", "@Override\n public void teleopPeriodic() {\n teleop.periodic();\n toggleCompressor = toggleCompressor ^ robot.compressorToggle.get();\n robot.runCompressor.set(toggleCompressor);\n Watcher.update();\n\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "public void updatePeriodic() {\r\n }", "public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "@Override\n public void teleopPeriodic() {\n // drive.DrivePeriodic();\n controllerMap.controllerMapPeriodic();\n // intake.IntakePeriodic();\n // climb.ClimbPeriodic();\n\n }", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\n\t\tif (oi.getRightTrig()) {\n\t\t\tshifter.set(Value.kForward);\n\t\t} else if (oi.getLeftTrig()) {\n\t\t\tshifter.set(Value.kReverse);\n\t\t}\n\t\tSystem.out.println(shifter.get());\n\t\t\t\n\t\tif(oi.getClimber()){\n\t\t\tclimber.set(1.0);\n\t\t\tSystem.out.println(\"climber running\");\n\t\t}else {\n\t\t\tclimber.set(0);\n\t\t\tSystem.out.println(\"climber not running\");\n\t\t}\n\t}", "@Override\n public void autonomousPeriodic() {\n \n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n\tpublic void robotPeriodic() {\n\t}", "@Override\n\tpublic void robotPeriodic() {\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void robotPeriodic() {\n\n enabledCompr = pressBoy.enabled();\n //pressureSwitch = pressBoy.getPressureSwitchValue();\n currentCompr = pressBoy.getCompressorCurrent();\n //SmartDashboard.putBoolean(\"Pneumatics Loop Enable\", closedLoopCont);\n SmartDashboard.putBoolean(\"Compressor Status\", enabledCompr);\n //SmartDashboard.putBoolean(\"Pressure Switch\", pressureSwitch);\n SmartDashboard.putNumber(\"Compressor Current\", currentCompr);\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\r\n public void periodic() {\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putBoolean(\"Max Intake Extension: \", RobotMap.intakeLifted.get());\n\t\tSmartDashboard.putBoolean(\"Max Lift Extension:\", RobotMap.isAtTop.get());\n\t\tSmartDashboard.putBoolean(\"Min Lift Extension:\", RobotMap.isAtBottom.get());\n\t\tDriveTrain.driveWithJoystick(RobotMap.stick, RobotMap.rd); // Drive\n\t\tTeleOp.RaiseLift(RobotMap.liftTalon, RobotMap.controller); // Raise lift\n\t\tif(RobotMap.controller.getRawAxis(RobotMap.lowerLiftAxis) >= 0.2) {\n\t\tTeleOp.LowerLift(RobotMap.liftTalon, RobotMap.controller);\n\t\t}\n\t\tTeleOp.DropIntake(RobotMap.controller, RobotMap.intakeLifter);\n\t\tTeleOp.spinOut(RobotMap.intakeVictorLeft, RobotMap.controller);\n\t\t//TeleOp.spinnySpinny(RobotMap.intakeVictorLeft, RobotMap.stick);\n\t}", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tupdate();\n\t\t\n\t\t//dashboard outputs\n\t\tdashboardOutput();\n\t\t\n\t\t\n\t\t\n\t\tif (tankDriveBool) {\n\t\t\ttankDrive();\n\t\t} \n\t\telse {\n\t\t\ttankDrive();\n\t\t}\n\t\tif (buttonA) {\n\t\t\ttest = true;\n\t\t\twhile (test) {\n\t\t\t\tcalibrate(10);\n\t\t\t\ttest = false;\n\t\t\t}\n\t\t}\n\t\tif (buttonY) {\n\t\t\tclimbMode = !climbMode;\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kRightRumble, 0.5);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kLeftRumble, 0.5);\n\t\t\tTimer.delay(0.5);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kRightRumble, 0);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kLeftRumble, 0);\n\t\t}\n\t\tverticalMovement();\n\t\tgrab();\n\t}", "public void teleopPeriodic() {\n\t\t// resetAndDisable();\n\t\tupdateDashboard();\n\t\tLogitechJoystick.controllers();\n\t\tDrivetrain.arcadeDrive();\n\t\tShooterAngleMotor.angleShooter();\n\t\tBallShooter.shootBalls();\n\t\tSonicSensor.updateSensors();\n\t\t\n\t\t//if(LogitechJoystick.rightBumper2)\n\t\t\t//{\n\t\t\t\t//LowBar.makeArmStable();\n\t\t\t//}\n\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n\tpublic void periodic()\n\t{\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }" ]
[ "0.7665666", "0.73227316", "0.7286976", "0.72593725", "0.7255314", "0.71488637", "0.71488637", "0.71138996", "0.7093574", "0.7090445", "0.70560575", "0.7046668", "0.704289", "0.7039102", "0.7032054", "0.7023366", "0.6963418", "0.69623876", "0.69429386", "0.69309705", "0.69309705", "0.69309705", "0.69309705", "0.69309705", "0.69309705", "0.6899386", "0.68936527", "0.6882646", "0.68753546", "0.687443", "0.6872987", "0.68692183", "0.6860374", "0.68447095", "0.6841578", "0.6841578", "0.6831749", "0.68232137", "0.68232137", "0.6814693", "0.6814693", "0.6814693", "0.6814693", "0.67941135", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.677258", "0.67706984", "0.67706984", "0.67706984", "0.6768479", "0.6764131", "0.6764131", "0.6764131", "0.6764131", "0.6757807", "0.67566633", "0.67341703", "0.67341703", "0.67341703", "0.67252094", "0.6721157", "0.67074573", "0.6701728", "0.66846615", "0.66846615", "0.66846615", "0.6682299", "0.6671709" ]
0.0
-1
This function is called periodically during test mode
@Override public void testPeriodic() { LiveWindow.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void testPeriodic()\n {\n \n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n\n LiveWindow.updateValues();\n }", "@Override\n\tpublic void testPeriodic() {\n\n\t}", "public void testPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void testPeriodic() {\n\t\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\t\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\t\n\t}", "public void testPeriodic() {\n\t\tLiveWindow.run();\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\tLiveWindow.run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t\tbeginPeriodic();\n\t\t//LiveWindow.run();\n\t\tendPeriodic();\n\t}", "@Override\r\n\tpublic void sssDoLwTestPeriodic() {\n\r\n\t}", "@Override\n\tpublic void testPeriodic() {}", "public void testPeriodic() {\n \n }", "public void testPeriodic() {\n \n }", "public void testPeriodic() {\n \n }", "public void testPeriodic() {\n\n\t}", "public void testPeriodic() {\n\t}", "@Override\n public void testPeriodic() {\n //Diagnostics.writeString(\"State\", \"TEST\");\n }", "public void testPeriodic() {\r\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n }", "public void testPeriodic() {\n LiveWindow.run();\n //init.start();\n }", "public void testPeriodic() {\r\n \r\n }", "public void testPeriodic() {\r\n \r\n }", "protected void runEachSecond() {\n \n }", "@Override\n public void testPeriodic() {\n CommandScheduler.getInstance().run();\n\n SmartDashboard.putNumber(\"XCOUNT\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n\n }", "public void testPeriodic() \n {\n LiveWindow.run();\n }", "public void testPeriodic() {\n \t\n }", "public void testPeriodic() {\n \tterrainStates();\n \tdebug();\n }", "@Test\n public void testTimelyTest() {\n }", "public void testPeriodic() {\r\n \r\n }", "@SuppressWarnings(\"PMD.JUnit4TestShouldUseTestAnnotation\")\n public void testPeriodic() {\n if (m_tmpFirstRun) {\n System.out.println(\"Default testPeriodic() method... Override me!\");\n m_tmpFirstRun = false;\n }\n }", "protected void runEachMinute() {\n \n }", "@Test\n public void refresh() throws Exception {\n }", "@Override\r\n public void runTests() {\r\n getTemperature();\r\n }", "@Override\n public void simulationPeriodic() {\n }", "public void demoSchduleMethod() {\n log.info(\"Method executed at every 5 seconds. Current time is :: \" + new Date());\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Before\r\n\tpublic void doThisEveryTime() {\n\t}", "@Override\n public void simulationPeriodic() {\n }", "public void run() {\n\n long now = System.currentTimeMillis();\n //System.out.println(\"1: \" + this.getClass().getName() + \"#\" + id + \", \" + (System.currentTimeMillis()) + \" ms\");\n try {\n\n test.setUp();\n this.testReport = new TestReport(id, this.getClass().getName());\n while (alive.get()) {\n test.test(this.id);\n counter.incrementAndGet();\n }\n //long stop = System.currentTimeMillis();\n //System.out.println(\"2: \" + this.getClass().getName() + \"#\" + id + \", \" + stop + \" \" + (stop - now) + \" ms\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n test.tearDown();\n this.testReport.stopTimers();\n //testReport.printInfo();\n } catch (Exception e) {\n // ignore errors in tearDown for now\n }\n }\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void run() {\n\t\t\t \t \n\t\t\t \t test.load2();\n\t\t\t \t //System.out.println(\"heart beat report\"+System.currentTimeMillis());\n\t\t\t }", "public void _testSandbox() throws InterruptedException{\n Thread.sleep(500000);\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "public void run() {\n\t\t\t \t \n\t\t\t \t test.load1();\n\t\t\t \t //System.out.println(\"heart beat report\"+System.currentTimeMillis());\n\t\t\t }", "protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n\tpublic void testPeriodic(IRobot robot) {\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "protected void runEachHour() {\n \n }", "protected void runAfterTest() {}", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\ttimer = new Timer();\r\n\t\ttimer.schedule(new TimerTask() {\r\n\t\t\t@Override\r\n public void run() {\r\n Main.myIntegratedSensorSuite.reinitializeRainData();\r\n }\r\n\t\t}, 0, 20000); //runs once initially then again every 20 seconds\r\n\t}", "@Override\r\n\tpublic void perSecond() {\n\r\n\t}", "private void stressTest() {\n\t\t\n\t\tTimerTask task = new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tint count = 1;\n\t\t\t\tint len = 100;\n\t\t\t\tint maxCount = 1000000;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Start stress test...\");\n\t\t\t\twhile (count <= maxCount) {\n\t\t\t\t\t\n\t\t\t\t\tif ((count % 1000) == 0) {\n\t\t\t\t\t\tSystem.out.println(\"Count: \" + count + \" of \" + maxCount);\n\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong larray[] = new long[len];\n\t\t\t\t\t\n\t\t\t\t\tlarray[0] = count;\n\t\t\t\t\tlarray[len-1] = count;\n\t\t\t\t\t\n\t\t\t\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\t\t\t\tmessage.setPayload(larray);\n\t\t\t\t\tsend(message);\n\n\t\t\t\t\t\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tThread.sleep(25);\n//\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t}\n\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Done.\");\n\n\t\t\t}\n\n\t\t};\n\n\t\tTimer timer = new Timer();\n\t\t// one time schedule\n\t\ttimer.schedule(task, 2000L);\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }", "@Override\n public void periodic() {\n }" ]
[ "0.7800467", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.75683486", "0.7513078", "0.7469104", "0.7374911", "0.73407346", "0.7327271", "0.73171455", "0.73171455", "0.7293993", "0.7293993", "0.72778416", "0.72312987", "0.7207229", "0.720396", "0.71983147", "0.716904", "0.716904", "0.716904", "0.713752", "0.7127215", "0.7124398", "0.71158797", "0.71142244", "0.71142244", "0.71142244", "0.71142244", "0.71142244", "0.71142244", "0.71142244", "0.71142244", "0.71140385", "0.7108927", "0.7108927", "0.7086685", "0.6976778", "0.6969408", "0.6967512", "0.6930725", "0.68409485", "0.67182064", "0.6617569", "0.6584265", "0.65554386", "0.65530086", "0.65268195", "0.64798206", "0.6477171", "0.6472228", "0.6443787", "0.6429172", "0.6394023", "0.63703555", "0.6364299", "0.63590497", "0.634407", "0.63261676", "0.63225466", "0.6301144", "0.6301144", "0.62885046", "0.6285774", "0.6285774", "0.6285774", "0.62847394", "0.6282452", "0.62705654", "0.6259278", "0.62195456", "0.6217139", "0.62130535", "0.6211397", "0.6197089", "0.61921287", "0.6189988", "0.6189988", "0.6189988", "0.6189988", "0.6185031", "0.6179041", "0.6179041", "0.6179041", "0.6179041", "0.6179041", "0.6179041", "0.6179041", "0.6179041", "0.6179041" ]
0.7364876
17
Created by Sebastian on 20161129.
public interface PageContentAnalyzer { Stream<PageAddress.Builder> analyze(Document document); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void m50366E() {\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}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "public void method_4270() {}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void gored() {\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\tpublic void init() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\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 }", "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 void init() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public abstract void mo70713b();", "private Rekenhulp()\n\t{\n\t}", "@Override\n void init() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo4359a() {\n }", "@Override\n public void init() {}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void strin() {\n\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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo6081a() {\n }", "protected void mo6255a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public void m23075a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "public abstract void mo56925d();", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "Consumable() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.5736074", "0.57279754", "0.5659515", "0.56530464", "0.56440425", "0.5610975", "0.558224", "0.5582022", "0.55091745", "0.54830045", "0.54741514", "0.54741514", "0.54258555", "0.5425766", "0.54227114", "0.5417308", "0.54164875", "0.54125977", "0.540399", "0.54032695", "0.5400621", "0.5400176", "0.53587174", "0.53587174", "0.5357112", "0.53552884", "0.53552884", "0.53552884", "0.53552884", "0.53552884", "0.53517497", "0.5343646", "0.5338724", "0.53385097", "0.5325766", "0.53249294", "0.5317904", "0.5292227", "0.5292227", "0.5292227", "0.5292227", "0.5292227", "0.5292227", "0.5290966", "0.5290966", "0.5290966", "0.5290966", "0.5290966", "0.5290966", "0.5290966", "0.52852523", "0.52770066", "0.52762663", "0.5275799", "0.527343", "0.5270994", "0.52654195", "0.52651435", "0.52602", "0.52509224", "0.5246131", "0.5242599", "0.523991", "0.52397054", "0.52345026", "0.5234492", "0.5222938", "0.5221325", "0.51979905", "0.51979905", "0.51979905", "0.5192914", "0.51915497", "0.51915497", "0.51915497", "0.5188881", "0.5188881", "0.5188881", "0.5188314", "0.51806915", "0.5176115", "0.516729", "0.5163523", "0.51630104", "0.5162903", "0.5155882", "0.5153833", "0.5148902", "0.5148902", "0.5146247", "0.5146247", "0.51457757", "0.5141488", "0.5139028", "0.5138634", "0.51381344", "0.5136458", "0.5136454", "0.513577", "0.51351386", "0.51351386" ]
0.0
-1
define class required for all java programs
public static void main(String[] args) { Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input System.out.println("Enter in 15 student grades.");//prompt user to enter 15 grades int[] Grades = new int[15];//create single dimensional array int grade1 = 0;//start at zero int grade2 = 0;//start at zero for(int i = 0; i<15; i++){//begin outer for loop Boolean isGood = false;//declare boolean do{ Grades[i] = input.nextInt();//the grade is equal to the integer entered by the user while(Grades[i]>100){//condition mmust be satisfied or will print error System.out.println("The Integer you input was over 100!"); Grades[i] = input.nextInt();//Prompt again for user input } while(Grades[i]<0){//condition mmust be satisfied or will print error System.out.println("The Integer you input was under 0!"); Grades[i] = input.nextInt();//Prompt again for user input }if(i != 0){ while(Grades[i]<= Grades[i-1]){//condition mmust be satisfied or will print error System.out.println("The Integer you input was not greater than the last!"); Grades[i] = input.nextInt();//Prompt again for user input } }else{ isGood = true; } }while(Grades[i]>100 || Grades[i]<0 && isGood);//begin while loop for set conditions } for(int x = 0; x<15; x++){ System.out.print(Grades[x] + " "); } System.out.println("Enter a grade to search for"); grade1 = input.nextInt();//Enter the grade you are searching for BinarySearch(Grades, grade1); System.out.println("Scrambled");//notify when the array has been scrambled if(ScrambleArray(Grades)){ System.out.println("Scrambled"); } System.out.println("Enter a grade to search for"); grade2 = input.nextInt();//Enter the grade you are searching for int indexForLinear = LinearSearch(Grades, grade2); if(indexForLinear == -1){ System.out.println(grade2 + " was not found in " + indexForLinear + " iterations");//print number of iterations it took } if(indexForLinear != -1){ System.out.println(grade2 + " was found in " + indexForLinear + " iterations");//print number of iterations it took } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMainClass(IJavaClassFile value);", "private ClassUtil() {}", "public IJavaClassFile getMainClass();", "private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy parse trees to\n \t// refer to basic Cool classes. There's no need for method\n \t// bodies -- these are already built into the runtime system.\n \n \t// IMPORTANT: The results of the following expressions are\n \t// stored in local variables. You will want to do something\n \t// with those variables at the end of this method to make this\n \t// code meaningful.\n \n \t// The Object class has no parent class. Its methods are\n \t// cool_abort() : Object aborts the program\n \t// type_name() : Str returns a string representation \n \t// of class name\n \t// copy() : SELF_TYPE returns a copy of the object\n \n \tclass_c Object_class = \n \t new class_c(0, \n \t\t TreeConstants.Object_, \n \t\t TreeConstants.No_class,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0, \n \t\t\t\t\t TreeConstants.cool_abort, \n \t\t\t\t\t new Formals(0), \n \t\t\t\t\t TreeConstants.Object_, \n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.type_name,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.copy,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \t\n \t// The IO class inherits from Object. Its methods are\n \t// out_string(Str) : SELF_TYPE writes a string to the output\n \t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n \t// in_string() : Str reads a string from the input\n \t// in_int() : Int \" an int \" \" \"\n \n \tclass_c IO_class = \n \t new class_c(0,\n \t\t TreeConstants.IO,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_string,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_int,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_string,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_int,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The Int class has no methods and only a single attribute, the\n \t// \"val\" for the integer.\n \n \tclass_c Int_class = \n \t new class_c(0,\n \t\t TreeConstants.Int,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// Bool also has only the \"val\" slot.\n \tclass_c Bool_class = \n \t new class_c(0,\n \t\t TreeConstants.Bool,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The class Str has a number of slots and operations:\n \t// val the length of the string\n \t// str_field the string itself\n \t// length() : Int returns length of the string\n \t// concat(arg: Str) : Str performs string concatenation\n \t// substr(arg: Int, arg2: Int): Str substring selection\n \n \tclass_c Str_class =\n \t new class_c(0,\n \t\t TreeConstants.Str,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.str_field,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.length,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.concat,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg, \n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.substr,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int))\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg2,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t/* Do somethind with Object_class, IO_class, Int_class,\n Bool_class, and Str_class here */\n nameToClass.put(TreeConstants.Object_.getString(), Object_class);\n nameToClass.put(TreeConstants.IO.getString(), IO_class);\n nameToClass.put(TreeConstants.Int.getString(), Int_class);\n nameToClass.put(TreeConstants.Bool.getString(), Bool_class);\n nameToClass.put(TreeConstants.Str.getString(), Str_class);\n adjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.IO.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Int.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Bool.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Str.getString(), new ArrayList<String>() );\n // Do the same for other basic classes\n basicClassList = new Classes(0);\n basicClassList.appendElement(Object_class);\n basicClassList.appendElement(IO_class);\n basicClassList.appendElement(Int_class);\n basicClassList.appendElement(Bool_class);\n basicClassList.appendElement(Str_class);\n \n }", "String mainClass();", "public static void main(String[] args) {\n\t\tPublicClass p = new PublicClass();\n\t\tp.add();\n\t\tSystem.out.println(\"Hello Java 2\");\n\n\t}", "public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "private JadTool() { }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"add new class\");\n\n\t}", "LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void processClass(String classType ) {\n\t\tif ( classType.equals(\"CommandLineTool\") ) {\n\t\t\t\tCOMMAND_LINE_TOOL = new CommandLineTool();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n }", "public static void main(String[] args) throws IOException {\n\t\t// creating local class objects \n\t\t\n\t}", "private JacobUtils() {}", "public static void main(String[] args) throws ClassNotFoundException {\n\t\tClass cc = Class.forName(\"JUnit.Test\");\n\t\tnew Test();\n\t\t//Test test = null;//\n\t\t//new Test();\n\t\t//ClassLoadTest t = new ClassLoadTest();\n\t}", "String getMainClass();", "public static void main(String[] arg) throws IOException, SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException{\n\t}", "public DefaultJvmLauncher()\n {\n }", "void compileToJava();", "private Class<?> defineClass(String paramString, URL paramURL) throws IOException {\n/* 364 */ byte[] arrayOfByte = getBytes(paramURL);\n/* 365 */ CodeSource codeSource = new CodeSource(null, (Certificate[])null);\n/* 366 */ if (!paramString.equals(\"sun.reflect.misc.Trampoline\")) {\n/* 367 */ throw new IOException(\"MethodUtil: bad name \" + paramString);\n/* */ }\n/* 369 */ return defineClass(paramString, arrayOfByte, 0, arrayOfByte.length, codeSource);\n/* */ }", "private Main() {}", "public void initializeClass();", "private RubyClass defineClassIfAllowed(String name, RubyClass superClass) {\n if (superClass != null && profile.allowClass(name)) {\n return defineClass(name, superClass, superClass.getAllocator());\n }\n return null;\n }", "Object getClass_();", "Object getClass_();", "public static void main(String[] args) throws ClassNotFoundException, IOException, ParseException {\n\t\tEntryPoint entry= new EntryPoint();\n\t\t\t\n\t entry.mainMenu();\n\t\t\n\t\t\n\t}", "west.twouse.language.sparqlas.Class getClass_();", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tIOUtils.loadMethodIODeps(\"cb\");\n\t\t\n\t\tFile clazz = new File(args[0]);\n\n\t\tfinal ClassReader cr1 = new ClassReader(new FileInputStream(clazz));\n//\t\tPrintWriter pw = new PrintWriter(new FileWriter(\"z.txt\"));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t/*ClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_FRAMES) {\n\t\t\t@Override\n\t\t\tprotected String getCommonSuperClass(String type1, String type2) {\n\t\t\t\ttry {\n\t\t\t\t\treturn super.getCommonSuperClass(type1, type2);\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t//\t\t\t\t\tSystem.err.println(\"err btwn \" + type1 + \" \" +type2);\n\t\t\t\t\treturn \"java/lang/Unknown\";\n\t\t\t\t}\n\t\t\t}\n\t\t};*/\n\t\t\n\t\tClassWriter cw1 = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n\t\t\n\t\tcr1.accept(new ClassVisitor(Opcodes.ASM5, cw1) {\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn new JSRInlinerAdapter(super.visitMethod(access, name, desc, signature, exceptions), access, name, desc, signature, exceptions);\n\t\t\t}\n\t\t}, ClassReader.EXPAND_FRAMES);\n\t\t\n\t\tfinal ClassReader cr = new ClassReader(cw1.toByteArray());\n\t\tTraceClassVisitor tcv = new TraceClassVisitor(null,new Textifier(),pw);\n\t\t//ClassWriter tcv = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);\n\t\tClassVisitor cv = new ClassVisitor(Opcodes.ASM5, tcv) {\n\t\t\tString className;\n\n\t\t\t@Override\n\t\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n\t\t\t\tsuper.visit(version, access, name, signature, superName, interfaces);\n\t\t\t\tthis.className = name;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcr.accept(cv, ClassReader.EXPAND_FRAMES);\n\t\tpw.flush();\n\t}", "public void testWeaveJavaxClassesNo() { runTest(\"weave javax classes - no\");}", "public static void main(String[] args) throws ClassNotFoundException {\n Class.forName(\"Mgr01\");\n }", "public synchronized void defineClass(String fullClassName, byte[] bytes)\r\n {\r\n try\r\n {\r\n defineClass(fullClassName, bytes, 0, bytes.length);\r\n }\r\n finally\r\n {\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\n\t\t// get path to rt.jar file\n\t\tString rtPath = args[0];\n\t\tFile rtFile = new File(rtPath);\n\t\tif (!rtFile.isFile()) {\n\t\t\tSystem.err.println(\"File not found: \" + rtFile.getAbsolutePath());\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t// load all classes from rt.jar file into memory\n\t\tClasspathLoader loader = LoaderBuilder.create().forClassLoader(\"Runtime\").buildClasspathLoader();\n\t\tClasspath classpath = loader.load(Collections.singletonList(rtFile));\n\t\tJarFile jarFile = classpath.getJarFiles().get(0);\n\t\tList<ClassDef> classDefs = jarFile.getClassDefs();\n\n\t\t// list of packages which will be added to resource file\n\t\tList<String> includedPackageNames = Arrays.asList(\n\t\t\t\t\"com.sun.net.httpserver\", \"com.sun.xml.internal.ws.addressing\",\n\t\t\t\t\"java.applet\", \"java.awt\", \"java.beans\", \"java.io\", \"java.lang\", \"java.math\", \"java.net\", \"java.nio\", \"java.rmi\", \"java.security\", \"java.sql\", \"java.text\", \"java.time\", \"java.util\",\n\t\t\t\t\"javax.activation\", \"javax.annotation\", \"javax.imageio\", \"javax.jws\", \"javax.management\", \"javax.naming\", \"javax.net\", \"javax.script\", \"javax.security.auth\", \"javax.sql\", \"javax.transaction\", \"javax.xml\",\n\t\t\t\t\"org.w3c.dom\", \"org.xml.sax\",\n\t\t\t\t\"sun.misc\"\n\t\t);\n\n\t\t// split into included classes (class defs) and excluded classes (names)\n\t\tList<ClassDef> includedClassDefs = new ArrayList<>();\n\t\tList<String> excludedClassNames = new ArrayList<>();\n\t\tfor (ClassDef classDef : classDefs) {\n\t\t\tString className = classDef.getClassName();\n\t\t\tboolean include = includedPackageNames.stream().anyMatch(p -> className.startsWith(p + \".\"));\n\t\t\tif (include) {\n\t\t\t\tincludedClassDefs.add(classDef);\n\t\t\t} else {\n\t\t\t\texcludedClassNames.add(className);\n\t\t\t}\n\t\t}\n\n\t\t// open compressed output stream to test resource file\n\t\tString resourcePath = \"./src/test/resources/classes-oracle-jdk-1.8.0_144.dat.gz\";\n\t\tFile resourceFile = new File(resourcePath);\n\t\ttry (FileOutputStream fos = new FileOutputStream(resourceFile)) {\n\t\t\ttry (GZIPOutputStream zos = new GZIPOutputStream(fos)) {\n\t\t\t\ttry (DataOutputStream dos = new DataOutputStream(zos)) {\n\t\t\t\t\t// write list of included class definitions\n\t\t\t\t\tdos.writeInt(includedClassDefs.size());\n\t\t\t\t\tfor (ClassDef classDef : includedClassDefs) {\n\t\t\t\t\t\tClassDefUtils.write(classDef, dos);\n\t\t\t\t\t}\n\t\t\t\t\t// write list of excluded class names\n\t\t\t\t\tdos.writeInt(excludedClassNames.size());\n\t\t\t\t\tfor (String className : excludedClassNames) {\n\t\t\t\t\t\tdos.writeUTF(className);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Runtime file : \" + rtFile.getAbsolutePath());\n\t\tSystem.out.println(\"Total classes found: \" + classDefs.size());\n\t\tSystem.out.println(\"Included classes : \" + includedClassDefs.size());\n\t\tSystem.out.println(\"Excluded classes : \" + excludedClassNames.size());\n\t\tSystem.out.println(\"Resource file : \" + resourceFile.getAbsolutePath());\n\t\tSystem.out.println(\"Final file size : \" + FileUtils.formatFileSize(resourceFile.length()));\n\t}", "private Main() {\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "ClassMaker(String packageName, String className, String core, String toBeFluentized) throws IOException {\n this.className = className;\n this.packageName = packageName;\n this.core = core;\n this.toBeFluentized = toBeFluentized;\n }", "void initClasses() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all classes\n\t\tList<BdsNode> cdecls = BdsNodeWalker.findNodes(programUnit, ClassDeclaration.class, true, true);\n\t\tfor (BdsNode n : cdecls) {\n\t\t\tClassDeclaration cd = (ClassDeclaration) n;\n\t\t\tbdsvm.addType(cd.getType());\n\t\t}\n\t}", "public static void main(String[] args)\n\t{\n\t\tJavaClass jc=new JavaClass();\n\t\tjc.name=null;\n\t\tjc.id=0;\n\t\t//constructor\n\t\tJavaClass jc2=new JavaClass();\n\t\t//method\n\t\tJavaClass jc3=new JavaClass();\n\t\tjc3.intiailize();\n\t\t\n\t\t//anonymous object\n\t\tnew JavaClass().intiailize();\n\t\n\t\t//copy constructor\n\t\t\n\t\tJavaClass copyConstructor=new JavaClass(jc2);\n\t\tSystem.out.println(copyConstructor.name);\n\t\t\n\n\t}", "public static void main(String args[]) throws ClassNotFoundException, SQLException{\n }", "public void addAuxClass(IJavaClassFile newAuxClass);", "public boolean hasMainClass(IJavaClassFile mainClassToCheck);", "void setMainClass(Class<?> mainClass);", "JDefinedClass objectFactory();", "public static void main(String[] args) {\n\t\t\r\n\t\tClass<?> class1 = null;\r\n Class<?> class2 = null;\r\n Class<?> class3 = null;\r\n // 一般采用这种形式\r\n try {\r\n\t\t\tclass1 = Class.forName(\"net.xsoftlab.baike.TestReflect\");\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}\r\n// class2 = new TestReflect().getClass();\r\n// class3 = TestReflect.class;\r\n System.out.println(\"类名称 \" + class1.getName());\r\n System.out.println(\"类名称 \" + class2.getName());\r\n System.out.println(\"类名称 \" + class3.getName());\r\n\r\n}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t}", "java.lang.String getClass_();", "java.lang.String getClass_();", "public static void main(String[] args) throws NoSuchMethodException, SecurityException, InstantiationException,\r\n\t\t\tIllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException {\n\t}", "public static void main(String[] args) {\n if (args.length != 2 && args.length != 3) {\n System.out.println(\"wrong args\");\n return;\n }\n try {\n String name, filename;\n if (args.length == 3) {\n if (!\"-jar\".equals(args[0])) {\n System.out.println(\"wrong flag\");\n return;\n }\n\n name = args[1];\n filename = args[2].substring(0, args[2].indexOf(\".jar\"));\n } else {\n name = args[0];\n filename = args[1];\n }\n File root = new File(filename);\n Class<?> token = Class.forName(name);\n Implementor implementor = new Implementor();\n if (args.length == 3) {\n implementor.implementJar(token, new File(args[2]));\n } else {\n implementor.implement(token, root);\n }\n } catch (ClassNotFoundException e) {\n System.out.println(\"Class not found:(\");\n } catch (ImplerException e) {\n System.out.println(\"An error occured\");\n } catch (Exception e) {\n System.out.println(\"Something wrong\");\n }\n }", "@Override\n public Class getJavaClass() throws IOException, ClassNotFoundException {\n open();\n URL url;\n int p = path.lastIndexOf('/');\n int p2 = path.substring(0,p-1).lastIndexOf('/');\n\n File f = new File(path.substring(0,p2));\n url = f.toURI().toURL();\n URL[] urls = new URL[1];\n urls[0] = url;\n ClassLoader loader = new URLClassLoader(urls);\n\n String cls = path.substring(p2 + 1, path.lastIndexOf('.')).replace('/', '.');\n\n if (cfile.getParentFile().getParentFile().getName().equals(\"production\")) {\n cls = cls.substring(cls.lastIndexOf('.') + 1);\n }\n\n\n\n return loader.loadClass(cls);\n }", "public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{\n \n \"-out\", \"ausgabe.jar\",\n \"-mc\", \"inteco.Saukopf\",\n// \"-m manifest.mf \" \n// \"-v\",\n \"-l\",\n \"-lib\", \"CustJar.jar\", \"./asm.jar\", \"D:\\\\Development\\\\Java\\\\Componenten\\\\Hibernate\\\\hibernate-3.0.2\\\\hibernate-3.0\\\\lib\"\n // -mainclass\n };\n CustJar.main(args);\n\n \n }", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\r\n\t\tlaunch(args);\r\n\r\n\t}", "public static void loadClass(String name) {\n\n }", "protected void definePackage(String className) \n\t{\n int classIndex = className.lastIndexOf('.');\n\t\tString specTitle = null;\n\t\tString specVendor = null;\n\t\tString specVersion = null;\n String implTitle = null;\n String implVendor = null;\n String implVersion = null;\n String sealed = null;\n URL sealBase = null;\n\n\t\t/* Quick return if the class has no package */\n if (classIndex == -1)\n return;\n\n\t\t/* Or if the package has already been defined */\n String packageName = className.substring(0, classIndex);\n if (getPackage(packageName) != null)\n return;\n\n\t\t/* Read package information from the manifest, if any */\n if (m_manifest != null) \n {\n\t\t\tString sectionName = packageName.replace('.', '/') + \"/\";\n\t\t\tAttributes sectionAttributes = m_manifest.getAttributes(sectionName);\n\t\t\tAttributes mainAttributes = m_manifest.getMainAttributes();\n\t\t\t\n\t\t\tif (sectionAttributes != null)\n\t\t\t{\n\t\t\t\tspecTitle = sectionAttributes.getValue(Name.SPECIFICATION_TITLE);\n\t\t\t\tspecVendor = sectionAttributes.getValue(Name.SPECIFICATION_VENDOR);\n\t\t\t\tspecVersion = sectionAttributes.getValue(Name.SPECIFICATION_VERSION);\n\t\t\t\timplTitle = sectionAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n\t\t\t\timplVendor = sectionAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n\t\t\t\timplVersion = sectionAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n\t\t\t\tsealed = sectionAttributes.getValue(Name.SEALED);\n\t\t\t}\n\n\t\t\tif (mainAttributes != null)\n\t\t\t{\n\t\t\t\tif (specTitle == null)\n\t\t\t\t\tspecTitle = mainAttributes.getValue(Name.SPECIFICATION_TITLE);\n\n\t\t\t\tif (specVendor == null)\n\t\t\t\t\tspecVendor = mainAttributes.getValue(Name.SPECIFICATION_VENDOR);\n\n\t\t\t\tif (specVersion == null)\n\t\t\t\t\tspecVersion = mainAttributes.getValue(Name.SPECIFICATION_VERSION);\n\n\t\t\t\tif (implTitle == null)\n\t\t\t\t\timplTitle = mainAttributes.getValue(Name.IMPLEMENTATION_TITLE);\n\n\t\t\t\tif (implVendor == null)\n\t\t\t\t\timplVendor = mainAttributes.getValue(Name.IMPLEMENTATION_VENDOR);\n \n\t\t\t\tif (implVersion == null) \n\t\t\t\t\timplVersion = mainAttributes.getValue(Name.IMPLEMENTATION_VERSION);\n \n\t\t\t\tif (sealed == null) \n\t\t\t\t\tsealed = mainAttributes.getValue(Name.SEALED);\n }\n\t\t}\n\n\t\t/* If the package was defined as sealed then use the jar url for the base */\n\t\tif (sealed != null && sealed.equalsIgnoreCase(\"true\"))\n\t\t\tsealBase = m_url;\n\n\t\t/* finally define the package and return */\n\t\tdefinePackage(packageName, \n\t\t\t\t\t specTitle, specVersion, specVendor, \n\t\t\t\t\t implTitle, implVersion, implVendor, \n\t\t\t\t\t sealBase);\n\t}", "public Main() {}", "public boolean isClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public interface Program {\n\n\t/**\n\t * The name of the string class\n\t */\n\tpublic static final String STRING_CLASS = \"String\";\n\n\t/**\n\t * The name of the object class\n\t */\n\tpublic static final String OBJECT_CLASS = \"Object\";\n\n\t/**\n\t * Yields an unmodifiable view of all the methods and constructors that are part\n\t * of the program to analyze.\n\t * \n\t * @return the collection of method and constructors\n\t */\n\tCollection<MCodeMember> getAllCodeMembers();\n\n\t/**\n\t * Yields an unmodifiable view of all the methods and constructors that are part\n\t * of the program to analyze, excluding ones from the String and Object classes.\n\t * \n\t * @return the collection of method and constructors\n\t */\n\tCollection<MCodeMember> getAllSubmittedCodeMembers();\n}", "private void init() throws ClassNotFoundException{\n }", "public Main() {\r\n\t}", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public static void main(String[] args) {\n System.out.println(\"Class 1\");\n }", "protected void run(String classname, Vector args) throws BuildException {\r\n CommandlineJava cmdj = new CommandlineJava();\r\n cmdj.setClassname(classname);\r\n for (int i = 0; i < args.size(); i++) {\r\n cmdj.createArgument().setValue((String) args.elementAt(i));\r\n }\r\n run(cmdj);\r\n }", "private RunUtils() {\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"This is my class \");\n\t}", "public void testNewClassPathImplementation() throws Exception {\n\n\t\t// Create the source\n\t\tStringWriter buffer = new StringWriter();\n\t\tPrintWriter source = new PrintWriter(buffer);\n\t\tsource.println(\"package net.officefloor.test;\");\n\t\tsource.println(\"public class ExtraImpl extends \" + CLASS_LOADER_EXTRA_CLASS_NAME + \" {\");\n\t\tsource.println(\" public String getMessage() {\");\n\t\tsource.println(\" return \\\"TEST\\\";\");\n\t\tsource.println(\" }\");\n\t\tsource.println(\"}\");\n\t\tsource.flush();\n\n\t\t// Override compiler with extra class path\n\t\tURLClassLoader extraClassLoader = (URLClassLoader) createNewClassLoader();\n\t\tClassLoader classLoader = new URLClassLoader(extraClassLoader.getURLs()) {\n\t\t\t@Override\n\t\t\tpublic Class<?> loadClass(String name) throws ClassNotFoundException {\n\t\t\t\tif (OfficeFloorJavaCompilerImpl.class.getName().equals(name)) {\n\t\t\t\t\treturn OfficeFloorJavaCompilerImpl.class;\n\t\t\t\t} else {\n\t\t\t\t\treturn extraClassLoader.loadClass(name);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthis.compiler = OfficeFloorJavaCompiler.newInstance(getSourceContext(classLoader));\n\n\t\t// Compile the source\n\t\tJavaSource javaSource = this.compiler.addSource(\"net.officefloor.test.ExtraImpl\", buffer.toString());\n\t\tClass<?> clazz;\n\t\ttry {\n\t\t\tclazz = javaSource.compile();\n\t\t} catch (CompileError error) {\n\n\t\t\t// Maven + Java8 has class path issues in running Lombok\n\t\t\tif (!new ModulesJavaFacet().isSupported()) {\n\t\t\t\tSystem.err.println(\"KNOWN GOTCHA: \" + this.getClass().getSimpleName()\n\t\t\t\t\t\t+ \" new class path on Java8 with Maven is having Lombok issues\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Propagate failure\n\t\t\tthrow error;\n\t\t}\n\n\t\t// Ensure appropriate compile to extra class\n\t\tObject object = clazz.getConstructor().newInstance();\n\t\tassertEquals(\"Incorrect parent class from class path\", CLASS_LOADER_EXTRA_CLASS_NAME,\n\t\t\t\tobject.getClass().getSuperclass().getName());\n\t}", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "public static void main(String[] args) throws SQLException, ClassNotFoundException {\n }", "public Ruby() {}", "public static void\ninitClass()\n//\n////////////////////////////////////////////////////////////////////////\n{\n}", "private ProcessorUtils() { }", "Class createClass();", "public Main() {\n }", "public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "@Override\n public Object visitProgram(Program p) {\n\t //set our temporary class\n\t Object temp = super.visitProgram(p);\n\n\t //throw err if we see String or RunMain\n if (!globalSymTab.get(\"String\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have String as superclass\");\n }\n if (!globalSymTab.get(\"RunMain\").subclasses.isEmpty()) {\n errorMsg.error(p.pos, \"Cannot have RunMain as superclass\");\n }\n\n //check for cycles in all of the program's class decls\n for(ClassDecl decl : p.classDecls) {\n findCycles(decl.superLink , decl.name, globalSymTab.size() -1 );\n }\n\n return temp;\n }", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n MyClassLoader mcl = new MyClassLoader(\"myClassLoader1\");\n// // 根据全限定名加载,注意,这里调用loadClass方法\n// Class<?> clazz = mcl.loadClass(\"Student\");\n// Student student = (Student)clazz.newInstance();\n Object o = mcl.loadClass(\"Student\").newInstance();\n o.getClass().getMethod(\"shuchu\").invoke(o);\n// student.shuchu();\n// List<Integer> list = new ArrayList<>();\n// Object o = new Object();\n System.out.println(o.getClass().getClassLoader());\n// System.out.println(list.getClass().getClassLoader());\n// System.out.println(o.getClass().getClassLoader());\n byte[] allocation1, allocation2;\n allocation1 = new byte[30900 * 1024*2];\n allocation2 = new byte[900 * 1024*2];\n\n\n }", "private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}", "public static void main (String []args){\n }", "private SysUtils(){}", "public static void main(String[] args) {\n\n Date date;\n //if we want to import java.sql.Date, we need to write the full class name as below:\n java.sql.Date sqlDate;\n\n\n }", "private JarUtils() {\n }", "public static void main(String[] args) \r\n\t{\n one obj = new one();\r\n\t}", "public void importClass(String klass) throws Exception;", "public static void main(String[] args) {\n\t\tFull_Package x = new Full_Package();\n\n\t\tOnline_Class acadgild = x.new Online_Class();\n\t\tSystem.out.println(acadgild);\n\t}", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }", "public void runit(String class_name, String vm_options[])\n {\n String jre_home = System.getProperty(\"java.home\");\n String sdk_home = (jre_home.endsWith(\"jre\") ?\n (jre_home + File.separator + \"..\") :\n jre_home );\n String cdir = System.getProperty(\"test.classes\", \".\");\n String os_arch = System.getProperty(\"os.arch\");\n boolean d64 = os_arch.equals(\"sparcv9\") ||\n os_arch.equals(\"amd64\");\n String isa_dir = d64?(File.separator+os_arch):\"\";\n String java = jre_home\n + File.separator + \"bin\" + isa_dir\n + File.separator + \"java\";\n String jhat = sdk_home + File.separator + \"bin\"\n + File.separator + \"jhat\";\n /* Array of strings to be passed in for exec:\n * 1. java\n * 2. -Dtest.classes=.\n * 3. -d64 (optional)\n * 4. -Xcheck:jni (Just because it finds bugs)\n * 5. -Xverify:all (Make sure verification is on full blast)\n * 6. -agent\n * vm_options\n * 7+i. classname\n */\n int nvm_options = 0;\n if ( vm_options != null ) nvm_options = vm_options.length;\n String cmd[] = new String[1 + (d64?1:0) + 7 + nvm_options];\n int i,j;\n \n i = 0;\n cmd[i++] = java;\n cmd[i++] = \"-cp\";\n cmd[i++] = cdir;\n cmd[i++] = \"-Dtest.classes=\" + cdir;\n if ( d64 ) {\n cmd[i++] = \"-d64\";\n }\n cmd[i++] = \"-Xcheck:jni\";\n cmd[i++] = \"-Xverify:all\";\n dumpfile= cdir + File.separator + class_name + \".hdump\";\n cmd[i++] = \"-agentlib:hprof=\" + all_hprof_options\n + \",format=b,file=\" + dumpfile;\n /* Add any special VM options */\n for ( j = 0; j < nvm_options; j++ ) {\n cmd[i++] = vm_options[j];\n }\n /* Add classname */\n cmd[i++] = class_name;\n \n /* Execute process */\n execute(cmd);\n \n /* Run jhat */\n String jhat_cmd[] = new String[4];\n jhat_cmd[0] = jhat;\n jhat_cmd[1] = \"-debug\";\n jhat_cmd[2] = \"2\";\n jhat_cmd[3] = dumpfile;\n \n /* Execute process */\n execute(jhat_cmd);\n \n }", "private ThoseMain()\n {\n // Do nothing\n }", "private Main ()\n {\n super ();\n }", "private void createClassPath() {\n classPath = classFactory.createClassPath();\n }", "public static void main(String[] args) {\r\n//\t\tInterface inter = new Interface();\r\n//\t\tinter.runProgram();\r\n\t\t\r\n\t\tClassInterface inter = new ClassInterface();\r\n\t\tinter.runProgram();\r\n\t}", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\t\n\t\tCar car = CarFactory.getCar();\n\t\tcar.gears();\n\t\tcar.windows();\n\n\t}", "public static void main(String []args){\n\n }", "public void testExtendsClassname() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setClassname(\"com.github.maven_nar.cpptasks.msvc.MsvcLinker\");\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n extendedLinker.setBase(new FlexLong(\"10000\"));\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"/NOLOGO\", preArgs[0]);\n assertEquals(\"/SUBSYSTEM:WINDOWS\", preArgs[1]);\n assertEquals(\"/INCREMENTAL:NO\", preArgs[2]);\n assertEquals(\"/BASE:0x2710\", preArgs[3]);\n }", "Reproducible newInstance();", "private CommandLine() {\n\t}", "public static void main(String[] args) {\n\n\t\tDemoClass1 obj=new DemoClass1();\n\t//\tobj.add();\n\t\t\t\t\n\t}", "private SourcecodePackage() {}" ]
[ "0.6375217", "0.63116723", "0.61793685", "0.60946906", "0.6057288", "0.5988055", "0.5961703", "0.5918327", "0.5914076", "0.5904126", "0.58773816", "0.58152366", "0.5772453", "0.5758163", "0.572092", "0.5699114", "0.5696065", "0.5683806", "0.56489456", "0.5638511", "0.55907613", "0.5589467", "0.557691", "0.5555448", "0.5555448", "0.5546202", "0.554534", "0.5534673", "0.5532529", "0.552443", "0.55225915", "0.5512528", "0.5508907", "0.5501991", "0.54907966", "0.54818773", "0.5478432", "0.5478189", "0.54752034", "0.5472213", "0.5460922", "0.5447921", "0.54300994", "0.5405275", "0.5404582", "0.5404582", "0.54045504", "0.539768", "0.539126", "0.53874874", "0.5380344", "0.5379179", "0.5377716", "0.53735787", "0.53635186", "0.53593796", "0.5359145", "0.53546983", "0.53452957", "0.5343795", "0.5325411", "0.5311311", "0.5310579", "0.53091645", "0.5290919", "0.5290026", "0.52813596", "0.5280395", "0.5280252", "0.52754235", "0.5272295", "0.5268896", "0.526636", "0.526636", "0.5262134", "0.52620333", "0.5261193", "0.5255994", "0.5253157", "0.52521205", "0.5250543", "0.5250371", "0.5250031", "0.5249124", "0.52463144", "0.52463144", "0.5245956", "0.5240374", "0.52330387", "0.52329135", "0.52326626", "0.52206486", "0.521932", "0.521932", "0.52184737", "0.52182", "0.5217217", "0.52152777", "0.5211705", "0.5209981", "0.52030754" ]
0.0
-1
Shuffles the songs currently in the queue
public Mono<CommandResponse> shuffleQueue(@NonNull TrackScheduler scheduler) { scheduler.shuffleQueue(); return CommandResponse.create(EmojiHelper.SHUFFLE + " Queue shuffled " + EmojiHelper.SHUFFLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void playShuffled();", "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();", "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 onClickShuffle() {\n if (player != null) {\n serviceBound = false;\n player.stopMedia();\n Random r = new Random();\n currentSong = r.nextInt(audioList.size());\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n playListAdapter.getList()\n .get(playListAdapter.selected).setSelect(false);\n playListAdapter.notifyItemChanged(playListAdapter.selected);\n\n playListAdapter.selected = getCurrentSong();\n playListAdapter.getList()\n .get(playListAdapter.selected).setSelect(true);\n playListAdapter.notifyItemChanged(playListAdapter.selected);\n }\n }\n }", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "void shuffle();", "void shuffle();", "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}", "public abstract void shuffled();", "public void shuffle() {\n Collections.shuffle((List<Nummer>) this.albumNummers);\n }", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "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}", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "@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 Collections.shuffle(Arrays.asList(this.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 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 shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(Math.random()*(i+1));\r\n SpoonsCard temp = deck.get(i);\r\n deck.set(i, deck.get(rand));\r\n deck.set(rand, temp);\r\n }\r\n cardsUsed = 0;\r\n }", "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 }", "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()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "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 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() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "@Override\n public void onClick(View view) {\n if (play.getText().toString().equals(\"PLAY RANDOM\")) {\n play.setText(\"PAUSE\");\n\n Collections.shuffle(MainActivity.songs);//It changes the order of the songs\n\n } else {\n if (play.getText().toString().equals(\"PAUSE\")) {\n play.setText(\"PLAY RANDOM\");\n }\n }\n }", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle() {\n Collections.shuffle(this);\n }", "@Override\n public void onCompletion(MediaPlayer mp) {\n if(isRepeat){\n // repeat is on play same song again\n playSong(currentSongIndex);\n } else if(isShuffle){\n // shuffle is on - play a random song\n Random rand = new Random();\n currentSongIndex = rand.nextInt((songsList.size() - 1) - 0 + 1) + 0;\n playSong(currentSongIndex);\n } else{\n // no repeat or shuffle ON - play next song\n if(currentSongIndex < (songsList.size() - 1)){\n playSong(currentSongIndex + 1);\n currentSongIndex = currentSongIndex + 1;\n }else{\n // play first song\n playSong(0);\n currentSongIndex = 0;\n }\n }\n\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 }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public void shuffleItems() {\n LoadProducts(idCategory);\n }", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "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 public void shuffle() {\n System.out.println(\"shuffling the shoe...\");\n Collections.shuffle(this.cards);\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "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}", "public void shuffle() {\n\t\tCollections.shuffle(Shoe);\n\t}", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "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 }", "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc...\n int endIndex = Jass.HAND_SIZE*(i+1); //So for player 1 the endIndex will be 9, for player2 18, etc...\n\n CardSet hand= CardSet.of(tmpDeck.subList(startIndex, endIndex));\n PlayerId player = PlayerId.ALL.get(i);\n\n players.get(player).updateHand(hand);\n handsOfCards.put(player, hand); \n }\n }", "public void skipForward() {\n if (shuffle == false) {\n // Shuffle OFF Repeat OFF\n if (repeat == false) {\n position++;\n } else {\n // Shuffle OFF Repeat ON\n if (position + 2 > tracks.size()) {\n position = 0;\n } else {\n position++;\n }\n }\n } else {\n if (tracksplayed.contains(position) == false) {\n tracksplayed.add(position);\n }\n Random r = new Random();\n int temp = 0;\n int count = 0;\n do {\n temp = r.nextInt(tracks.size());\n count++;\n } while (tracksplayed.contains(temp) == true && count < tracks.size());\n\n // Shuffle ON Repeat OFF\n if (repeat == false) {\n if (count < tracks.size()) {\n position = temp;\n tracksplayed.add(new Integer(temp));\n } else {\n // If all tracks have been played, deliberately set position to an invalid value\n position = tracks.size() + 1;\n }\n } else {\n // Shuffle ON Repeat ON\n if (count < tracks.size()) {\n position = temp;\n tracksplayed.add(new Integer(temp));\n } else {\n // Make sure we don't play the same song as last time, any other one is fine\n do {\n temp = r.nextInt(tracks.size());\n count++;\n } while (temp == position);\n\n position = temp;\n tracksplayed.clear();\n tracksplayed.add(temp);\n }\n }\n\n }\n //System.out.println( \"\\nWe just set the position to \" + position + \"\\n\" );\n }", "public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }", "public void shuffle() {\n deck.clear();\n deck.addAll(allCards);\n Collections.shuffle(deck, new Random(System.nanoTime()));\n }", "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 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 removeFromShuffleList(Song song) {\n\t\t// iterate through the shuffle list, mark all deleted songs\n\t\tfor (int i = shuffleOrder.size() - 1; i >= 0; i--) {\n\t\t\tif (shuffleOrder.get(i).equals(song)) {\n\t\t\t\tshuffleOrder.remove(i);\n\t\t\t\tif (i < this.shuffleSongIndex)\n\t\t\t\t\tshuffleSongIndex -= 1;\n\t\t\t}\n\t\t}\n\t}", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\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 }", "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}", "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}", "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 void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "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: */ }", "public ArrayList<Song> getShuffleOrder() {\n\t\treturn this.shuffleOrder;\n\t}", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "public void shuffleCards() {\n Collections.shuffle(suspectCards);\n Collections.shuffle(weaponCards);\n Collections.shuffle(roomCards);\n\n }", "public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}", "@Override\r\n public void dealerShuffleDeck(){\r\n this.dealer.shuffleDecks();\r\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 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 }", "public void shuffleDeck() {\n\t\tCollections.shuffle(deck);\n\t}", "public void shuffleDeck() {\n\t\tCollections.shuffle(this.deck);\n\t}", "private void cycleShuffle() {\n\t\tif (mShuffleMode == SHUFFLE_NONE) {\n\t\t\tsetShuffleMode(SHUFFLE_NORMAL);\n\t\t\tif (mRepeatMode == REPEAT_CURRENT) {\n\t\t\t\tsetRepeatMode(REPEAT_ALL);\n\t\t\t}\n\t\t} else {\n\t\t\tsetShuffleMode(SHUFFLE_NONE);\n\t\t}\n\t}", "public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }", "public static void shuffle(String[] arrayList){\n int num=arrayList.length; \n for(int j=0;j<60;j++){ // the number of shuffling>50 times, so I choose 60 times\n for(int i=0;i<num;i++){ \n int index=(int)(Math.random()*num);\n //Swap the position of elements in the array at that index with the first element\n String temp=arrayList[i]; \n arrayList[i]=arrayList[index];\n arrayList[index]=temp;\n }}}", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "public boolean shuffleNeeded();", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "public static void shuffle(java.util.List arg0)\n { return; }", "public static void loadAllSongs()\n {\n if (JSoundsMainWindowViewController.alreadyPlaying)\n JSoundsMainWindowViewController.stopSong();\n \n JSoundsMainWindowViewController.shutDownPlayer();\n JSoundsMainWindowViewController.isPlaylist=false;\n JSoundsMainWindowViewController.orderBy(false, true, false);\n }", "private ArrayIterator(){\n itemsRemaining = itemCount;\n temp = (Item[]) new Object[itemCount]; //slightly less than N\n reset();\n StdRandom.shuffle(temp);\n }", "public void prev() {\n\t\tsynchronized (this) {\n\t\t\tint pos = getPreShuffledPos();\n\t\t\tif (pos > 0) {\n\t\t\t\tmPlayPos = mPlayOrder[pos - 1];\n\t\t\t} else {\n\t\t\t\tmPlayPos = mPlayOrder[mPlayListLen - 1];\n\t\t\t}\n\t\t\tstop(false);\n\t\t\tprepareAndPlayCurrent();\n\t\t}\n\t}", "public void setShuffleSongIndex(int index) {\n\t\tthis.shuffleSongIndex = index;\n\t}", "public int getNextSongIndex(boolean isPlaylist) {\n\t\tif (!shuffle) {\n\t\t\t// if currentSongIndex is the last in the list, return 1\n\t\t\tif (currentSongIndex == getCurrentList(isPlaylist).getHeapSize())\n\t\t\t\treturn 1;\n\t\t\telse\n\t\t\t\t// otherwise, return increment of currentSongIndex\n\t\t\t\treturn currentSongIndex + 1;\n\t\t}\n\t\telse {\n\t\t\tthis.shuffleSongIndex += 1;\n\t\t\tif (this.shuffleSongIndex < this.shuffleOrder.size())\n\t\t\t\treturn this.shuffleOrder.get(this.shuffleSongIndex).getIndex(isPlaylist);\n\n\t\t\t//generate random number\n\t\t\twhile (true) {\n\t\t\t\tint random = 1 + new Random().nextInt((this.getCurrentList(isPlaylist).getHeapSize() - 1) + 1);\n\t\t\t\t\n\t\t\t\t// case 1: not everyone in playlist has been played\n\t\t\t\tif (this.shuffleOrder.size() < this.getCurrentList(isPlaylist).getHeapSize()) {\n\t\t\t\t\tif (!shuffleOrder.contains(this.getSong(random, isPlaylist))) {\n\t\t\t\t\t\tshuffleOrder.add(this.getSong(random, isPlaylist));\n\t\t\t\t\t\treturn random;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tList<Song> a;\n\t\t\t\t\t// case 2: playlist is being repeated more than 1\n\t\t\t\t\tif (Math.ceil(this.shuffleOrder.size() / this.getCurrentList(isPlaylist).getHeapSize()) > 1) {\n\t\t\t\t\t\tint rounds = (int)(Math.floor(this.shuffleOrder.size() / this.getCurrentList(isPlaylist).getHeapSize()));\n\t\t\t\t\t\ta = (List<Song>) shuffleOrder.subList(this.getCurrentList(isPlaylist).getHeapSize()*rounds, this.shuffleOrder.size());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t// case 3: playlist is being repeated the first time\n\t\t\t\t\t\ta = (List<Song>) shuffleOrder.subList(this.getCurrentList(isPlaylist).getHeapSize(), this.shuffleOrder.size());\t\t\n\t\t\t\t\tif (!a.contains(this.getSong(random, isPlaylist))) {\n\t\t\t\t\t\tshuffleOrder.add(this.getSong(random, isPlaylist));\n\t\t\t\t\t\treturn random;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public static void playListSongs(boolean iSelectASong)\n {\n Album actualAlbum = AlbumXmlFile.getAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n\n \n if ((selectedAlbum!=null) && (!actualAlbum.getName().equals(selectedAlbum.getName())))\n {\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n alreadyPlaying=false;\n if((!isPlaylist) && (!shutDown))\n dontInitPlayer=true;\n }\n \n if (JSoundsMainWindowViewController.iAmPlaying && JSoundsMainWindowViewController.jlActualListSongs != null)\n { \n if (alreadyPlaying==false)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n selectedAlbum=actualAlbum;\n \n Song actualSong = null;\n int position;\n if (!isPlaylist) //Si no estoy tratando de reproducir una lista de reproduccion.\n { \n \n \n if (actualAlbum != null)\n {\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbum.getName()), actualAlbum.getName()));\n position++;\n }\n }\n }\n }\n else //Si es una lista de reproduccion\n {\n Album actualAlbumPlaylist = PlaylistXmlFile.getPlaylistAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n \n \n if (actualAlbumPlaylist != null)\n {\n Iterator songsIterator = actualAlbumPlaylist.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n \n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbumPlaylist.getName()), actualAlbumPlaylist.getName()));\n position++;\n }\n }\n }\n } \n if (!dontInitPlayer) // Inicio el reproductor\n {\n MusicPlayerControl.initMusicPlayer(Util.JSOUNDS_LIBRARY_PATH, JSoundsMainWindowViewController.jlActualListSongs, JSoundsMainWindowViewController.jLInformationSong, JSoundsMainWindowViewController.jlActualListSongs.getjLLastPlayedSongList(), table, JSoundsMainWindowViewController.LIST_SONG_COLUMN, JSoundsMainWindowViewController.jlActualListSongs.getRowInJTable(), JSoundsMainWindowViewController.LAST_PLAYED_SONG_COLUMN);\n MusicPlayerControl.loadSongs(listSongs);\n shutDown=false;\n }\n else // El reproductor ya esta iniciado\n {\n MusicPlayerControl.loadSongs(listSongs);\n dontInitPlayer=false;\n }\n \n if (iSelectASong)\n {\n if (indexFromSearchedSong>(-1))\n {\n MusicPlayerControl.changeSongFromIndexSong(indexFromSearchedSong);\n iSelectASong=false;\n indexFromSearchedSong=-1;\n }\n else\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n iSelectASong = false;\n }\n \n }\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n MusicPlayerControl.playSong();\n alreadyPlaying = true;\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (fixedIndex== true))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPausing==true) && (!fixedIndex))\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPlaying==true) && (!fixedIndex))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n \n }\n else\n {\n if (JSoundsMainWindowViewController.iAmPausing && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPlay.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = true;\n \n MusicPlayerControl.pauseSong();\n }\n else\n {\n if (JSoundsMainWindowViewController.iAmResuming && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n \n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.resumeSong();\n }\n \n }\n }\n }", "public void setPlayAll() {\n shuffle = false;\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 songPosn = 0;\n playSong();\n }", "public static void shuffle(int data[]) {\n\n }", "public void shuffle() {\n //Beginning with the top card, decrement i until i is 0.\n for (int i = this.topCard - 1; i >= 0; i--) {\n Card tmpCard = this.cards[i]; //Store the card at i, since it will be overwritten.\n //Choose a random card position from within the deck.\n int randomPosition = (int) (Math.random() * (this.topCard - 1));\n //Take the card from the random position and store it in the ith position.\n this.cards[i] = this.cards[randomPosition];\n //Take the card from the ith position, and put it into the randomly chosen position.\n this.cards[randomPosition] = tmpCard;\n //The cards have now been swapped.\n }\n }", "public void shuffle(){\n\t\t\n\t\tArrayList<Boolean> used = new ArrayList<Boolean>();\n\t\tArrayList<Integer> copyStones = new ArrayList<Integer>();\n\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\tcopyStones.add(gameStones.get(e));\n\t\t\tused.add(false);\n\t\t}\n\t\tfor(int e : copyStones){\n\t\t\tchar l = stoneChars.get(e);\n\t\t\tboolean placed = false;\t\t\n\t\t\twhile(!placed){\n\t\t\t\tint randNumber = (int) (Math.random() * 7);\n\t\t\t\tif(!used.get(randNumber)){\n\t\t\t\t\tgameStones.set(randNumber, e);\n\t\t\t\t\tstoneLetters.set(randNumber, l);\n\t\t\t\t\tused.set(randNumber, true);\n\t\t\t\t\tplaced = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void shuffle()\r\n\t{\r\n\t\tCollections.shuffle(_tiles);\r\n\t}", "public void shuffleTweets() {\n Collections.shuffle(tweets);\n }", "public void shuffleThePresentCardToTheEnd() {\n storageCards.add(storageCards.remove());\n }", "public void shuffle()\n {\n Collections.shuffle(artefacts);\n }", "private void updateShuffleboard()\n {\n }", "private void shuffleOnceRandom(){\n\t\t//You need to have a copy of the deck before you shuffled it so you can reference\n\t\t//It when you are trying to replace the new values\n\t\tList<Card> beforeShuffle = ourDeck.makeCopy().getCurrentDeck();\n\t\t//The topIndex tells us where we are in reference to the top half of the deck\n\t\t//Same with bottom this helps us reference the original deck to get whatever\n\t\t//Card we need and the deckIndex helps us put it in the correct spot\n\t\tint topIndex = 0, bottomIndex = ourDeck.getSize() / 2, deckIndex = 0;\n\t\t//These ints help us keep track of how many cards are left in each half\n\t\tint remainingTop = ourDeck.getSize() / 2, remainingBot = ourDeck.getSize() / 2;\n\t\tboolean shouldLoop = true;\n\t\t//This is the shuffling loop\n\t\twhile(shouldLoop){\n\t\t\t//This means the number coming from the specific deck which in this method is random\n\t\t\tint numTop = generator.nextInt(RAND_BOUND), numBot = generator.nextInt(RAND_BOUND);\n\t\t\t//After we determine the random number of cards we're using we have to do some checks\n\t\t\t//This means we wanted more than there was less therefore the stack is out\n\t\t\t//This is the stopping condition for the loop\n\t\t\tif(numTop >= remainingTop){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(numBot >= remainingBot){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t//This is where I replace the newCard into ourDeck\n\t\t\t//I iterate for the number of times we take from the top or bottom\n\t\t\tfor(int i = 1; i <= numTop; i++){\t\n\t\t\t\tCard newCard = beforeShuffle.get(topIndex);\t//I get the card we want to move\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\t\t//Then I move it to the new deckIndex\n\t\t\t\ttopIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tfor(int i = 1; i <= numBot; i++){\n\t\t\t\tCard newCard = beforeShuffle.get(bottomIndex);\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\n\t\t\t\tbottomIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tremainingTop = remainingTop - numTop;\n\t\t\tremainingBot = remainingBot - numBot;\n\t\t}\n\t}", "public void swap(String[] audioFiles) {\n int index;\n int j = audioListModel.indexOf(audioListModel.lastElement());\n\n if(finalListModel.isEmpty())\n index = -1;\n else\n index = audioListModel.indexOf(finalListModel.lastElement());\n\n int length = order.getItemCount();\n //initialListModel.removeAllElements();\n finalListModel.removeAllElements();\n for(int i = 1; i <= length; i++) {\n int c = ++index;\n if(c > j) {\n c = 0;\n index = 0;\n finalListModel.addElement(audioFiles[c]);\n }\n else {\n finalListModel.addElement(audioFiles[c]);\n }\n }\n }", "private void mixDeck() {\n Random rnd = new Random();\n ArrayList<UnoCard> mixed = new ArrayList<UnoCard>();\n\n // mix it!\n for(int i = cards.size()-1; i>0;i--) {\n int index = rnd.nextInt(i+1);\n UnoCard helper = cards.get(index);\n cards.remove(index);\n mixed.add(helper);\n }\n\n // delete current arrayList\n cards = null;\n // set mixed cards to original carddeck\n cards = mixed;\n\n // paint cards again because order has changed\n for(UnoCard c : cards) {\n c.setContainer(deckPos);\n }\n\n }", "public native int toggleShuffle();", "void reset() {\n\t\tsongs.get(curSong).rewind();\n\t\tsongs.get(curSong).pause();\n\t}", "public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }", "@Override\r\n\tpublic void reset() {\r\n\t\tthis.priorityElements = Lists.newArrayList(originalElements);\r\n\t\tCollections.shuffle(priorityElements);\r\n\t\tthis.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size());\r\n\t\tthis.currentElements.addAll(originalElements);\r\n\t}", "default Stream<T> reshuffle() {\n return reshuffle(null);\n }", "int select_musics(Musica mus, int n, String target_Folder, int ids_file[]) {\n File temp;\n File target;\n File mpos;\n int pos, i;\n boolean copy_files = false;\n boolean aleatory = true;\n\n target = new File(target_Folder);\n String target_Original=target_Folder;\n if (target.exists()) copy_files = true;\n\n\n\n if (n == -1) /* n=-1 when selection is not random. */ {\n n = ids_quantity;\n aleatory = false;\n }\n\n for (i = 0; i < n; i++) { /* For each music from list or to be selected randomly */\n System.out.println(\"\\n\" + (i + 1) + \"/\" + n);\n if (music_count == 1) /* if only one music remaining, play this one and select all again */\n {\n pos = 0;\n temp = AllFiles[pos];\n System.out.println(temp.getName());\n System.out.println(temp.getAbsolutePath());\n music_count = music_total;\n }\n else\n {\n if (aleatory) {\n Random rand = new Random(); /* Select one music randomly */\n pos = rand.nextInt(music_count);\n System.out.println(\"id#:[\" + pos+ \"]\");\n temp = AllFiles[pos];\n music_count--; /* Exchange selected music with last one and reduce list size to not repeat */\n AllFiles[pos] = AllFiles[music_count];\n AllFiles[music_count] = temp;\n System.out.println(temp.getName());\n System.out.println(temp.getAbsolutePath());\n\n } else {\n pos = ids_file[i]; /* not random, just take file from array */\n System.out.println(\"id#:[\" + pos+\"]\");\n temp = AllFiles[pos];\n System.out.println(temp.getName());\n System.out.println(temp.getAbsolutePath());\n }\n }\n Path FROM = Paths.get(temp.getAbsolutePath());\n\n String ext = temp.getName().substring(temp.getName().length() - 3); /* Set extension according */\n\n if ((Objects.equals(ext.toLowerCase(), \"mp3\")))\n ext = \"mp3\";\n else\n ext = \"wma\";\n\n\n\n if (copy_files) /* If subfolder should be created, create them,if not use one folder only */\n {\n if (Main.subgroup)\n {\n target_Folder = target_Original + \"\\\\LetTheMusicPlay\" + (i/Main.maxsubgroup+1);\n }\n else\n {\n target_Folder = target_Original + \"\\\\LetTheMusicPlay\";\n }\n }\n target = new File(target_Folder);\n if (!target.exists()) target.mkdir();\n\n if (copy_files) { /* when copying if same filename exist, copy to a different folder */\n\n\n String path_text = target_Folder + \"\\\\\" + temp.getName();\n if (Main.number_files) path_text = target_Folder + \"\\\\(\" + zerofill(i+1,n) + \")\"+ temp.getName();\n target = new File(path_text);\n int j = 0;\n while (target.exists()) {\n j++;\n target = new File(target_Folder + \"\\\\\" + j);\n if (!target.exists()) target.mkdir();\n path_text = target_Folder + \"\\\\\" + j + \"\\\\\" + temp.getName();\n target = new File(path_text);\n }\n Path TO = Paths.get(path_text);\n CopyOption[] options = new CopyOption[]{\n StandardCopyOption.REPLACE_EXISTING,\n StandardCopyOption.COPY_ATTRIBUTES};\n try {\n Files.copy(FROM, TO, options);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n Path TO = Paths.get(\"music1.\" + ext); /* to play, copy file to a temporary file to avoid issues due name*/\n if (flag_music_copy == 0) TO = Paths.get(\"music2.\" + ext);\n //overwrite existing file, if exists\n CopyOption[] options = new CopyOption[]{\n StandardCopyOption.REPLACE_EXISTING,\n StandardCopyOption.COPY_ATTRIBUTES};\n try {\n Files.copy(FROM, TO, options);\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n PrintWriter writer = new PrintWriter(\"playmusic.bat\", \"ISO-8859-1\");\n if (flag_music_copy == 1) {\n writer.println(\"music1.\" + ext);\n File f = new File(\"music1.\" + ext);\n f.setWritable(true);\n }\n if (flag_music_copy == 0) {\n writer.println(\"music2.\" + ext);\n File f = new File(\"music2.\" + ext);\n f.setWritable(true);\n }\n\n flag_music_copy = (flag_music_copy + 1) % 2; /* Exchange between 1 and 2 */\n\n writer.close();\n Runtime.getRuntime().exec(\"playmusic.bat\"); /* Play Music */\n Thread.sleep(250);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Scanner in = new Scanner(System.in);\n int s;\n s = -1;\n\n while ((i < n - 1) && (s == -1)) {\n System.out.print(\"Type any number greater than 0 to next music or 0 to exit: \"); /* Wait user select next one */\n s = in.nextInt();\n\n }\n ;\n if (s == 0) break;\n }\n }\n return (0);\n }", "private void reshuffleDiscardPile() {\n ICard topCard = discardPile.pop();\n\n drawPile.addAll(discardPile);\n Collections.shuffle(drawPile, rng);\n\n discardPile.clear();\n discardPile.add(topCard);\n }" ]
[ "0.74969035", "0.7480095", "0.73206306", "0.68506944", "0.68325055", "0.6818887", "0.6795673", "0.6715006", "0.6715006", "0.67055976", "0.670302", "0.66914743", "0.66332084", "0.6595627", "0.6591215", "0.657565", "0.65723497", "0.6538471", "0.6508061", "0.6506581", "0.6476237", "0.64547", "0.64420503", "0.64215314", "0.6411316", "0.64102566", "0.6397516", "0.6392583", "0.63923115", "0.6386276", "0.6370298", "0.6359181", "0.63396364", "0.6332861", "0.6329185", "0.63222736", "0.6319254", "0.6297452", "0.62717193", "0.6256222", "0.6234744", "0.62308294", "0.62308294", "0.62286645", "0.62251836", "0.62228954", "0.62184393", "0.6201001", "0.6181746", "0.61794853", "0.6167423", "0.615304", "0.6151052", "0.6149126", "0.6148079", "0.61137426", "0.61130005", "0.60907394", "0.6060919", "0.60598016", "0.604928", "0.6040087", "0.60379916", "0.6024518", "0.602381", "0.6012834", "0.5995837", "0.5991925", "0.59533286", "0.5950754", "0.59411186", "0.59404725", "0.59392595", "0.59364814", "0.5919133", "0.5883394", "0.5866197", "0.5863268", "0.58197427", "0.58153206", "0.58150905", "0.5798408", "0.57936376", "0.57868475", "0.5784304", "0.57797253", "0.5769258", "0.5763458", "0.5739993", "0.5733636", "0.5722277", "0.5718439", "0.5718141", "0.56738424", "0.5671789", "0.5670451", "0.5647714", "0.56472814", "0.56410104", "0.5633212", "0.5622864" ]
0.0
-1
DO NOT MODIFY THIS METHOD Constructor creates a CacheMemory object. Note the design rules for valid values of each parameter. The simulated computer reads or writes a unit of one WORD_SIZE.
public CacheMemory(MainMemory m, int size, int lineSize, int linesPerSet) { if (lineSize % WORD_SIZE != 0) { throw new IllegalArgumentException("lineSize is not a multiple of " + WORD_SIZE); } if (size % lineSize != 0) { throw new IllegalArgumentException("size is not a multiple of lineSize."); } // number of lines in the cache int numLines = size / lineSize; if (numLines % linesPerSet != 0) { throw new IllegalArgumentException("number of lines is not a multiple of linesPerSet."); } // number of sets in the cache int numSets = numLines / linesPerSet; // Set the main memory mainMemory = m; // Initialize the counters to zero requestCount = 0; warmUpRequests = 0; hitCount = 0; hitCost = 0; // Determine the number of bits required for the byte within a line, // for the set, and for the tag. int value; numByteBits = 0; // initialize to zero value = 1; // initialize to 2^0 while (value < lineSize) { numByteBits++; value *= 2; // increase value by a power of 2 } numSetBits = 0; value = 1; while (value < numSets) { numSetBits++; value *= 2; } // numTagBits is the remaining memory address bits numTagBits = 32 - numSetBits - numByteBits; System.out.println("CacheMemory constructor:"); System.out.println(" numLines = " + numLines); System.out.println(" numSets = " + numSets); System.out.println(" numByteBits = " + numByteBits); System.out.println(" numSetBits = " + numSetBits); System.out.println(" numTagBits = " + numTagBits); System.out.println(); // Create the array of CacheSet objects and initialize each CacheSet object cache = new CacheSet[numSets]; for (int i = 0; i < cache.length; i++) { cache[i] = new CacheSet(lineSize, linesPerSet, numTagBits); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Memory() {}", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "public Memory(Integer tSize, Integer aTime){\r\n\t\tif(DEBUG_LEVEL >= 1)System.out.println(\"Memory(\" + tSize +\", \" + aTime + \")\");\r\n\t\t\r\n\t\t// Validity Checking\r\n\t\tif(tSize == null)throw new NullPointerException(\"tSize Can Not Be Null\");\r\n\t\tif(tSize < 0)throw new IllegalArgumentException(\"tSize Must Be Greater Than Zero\");\r\n\t\t\r\n\t\tif(aTime == null)throw new NullPointerException(\"aTime Can Not Be Null\");\r\n\t\tif(aTime < 0)throw new IllegalArgumentException(\"aTime Must Be Greater Than Zero\");\r\n\t\t\r\n\t\ttotalSize = tSize;\r\n\t\taccessTime = aTime;\r\n\t\t\r\n\t\tmemory = new MemoryElement[totalSize];\r\n\t\t\r\n\t\tchildCaches = new ArrayList<CacheController>();\r\n\t\t\r\n\t\tcacheStats = new CacheStatistics();\r\n\t\t\r\n\t\tif(DEBUG_LEVEL >= 2)System.out.println(\"Memory()...Finished\");\r\n\t}", "public PhysicalMemory()\n {\n frames = new TreeMap<Long, MemoryFrame>();\n for (int i = 0; i < Const.MEM_FRAMES; i++) {\n MemoryFrame frame = new MemoryFrame(i);\n Long zero = new Long(i);\n frames.put(zero, frame);\n }\n }", "public Memory(int access_time) {\n\t\tthis.mem_array = new String[65536];\n\t\tthis.access_time = access_time;\n\t\tthis.fetch_cycles_left = access_time;\n\t\tthis.load_cycles_left = access_time;\n\t}", "public MemoryImpl(int size) {\n\t\tif(size < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Memory size can not be lower than 1!\");\n\t\t}\n\t\tthis.memory = new Object[size];\n\t}", "public MyMemory(int size){\n super(size);\n printSize();\n loadMemory(); //loads memory with instructions to be executed during the instruction cycle\n }", "public static Memory getInstance(){\n if (mem == null) mem = new Memory(4000);\n return mem;\n }", "public Memory() {\n this(false);\n }", "public Memory(int cache_size, int associativity, int block_size, boolean protocolIsMSI, int hitPenalty, int missPenalty, int numberOfBanks)\n\t{\n\t\tsuper(cache_size, associativity, block_size, protocolIsMSI);\n\t\tthis.hitPenalty = hitPenalty;\n\t\tthis.missPenalty = missPenalty;\n\t\tthis.numberOfBanks = numberOfBanks;\n\t\tthis.bankFreeAtCycle = new int[this.numberOfBanks];\n\t\tthis.addressesBeingRetrieved = new ArrayList<List<Message>>();\n\t\tfor(int i = 0; i < this.numberOfBanks; i++)\n\t\t{\n\t\t\tthis.addressesBeingRetrieved.add(new LinkedList<Message>());\n\t\t}\n//\t\tthis.bankQueues = new ArrayList<Queue<Message>>();\n//\t\tfor(int i = 0; i < this.numberOfBanks; i++)\n//\t\t{\n//\t\t\tthis.bankQueues.add(new LinkedList<Message>());\n//\t\t}\n\t}", "public MemoryImpl(int size) {\n\t\tif (size < 0) {\n\t\t\tthrow new IllegalArgumentException(\"The size of the memory should be greater than 0!\");\n\t\t}\n\t\tmemory = new Object[size];\n\t}", "public Memory() {\r\n init();\n ruletables = new RuleTables(this);\n budgetfunctions = new BudgetFunctions(this);\r\n }", "public MyMemory(){\n super();\n this.instruction = new Instruction(); //Only the IR register will use this attribute\n }", "protected MemObject (int nElem)\n {\n if (nElem > 0) mem = new Object [nElem];\n }", "public static void initializeMemory(){\n\t\tif(memory == null){\n\t\t\tmemory = new TreeMap<String,String>();\n\t\t\tfor(int i=0;i<2048;i++){\n\t\t\t\tmemory.put(Utility.decimalToHex(i, 3), null);\n\t\t\t}\n\t\t\tmemory_fmbv = new int[256];\n\t\t\tfor(int i:memory_fmbv){\n\t\t\t\tmemory_fmbv[i] = 0;\n\t\t\t}\n\t\t}\n\t\tif(diskJobStorage == null){\n\t\t\tdiskJobStorage = new TreeMap<String,DiskSMT>();\n\t\t}\n\t}", "public MarkusMachine ()\n {\n fMemory = new Hashtable <String, Object> ();\n }", "private MemoryTest() {\r\n }", "public MemoryTest()\n {\n }", "public MemoryStore(String filename) throws IOException {\n\t\t// create a new input stream\n\t\tFileInputStream input = new FileInputStream(filename);\n\t\t\n\t\t// create a place to store the words we read in\n\t\tbyte[] b = new byte[4];\n\t\t\n\t\t// read in the data in the given file\n\t\twhile (input.read(b) != -1) {\n\t\t\tif (memory.size() == 1027) {\n\t\t\t\tint foo = 1;\n\t\t\t}\n\t\t\t// create a word from the 4 bytes\n\t\t\tlong word = getUnsignedValue(b[0]);\n\t\t\tword += getUnsignedValue(b[1]) << 8;\n\t\t\tword += getUnsignedValue(b[2]) << 16;\n\t\t\tword += getUnsignedValue(b[3]) << 24;\n\t\t\t\n\t\t\t// add the word to our memory store\n\t\t\t//memory.add(word);\n\t\t}\n\t\tlong c;\n //00000001 00101010 01000000 00100000\n c = (((long) 0x01) << 24) + (((long) 0x2A) << 16) + (((long) 0x40) << 8) + ((long) 0x20);\n\t\tmemory.add(new Long(c));\n c = ((long) 0xFC) << 24;\n System.out.println(c);\n\t\tmemory.add(new Long(c));\n\t}", "public Memory(String file) {\n\t\tfor(int i=0; i < Constants.MEM_SIZE; ++i){\n\t\t\tmemory[i] = 0;\n\t\t}\n\t\tinstructions = new FileProcessor(file).fetchInstructions();\n\t}", "public SampleMemory(int size) {\n this.memory = new double[size];\n this.pointer = 0;\n }", "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }", "public static MemoryCache getInstance(MemoryCacheParams params) {\n if (instance == null) {\n instance = new MemoryCache(params);\n }\n\n return instance;\n }", "public PlainMemory(String name)\n\t{\n\t\tsuper(name);\n\t\t\t\n\t}", "public MLNKVMemoryCache(String name) {\n this.name = name;\n LRUCountLimit = 10000;\n FIFOCountLimit = 1000;\n memorySizeLimit = 100 << 20;\n releaseOnMainThread = false;\n\n useFIFO = true;\n useLRU = true;\n\n weakMap = new HashMap<>();\n LRUCache = new MLNKVCache();\n FIFOCache = new MLNKVCache();\n\n LRUCache.releaseOnMainThread = releaseOnMainThread;\n FIFOCache.releaseOnMainThread = releaseOnMainThread;\n }", "public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }", "public ByteArrayCache() {\n try {\n imm = ImmortalMemory.instance();\n byteBuffers = (Queue) imm.newInstance(Queue.class);\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.WARN, getClass(), \"<init>\", e);\n System.exit(-1);\n }\n }", "public PlainMemory(String name,int size)\n\t{\n\t\tsuper(name);\n\t\tsetSize(size);\n\t}", "Cache(){\n // If the files exist, load the contents into memory as matrices.\n if(distanceFile.exists() && validMoveFile.exists()){\n try{\n FileInputStream in = new FileInputStream(distanceFile);\n byte[] tempDist = new byte[200 * 200 * 12 * 9 * 5];\n // Reads the file as a byte array, then stores it as a byte matrix.\n in.read(tempDist);\n int i = 0;\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n distance[start][to][taxi][bus][underground] = tempDist[i++];\n\n in = new FileInputStream(validMoveFile);\n byte[] tempMoves = new byte[4 * 200 * 162];\n // Reads the file as a byte array, then stores it as an int matrix.\n in.read(tempMoves);\n i = 0;\n\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++){\n // Compute the int from 4 consecutive bytes in the byte array\n for(int b = 0; b < 4; b++)\n validMoves[node][taxi][bus][underground][doublet][secret] =\n (validMoves[node][taxi][bus][underground][doublet][secret] << 8) | (tempMoves[b + i] & 0xFF);\n i += 4;\n }\n }\n catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n }", "private MainMemory() {\n\t\tPropertiesParser prop = PropertiesLoader.getPropertyInstance();\n\t\tnumOfbank = prop.getIntProperty(\"sim.mem.numberofbank\", 8);\n\t\tlogger.debug(\"numOfBank in main memory :\"+ numOfbank);\n\t\t\n\t\tinit();\n\t}", "public Cache(int size) {\r\n\t\t\r\n\t\tcache = new LinkedList<T>();\r\n\t\tmaxStorage = size;\r\n\t}", "@Test\n public void testMemoryMetric() {\n MetricValue mv = new MetricValue.Builder().load(40).add();\n\n MEMORY_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n MEMORY_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }", "public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }", "protected abstract Object createJvmMemoryMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);", "private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }", "public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }", "long getMemory();", "long getMemory();", "private void setMemorySize() { }", "public MemoryInfo(com.google.appinventor.components.runtime.ComponentContainer r7) {\n /*\n r6 = this;\n r1 = r6\n r2 = r7\n r3 = r1\n r4 = r2\n com.google.appinventor.components.runtime.Form r4 = r4.$form()\n r3.<init>(r4)\n r3 = r1\n r4 = 1048576(0x100000, double:5.180654E-318)\n r3.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME = r4\n r3 = r1\n r4 = r2\n android.app.Activity r4 = r4.$context()\n r3.context = r4\n r3 = r1\n r4 = r2\n r3.container = r4\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.MemoryInfo.<init>(com.google.appinventor.components.runtime.ComponentContainer):void\");\n }", "public void setMemoryEntries(MemoryEntry[] inMemory);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "public Map(int size_pixels, double size_meters) {\n this.init(size_pixels, size_meters);\n\n // for public accessor\n this.size_meters = size_meters;\n }", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "public MemoryCacheParams get() {\n return new MemoryCacheParams(m114359b(), 256, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, f81939a);\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}", "public AddressCacheImpl() {\n\t\tthis(CACHE_SIZE_DEFAULT, 0L);\n\t}", "public Space()\n {\n this._valuesToPut = new ArrayList<>();\n this._defaultSpace = false;\n this._lock = false;\n }", "public OldOldCache(int cUnits)\n {\n this(cUnits, DEFAULT_EXPIRE);\n }", "public static MainMemory getInstance(){ \n\t\treturn memory;\n\t}", "public HeapCacheBuilder() {\n this.name = \"imcache-heap-cache-\" + cacheNumber.incrementAndGet();\n }", "public abstract long getMemoryBytes(MemoryType memoryType, int minibatchSize, MemoryUseMode memoryUseMode,\n CacheMode cacheMode, DataType dataType);", "public MultiCache () {\n super();\n this.locals = new ArrayList<Coordinates>();\n this.stage = 0;\n }", "public CacheStrategy(int[] lengths) {\n this.lengths = lengths;\n order = new int[lengths.length];\n Arrays.fill(order, CENTERED_ORDER);\n range = new int[lengths.length];\n Arrays.fill(range, DEFAULT_RANGE);\n priorities = new int[lengths.length];\n Arrays.fill(priorities, NORMAL_PRIORITY);\n positions = getPossiblePositions();\n dirty = true;\n listeners = new Vector();\n }", "public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }", "public TileWorldUtil(int width, int height) {\n this.width = width;\n this.height = height;\n world = new TileType[width][height];\n clear();\n }", "public Instructions() {\n\n\t\t// String code = codeIn.trim();\n\t\t// code = code.replaceAll(\"\\\\s+\", \"\");\n\t\t// System.out.println(\"Code In:\\n\" + code);\n\t\t//\n\t\t// int len = code.length();\n\t\t// int chunkLength = 2; // the length of each chunk of code\n\t\t// int i = 0;\n\n\t\t// Create new Memory Array\n\t\tMA = new MemoryArray();\n\n\t\t// traverse entered code and split into 2 digit chunks\n\t\t// for (i = 0; i < len; i += chunkLength) {\n\t\t//\n\t\t// String chunk = code.substring(i, Math.min(len, i + chunkLength));\n\t\t// System.out.println(\"code chunk no. \" + (i / 2) + \" \" + chunk);\n\t\t//\n\t\t// opCode(chunk); // TODO - need to call this from the memory class I\n\t\t// think\n\n\t\tmem = new Memory();\n\n\t\tmemDispalyString();\n\n\t\tproc = new ProcessorLoop();\n\n\t\t// set the memory address and OpCode\n\t\t// mem.setAddress(addr);\n\t\t// // convert to decimal\n\t\t// mem.setOpCode(Integer.parseInt(chunk, 16));\n\t\t// System.out.println(\"oc = \" + (Integer.parseInt(chunk, 16)));\n\t\t//\n\t\t// // add the memory object to the memory array\n\t\t// MA.addMemoryObjects(addr, mem);\n\t\t// System.out.println(\"New memory = \" + mem.getAddress() + \" \"\n\t\t// + mem.getOpCode());\n\t\t// addr++;\n\t\t// }\n\n\t}", "public AsmMemoryMap(int numRegisters, int sizeOfMemory, int startPoint) {\r\n\t\tfinal int POINTERCOPY = 1; // 1 is added to the array of memory addresses to allocate a memory address for the pointer copy register\r\n\t\t\r\n\t\tthis.registers = new AsmMemoryAddress[numRegisters];\r\n\t\tthis.fullMemory = new AsmMemoryAddress[numRegisters+sizeOfMemory+POINTERCOPY+1/*memory pointer*/+3/*memory pointer arr*/];\r\n\t\tthis.programMemory = new AsmMemoryAddress[sizeOfMemory];\r\n\t\t\r\n\t\tinit(startPoint);\r\n\t}", "protected JvmMemoryMeta createJvmMemoryMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 541 */ return new JvmMemoryMeta(this, this.objectserver);\n/* */ }", "private Memory memory(Expression expression, cat.footoredo.mx.type.Type type) {\n return new Memory(asmType(type), expression);\n }", "@Nonnull\n @Deprecated\n public StoreBuilder<Raw> memory(Cache<BarCode, Observable<Raw>> memCache) {\n this.memCache = memCache;\n return this;\n }", "public void setMemory(int systemMemorySize)\n\t{\n\t\tmemorySize = systemMemorySize;\n\t}", "public static void alloc_cache_r(int request, int index_set,Memory[] memory_r, Cache[] cache_r, MCT[] mct_r){\n\t\tint replace_index=index_set*4+random_in_set_alloc_producer();\n\t\tmct_r[index_set].tag=cache_r[replace_index].address;\n\t\t\n\t\tcache_r[replace_index].address=memory_r[request].address;\n\t\tcache_r[replace_index].content=memory_r[request].content;\n\t\tcache_r[replace_index].priority=memory_r[request].priority;\n\t}", "public Map createBuffer() {\n // Get the available processors, processors==threads is probably best?\n Runtime runtime = Runtime.getRuntime();\n int nProcessors = runtime.availableProcessors();\n int nThreads = 1; // nProcessors/2;\n compute();\n return serviceArea;\n }", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "public MRUCache(CacheDataFactory<K, V> fact) {\r\n this(DEFAULTSIZE, fact, null);\r\n }", "public void loadMemory() {\n Converter c = new Converter(); //object to help with binary to decimal conversions and vice-versa\n \n int midpoint = (int) Math.floor(size/2); //divide memory into two haves\n \n //variables that will be needed\n int opcode;\n int address = midpoint;\n int index=0;\n\n //Initial instructions\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index+1, instruction);\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index+2, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(3); //0011\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from stdin\n Memory.memloc.set(index+3, instruction); //saving instruction to memory\n\n opcode = c.convertDecToBin(2); //0010\n instruction = new Instruction(opcode, c.convertDecToBin(address+1)); //store AC to memory\n Memory.memloc.set(index+4, instruction); //saving instruction to memory\n\n\n //The rest of the instructions\n for (int i = 5; i < midpoint; i = i + 6) {\n index = i;\n\n if ((index + 5) < midpoint-1) { //if index + 5 is not greater than the midpoint-1\n\n opcode = c.convertDecToBin(1); //0001\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //load AC from memory\n Memory.memloc.set(index, instruction); //saving instruction to memory\n \n opcode = c.convertDecToBin(5); //0101;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //add to AC from memory\n Memory.memloc.set(index + 1, instruction);\n\n opcode = c.convertDecToBin(7); //0111;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to stdout\n Memory.memloc.set(index + 2, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 3, instruction);\n\n opcode = c.convertDecToBin(4); //0100;\n address--;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //subtract from AC from memory\n Memory.memloc.set(index + 4, instruction);\n\n opcode = c.convertDecToBin(2); //0010;\n address = address + 2;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //store AC to memory\n Memory.memloc.set(index + 5, instruction);\n\n address--;\n } \n }\n\n //Loading the final intsruction in memory\n opcode = c.convertDecToBin(15); //1111;\n address++;\n instruction = new Instruction(opcode, c.convertDecToBin(address)); //halt\n Memory.memloc.set(index++, instruction);\n\n\n }", "Builder withCacheSizeInMiB(int sizeInMiB);", "public MainMemory getMem()\n {\n return mem;\n }", "public Memoria(int inicioMem, int finMem) {\n this.inicioMem = inicioMem;\n this.finMem = finMem;\n\n //calculamos el tamaño de cada seccion de la memoria\n tamMem = (finMem - inicioMem) / 3;\n\n //inciamos las secciones de memoria con el tam\n memoriaEntera = new int[tamMem+1];\n memoriaFlotante = new float[tamMem+1];\n memoriaChar = new char[tamMem+1][1];\n\n //iniciamos los espacios disponibles en 0\n enteroAct = 0;\n flotanteActual = 0;\n charActual = 0;\n }", "public SpriteCache() {\n counter = 0;\n spritesToRender = new SparseArray<>();\n lock = new ReentrantLock();\n }", "public long memory() {\n\treturn 0;\n }", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }", "void fillMem (){\n for (int i = memoria.minTextSection; i < memoria.maxStack; i++) {\n memoria.memory[i]= 0;\n }\n }", "public void setMemorySize(Integer memorySize) {\n this.MemorySize = memorySize;\n }", "public OldOldCache(int cUnits, int cExpiryMillis)\n {\n this(cUnits, cExpiryMillis, DEFAULT_PRUNE);\n }", "public CacheEntry(String word, List<LocationInfo> locations)\n {\n this.word = word.toCharArray();\n this.locations = Collections.unmodifiableList(locations);\n }", "public VirtualMachine(int memorySize, DebuggingPanel dp) {\n memory = new int[memorySize];\n this.dp = dp;\n dp.setComponents(this, register, pc, stackRegister, compareRegister);\n }", "<W extends V> void addMeasurement(DataCache<K, W> cache, K key, W value);", "DirectMemoryBackingStore( final long aMaxMapSize )\n\t{\n\t\tmapSize = aMaxMapSize;\n\t\tstartingAddress = UnsafeAccess.UNSAFE.allocateMemory(aMaxMapSize);\n\t\tbuffer = new LongUnsafeBuffer(startingAddress, mapSize);\n\t}", "public Cache() {\n this(null);\n }", "public SearchCache() {\n this(CAPACITY, new Ticker());\n }", "public IMemory getMemory() { return memory; }", "public void setMemorySize(Integer memorySize) {\n this.memorySize = memorySize;\n }", "public TestBinaryCacheStore(ObservableMap mapStorage)\n {\n super(mapStorage);\n }", "public DISPPARAMS(Pointer memory) {\n\t\t\tsuper(memory);\n\t\t\tthis.read();\n\t\t}", "protected abstract SharedMemory make_infos();", "public TestBinaryCacheStore(String sName)\n {\n this(CacheFactory.getCache(sName));\n }", "private void init() {\n _capacity = 1 << 9;\n int holderSize = _capacity << 1;\n _keyValueHolder = new int[holderSize];\n _mask = holderSize - 1;\n _maxNumEntries = (int) (_capacity * LOAD_FACTOR);\n }", "public MemoryManagementSystem(int mainMemorySize, int secondaryMemorySize, boolean useLRU) {\n\t\t// ADD YOUR CODE HERE\n\t\tthis.useLRU = useLRU;\n\t\tmainMemory = new DoublyLinkedListImpl();\n\t\tsecondaryMemory = new String[secondaryMemorySize];\n\t\tnodes = new Node[secondaryMemorySize];\n\t\tvalid = new boolean[secondaryMemorySize];\n\t\t// we copy the n first elements from the secondary memory to the main memory\n\t\t// and we intilaized the n first valid array's value to true, because the n first elements exists\n\t\t// into the main memory\n\t\tfor (int i = 0; i < secondaryMemory.length; i++) {\n\t\t\tsecondaryMemory[i] = \"\";\n\t\t\tif (i < mainMemorySize) {\n\t\t\t\tnodes[i] = mainMemory.addFirst(new Page(secondaryMemory[i], i, false));\n\t\t\t\tvalid[i] = true;\n\t\t\t}\n\t\t}\n\t}", "public CPU6502(final EmulatedDevice device, final int memSize) {\r\n this.device = device;\r\n this.memory = new byte[memSize];\r\n this.ramSize = memSize;\r\n initializeInstructions();\r\n }", "private boolean[] readWord(boolean[] address, boolean recordStats) {\n if (address.length > 32) {\n throw new IllegalArgumentException(\"address parameter must be 32 bits\");\n }\n // Programming Assignment 5: Complete this method\n // The comments provide a guide for this method.\n\n\n /*\n * Where does the address map in the cache? --> Determine the cache set that corresponds with\n * the requested memory address\n */\n\n // Get set bits from the address that was passed in\n boolean[] setBits = new boolean[numSetBits];\n for (int i = numByteBits; i < numByteBits + numSetBits; i++) {\n setBits[i - numByteBits] = address[i];\n System.out.println(\"setBits[\" + Integer.toString(i - numByteBits) + \"] is \"\n + String.valueOf(setBits[i - numByteBits]));\n }\n\n long cacheSet = Binary.binToUDec(setBits);\n System.out.println(\"Cache set is \" + Long.toString(cacheSet));\n\n boolean[] tagBits = new boolean[numTagBits];\n // Get tag from the address that was passed in\n for (int i = numByteBits + numSetBits; i < numByteBits + numSetBits + numTagBits; i++) {\n tagBits[i - numByteBits - numSetBits] = address[i];\n System.out.println(\"tagbits[\" + Integer.toString(i - numByteBits - numSetBits) + \"] is \"\n + String.valueOf(tagBits[i - numByteBits - numSetBits]));\n }\n\n /*\n * Determine whether or not the line that corresponds with the requested memory address is\n * currently in the cache\n */\n int lineCount=0;\n boolean inCache = false;\n // Iterate through the correct Cache Set\n for (int i = 0; i < cache[toIntExact(cacheSet)].size(); i++) {\n System.out.println(\"\\n Line \" + Integer.toString(i) + \":\");\n lineCount++;\n // Get the tag the line\n boolean[] lineTag = cache[toIntExact(cacheSet)].getLine(i).getTag();\n // If the tag from the line equals the tag from the parameter, then the line that corresponds\n // to the memory address is currently in the cache\n if (Arrays.equals(lineTag, tagBits)) {\n System.out.println(\"Line sorresponding to the memory address is currently in the cache\");\n inCache = true;\n // System.exit(0);\n }\n }\n //if it is in the cache the hit count increases\n \n // If the line corresponding to the memory address is not in the cache, call readLineFromMemory \n if (inCache==false) {\n readLineFromMemory(address, toIntExact(cacheSet), tagBits);\n }\n //System.out.println(Binary.toString(toIntExact(cacheSet)));\n\n System.exit(0);\n\n // TODO:\n // Update CacheMemory data members (requestCount, hitCount, hitCost)\n // and CacheLine data members (using the various set methods)\n // as needed for tracking cache hit rate and implementing the\n // least recently used replacement algorithm in the cache set.\n if(inCache==false) {\n \thitCount++;\n \thitCost=lineCount-1;\n }\n requestCount++;\n \n \n // replace this placeholder return with the data copied from the cache line\n return new boolean[32];\n }", "@SuppressWarnings({\"CallToThreadStartDuringObjectConstruction\", \"SleepWhileInLoop\"})\n public MemoryCache(long timeToLive, final long timerInterval, int maxItems) {\n this.timeToLive = timeToLive * 1000;\n\n cacheMap = new LRUMap(maxItems);\n\n if (timeToLive > 0 && timerInterval > 0) {\n\n Thread t;\n t = new Thread(() -> {\n while (true) {\n try {\n Thread.sleep(timerInterval * 1000);\n } catch (InterruptedException ex) {\n }\n cleanup();\n }\n });\n\n t.setDaemon(true);\n t.start();\n }\n }", "public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}", "public CacheManager()\n\t{\n\t}", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}" ]
[ "0.6326376", "0.6127742", "0.6096806", "0.6071775", "0.60653406", "0.603729", "0.59969753", "0.59891975", "0.597701", "0.5927436", "0.5910357", "0.5747982", "0.5744239", "0.5722713", "0.5722358", "0.5711599", "0.57112736", "0.5700996", "0.56828094", "0.56699413", "0.56035674", "0.559665", "0.5528153", "0.552331", "0.55142224", "0.5512447", "0.54979146", "0.5443256", "0.5417915", "0.5400118", "0.53707093", "0.53405017", "0.5339723", "0.5334019", "0.5322188", "0.5321722", "0.5303523", "0.52975404", "0.52975404", "0.5291393", "0.5212823", "0.52096856", "0.52062434", "0.52005714", "0.51856464", "0.51744354", "0.5164318", "0.5153887", "0.51418924", "0.5135004", "0.51321507", "0.5125417", "0.51208335", "0.51204324", "0.5105937", "0.51031035", "0.5095934", "0.50835747", "0.5067382", "0.5060089", "0.50580937", "0.5043114", "0.50249887", "0.5023296", "0.5013086", "0.5011504", "0.50113714", "0.500674", "0.50009304", "0.49898583", "0.49841085", "0.49618542", "0.4961642", "0.49515426", "0.49327844", "0.49202463", "0.49184075", "0.49141812", "0.49052435", "0.4896963", "0.48943117", "0.489288", "0.48877993", "0.4887123", "0.48841524", "0.48821563", "0.4881508", "0.4866707", "0.48495352", "0.48493183", "0.48405063", "0.48384437", "0.48333102", "0.48262835", "0.48247856", "0.4822602", "0.48162457", "0.4811772", "0.48043188", "0.48006552" ]
0.68247414
0
end of constructor DO NOT MODIFY THIS METHOD "Warm Up" the cache by reading random memory addresses. This method is used by programs that do not want to run on a "cold" cache. The cache performance statistics do not include requests from this warm up phase.
public void warmUp(int numReads, Random random) { int wordsInMainMem = (mainMemory.getSize() / WORD_SIZE); for (int i = 0; i < numReads; i++) { // Generate a random line address int wordAddress = random.nextInt(wordsInMainMem) * WORD_SIZE; boolean[] address = Binary.uDecToBin(wordAddress, 32); readWord(address, false); } warmUpRequests = requestCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void warmUp();", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "public AddressCacheImpl() {\n\t\tthis(CACHE_SIZE_DEFAULT, 0L);\n\t}", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }", "@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testReadFromExsistingHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\t\t\n\t}", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "private void init() {\n clearCaches();\n }", "@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }", "long getCacheHits();", "public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }", "private static Cache<DHTKey, LruRetentionInfo> buildEmptyCacheWithCapacity(long capacityBytes) {\n return Caffeine.newBuilder().weigher(cacheWeigher).maximumWeight(capacityBytes).recordStats().build();\n }", "protected final void copyNearCacheDetails( HazelCastClusterFileState hcState) {\n\t\tm_nearCacheTime = hcState.getNearCacheTime();\n\t\tm_nearLastAccess= hcState.getNearCacheLastAccessTime();\n\t\tm_nearCacheHits = hcState.getNearCacheHitCount();\n\t}", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}", "public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}", "@SuppressWarnings(\"unchecked\")\n public WeakIdentityCache() {\n threshold = 16;\n entries = new Entry[threshold];\n }", "protected void createLookupCache() {\n }", "public void prefetch() {\n\t}", "@Override\n public boolean isCaching() {\n return false;\n }", "public SpriteCache() {\n counter = 0;\n spritesToRender = new SparseArray<>();\n lock = new ReentrantLock();\n }", "public PatternCacheRandom()\r\n/* 26: */ {\r\n/* 27:118 */ this(20);\r\n/* 28: */ }", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "public int getCacheSize();", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}", "@Test\n\tpublic void testReadFromNewHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t}", "@Test\n\tpublic void testReadFromOnlyHostWithFullCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\t\t\n\t}", "Cache(ScotlandYardAIModel model){\n // Generates distances from everywhere with every configuration.\n List<ScotlandYardAIPlayer> allPossiblePlayers = new ArrayList<>();\n for(int start = 1; start < 200; start++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n allPossiblePlayers.add(new ScotlandYardAIPlayer(start, taxi, bus, underground));\n // Creates a BFS object to generate all distances, then saves them to cache\n BFS allBfs = new BFS(model.getGraph(), allPossiblePlayers);\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n distance[start][to][taxi][bus][underground] = (byte) allBfs.getDistances()[start][to][taxi][bus][underground].distance();\n\n // Generates number of valid moves\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++)\n validMoves[node][taxi][bus][underground][doublet][secret] =\n model.getValidMovesForPlayer(\n new ScotlandYardAIPlayer(node, taxi, bus, underground, doublet, secret)\n ).size();\n }", "@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}", "protected ElevationDataCache() {\n }", "void resetCache();", "public HitCounterReadWriteLock() {\r\n hits = new int[300];\r\n times = new int[300];\r\n }", "protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}", "public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }", "private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }", "public void mo4058a() {\n imageCacheStatsTracker.mo4071e();\n }", "void resetCacheCounters();", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "protected abstract void initCache(List<RECIPE> recipes);", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "private IUnit getRandomCacheUnit(){\n\t\tcache = new UnitCache();\n\t\treturn cache.getUnit(rnd.nextInt(cache.getSize()));\n\t}", "public CacheMemory(MainMemory m, int size, int lineSize, int linesPerSet) {\n\n if (lineSize % WORD_SIZE != 0) {\n throw new IllegalArgumentException(\"lineSize is not a multiple of \" + WORD_SIZE);\n }\n\n if (size % lineSize != 0) {\n throw new IllegalArgumentException(\"size is not a multiple of lineSize.\");\n }\n\n // number of lines in the cache\n int numLines = size / lineSize;\n\n if (numLines % linesPerSet != 0) {\n throw new IllegalArgumentException(\"number of lines is not a multiple of linesPerSet.\");\n }\n\n // number of sets in the cache\n int numSets = numLines / linesPerSet;\n\n // Set the main memory\n mainMemory = m;\n\n // Initialize the counters to zero\n requestCount = 0;\n warmUpRequests = 0;\n hitCount = 0;\n hitCost = 0;\n\n // Determine the number of bits required for the byte within a line,\n // for the set, and for the tag.\n int value;\n numByteBits = 0; // initialize to zero\n value = 1; // initialize to 2^0\n while (value < lineSize) {\n numByteBits++;\n value *= 2; // increase value by a power of 2\n }\n\n numSetBits = 0;\n value = 1;\n while (value < numSets) {\n numSetBits++;\n value *= 2;\n }\n\n // numTagBits is the remaining memory address bits\n numTagBits = 32 - numSetBits - numByteBits;\n\n System.out.println(\"CacheMemory constructor:\");\n System.out.println(\" numLines = \" + numLines);\n System.out.println(\" numSets = \" + numSets);\n System.out.println(\" numByteBits = \" + numByteBits);\n System.out.println(\" numSetBits = \" + numSetBits);\n System.out.println(\" numTagBits = \" + numTagBits);\n System.out.println();\n\n // Create the array of CacheSet objects and initialize each CacheSet object\n cache = new CacheSet[numSets];\n for (int i = 0; i < cache.length; i++) {\n cache[i] = new CacheSet(lineSize, linesPerSet, numTagBits);\n }\n }", "public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }", "public HotrodCacheFactory() {\n }", "int getCurrentCacheSize();", "@Override\n public void onLowMemory() {\n super.onLowMemory();\n mMap.onLowMemory();\n }", "public Object call() {\n if (_needWarmup) {\n warmup(); \n _needWarmup = false;\n }\n else {\n run();\n _needWarmup = true;\n }\n return null;\n }", "public HeapCacheBuilder() {\n this.name = \"imcache-heap-cache-\" + cacheNumber.incrementAndGet();\n }", "private FixtureCache() {\n\t}", "static private void populateCache() {\n if (cacheIsPopulated) {\n return;\n }\n cacheIsPopulated = true;\n\n /* Schema:\n *\n * units{\n * duration{\n * day{\n * one{\"{0} ден\"}\n * other{\"{0} дена\"}\n * }\n */\n\n // Load the unit types. Use English, since we know that that is a superset.\n ICUResourceBundle rb1 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_UNIT_BASE_NAME,\n \"en\");\n rb1.getAllItemsWithFallback(\"units\", new MeasureUnitSink());\n\n // Load the currencies\n ICUResourceBundle rb2 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_BASE_NAME,\n \"currencyNumericCodes\",\n ICUResourceBundle.ICU_DATA_CLASS_LOADER);\n rb2.getAllItemsWithFallback(\"codeMap\", new CurrencyNumericCodeSink());\n }", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}", "public void setCached() {\n }", "long memoryUnused();", "long getCacheMisses();", "InstrumentablePerformanceExecutor<T> warmup();", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "public AddressCacheImplementation(float cacheTime) {\n\t\t// constructor allows the linkedlist within LinkedHashMap to maintain\n\t\t// order\n\t\t// with respect to calls to \"get\", \"put\" and \"putAll\". (i.e. maintaining\n\t\t// the most recently accessed/inserted elements at the front of the\n\t\t// cache)\n\t\tmInetAddressList = new LinkedHashMap<>(10, 0.75f, true);\n\n\t\t// element expiration time (TTL)\n\t\tmCacheTime = cacheTime;\n\n\t\t// zero initial permits\n\t\t// first in, first out distribution of permits as they become available\n\t\tmInetAddressAvailableSemaphore = new Semaphore(0, true);\n\t\tmIsClosed = false;\n\n\t\t// create a cleanup task and schedule it to start after 5 seconds, then\n\t\t// run\n\t\t// every 5 seconds\n\t\tmCleanupTask = new CleanupTask();\n\t\tTimer taskTimer = new Timer();\n\t\ttaskTimer.scheduleAtFixedRate(mCleanupTask, 5000, 5000);\n\t}", "public Memory(int access_time) {\n\t\tthis.mem_array = new String[65536];\n\t\tthis.access_time = access_time;\n\t\tthis.fetch_cycles_left = access_time;\n\t\tthis.load_cycles_left = access_time;\n\t}", "long getOwnedEntryMemoryCost();", "public static void alloc_cache_rp(int request, int index_set, Cache[] cache_rp, Memory[] memory_rp, MCT[] mct_rp){\n\t\tint num=0,min=0,random_in_set=0,replace_index=0;\n\t\tint[][] tmp = new int[4][2];\n\t\t\n\t\tfor(int i=0;i<4;i++){\n\t\t\ttmp[i][0]=index_set*4+i;\n\t\t\ttmp[i][1]=cache_rp[index_set*4+i].priority;\n\t\t}\n\t\tmin=tmp[0][1];\n\t\tfor(int j=0;j<4;j++){ //find the minimum in all priorities\n\t\t\tif(min>tmp[j][1]){\n\t\t\t\tmin=tmp[j][1];\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<4;k++){\n\t\t\tif(min==tmp[k][1]){\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t\t\n\t\trandom_in_set=random_seed(num)+1;\n\t\tfor(int m=0;m<4;m++){\t\t//randomly choose the one in all cache lines with same minimal priority\n\t\t\tif(min==cache_rp[index_set*4+m].priority){\n\t\t\t\tif(random_in_set==1){\n\t\t\t\t\treplace_index=index_set*4+m;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\trandom_in_set--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmct_rp[index_set].tag=cache_rp[replace_index].address;\n\t\tcache_rp[replace_index].address=memory_rp[request].address;\n\t\tcache_rp[replace_index].content=memory_rp[request].content;\n\t\tcache_rp[replace_index].priority=memory_rp[request].priority;\t\t\n\t}", "protected void warmupImpl(M newValue) {\n\n }", "@Override\n\tpublic int getSizeToCache() {\n\t\treturn 0;\n\t}", "@Override\n public void warmUp() {\n System.out.println(super.getName() + \" (\" + this.modality() + \") is warming up...\");\n }", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "@Override\n\tpublic long getMaxCacheSize() {\n\t\treturn 0;\n\t}", "public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}", "public void findCacheHitMissRates(String fileName) throws IOException {\n\t\tthis.fileName = fileName;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\tString line;\n\t\toffsetBits = (int) (Math.log(blockSize)/Math.log(2));\n\t\tindexBits = (int) (Math.log(numSets)/Math.log(2));\n\t\ttagBits = ADDRESS_BITS - offsetBits - indexBits;\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tnumAccesses++;\n\t\t\tString[] tokens = line.split(\" \");\n\t\t\tString address = tokens[2];\n\t\t\t\t\t\n\t\t\t//address given is 44 bits so take 32 bits by truncating 12 MSB and add offset to the address. \n\t\t\t\n\t\t\tBigInteger addr = new BigInteger(address, 16);// BigInteger read address in hex format and converts it to an integer into BigInteger object.\n\t\t\taddress= addr.toString(2); // converted to binary\n\t\t\t\n\t\t\taddress = (address.length() == ADDRESS_BITS ? address : getValidAddress(address)); //truncated --32 \n\t\t\t\n\t\t\taddr=new BigInteger(address, 2); \n\t\t\t\n\t\t\t\n\t\t\tBigInteger offset = new BigInteger(Integer.toString(Integer.parseInt(tokens[1])));\n\t\t\taddr = addr.add(offset);\n\t\t\t\n\t\t\taddress = addr.toString(2);// BigIntger's toString(2) is used to return the binary string \n\t\t\t// representation of it.\n\t\t\t\n\t\t\taddress = (address.length() == ADDRESS_BITS ? address : getValidAddress(address));\n\t\t\t\n\t\t\t// Calculate offset, index and tag bits.\n\t\t\n\t\t\n\t\t\tString tag = address.substring(0, tagBits);\n\t\t\tString index = address.substring(tagBits, indexBits + tagBits);\n\t\t\tint setNum;\n\t\t\tif(index.isEmpty()) setNum = 0; \n\t\t\telse { \n\t\t\t\tsetNum = Integer.parseInt(index, 2);\n\t\t\t\t//System.out.println(\"setnum in else\"+(setNum%numSets));\n\t\t\t}\n\t\t\tcheckTagInSet(tag, setNum, (vCache != null));\n\t\t}\n\t\thitRate = (double) numHits / numAccesses;\n\t\t//missRate = (double) numMiss / numAccesses;\n\t\tmissRate = 1 - hitRate;\n\t\treader.close();\n\t}", "public static long getMemoryCached() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryCached();\r\n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }", "public CacheFeeder(int entryNumber) {\n this.entryNumber = entryNumber;\n // Array that keeps the keys to all the maps, for further picking a random key out of it, that will be\n // requested from cacheProcessor.\n cacheKeys = (T[]) new Object[entryNumber];\n keysToObjectsMap = populateMap();\n }", "public void prefetch () throws IOException {\n\t\t\tlong latestEpoch = -1;\n\t\t\t\tbyte[] latestEpochBytes = cloudBlockSnapshotStore.get(\"EpochCount\");\n\t\t\t\tif (latestEpochBytes == null) {\n\t\t\t\t\tif (debugPrintoutFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Prefetcher thread gets interrupted, exit the main loop here\");\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlatestEpoch = ByteUtils.bytesToLong(latestEpochBytes);\n\t\t\t\tif (debugPrintoutFlag) {\n\t\t\t\t\tSystem.out.println(\"latestEpoch=\" + latestEpoch);\n\t\t\t\t}\n\t\t\t\t//byte[] myPrefetchedEpochBytes = blockDataStore.get(\"PrefetchedEpoch-\" + RockyController.nodeID);\n\t\t\t\t//if (myPrefetchedEpochBytes == null) {\n\t\t\t\t//\tblockDataStore.put(\"PrefetchedEpoch-\" + RockyController.nodeID, ByteUtils.longToBytes(myPrefetchedEpoch));\n\t\t\t\t//}\n\t\t\t\t//myPrefetchedEpoch = ByteUtils.bytesToLong(myPrefetchedEpochBytes);\n\t\t\tif (debugPrintoutFlag) { \n\t\t\t\tSystem.out.println(\"prefetchedEpoch=\" + RockyStorage.prefetchedEpoch);\n\t\t\t\tSystem.out.println(\"epochCnt=\" + epochCnt);\n\t\t\t}\n\t\t\tif (latestEpoch > RockyStorage.prefetchedEpoch) { // if I am nonOwner with nothing more to prefetch, I don't prefetch\n\t\t\t\t// Get all epoch bitmaps\n\t\t\t\t//List<BitSet> epochBitmapList = fetchNextEpochBitmaps(latestEpoch, myPrefetchedEpoch);\n\t\t\t\tList<BitSet> epochBitmapList = fetchNextEpochBitmaps(latestEpoch, RockyStorage.prefetchedEpoch);\n\t\t\t\t\n\t\t\t\t// Get a list of blockIDs to prefetch\n\t\t\t\tHashSet<Integer> blockIDList = getPrefetchBlockIDList(epochBitmapList);\n\t\t\t\n\t\t\t\tif (blockIDList != null) { // if blockIDList is null, we don't need to prefetch anything\n\t\t\t\t\t// Prefetch loop\n\t\t\t\t\tprefetchBlocks(this, blockIDList);\n\t\t\t\t\t\n\t\t\t\t\t// Update PrefetchedEpoch-<nodeID> on cloud and prefetchedEpoch\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcloudBlockSnapshotStore.put(\"PrefetchedEpoch-\" + RockyController.nodeID, ByteUtils.longToBytes(latestEpoch));\n\t\t\t\t\t} catch (IOException 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\tprefetchedEpoch = latestEpoch;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}", "public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats(long arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "private void createImageCache(){\n ImageCacheManager.getInstance().init(this,\n this.getPackageCodePath()\n , DISK_IMAGECACHE_SIZE\n , DISK_IMAGECACHE_COMPRESS_FORMAT\n , DISK_IMAGECACHE_QUALITY\n , ImageCacheManager.CacheType.MEMORY);\n }", "@Scheduled(fixedDelay = 98)\n public void cacheStats() {\n SalesAmount salesAmount = statsService.retrieveNextSalesAmount();\n LocalDateTime now = LocalDateTime.now(clock).withNano(0);\n while (salesAmount != null && !salesAmount.getTime().isAfter(Instant.now(clock))) {\n /*\n Because sales requests are processed sequentially, this way we don't need to care about increasing the\n aggregated sales amount in parallel and use Atomic data structures.\n */\n SalesAmountPerSecond salesAmountPerSecond = statsService.getLastSalesAmountPerSecond();\n if (null != salesAmountPerSecond && salesAmountPerSecond.getTime().equals(now)) {\n salesAmountPerSecond.addSalesAmount(salesAmount.getAmount());\n } else {\n statsService.addSalesAmountPerSecond(new SalesAmountPerSecond(\n salesAmount.getAmount(),\n 1,\n now));\n }\n salesAmount = statsService.retrieveNextSalesAmount();\n }\n }", "private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }", "private List<Map<Number160, PeerStatistic>> initMap(final int[] bagSizes, final boolean caching) {\n List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>();\n for (int i = 0; i < Number160.BITS; i++) {\n // I made some experiments here and concurrent sets are not\n // necessary, as we divide similar to segments aNonBlockingHashSets\n // in a concurrent map. In a full network, we have 160 segments, for\n // smaller we see around 3-4 segments, growing with the number of\n // peers. bags closer to 0 will see more read than write, and bags\n // closer to 160 will see more writes than reads.\n //\n // We also only allocate memory for the bags far away, as they are likely to be filled first.\n if (caching) {\n tmp.add(new CacheMap<Number160, PeerStatistic>(bagSizes[i], true));\n } else {\n final int memAlloc = bagSizes[i] / 8;\n tmp.add(new HashMap<Number160, PeerStatistic>(memAlloc));\n }\n }\n return Collections.unmodifiableList(tmp);\n }", "private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0, long arg1)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public MLNKVMemoryCache(String name) {\n this.name = name;\n LRUCountLimit = 10000;\n FIFOCountLimit = 1000;\n memorySizeLimit = 100 << 20;\n releaseOnMainThread = false;\n\n useFIFO = true;\n useLRU = true;\n\n weakMap = new HashMap<>();\n LRUCache = new MLNKVCache();\n FIFOCache = new MLNKVCache();\n\n LRUCache.releaseOnMainThread = releaseOnMainThread;\n FIFOCache.releaseOnMainThread = releaseOnMainThread;\n }", "@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void run() {\n\t\tList<LineageCacheEntry> lockedOrLiveEntries = new ArrayList<>();\n\t\tint count = 0;\n\n\t\t// Stop if 1) Evicted the request number of entries, 2) The parallel\n\t\t// CPU instruction is ended, and 3) No non-live entries left in the cache.\n\t\tlong t0 = DMLScript.STATISTICS ? System.nanoTime() : 0;\n\t\t/*while (!LineageGPUCacheEviction.isGPUCacheEmpty())\n\t\t{\n\t\t\tif (LineageCacheConfig.STOPBACKGROUNDEVICTION)\n\t\t\t\t// This logic reduces #evictions if the cpu instructions is so small\n\t\t\t\t// that it ends before the background thread reaches this condition.\n\t\t\t\t// However, this check decreases race conditions.\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tif (numEvicts > 0 && count > numEvicts)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tLineageCacheEntry le = LineageGPUCacheEviction.pollFirstEntry();\n\t\t\tGPUObject cachedGpuObj = le.getGPUObject();\n\t\t\tGPUObject headGpuObj = cachedGpuObj.lineageCachedChainHead != null\n\t\t\t\t\t? cachedGpuObj.lineageCachedChainHead : cachedGpuObj;\n\t\t\t// Check and continue if any object in the linked list is locked\n\t\t\tboolean lockedOrLive = false;\n\t\t\tGPUObject nextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\tif (!nextgpuObj.isrmVarPending() || nextgpuObj.isLocked()) // live or locked\n\t\t\t\t\tlockedOrLive = true;\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\t\t\tif (lockedOrLive) {\n\t\t\t\tlockedOrLiveEntries.add(le);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// TODO: First remove the gobj chains that don't contain any live and dirty objects.\n\t\t\t//currentAvailableMemory += headGpuObj.getSizeOnDevice();\n\n\t\t\t// Copy from device to host for all live and dirty objects\n\t\t\tboolean copied = false;\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t// Keeping isLinCached as True here will save data deletion by copyFromDeviceToHost\n\t\t\t\tif (!nextgpuObj.isrmVarPending() && nextgpuObj.isDirty()) { //live and dirty\n\t\t\t\t\tnextgpuObj.copyFromDeviceToHost(null, true, true);\n\t\t\t\t\tcopied = true;\n\t\t\t\t}\n\t\t\t\tnextgpuObj.setIsLinCached(false);\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\n\t\t\t// Copy from device cache to CPU lineage cache if not already copied\n\t\t\tLineageGPUCacheEviction.copyToHostCache(le, null, copied);\n\n\t\t\t// For all the other objects, remove and clear data (only once)\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\tboolean freed = false;\n\t\t\tsynchronized (nextgpuObj.getGPUContext().getMemoryManager().getGPUMatrixMemoryManager().gpuObjects) {\n\t\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t\t// If not live or live but not dirty\n\t\t\t\t\tif (nextgpuObj.isrmVarPending() || !nextgpuObj.isDirty()) {\n\t\t\t\t\t\tif (!freed) {\n\t\t\t\t\t\t\tnextgpuObj.clearData(null, true);\n\t\t\t\t\t\t\t//FIXME: adding to rmVar cache causes multiple failures due to concurrent\n\t\t\t\t\t\t\t//access to the rmVar cache and other data structures. VariableCP instruction\n\t\t\t\t\t\t\t//and other instruction free memory and add to rmVar cache in parallel to\n\t\t\t\t\t\t\t//the background eviction task, which needs to be synchronized.\n\t\t\t\t\t\t\tfreed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnextgpuObj.clearGPUObject();\n\t\t\t\t\t}\n\t\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Clear the GPUOjects chain\n\t\t\tGPUObject currgpuObj = headGpuObj;\n\t\t\twhile (currgpuObj.nextLineageCachedEntry != null) {\n\t\t\t\tnextgpuObj = currgpuObj.nextLineageCachedEntry;\n\t\t\t\tcurrgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj.nextLineageCachedEntry = null;\n\t\t\t\tnextgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj = nextgpuObj;\n\t\t\t}\n\n\t\t\t//if(currentAvailableMemory >= size)\n\t\t\t\t// This doesn't guarantee allocation due to fragmented freed memory\n\t\t\t//\tA = cudaMallocNoWarn(tmpA, size, null); \n\t\t\tif (DMLScript.STATISTICS) {\n\t\t\t\tLineageCacheStatistics.incrementGpuAsyncEvicts();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\t// Add the locked entries back to the eviction queue\n\t\tif (!lockedOrLiveEntries.isEmpty())\n\t\t\tLineageGPUCacheEviction.addEntryList(lockedOrLiveEntries);\n\t\t\n\t\tif (DMLScript.STATISTICS) //TODO: dedicated statistics for lineage\n\t\t\tGPUStatistics.cudaEvictTime.add(System.nanoTime() - t0); */\n\t}", "public void warmup(TestCase testCase) { \n run(testCase);\n }", "@Override\n public void clearCache() {\n }", "public static void alloc_cache_r(int request, int index_set,Memory[] memory_r, Cache[] cache_r, MCT[] mct_r){\n\t\tint replace_index=index_set*4+random_in_set_alloc_producer();\n\t\tmct_r[index_set].tag=cache_r[replace_index].address;\n\t\t\n\t\tcache_r[replace_index].address=memory_r[request].address;\n\t\tcache_r[replace_index].content=memory_r[request].content;\n\t\tcache_r[replace_index].priority=memory_r[request].priority;\n\t}", "void clearCache();", "void clearCache();", "public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }", "@Override\n public void onLowMemory() {\n super.onLowMemory();\n Log.w(TAG, \"System is running low on memory\");\n\n// BitmapCache.getInstance().clear();\n }", "synchronized HashMap flushTemporaryPrototypeCache() {\n HashMap c = _pcache;\n _pcache = null;\n return c;\n }", "private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMemInfo();\r\n\t\t\tif(count[0] != 0){\r\n\t\t\t\tmemoryUsage = ((float)(count[0] - count[1] - count[2] - count[3]) * 100 / count[0]);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"calculate memory usage failure.\", e);\r\n\t\t}\r\n\t\tCpuMemoryUsage cmu = new CpuMemoryUsage();\r\n\t\tcmu.setCpuUsage(cpuUsage);\r\n\t\tcmu.setMemUsage(memoryUsage);\r\n\t\tcmu.setOwner(hmDomain);\r\n\t\tcmu.setTimeStamp((new Date()).getTime());\r\n\t\ttry {\r\n\t\t\tQueryUtil.createBo(cmu);\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"create CpuMemoryUsage failure.\", e);\r\n\t\t}\r\n\t}", "public boolean isCachedMemory() {\n return false;\n }", "Cache(){\n // If the files exist, load the contents into memory as matrices.\n if(distanceFile.exists() && validMoveFile.exists()){\n try{\n FileInputStream in = new FileInputStream(distanceFile);\n byte[] tempDist = new byte[200 * 200 * 12 * 9 * 5];\n // Reads the file as a byte array, then stores it as a byte matrix.\n in.read(tempDist);\n int i = 0;\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n distance[start][to][taxi][bus][underground] = tempDist[i++];\n\n in = new FileInputStream(validMoveFile);\n byte[] tempMoves = new byte[4 * 200 * 162];\n // Reads the file as a byte array, then stores it as an int matrix.\n in.read(tempMoves);\n i = 0;\n\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++){\n // Compute the int from 4 consecutive bytes in the byte array\n for(int b = 0; b < 4; b++)\n validMoves[node][taxi][bus][underground][doublet][secret] =\n (validMoves[node][taxi][bus][underground][doublet][secret] << 8) | (tempMoves[b + i] & 0xFF);\n i += 4;\n }\n }\n catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n }" ]
[ "0.65840334", "0.62793344", "0.61637527", "0.61297935", "0.5932995", "0.5930296", "0.59120333", "0.5909942", "0.58461046", "0.58434474", "0.5830865", "0.5813764", "0.5804176", "0.5772014", "0.5766145", "0.57507074", "0.5749872", "0.572531", "0.5712581", "0.56999284", "0.5697119", "0.5651727", "0.5643279", "0.56344527", "0.5621794", "0.5589536", "0.5565381", "0.5535436", "0.5507826", "0.55014616", "0.5492102", "0.54866195", "0.54678726", "0.5463447", "0.5439693", "0.54380774", "0.5425338", "0.54184574", "0.53767884", "0.53678775", "0.53613704", "0.53571564", "0.5353792", "0.53460175", "0.5344489", "0.53438413", "0.53417546", "0.5339515", "0.53377455", "0.53361857", "0.5333325", "0.5317283", "0.5313439", "0.53133655", "0.53077286", "0.5301391", "0.5300224", "0.5300201", "0.52869636", "0.5271256", "0.5265052", "0.5254885", "0.52514553", "0.52493376", "0.52454406", "0.5239563", "0.5222435", "0.5211854", "0.52107406", "0.52069646", "0.52040654", "0.5203933", "0.51958096", "0.51956224", "0.51946056", "0.5188917", "0.51799095", "0.5178051", "0.5175263", "0.51658523", "0.5162376", "0.51588297", "0.51549184", "0.51529074", "0.51455945", "0.51423776", "0.51420975", "0.5138054", "0.51366144", "0.5135744", "0.5128839", "0.51261365", "0.5123257", "0.5123257", "0.5120669", "0.51191515", "0.5118229", "0.5117129", "0.511571", "0.5111348" ]
0.58429426
10