kaos.aci.mockets
Class ConnectionConstraints

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by kaos.aci.PolicyConstraints
              extended by kaos.aci.mockets.ConnectionConstraints
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ConnectionConstraints
extends PolicyConstraints

Author:
jlott
See Also:
Serialized Form

Field Summary
static java.lang.String CONNECTION_ALLOWED
           
static java.lang.String DST_ADDRESS
           
static java.lang.String MAX_BANDWIDTH
           
static java.lang.String SRC_ADDRESS
           
 
Constructor Summary
ConnectionConstraints(boolean connectionAllowed, int maxBandwidth)
           
ConnectionConstraints(boolean connectionAllowed, int maxBandwidth, java.lang.String srcAddr, java.lang.String dstAddr)
          Constructor
ConnectionConstraints(PolicyConstraints constraints)
           
 
Method Summary
 java.lang.String getDstAddress()
           
 int getMaxBandwidth()
           
 java.lang.String getSrcAddress()
           
 boolean isConnectionAllowed()
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECTION_ALLOWED

public static final java.lang.String CONNECTION_ALLOWED
See Also:
Constant Field Values

MAX_BANDWIDTH

public static final java.lang.String MAX_BANDWIDTH
See Also:
Constant Field Values

SRC_ADDRESS

public static final java.lang.String SRC_ADDRESS
See Also:
Constant Field Values

DST_ADDRESS

public static final java.lang.String DST_ADDRESS
See Also:
Constant Field Values
Constructor Detail

ConnectionConstraints

public ConnectionConstraints(boolean connectionAllowed,
                             int maxBandwidth,
                             java.lang.String srcAddr,
                             java.lang.String dstAddr)
Constructor

Parameters:
connectionAllowed - whether the requested connection is allowed
maxBandwidth - for the requested connection, measured in kilobytes

ConnectionConstraints

public ConnectionConstraints(boolean connectionAllowed,
                             int maxBandwidth)

ConnectionConstraints

public ConnectionConstraints(PolicyConstraints constraints)
Method Detail

isConnectionAllowed

public boolean isConnectionAllowed()

getMaxBandwidth

public int getMaxBandwidth()

getSrcAddress

public java.lang.String getSrcAddress()

getDstAddress

public java.lang.String getDstAddress()