graph_analysis
Public Types | Public Member Functions | List of all members
graph_analysis::algorithms::MultiCommodityVertex Class Reference

A MultiCommodityVertex represents the combination of commodity supply demand and a required transition flow. More...

#include <MultiCommodityVertex.hpp>

Inheritance diagram for graph_analysis::algorithms::MultiCommodityVertex:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::algorithms::MultiCommodityVertex:
Collaboration graph
[legend]

Public Types

typedef shared_ptr< MultiCommodityVertex > Ptr
 
typedef std::set< uint32_t > CommoditySet
 
typedef std::map< CommoditySet, std::pair< uint32_t, uint32_t > > CombinedFlowBounds
 
- Public Types inherited from graph_analysis::Vertex
typedef shared_ptr< Vertex > Ptr
 
typedef shared_ptr< const Vertex > ConstPtr
 
typedef std::vector< Ptr > PtrList
 
typedef std::set< Ptr > PtrSet
 
- Public Types inherited from graph_analysis::GraphElement
typedef shared_ptr< GraphElement > Ptr
 
typedef weak_ptr< GraphElement > WeakPtr
 
typedef std::vector< Ptr > PtrList
 

Public Member Functions

 MultiCommodityVertex (const std::string &label="")
 
 MultiCommodityVertex (uint32_t commodities, const std::string &label="")
 
virtual ~MultiCommodityVertex ()
 
void setCommoditySupply (uint32_t commodity, int32_t supply)
 
int32_t getCommoditySupply (uint32_t commodity) const
 
void setCommoditiesInFlowBounds (const CommoditySet &commodities, std::pair< uint32_t, uint32_t > minMaxFlow)
 
void setCommoditiesMaxInFlow (const CommoditySet &commodities, uint32_t maxFlow)
 
void setCommoditiesMinInFlow (const CommoditySet &commodities, uint32_t minFlow)
 
const CombinedFlowBounds & getCommoditiesInFlowBounds () const
 
void setCommodityMinTransFlow (uint32_t commodity, uint32_t flow)
 
void setCommodityMaxTransFlow (uint32_t commodity, uint32_t flow)
 
uint32_t getCommodityMinTransFlow (uint32_t commodity) const
 
uint32_t getCommodityMaxTransFlow (uint32_t commodity) const
 
virtual std::string getClassName () const override
 
virtual std::string toString () const override
 
virtual void registerAttributes (VertexTypeManager *) const override
 
- Public Member Functions inherited from graph_analysis::Vertex
virtual ~Vertex ()
 
 Vertex (const std::string &label=std::string())
 
Vertex::Ptr clone () const
 
virtual std::string toString (uint32_t indentation) const
 
Vertex::Ptr getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const
 
Vertex::Ptr getPtr ()
 
Vertex::ConstPtr getPtr () const
 
- Public Member Functions inherited from graph_analysis::GraphElement
 GraphElement (const std::string &label=std::string())
 Default constructor. More...
 
virtual ~GraphElement ()
 
virtual void setLabel (const std::string &label)
 
virtual const std::string & getLabel () const
 
bool associated (GraphId graph) const
 
void associate (GraphId graph, GraphElementId elementId)
 
void disassociate (GraphId graph)
 
GraphElementId getId (GraphId graph) const
 
GraphElementUuid getUid () const
 
GraphElementUuid getUuid () const
 
GraphIdList getGraphAssociations () const
 
std::string toPrefixedString (GraphId graph) const
 

Additional Inherited Members

- Static Public Member Functions inherited from graph_analysis::GraphElement
static GraphElement::Ptr fromUuid (const GraphElementUuid &uuid)
 
- Protected Member Functions inherited from graph_analysis::GraphElement
GraphElement::Ptr getSharedFromThis ()
 
void disassociateFromAll ()
 
void setUuid (const GraphElementUuid &uuid)
 
void setUuid (const std::string &uuid)
 
- Protected Attributes inherited from graph_analysis::GraphElement
GraphElementMap mGraphElementMap
 
GraphElementUuid mUuid
 
std::string mLabel
 
- Static Protected Attributes inherited from graph_analysis::GraphElement
static boost::uuids::random_generator msUuidGenerator
 
static std::map< GraphElementUuid, function< GraphElement::Ptr()> > msGraphElements
 

Detailed Description

A MultiCommodityVertex represents the combination of commodity supply demand and a required transition flow.

Member Typedef Documentation

◆ CombinedFlowBounds

◆ CommoditySet

◆ Ptr

Constructor & Destructor Documentation

◆ MultiCommodityVertex() [1/2]

graph_analysis::algorithms::MultiCommodityVertex::MultiCommodityVertex ( const std::string &  label = "")

◆ MultiCommodityVertex() [2/2]

graph_analysis::algorithms::MultiCommodityVertex::MultiCommodityVertex ( uint32_t  commodities,
const std::string &  label = "" 
)

◆ ~MultiCommodityVertex()

graph_analysis::algorithms::MultiCommodityVertex::~MultiCommodityVertex ( )
virtual

Member Function Documentation

◆ getClassName()

virtual std::string graph_analysis::algorithms::MultiCommodityVertex::getClassName ( ) const
inlineoverridevirtual

Get class name

Returns
class name

Reimplemented from graph_analysis::Vertex.

◆ getCommoditiesInFlowBounds()

const CombinedFlowBounds& graph_analysis::algorithms::MultiCommodityVertex::getCommoditiesInFlowBounds ( ) const
inline

Get the combined maximum inflows for a set of commodities

◆ getCommodityMaxTransFlow()

uint32_t graph_analysis::algorithms::MultiCommodityVertex::getCommodityMaxTransFlow ( uint32_t  commodity) const
inline

Retrieve the set max trans-flow through this vertex for a given commodity

Parameters
commodityIndex of the commodity
Returns
minimum trans-flow for the given commodity through this vertex

◆ getCommodityMinTransFlow()

uint32_t graph_analysis::algorithms::MultiCommodityVertex::getCommodityMinTransFlow ( uint32_t  commodity) const
inline

Retrieve the set trans-flow through this vertex for a given commodity

Parameters
commodityIndex of the commodity
Returns
minimum trans-flow for the given commodity through this vertex

◆ getCommoditySupply()

int32_t graph_analysis::algorithms::MultiCommodityVertex::getCommoditySupply ( uint32_t  commodity) const
inline

Get the supply for a given commodity

Parameters
commodityIndex of the commodity

◆ registerAttributes()

void graph_analysis::algorithms::MultiCommodityVertex::registerAttributes ( VertexTypeManager *  vManager) const
overridevirtual

Register attributes of this vertex for serialization

Reimplemented from graph_analysis::Vertex.

◆ setCommoditiesInFlowBounds()

void graph_analysis::algorithms::MultiCommodityVertex::setCommoditiesInFlowBounds ( const CommoditySet &  commodities,
std::pair< uint32_t, uint32_t >  minMaxFlow 
)
inline

Set the inflow bounds (minimum/maximum) for a set of commodities, e.g., commodities of the same type

Parameters
commoditiesSet of commodities
minMaxFlowPair of lower and upper bound

◆ setCommoditiesMaxInFlow()

void graph_analysis::algorithms::MultiCommodityVertex::setCommoditiesMaxInFlow ( const CommoditySet &  commodities,
uint32_t  maxFlow 
)

Set the upper bound for the inflow of a set of commodities, e.g., commodities of the same type

Parameters
commoditiesSet of commodities
maxFlowMaximum total inflow allowed for this set of commodities

◆ setCommoditiesMinInFlow()

void graph_analysis::algorithms::MultiCommodityVertex::setCommoditiesMinInFlow ( const CommoditySet &  commodities,
uint32_t  minFlow 
)

Set the lower bound for the inflow of a set of commodities, e.g., commodities of the same type

Parameters
commoditiesSet of commodities
minFlowMinimum total inflow required for this set of commodities

◆ setCommodityMaxTransFlow()

void graph_analysis::algorithms::MultiCommodityVertex::setCommodityMaxTransFlow ( uint32_t  commodity,
uint32_t  flow 
)
inline

Request a maximum trans-flow through this vertex for a given commodity

Parameters
commodityIndex of the commodity
flow(Integral) flow of the commodity

◆ setCommodityMinTransFlow()

void graph_analysis::algorithms::MultiCommodityVertex::setCommodityMinTransFlow ( uint32_t  commodity,
uint32_t  flow 
)
inline

Request a trans-flow through this vertex for a given commodity

Parameters
commodityIndex of the commodity
flow(Integral) flow of the commodity

◆ setCommoditySupply()

void graph_analysis::algorithms::MultiCommodityVertex::setCommoditySupply ( uint32_t  commodity,
int32_t  supply 
)
inline

Set the supply for a particular commodity

Parameters
commodityIndex of the commodity
supply(Integral) supply value of this commodity

◆ toString()

std::string graph_analysis::algorithms::MultiCommodityVertex::toString ( ) const
overridevirtual

Convert element to string

Reimplemented from graph_analysis::Vertex.


The documentation for this class was generated from the following files: