Tulip  4.4.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
tlp::NumericProperty Class Referenceabstract

#include <NumericProperty.h>

Inherits tlp::PropertyInterface.

Public Member Functions

virtual NumericPropertycopyProperty (Graph *graph)=0
 
virtual void edgesUniformQuantification (unsigned int)=0
 
virtual double getEdgeDoubleDefaultValue () const =0
 
virtual double getEdgeDoubleMax (Graph *graph=NULL)=0
 
virtual double getEdgeDoubleMin (Graph *graph=NULL)=0
 
virtual double getEdgeDoubleValue (const edge e) const =0
 
virtual double getNodeDoubleDefaultValue () const =0
 
virtual double getNodeDoubleMax (Graph *graph=NULL)=0
 
virtual double getNodeDoubleMin (Graph *graph=NULL)=0
 
virtual double getNodeDoubleValue (const node n) const =0
 
virtual void nodesUniformQuantification (unsigned int)=0
 
void uniformQuantification (unsigned int k)
 
- Public Member Functions inherited from tlp::PropertyInterface
virtual PropertyInterfaceclonePrototype (Graph *graph, const std::string &name)=0
 
virtual int compare (const node n1, const node n2) const =0
 
virtual int compare (const edge e1, const edge e2) const =0
 
virtual void computeMetaValue (node metaNode, Graph *subgraph, Graph *metaGraph)=0
 
virtual void computeMetaValue (edge metaEdge, tlp::Iterator< edge > *it, Graph *metaGraph)=0
 
virtual bool copy (const node destination, const node source, PropertyInterface *property, bool ifNotDefault=false)=0
 
virtual bool copy (const edge destination, const edge source, PropertyInterface *property, bool ifNotDefault=false)=0
 
virtual void copy (PropertyInterface *source)=0
 
virtual void erase (const node)=0
 
virtual void erase (const edge)=0
 
virtual DataMem * getEdgeDataMemValue (const edge e) const =0
 
virtual DataMem * getEdgeDefaultDataMemValue () const =0
 
virtual std::string getEdgeDefaultStringValue () const =0
 
virtual std::string getEdgeStringValue (const edge e) const =0
 
tlp::GraphgetGraph () const
 
MetaValueCalculatorgetMetaValueCalculator ()
 
const std::string & getName () const
 
virtual DataMem * getNodeDataMemValue (const node n) const =0
 
virtual DataMem * getNodeDefaultDataMemValue () const =0
 
virtual std::string getNodeDefaultStringValue () const =0
 
virtual std::string getNodeStringValue (const node n) const =0
 
virtual DataMem * getNonDefaultDataMemValue (const node n) const =0
 
virtual DataMem * getNonDefaultDataMemValue (const edge e) const =0
 
virtual tlp::Iterator< edge > * getNonDefaultValuatedEdges (const Graph *=NULL) const =0
 
virtual tlp::Iterator< node > * getNonDefaultValuatedNodes (const Graph *=NULL) const =0
 
virtual std::string getTypename () const =0
 
bool rename (const std::string &newName)
 
virtual void setAllEdgeDataMemValue (const DataMem *v)=0
 
virtual bool setAllEdgeStringValue (const std::string &value)=0
 
virtual void setAllNodeDataMemValue (const DataMem *value)=0
 
virtual bool setAllNodeStringValue (const std::string &value)=0
 
virtual void setEdgeDataMemValue (const edge e, const DataMem *v)=0
 
virtual bool setEdgeStringValue (const edge e, const std::string &value)=0
 
virtual void setMetaValueCalculator (MetaValueCalculator *calculator)
 
virtual void setNodeDataMemValue (const node n, const DataMem *value)=0
 
virtual bool setNodeStringValue (const node n, const std::string &value)=0
 
- Public Member Functions inherited from tlp::Observable
void addListener (Observable *const listener) const
 
void addObserver (Observable *const observer) const
 
unsigned int countListeners () const
 
unsigned int countObservers () const
 
unsigned int getReceived () const
 
unsigned int getSent () const
 
void removeListener (Observable *const listener) const
 
void removeObserver (Observable *const observerver) const
 

Additional Inherited Members

- Static Public Member Functions inherited from tlp::Observable
static ObservablegetObject (tlp::node n)
 
static const tlp::VectorGraph & getObservableGraph ()
 
static void holdObservers ()
 
static bool isAlive (tlp::node n)
 
static unsigned int observersHoldCounter ()
 
static void unholdObservers ()
 
- Protected Member Functions inherited from tlp::PropertyInterface
void notifyAfterSetAllEdgeValue ()
 
void notifyAfterSetAllNodeValue ()
 
void notifyAfterSetEdgeValue (const edge e)
 
void notifyAfterSetNodeValue (const node n)
 
void notifyBeforeSetAllEdgeValue ()
 
void notifyBeforeSetAllNodeValue ()
 
void notifyBeforeSetEdgeValue (const edge e)
 
void notifyBeforeSetNodeValue (const node n)
 
void notifyDestroy ()
 
void notifyRename (const std::string &newName)
 
- Protected Attributes inherited from tlp::PropertyInterface
Graphgraph
 
MetaValueCalculatormetaValueCalculator
 
std::string name
 

Detailed Description

Interface all numerical properties. Property values are always returned as double.

Definition at line 31 of file NumericProperty.h.

Member Function Documentation

virtual NumericProperty* tlp::NumericProperty::copyProperty ( Graph graph)
pure virtual

Creates a property of the same type (e.g. tlp::DoubleProperty) The new property will not a copy of this property's values for all the elements of the graph.

Parameters
graphThe Graph in which to create the new property.
Returns
The newly created property.
virtual void tlp::NumericProperty::edgesUniformQuantification ( unsigned  int)
pure virtual

computes a uniform quantification for the edges associated values

virtual double tlp::NumericProperty::getEdgeDoubleDefaultValue ( ) const
pure virtual

Gets the default edge value of the property.

Returns
The default value of edges.
virtual double tlp::NumericProperty::getEdgeDoubleMax ( Graph graph = NULL)
pure virtual

Gets the maximum value on the edges.

Parameters
graphThe graph on which to compute.
Returns
The maximal value on this graph for this property.
virtual double tlp::NumericProperty::getEdgeDoubleMin ( Graph graph = NULL)
pure virtual

Gets the minimum value on the edges.

Parameters
graphThe graph on which to compute.
Returns
The minimal value on this graph for this property.
virtual double tlp::NumericProperty::getEdgeDoubleValue ( const edge  e) const
pure virtual

Returns the value associated with the edge e in this property.

Parameters
eThe edge for which we want to get the value of the property.
virtual double tlp::NumericProperty::getNodeDoubleDefaultValue ( ) const
pure virtual

Gets the default node value of the property.

Returns
The default value of nodes.
virtual double tlp::NumericProperty::getNodeDoubleMax ( Graph graph = NULL)
pure virtual

Gets the maximum value on the nodes.

Parameters
graphThe graph on which to compute.
Returns
The maximal value on this graph for this property.
virtual double tlp::NumericProperty::getNodeDoubleMin ( Graph graph = NULL)
pure virtual

Gets the minimum value on the nodes.

Parameters
graphThe graph on which to compute.
Returns
The minimal value on this graph for this property.
virtual double tlp::NumericProperty::getNodeDoubleValue ( const node  n) const
pure virtual

Returns the value associated with the node n in this property.

Parameters
nThe node for which we want to get the value of the property.
virtual void tlp::NumericProperty::nodesUniformQuantification ( unsigned  int)
pure virtual

computes a uniform quantification for the nodes associated values

void tlp::NumericProperty::uniformQuantification ( unsigned int  k)
inline

computes a uniform quantification for the nodes/edges associated values

Definition at line 101 of file NumericProperty.h.