|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jap.forward.JAPRoutingConnectionClass
public class JAPRoutingConnectionClass
This is the implementation of a structure, which stores the paramters of a connection class, like ISDN, DSL, ...
Field Summary | |
---|---|
private int |
m_connectionClassIdentifier
Stores an identifier for this connection class. |
private java.lang.String |
m_connectionClassName
Stores the name of the connection class. |
private int |
m_maximumBandwidth
Stores the maximal possible bandwidth for this connection class in bytes/sec. |
private int |
m_relativeBandwidth
Stores the percentage of the maximum bandwidth of the connection which shall be used for forwarding. |
Constructor Summary | |
---|---|
JAPRoutingConnectionClass(int a_connectionClassIdentifier,
java.lang.String a_connectionClassName,
int a_maximumBandwidth,
int a_relativeBandwidth)
Creates a new JAPRoutingConnectionClass structure. |
Method Summary | |
---|---|
int |
getCurrentBandwidth()
Returns the current maximum bandwidth, which can be used for the forwarding server with this connection class (= relative bandwidth * maximum bandwidth). |
int |
getIdentifier()
Returns the identifier for this connection class. |
int |
getMaximumBandwidth()
Returns the maximum bandwidth of this connection class. |
int |
getMaxSimultaneousConnections()
Returns the maximum number of simultaneous connections, the forwarding server can handle with the current bandwidth. |
int |
getMinimumRelativeBandwidth()
Returns the minimum relative forwarding bandwidth. |
int |
getRelativeBandwidth()
Returns the percentage of the maximum bandwidth which shall be used for forwarding. |
org.w3c.dom.Element |
getSettingsAsXml(org.w3c.dom.Document a_doc)
Returns the settings for this connection class (bandwidth settings) for storage within an XML document. |
boolean |
loadSettingsFromXml(org.w3c.dom.Element a_connectionClassNode)
This method loads some settings for this connection class from a prior created XML structure. |
void |
setMaximumBandwidth(int a_maximumBandwidth)
Changes the maximum bandwidth of this connection class. |
void |
setRelativeBandwidth(int a_relativeBandwidth)
Changes the percentage of the maximum bandwidth which shall be used for forwarding. |
java.lang.String |
toString()
Returns the name of this connection class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int m_connectionClassIdentifier
JAPRoutingConnectionClassSelector
private java.lang.String m_connectionClassName
private int m_maximumBandwidth
private int m_relativeBandwidth
Constructor Detail |
---|
public JAPRoutingConnectionClass(int a_connectionClassIdentifier, java.lang.String a_connectionClassName, int a_maximumBandwidth, int a_relativeBandwidth)
a_connectionClassIdentifier
- The identifier for this connection class. See the
constants in JAPRoutingConnectionClassSelector.a_connectionClassName
- The name for the connection class, which is displayed in the
GUI. So it should be an identifier for JAPMessages.a_maximumBandwidth
- The maximum possible bandwidth for this connection class in
bytes/sec.a_currentBandwidth
- The bandwidth which can be used for the forwarding server with
this connection class.Method Detail |
---|
public int getIdentifier()
JAPRoutingConnectionClassSelector
public int getMaximumBandwidth()
public void setMaximumBandwidth(int a_maximumBandwidth)
a_maximumBandwidth
- The new maximum bandwidth (in bytes/sec), for this connection
class.public int getCurrentBandwidth()
public int getMaxSimultaneousConnections()
public int getRelativeBandwidth()
public void setRelativeBandwidth(int a_relativeBandwidth)
a_relativeBandwidth
- The relative connection bandwidth (in %) useable for forwarding.public int getMinimumRelativeBandwidth()
public java.lang.String toString()
toString
in class java.lang.Object
public org.w3c.dom.Element getSettingsAsXml(org.w3c.dom.Document a_doc)
a_doc
- The context document for the connection class settings.
public boolean loadSettingsFromXml(org.w3c.dom.Element a_connectionClassNode)
a_connectionClassNode
- The ConnectionClass XML node, which was created by the
getSettingsAsXml() method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |