|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable jap.forward.JAPRoutingConnectionClassSelector
public class JAPRoutingConnectionClassSelector
This class stores all known connection classes. Also the currently choosen one is stored here. Observers of this class get a notification, if the number of connection classes, the current connection class, bandwidth or connection number parameters, ... are changed.
Field Summary | |
---|---|
static int |
CONNECTION_CLASS_1MBIT
This is the identifier of the 1 Mbit upload connection class. |
static int |
CONNECTION_CLASS_DSL128
This is the identifier of the DSL 128 kbit/sec upload connection class. |
static int |
CONNECTION_CLASS_DSL192
This is the identifier of the DSL 192 kbit/sec upload connection class. |
static int |
CONNECTION_CLASS_DSL256
This is the identifier of the DSL 256 kbit/sec upload connection class. |
static int |
CONNECTION_CLASS_DSL384
This is the identifier of the DSL 384 kbit/sec upload connection class. |
static int |
CONNECTION_CLASS_DSL512
This is the identifier of the DSL 512 kbit/sec upload connection class. |
static int |
CONNECTION_CLASS_ISDN128
This is the identifier of the 2xISDN connection class. |
static int |
CONNECTION_CLASS_ISDN64
This is the identifier of the 1xISDN connection class. |
static int |
CONNECTION_CLASS_USER
This is the identifier of the user-definable connection class. |
private java.util.Hashtable |
m_connectionClasses
This table stores all connection classes. |
private int |
m_currentConnectionClass
This stores the identifier of the currently used connection class. |
Constructor Summary | |
---|---|
JAPRoutingConnectionClassSelector()
This creates a new instance of JAPRoutingConnectionClassSelector. |
Method Summary | |
---|---|
java.util.Vector |
getConnectionClasses()
Returns a Vector of all connection classes. |
JAPRoutingConnectionClass |
getCurrentConnectionClass()
This returns the currently used connection class. |
org.w3c.dom.Element |
getSettingsAsXml(org.w3c.dom.Document a_doc)
Returns the current connection class settings (currently selected connection class, settings of the single connection classes) for storage within an XML document. |
boolean |
loadSettingsFromXml(org.w3c.dom.Element a_connectionClassSettingsNode)
This method loads all connection classes related settings from a prior created XML structure. |
void |
setCurrentConnectionClass(int a_connectionClass)
This changes the currently used connection class. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONNECTION_CLASS_ISDN64
public static final int CONNECTION_CLASS_ISDN128
public static final int CONNECTION_CLASS_DSL128
public static final int CONNECTION_CLASS_DSL192
public static final int CONNECTION_CLASS_DSL256
public static final int CONNECTION_CLASS_DSL384
public static final int CONNECTION_CLASS_DSL512
public static final int CONNECTION_CLASS_1MBIT
public static final int CONNECTION_CLASS_USER
private java.util.Hashtable m_connectionClasses
private int m_currentConnectionClass
Constructor Detail |
---|
public JAPRoutingConnectionClassSelector()
Method Detail |
---|
public JAPRoutingConnectionClass getCurrentConnectionClass()
public void setCurrentConnectionClass(int a_connectionClass)
a_connectionClass
- The ID of the new connection class. If this is not a valid ID,
nothing is done.public java.util.Vector getConnectionClasses()
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_connectionClassSettingsNode)
a_connectionClassSettingsNode
- The ConnectionClasses 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 |