public class PlatformProvidingClientAppFragment extends ClientAppMainFragment implements android.content.ServiceConnection, jadex.android.commons.JadexPlatformOptions
| Modifier and Type | Field and Description |
|---|---|
static int |
BIND_AUTO_CREATE |
static int |
BIND_DEBUG_UNBIND |
static int |
BIND_NOT_FOREGROUND |
protected jadex.bridge.IComponentIdentifier |
platformId |
EXTRA_KEY_BACKSTACK, finished| Constructor and Description |
|---|
PlatformProvidingClientAppFragment()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finish()
Calls getActivity().finish();
|
android.content.Intent |
getIntent() |
protected jadex.bridge.IExternalAccess |
getPlatformAccess() |
protected jadex.base.PlatformConfiguration |
getPlatformConfiguration()
Get the platform configuration
|
protected jadex.bridge.service.types.platform.IJadexPlatformBinder |
getPlatformService()
Gets the platform service.
|
protected boolean |
isPlatformRunning() |
protected boolean |
isPlatformRunning(jadex.bridge.IComponentIdentifier platformId) |
android.database.Cursor |
managedQuery(android.net.Uri uri,
java.lang.String[] projection,
java.lang.String selection,
java.lang.String[] selectionArgs,
java.lang.String sortOrder)
Calls getActivity().managedQuery()
|
void |
onCreate(android.os.Bundle savedInstanceState) |
void |
onDestroy() |
protected void |
onPlatformStarted(jadex.bridge.IExternalAccess result)
Called right after the platform is started.
|
protected void |
onPlatformStarting()
Called right before the platform startup.
|
void |
onServiceConnected(android.content.ComponentName name,
android.os.IBinder service) |
void |
onServiceDisconnected(android.content.ComponentName name) |
protected void |
registerEventReceiver(jadex.android.IEventReceiver<?> rec) |
void |
runOnUiThread(java.lang.Runnable runnable)
Calls getActivity().runOnUiThread()
|
protected jadex.commons.future.Future<java.lang.Void> |
sendMessage(java.util.Map<java.lang.String,java.lang.Object> message,
jadex.bridge.IComponentIdentifier receiver)
Sends a FIPA Message to the specified receiver.
|
protected jadex.commons.future.Future<java.lang.Void> |
sendMessage(java.util.Map<java.lang.String,java.lang.Object> message,
jadex.bridge.service.types.message.MessageType type,
jadex.bridge.IComponentIdentifier receiver)
Sends a Message to a Component on the Jadex Platform.
|
void |
setIntent(android.content.Intent intent) |
protected void |
setPlatformAutostart(boolean autostart)
Sets the autostart parameter for this jadex platform.
|
protected void |
setPlatformConfiguration(jadex.base.PlatformConfiguration config)
Sets platform configuration.
|
protected void |
setPlatformKernels(java.lang.String... kernels)
Sets the Kernels.
|
protected void |
setPlatformName(java.lang.String name)
Sets the name of the platform that is started by this activity.
|
protected void |
setPlatformOptions(java.lang.String options)
Deprecated.
use setPlatformConfiguration
|
void |
setProgressBarIndeterminate(boolean value) |
void |
setProgressBarIndeterminateVisibility(boolean indeterminate)
Calls getActivity().setProgressBarIndeterminateVisibility()
|
void |
setTitle(java.lang.CharSequence title)
Calls getActivity().setTitle()
|
void |
setTitle(int titleId)
Calls getActivity().setTitle()
|
void |
shutdownJadexPlatform(jadex.bridge.IComponentIdentifier platformID)
Terminates a given Jadex platform.
|
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startComponent(java.lang.String name,
java.lang.String modelPath)
Starts a Component.
|
protected void |
startPlatform()
Starts the Jadex Platform.
|
protected void |
stopPlatforms()
Stops all running jadex platforms.
|
protected void |
unregisterEventReceiver(jadex.android.IEventReceiver<?> rec) |
bindService, finishFragment, getApplicationInfo, getContext, onPrepare, onStart, setApplicationInfo, setUniversalClientService, startService, stopService, unbindServicedump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStop, onViewCreated, onViewStateRestored, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivityForResult, toString, unregisterForContextMenuprotected jadex.bridge.IComponentIdentifier platformId
public static final int BIND_AUTO_CREATE
public static final int BIND_DEBUG_UNBIND
public static final int BIND_NOT_FOREGROUND
public PlatformProvidingClientAppFragment()
public void onCreate(android.os.Bundle savedInstanceState)
onCreate in class android.support.v4.app.Fragmentpublic void onDestroy()
onDestroy in class android.support.v4.app.Fragmentprotected void setPlatformAutostart(boolean autostart)
autostart - protected void setPlatformKernels(java.lang.String... kernels)
JadexPlatformManager Constants for
available Kernels.kernels - protected void setPlatformOptions(java.lang.String options)
options - protected void setPlatformConfiguration(jadex.base.PlatformConfiguration config)
config - protected jadex.base.PlatformConfiguration getPlatformConfiguration()
protected void setPlatformName(java.lang.String name)
name - protected boolean isPlatformRunning()
protected jadex.bridge.IExternalAccess getPlatformAccess()
protected jadex.bridge.service.types.platform.IJadexPlatformBinder getPlatformService()
protected boolean isPlatformRunning(jadex.bridge.IComponentIdentifier platformId)
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startComponent(java.lang.String name,
java.lang.String modelPath)
name - Name of the Component createdmodelPath - Path to the Componentprotected void registerEventReceiver(jadex.android.IEventReceiver<?> rec)
protected void unregisterEventReceiver(jadex.android.IEventReceiver<?> rec)
protected jadex.commons.future.Future<java.lang.Void> sendMessage(java.util.Map<java.lang.String,java.lang.Object> message,
jadex.bridge.IComponentIdentifier receiver)
message - receiver - protected jadex.commons.future.Future<java.lang.Void> sendMessage(java.util.Map<java.lang.String,java.lang.Object> message,
jadex.bridge.service.types.message.MessageType type,
jadex.bridge.IComponentIdentifier receiver)
message - type - public void onServiceConnected(android.content.ComponentName name,
android.os.IBinder service)
onServiceConnected in interface android.content.ServiceConnectionpublic void onServiceDisconnected(android.content.ComponentName name)
onServiceDisconnected in interface android.content.ServiceConnectionprotected void onPlatformStarting()
protected void onPlatformStarted(jadex.bridge.IExternalAccess result)
result - The external access to the platformprotected final void startPlatform()
protected void stopPlatforms()
public void shutdownJadexPlatform(jadex.bridge.IComponentIdentifier platformID)
platformID - Identifier of the platform to terminateprotected void finish()
public void setProgressBarIndeterminateVisibility(boolean indeterminate)
public void setProgressBarIndeterminate(boolean value)
public void runOnUiThread(java.lang.Runnable runnable)
public void setTitle(java.lang.CharSequence title)
public void setTitle(int titleId)
public final android.database.Cursor managedQuery(android.net.Uri uri,
java.lang.String[] projection,
java.lang.String selection,
java.lang.String[] selectionArgs,
java.lang.String sortOrder)
public android.content.Intent getIntent()
public void setIntent(android.content.Intent intent)