java.lang.Object | |
↳ | edu.stanford.junction.JunctionMaker |
This class creates Junction
objects, binding JunctionActor
objects to an activity.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DIRECTOR_ACTIVITY |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CASTING_DIRECTOR | |||||||||||
SWITCHBOARD_ACTIVITY | |||||||||||
mProvider |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Binds a
JunctionActor to a session URI, using the default
switchboard for that URI. | |||||||||||
Binds a
JunctionActor to a randomly generated sesssion, using the default
switchboard. | |||||||||||
Sends a request to a Director activity
to cast an actor to accept a given invitation.
| |||||||||||
Returns a new
JunctionMaker object with the type specified
by the given SwitchboardConfig object. | |||||||||||
Returns the role associated with a given Junction invitation.
| |||||||||||
Requests a listening service to join this activity as the prescribed role.
| |||||||||||
Creates a new Junction and requests the casting of various roles.
| |||||||||||
This method has been deprecated.
| |||||||||||
Sends a message to an activity.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Binds a JunctionActor
to a session URI, using the default
switchboard for that URI.
JunctionException |
---|
Binds a JunctionActor
to a randomly generated sesssion, using the default
switchboard.
JunctionException |
---|
Sends a request to a Director activity to cast an actor to accept a given invitation.
directorURI | The director listening for requests |
---|---|
invitationURI | The activity to join (potentially including role information) |
JunctionException |
---|
Returns a new JunctionMaker
object with the type specified
by the given SwitchboardConfig
object.
Returns the role associated with a given Junction invitation.
JunctionException |
---|
Requests a listening service to join this activity as the prescribed role. Here, the service must be detailed in the activity description's list of roles. An example platform in the role specification: { role: "dealer", platforms: [ { platform: "jxservice", classname: "edu.stanford.prpl.poker.dealer", switchboard: "my.foreign.switchboard" } ] } If switchboard is not present, it is assumed to be on the same switchboard on which this activity is being run.
JunctionException |
---|
Creates a new Junction and requests the casting of various roles. There is no guarantee if and when the roles will be filled. There may or may not be user interaction at the casting director.
JunctionException |
---|
This method has been deprecated. Please see newJunction(URI, ActivityScript, JunctionActor)
JunctionException |
---|
JunctionException |
---|
Sends a message to an activity. In the unoptimized case, joins an activity, sends a message, and leaves.
JunctionException |
---|