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

List of all members.

Public Member Functions

void changeRoleClicked (View view)
void leaveConcertClicked (View view)
void onActivityResult (int requestCode, int resultCode, Intent data)
void onBackPressed ()
void onCreate (Bundle savedInstanceState)
boolean onCreateOptionsMenu (Menu menu)
boolean onOptionsItemSelected (MenuItem item)
 Remocon ()
void startMasterChooser ()
void validateConcert (final MasterId id)

Protected Member Functions

void init ()
void init (final NodeMainExecutor nodeMainExecutor)
void onStart ()
void updateAppList (final ArrayList< Interaction > apps, final String master_name, final String role)

Package Functions

void init (Intent intent)

Private Member Functions

void chooseRole ()

Private Attributes

boolean alreadyClicked = false
ArrayList< Interaction > availableAppsCache
long availableAppsCacheTime
String concertAppName = null
TextView concertNameView
String defaultConcertAppName = null
AlertDialogWrapper errorDialog
AlertDialogWrapper evictDialog
boolean fromApplication = false
boolean fromNfcLauncher = false
InteractionsManager interactionsManager
LaunchInteractionDialog launchInteractionDialog
Button leaveConcertButton
NodeConfiguration nodeConfiguration
PairSubscriber pairSubscriber
ProgressDialogWrapper progressDialog
RoconDescription roconDescription
Interaction selectedInteraction
StatusPublisher statusPublisher
boolean validatedConcert
AlertDialogWrapper wifiDialog

Static Private Attributes

static final int CONCERT_MASTER_CHOOSER_REQUEST_CODE = 1

Detailed Description

An almost complete rewrite of RobotRemocon to work with rocon interactions.

References to concert below should be refactored to interactions so as not to be confusing (it is now concert agnostic) (Daniel Stonier).

Author:
jorge@yujinrobot.com (Jorge Santos Simon)

Definition at line 96 of file Remocon.java.


Constructor & Destructor Documentation

Definition at line 128 of file Remocon.java.


Member Function Documentation

Choose a new role and get the apps associated to the new roll.

Definition at line 614 of file Remocon.java.

Definition at line 429 of file Remocon.java.

Definition at line 138 of file Remocon.java.

void com.github.rosjava.android_remocons.rocon_remocon.Remocon.init ( final NodeMainExecutor  nodeMainExecutor) [inline, protected]

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 concert, listing apps and providing the required triggers for interacting with that concert.

Parameters:
nodeMainExecutor

Definition at line 346 of file Remocon.java.

void com.github.rosjava.android_remocons.rocon_remocon.Remocon.init ( Intent  intent) [inline, package]

Initialise from an intent triggered by either the returning concert chooser or a concert 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 validateConcert).

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

Parameters:
intent

Definition at line 388 of file Remocon.java.

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

Definition at line 623 of file Remocon.java.

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

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

Parameters:
requestCode
resultCode
data

Definition at line 471 of file Remocon.java.

Definition at line 652 of file Remocon.java.

void com.github.rosjava.android_remocons.rocon_remocon.Remocon.onCreate ( Bundle  savedInstanceState) [inline]

Called when the activity is first created.

Definition at line 183 of file Remocon.java.

Definition at line 635 of file Remocon.java.

Definition at line 641 of file Remocon.java.

Definition at line 157 of file Remocon.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 concert). In that case, send it directly to the concert validation and initialisation steps.

Definition at line 498 of file Remocon.java.

void com.github.rosjava.android_remocons.rocon_remocon.Remocon.updateAppList ( final ArrayList< Interaction >  apps,
final String  master_name,
final String  role 
) [inline, protected]

Definition at line 589 of file Remocon.java.

Definition at line 506 of file Remocon.java.


Member Data Documentation

Definition at line 117 of file Remocon.java.

Definition at line 106 of file Remocon.java.

Definition at line 119 of file Remocon.java.

Definition at line 99 of file Remocon.java.

Definition at line 102 of file Remocon.java.

Definition at line 107 of file Remocon.java.

Definition at line 103 of file Remocon.java.

Definition at line 113 of file Remocon.java.

Definition at line 112 of file Remocon.java.

Definition at line 125 of file Remocon.java.

Definition at line 126 of file Remocon.java.

Definition at line 114 of file Remocon.java.

Definition at line 109 of file Remocon.java.

Definition at line 108 of file Remocon.java.

Definition at line 105 of file Remocon.java.

Definition at line 116 of file Remocon.java.

Definition at line 110 of file Remocon.java.

Definition at line 104 of file Remocon.java.

Definition at line 101 of file Remocon.java.

Definition at line 115 of file Remocon.java.

Definition at line 118 of file Remocon.java.

Definition at line 111 of file Remocon.java.


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


android_remocons
Author(s): Daniel Stonier, Kazuto Murase
autogenerated on Sat Jun 8 2019 19:32:24