Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Package Functions | Private Member Functions | Private Attributes | Static Private Attributes
com.github.rosjava.android_remocons.robot_remocon.RobotRemocon Class Reference
Inheritance diagram for com.github.rosjava.android_remocons.robot_remocon.RobotRemocon:
Inheritance graph
[legend]

List of all members.

Classes

class  AlertDialogWrapper
class  ProgressDialogWrapper

Public Member Functions

void chooseNewMasterClicked (View view)
void deactivateRobotClicked (View view)
void exchangeButtonClicked (View view)
void onActivityResult (int requestCode, int resultCode, Intent data)
void onAppClicked (final App app, final boolean isClientApp)
void onBackPressed ()
void onCreate (Bundle savedInstanceState)
boolean onCreateOptionsMenu (Menu menu)
boolean onOptionsItemSelected (MenuItem item)
 RobotRemocon ()
void startMasterChooser ()
void stopApplicationsClicked (View view)
void stopRobotApplication ()
void validateRobot (final RobotId id)

Protected Member Functions

void init (NodeMainExecutor nodeMainExecutor)
Dialog onCreateDialog (int id)
void updateAppList (final ArrayList< App > apps, final ArrayList< App > runningApps)

Protected Attributes

AppManager listAppsSubscriber = null

Package Functions

void init (Intent intent)

Private Member Functions

void returnToRobotMasterChooser ()
void stopProgress ()

Private Attributes

boolean alreadyClicked = false
ArrayList< App > availableAppsCache
long availableAppsCacheTime
Button deactivate
AlertDialogWrapper errorDialog
AlertDialogWrapper evictDialog
Button exchangeButton
ProgressDialog progress
ProgressDialogWrapper progressDialog
TextView robotNameView
ArrayList< App > runningAppsCache
boolean runningNodes = false
Button stopAppsButton
boolean validatedRobot
AlertDialogWrapper wifiDialog

Static Private Attributes

static final int CLOSE_EXISTING = 0
static final int MULTI_RAPP_DISABLED = 1
static final int ROBOT_MASTER_CHOOSER_REQUEST_CODE = 1

Detailed Description

Definition at line 81 of file RobotRemocon.java.


Constructor & Destructor Documentation

Definition at line 230 of file RobotRemocon.java.


Member Function Documentation

Definition at line 749 of file RobotRemocon.java.

Definition at line 785 of file RobotRemocon.java.

Definition at line 782 of file RobotRemocon.java.

This gets processed as soon as the application returns it with a uri - this is either as a result of the master chooser or as in the case when it has been relaunched by an application, from intents set by the application.

Here we configure the remocon environment for a particular robot, listing apps and providing the required triggers for interacting with that robot.

Parameters:
nodeMainExecutor

Reimplemented from com.github.rosjava.android_remocons.robot_remocon.RobotActivity.

Definition at line 266 of file RobotRemocon.java.

Initialise from an intent triggered by either the returning robot chooser or a robot app.

Validation will occur slightly differently in both cases - when returning from the app, it will assume its already in control and skip the invitation step (see validateRobot).

This eventually passes control back to the generic init function (TODO: can probably incorporate this into that function).

Parameters:
intent

Definition at line 327 of file RobotRemocon.java.

void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onActivityResult ( int  requestCode,
int  resultCode,
Intent  data 
) [inline]

The main result gathered here is that from the robot master chooser which is started on top of the initial RobotRemocon Activity. This proceeds to then set the uri and trigger the init() calls.

Parameters:
requestCode
resultCode
data

Definition at line 372 of file RobotRemocon.java.

void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onAppClicked ( final App  app,
final boolean  isClientApp 
) [inline]

Definition at line 644 of file RobotRemocon.java.

Definition at line 898 of file RobotRemocon.java.

Called when the activity is first created.

Reimplemented from com.github.rosjava.android_remocons.robot_remocon.RobotActivity.

Definition at line 239 of file RobotRemocon.java.

Definition at line 869 of file RobotRemocon.java.

Definition at line 852 of file RobotRemocon.java.

Definition at line 858 of file RobotRemocon.java.

This returns the activity to the robot master chooser activity. It will get triggered via either a backpress or the button provided in the RobotRemocon activity.

Definition at line 767 of file RobotRemocon.java.

This is an override which diverts the usual startup once a node is connected. Typically this would go to the master chooser, however here we are sometimes returning from one of its child apps (in which case it doesn't have to go choosing a robot). In that case, send it directly to the robot validation and initialisation steps.

Definition at line 394 of file RobotRemocon.java.

Callback for the button that appears in the app list view when a paired robot app is running and either there is no local android app, or for some reason, the local android app closed without terminating the paired robot app.

Parameters:
view

Definition at line 834 of file RobotRemocon.java.

Definition at line 106 of file RobotRemocon.java.

Currently stops all/any robot applications and is called when either the button to stop all applications has been pressed or the android application terminates itself.

Definition at line 793 of file RobotRemocon.java.

void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.updateAppList ( final ArrayList< App >  apps,
final ArrayList< App >  runningApps 
) [inline, protected]

Definition at line 709 of file RobotRemocon.java.

Definition at line 409 of file RobotRemocon.java.


Member Data Documentation

Definition at line 101 of file RobotRemocon.java.

Definition at line 90 of file RobotRemocon.java.

Definition at line 104 of file RobotRemocon.java.

Definition at line 87 of file RobotRemocon.java.

Definition at line 92 of file RobotRemocon.java.

Definition at line 99 of file RobotRemocon.java.

Definition at line 98 of file RobotRemocon.java.

Definition at line 94 of file RobotRemocon.java.

Definition at line 100 of file RobotRemocon.java.

Definition at line 86 of file RobotRemocon.java.

Definition at line 95 of file RobotRemocon.java.

Definition at line 96 of file RobotRemocon.java.

Definition at line 84 of file RobotRemocon.java.

Definition at line 89 of file RobotRemocon.java.

Definition at line 91 of file RobotRemocon.java.

Definition at line 103 of file RobotRemocon.java.

Definition at line 93 of file RobotRemocon.java.

Definition at line 102 of file RobotRemocon.java.

Definition at line 97 of file RobotRemocon.java.


The documentation for this class was generated from the following file:


android_remocons
Author(s): Daniel Stonier , Kazuto Murase
autogenerated on Wed Aug 26 2015 10:40:28