public abstract class MobileProcess
Title: MobileProcess
Description: The base class for Mobile Processes
Copyright: Copyright (c) 2006
Company: Napier University
This class provides the basic functionality needed for a Mobile Process, by implementing both CSProcess and Serializable, and also providing methods to hook the process into an existing process network when it arrives. This class does not necessarily have to be used to create a Mobile Process, simply implementing CSProcess and Serializable will do the trick.
Modifiers | Name | Description |
---|---|---|
protected ChannelInput[] |
inputs |
An array of input ends to hook the process into an existing network. |
protected ChannelOutput[] |
outputs |
An arrat of output ends to hook the process into an existing network. |
Type | Name and description |
---|---|
void |
attachInputs(ChannelInput[] inputs) Attaches the Mobile Process with an array of input channels. |
void |
attachOutputs(ChannelOutput[] outputs) Attaches the Mobile process with an array of output channels. |
void |
detachInputs() Detaches the input ends. |
void |
detachOutputs() Detatches the output ends. |
void |
init(ChannelInput[] inputs, ChannelOutput[] outputs) Initialises the mobile process by providing channels to connect it into an existing network. |
void |
remove() Prepares the process to move again by setting all its channels to null. |
An array of input ends to hook the process into an existing network.
An arrat of output ends to hook the process into an existing network.
Attaches the Mobile Process with an array of input channels.
inputs
- ChannelInput[]Attaches the Mobile process with an array of output channels.
outputs
- ChannelOutput[]Detaches the input ends.
Detatches the output ends.
Initialises the mobile process by providing channels to connect it into an existing network.
inputs
- ChannelInput[]outputs
- ChannelOutput[]Prepares the process to move again by setting all its channels to null.