kaos.aci.mockets
Class ConnectionConstraints
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
kaos.aci.PolicyConstraints
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
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 |
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
ConnectionConstraints
public ConnectionConstraints(boolean connectionAllowed,
int maxBandwidth,
java.lang.String srcAddr,
java.lang.String dstAddr)
- Constructor
- Parameters:
connectionAllowed
- whether the requested connection is allowedmaxBandwidth
- for the requested connection, measured in kilobytes
ConnectionConstraints
public ConnectionConstraints(boolean connectionAllowed,
int maxBandwidth)
ConnectionConstraints
public ConnectionConstraints(PolicyConstraints constraints)
isConnectionAllowed
public boolean isConnectionAllowed()
getMaxBandwidth
public int getMaxBandwidth()
getSrcAddress
public java.lang.String getSrcAddress()
getDstAddress
public java.lang.String getDstAddress()