RepastHPC
2.3.1
|
Default graph / network edge implementation. More...
#include <Edge.h>
Public Types | |
enum | MASTER_NODE { DEFAULT, SOURCE, TARGET } |
Public Member Functions | |
RepastEdge (V *source, V *target, MASTER_NODE useTargetAsMaster=DEFAULT) | |
Creates a RepastEdge with the specified source and target and a default weight of 1. More... | |
RepastEdge (V *source, V *target, double weight, MASTER_NODE useTargetAsMaster=DEFAULT) | |
Creates a RepastEdge with the specified source, target, and weight. More... | |
RepastEdge (boost::shared_ptr< V > source, boost::shared_ptr< V > target, MASTER_NODE useTargetAsMaster=DEFAULT) | |
Creates a RepastEdge with the specified source and target and a default weight of 1. More... | |
RepastEdge (boost::shared_ptr< V > source, boost::shared_ptr< V > target, double weight, MASTER_NODE useTargetAsMaster=DEFAULT) | |
Creates a RepastEdge with the specified source, target, and weight. More... | |
RepastEdge (const RepastEdge &edge) | |
Copy constructor that creates a RepastEdge from another RepastEdge. | |
V * | source () const |
Gets the source of this RepastEdge. More... | |
V * | target () const |
Gets the target of this RepastEdge. More... | |
void | target (V *target) |
void | source (V *source) |
double | weight () const |
Gets the weight of this RepastEdge. More... | |
void | weight (double wt) |
bool | usesTargetAsMaster () |
void | markConflicted () |
void | clearConflicted () |
bool | isConflicted () |
Default graph / network edge implementation.
V | agent type that is the source and target of the edge |
repast::RepastEdge< V >::RepastEdge | ( | V * | source, |
V * | target, | ||
MASTER_NODE | useTargetAsMaster = DEFAULT |
||
) |
Creates a RepastEdge with the specified source and target and a default weight of 1.
source | the edge source |
target | the edge target |
repast::RepastEdge< V >::RepastEdge | ( | V * | source, |
V * | target, | ||
double | weight, | ||
MASTER_NODE | useTargetAsMaster = DEFAULT |
||
) |
Creates a RepastEdge with the specified source, target, and weight.
source | the edge source |
target | the edge target |
weight | the edge weight |
repast::RepastEdge< V >::RepastEdge | ( | boost::shared_ptr< V > | source, |
boost::shared_ptr< V > | target, | ||
MASTER_NODE | useTargetAsMaster = DEFAULT |
||
) |
Creates a RepastEdge with the specified source and target and a default weight of 1.
source | the edge source |
target | the edge target |
repast::RepastEdge< V >::RepastEdge | ( | boost::shared_ptr< V > | source, |
boost::shared_ptr< V > | target, | ||
double | weight, | ||
MASTER_NODE | useTargetAsMaster = DEFAULT |
||
) |
Creates a RepastEdge with the specified source, target, and weight.
source | the edge source |
target | the edge target |
weight | the edge weight |
|
inline |
Gets the source of this RepastEdge.
|
inline |
Gets the target of this RepastEdge.
|
inline |
Gets the weight of this RepastEdge.