public final class MobileProcessClient
Title: MobileProcessClient
Description: A application or process that requests a process and then runs it.
Copyright: Copyright (c) 2006
Company: Napier University
This class can either be ran stand alone to request a single process and run it, or it can be implemented as a process in a process network to do likewise, or return processes. Currently, this is implemented roughly, and a future implementation will use the Connections available in jcsp.lang.
Type | Name and description |
---|---|
static MobileProcessClient |
getClient() Returns the singleton instance of this class. |
CSProcess |
getProcess(String serviceName) Allows the retrieval of a single process given a service name. |
static void |
init(ChannelInput in, ChannelOutput out) Initialises the Mobile Process Client by setting the serviceNameIn and processOut channels. |
static void |
main(String[] args) Main method used to run this as standalone application. |
void |
run() The run method for this process. |
static void |
setProcessOut(ChannelOutput out) Set the channel used to pass processes back out to the requester. |
static void |
setServiceIn(ChannelInput in) Sets the channel used to pass service names into the process |
Returns the singleton instance of this class.
Allows the retrieval of a single process given a service name.
serviceName
- StringInitialises the Mobile Process Client by setting the serviceNameIn and processOut channels.
in
- ChannelInputout
- ChannelOutputMain method used to run this as standalone application.
args
- String[]The run method for this process.
Set the channel used to pass processes back out to the requester.
out
- ChannelOutputSets the channel used to pass service names into the process
in
- ChannelInput