AdventNet Web NMS 4 API Specification

com.adventnet.nms.tl1.config
Class GNEConfig

java.lang.Object
  |
  +--com.adventnet.nms.tl1.config.TL1Config
        |
        +--com.adventnet.nms.tl1.config.GNEConfig
All Implemented Interfaces:
java.io.Serializable

public class GNEConfig
extends TL1Config

This class is used for creating GNEConfig.Necessary arguments for creating GNEConfig object are the GNE ip,netmask,port,groupname. The TID's behind the GNE are encapsulated in TIDConfig object and set to the GNEConfig by using gneconfig.addTIDConfig() method.

See Also:
Serialized Form

Constructor Summary
GNEConfig()
           
 
Method Summary
 void addTIDConfig(TIDConfig tid)
          This method is used to add TIDConfig to the gne
 java.util.Hashtable getProperties()
          This method returns the Properties of the GNEConfig object.
 java.util.Hashtable getTIDConfig()
          This method is used to get the TIDs configured for a specified GNE
 void removeTIDConfig(java.lang.String tidname)
          This method is used to remove a TIDConfig object configured for the specified GNE.
 void setProperties(java.util.Hashtable prop)
          This method is used to set the GNEConfig object's properties.
 
Methods inherited from class com.adventnet.nms.tl1.config.TL1Config
getAppendEnd, getAppendFront, getConnectionHandler, getGroupName, getInfoCommand, getInitCommand, getIpAddress, getLoginCommand, getMessageFormatter, getNetmask, getStatPollCommand, getTL1Port, getType, setAppendEnd, setAppendFront, setConnectionHandler, setGroupName, setInfoCommand, setInitCommand, setIpAddress, setLoginCommand, setMessageFormatter, setNetmask, setStatPollCommand, setTL1Port, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GNEConfig

public GNEConfig()
Method Detail

addTIDConfig

public void addTIDConfig(TIDConfig tid)
This method is used to add TIDConfig to the gne
Parameters:
TIDconfig - - to be added to the gne

removeTIDConfig

public void removeTIDConfig(java.lang.String tidname)
This method is used to remove a TIDConfig object configured for the specified GNE.
Parameters:
tidname - The name of the TID which has to be removed

getTIDConfig

public java.util.Hashtable getTIDConfig()
This method is used to get the TIDs configured for a specified GNE
Returns:
Hashtable - containing the information of the TIDs

setProperties

public void setProperties(java.util.Hashtable prop)
This method is used to set the GNEConfig object's properties. Derived Classes should override this method and invoke super.setProperties() at the end of this method.
Overrides:
setProperties in class TL1Config
Parameters:
p - The properties to be set in this object.

getProperties

public java.util.Hashtable getProperties()
This method returns the Properties of the GNEConfig object. Derived classes should override this method and invoke the super.getProperties() at the beginning of this method.
Overrides:
getProperties in class TL1Config
Returns:
The values of the all the fields of this class and all its super classes in a Property object including the user properties. This method returns the value of all fields as string.
See Also:
TL1Config.getProperties()

AdventNet Web NMS 4 API Specification