DRCL JavaSim API

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:
  1. the filter bank ID (int),
  2. the filter ID in the bank (int), and
  3. 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

Inner Class Summary
static class ConfigSwitch.Message
           
 
Field Summary
static ConfigSwitch INSTANCE
           
 
Fields inherited from class drcl.comp.Contract
Role_INITIATOR, Role_PEER, Role_REACTOR
 
Constructor Summary
ConfigSwitch()
           
ConfigSwitch(int role_)
           
 
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 drcl.comp.Contract
getRole, match, setRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ConfigSwitch INSTANCE
Constructor Detail

ConfigSwitch

public ConfigSwitch()

ConfigSwitch

public ConfigSwitch(int role_)
Method Detail

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

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~