org.opennms.netmgt.model
Class DataLinkInterface

java.lang.Object
  extended by org.opennms.netmgt.model.DataLinkInterface
All Implemented Interfaces:
Serializable, Comparable<DataLinkInterface>

public class DataLinkInterface
extends Object
implements Serializable, Comparable<DataLinkInterface>

See Also:
Serialized Form

Constructor Summary
DataLinkInterface()
           
DataLinkInterface(OnmsNode node, int ifIndex, int nodeParentId, int parentIfIndex, String status, Date lastPollTime)
          Constructor for DataLinkInterface.
 
Method Summary
 int compareTo(DataLinkInterface o)
          compareTo
 Integer getId()
          Method getNodeId returns the nodeId of this DataLinkInterface object.
 Integer getIfIndex()
          Method getIfIndex returns the ifIndex of this DataLinkInterface object.
 Date getLastPollTime()
          Method getLastPollTime returns the lastPollTime of this DataLinkInterface object.
 Integer getLinkTypeId()
          Getter for the field linkTypeId.
 OnmsNode getNode()
           
 Integer getNodeParentId()
          Method getNodeParentId returns the nodeParentId of this DataLinkInterface object.
 Integer getParentIfIndex()
          Method getParentIfIndex returns the parentIfIndex of this DataLinkInterface object.
 String getStatus()
          Method getStatus returns the status of this DataLinkInterface object.
 int hashCode()
          hashCode
 void setId(int id)
          Setter for the field id.
 void setIfIndex(int ifIndex)
          Setter for the field ifIndex.
 void setLastPollTime(Date lastPollTime)
          Setter for the field lastPollTime.
 void setLinkTypeId(Integer linkTypeId)
          Setter for the field linkTypeId.
 void setNode(OnmsNode node)
           
 void setNodeParentId(int nodeParentId)
          Setter for the field nodeParentId.
 void setParentIfIndex(int parentIfIndex)
          Setter for the field parentIfIndex.
 void setStatus(String status)
          Setter for the field status.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataLinkInterface

public DataLinkInterface()

DataLinkInterface

public DataLinkInterface(OnmsNode node,
                         int ifIndex,
                         int nodeParentId,
                         int parentIfIndex,
                         String status,
                         Date lastPollTime)

Constructor for DataLinkInterface.

Parameters:
nodeId - a int.
ifIndex - a int.
nodeParentId - a int.
parentIfIndex - a int.
status - a String object.
lastPollTime - a Date object.
Method Detail

getId

public Integer getId()
Method getNodeId returns the nodeId of this DataLinkInterface object.

Returns:
the nodeId (type Integer) of this DataLinkInterface object.

setId

public void setId(int id)

Setter for the field id.

Parameters:
id - a int.

getNode

public OnmsNode getNode()

setNode

public void setNode(OnmsNode node)

getIfIndex

public Integer getIfIndex()
Method getIfIndex returns the ifIndex of this DataLinkInterface object.

Returns:
the ifIndex (type Integer) of this DataLinkInterface object.

setIfIndex

public void setIfIndex(int ifIndex)

Setter for the field ifIndex.

Parameters:
ifIndex - a int.

getNodeParentId

public Integer getNodeParentId()
Method getNodeParentId returns the nodeParentId of this DataLinkInterface object.

Returns:
the nodeParentId (type Integer) of this DataLinkInterface object.

setNodeParentId

public void setNodeParentId(int nodeParentId)

Setter for the field nodeParentId.

Parameters:
nodeParentId - a int.

getParentIfIndex

public Integer getParentIfIndex()
Method getParentIfIndex returns the parentIfIndex of this DataLinkInterface object.

Returns:
the parentIfIndex (type Integer) of this DataLinkInterface object.

setParentIfIndex

public void setParentIfIndex(int parentIfIndex)

Setter for the field parentIfIndex.

Parameters:
parentIfIndex - a int.

getStatus

public String getStatus()
Method getStatus returns the status of this DataLinkInterface object.

Returns:
the status (type String) of this DataLinkInterface object.

setStatus

public void setStatus(String status)

Setter for the field status.

Parameters:
status - a String object.

getLinkTypeId

public Integer getLinkTypeId()

Getter for the field linkTypeId.

Returns:
a Integer object.

setLinkTypeId

public void setLinkTypeId(Integer linkTypeId)

Setter for the field linkTypeId.

Parameters:
linkTypeId - a Integer object.

getLastPollTime

public Date getLastPollTime()
Method getLastPollTime returns the lastPollTime of this DataLinkInterface object.

Returns:
the lastPollTime (type Date) of this DataLinkInterface object.

setLastPollTime

public void setLastPollTime(Date lastPollTime)

Setter for the field lastPollTime.

Parameters:
lastPollTime - a Date object.

compareTo

public int compareTo(DataLinkInterface o)

compareTo

Specified by:
compareTo in interface Comparable<DataLinkInterface>
Parameters:
o - a DataLinkInterface object.
Returns:
a int.

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class Object
Returns:
a int.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.