drcl.inet.contract
Class ConfigSwitch
java.lang.Object
|
+--drcl.comp.Contract
|
+--drcl.inet.contract.ConfigSwitch
- public class ConfigSwitch
- extends Contract
The ConfigurationSwitch contract.
This contract defines the following service at the reactor:
-
PacketFilterConfiguration
- The initiator sends a message that consists of:
- the filter bank ID (
int),
- the filter ID in the bank (
int), and
- the request (
Object).
The reactor will dispatch the request to the corresponding packet filter
in the core service layer.
This class also provides a static method
(configure(...))
to facilitate conducting the above service from the specified port.
The method is particularly useful in implementing
a (signaling) protocol that needs to configure the packet filters
in the core service layer.
- Version:
- 1.0, 10/17/2000
- Author:
- Hung-ying Tyan
- See Also:
CoreServiceLayer
|
Method Summary |
static java.lang.Object |
configure(int bankID_,
int filterID_,
java.lang.Object req_,
Port out_)
Sends a configuration request through the configuration switch service of
the CoreServiceLayer. |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final ConfigSwitch INSTANCE
ConfigSwitch
public ConfigSwitch()
ConfigSwitch
public ConfigSwitch(int role_)
configure
public static java.lang.Object configure(int bankID_,
int filterID_,
java.lang.Object req_,
Port out_)
- Sends a configuration request through the configuration switch service of
the CoreServiceLayer.
- Returns:
- the result. The format of the result depends on the PktFilter
that has been interacted with.
getName
public java.lang.String getName()
- Overrides:
getName in class Contract
getContractContent
public java.lang.Object getContractContent()
- Description copied from class:
Contract
- Returns the content of this contract (format?).
- Overrides:
getContractContent in class Contract
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~