Package org.opennms.web.svclayer.model
Class Graph
- java.lang.Object
-
- org.opennms.web.svclayer.model.Graph
-
- All Implemented Interfaces:
Comparable<Graph>
public class Graph extends Object implements Comparable<Graph>
Graph class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description Graph(PrefabGraph graph, OnmsResource resource, Date start, Date end)Constructor for Graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Graph other)compareToDategetEnd()getEndIntegergetGraphHeight()getGraphHeightIntegergetGraphWidth()getGraphWidthStringgetName()getNamePrefabGraphgetPrefabGraph()getPrefabGraphStringgetReport()getReportCollection<RrdGraphAttribute>getRequiredRrGraphdAttributes()getRequiredRrGraphdAttributesOnmsResourcegetResource()getResourceDategetStart()getStartStringgetTitle()getTitle
-
-
-
Constructor Detail
-
Graph
public Graph(PrefabGraph graph, OnmsResource resource, Date start, Date end)
Constructor for Graph.
- Parameters:
graph- aPrefabGraphobject.resource- aOnmsResourceobject.start- aDateobject.end- aDateobject.
-
-
Method Detail
-
getResource
public OnmsResource getResource()
getResource
- Returns:
- a
OnmsResourceobject.
-
compareTo
public int compareTo(Graph other)
compareTo
- Specified by:
compareToin interfaceComparable<Graph>- Parameters:
other- aGraphobject.- Returns:
- a int.
-
getPrefabGraph
public PrefabGraph getPrefabGraph()
getPrefabGraph
- Returns:
- a
PrefabGraphobject.
-
getRequiredRrGraphdAttributes
public Collection<RrdGraphAttribute> getRequiredRrGraphdAttributes()
getRequiredRrGraphdAttributes
- Returns:
- a
Collectionobject.
-
-