org.opennms.web.map.view
Class VElement

java.lang.Object
  extended by org.opennms.web.map.db.Element
      extended by org.opennms.web.map.view.VElement
All Implemented Interfaces:
Cloneable

public class VElement
extends Element

Author:
micmas TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected  boolean isChild
           
protected  double rtc
           
protected  int severity
           
protected  int status
           
 
Fields inherited from class org.opennms.web.map.db.Element
defaultMapIcon, defaultNodeIcon, MAP_TYPE, NODE_TYPE, type
 
Constructor Summary
VElement()
           
VElement(Element e)
           
VElement(int mapId, int id, String type, String label, String iconName)
           
VElement(int mapId, int id, String type, String iconName, String label, int x, int y)
           
 
Method Summary
 VElement clone()
           
 boolean equals(Object other)
           
 boolean equalsIgnorePosition(VElement elem)
           
 boolean equalsIgnorePositionParentMap(VElement elem)
           
 int getContainerMap()
           
 double getRtc()
           
 int getSeverity()
           
 int getStatus()
           
 boolean hasSameIdentifier(VElement elem)
           
 boolean isChild()
           
 void setMapId(int mapId)
           
 void setRtc(double rtc)
           
 void setSeverity(int severity)
           
 void setStatus(int status)
           
 String toString()
           
 
Methods inherited from class org.opennms.web.map.db.Element
getIcon, getId, getLabel, getMapId, getType, getX, getY, isMap, isNode, setIcon, setId, setLabel, setType, setX, setY
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isChild

protected boolean isChild

status

protected int status

severity

protected int severity

rtc

protected double rtc
Constructor Detail

VElement

public VElement()

VElement

public VElement(Element e)
         throws MapsException
Parameters:
e -
Throws:
MapsException

VElement

public VElement(int mapId,
                int id,
                String type,
                String iconName,
                String label,
                int x,
                int y)
         throws MapsException
Parameters:
mapId -
id -
type -
label -
iconName -
x -
y -
Throws:
MapsException

VElement

public VElement(int mapId,
                int id,
                String type,
                String label,
                String iconName)
         throws MapsException
Throws:
MapsException
Method Detail

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

getSeverity

public int getSeverity()

setSeverity

public void setSeverity(int severity)

getRtc

public double getRtc()

setRtc

public void setRtc(double rtc)

isChild

public boolean isChild()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

equalsIgnorePosition

public boolean equalsIgnorePosition(VElement elem)
Parameters:
elem -
Returns:

equalsIgnorePositionParentMap

public boolean equalsIgnorePositionParentMap(VElement elem)

hasSameIdentifier

public boolean hasSameIdentifier(VElement elem)

setMapId

public void setMapId(int mapId)
Overrides:
setMapId in class Element

getContainerMap

public final int getContainerMap()
                          throws VElementNotChildException
Throws:
VElementNotChildException

toString

public String toString()
Overrides:
toString in class Object

clone

public VElement clone()
Overrides:
clone in class Element


Copyright © 2009. All Rights Reserved.