RepastHPC  2.3.1
Public Member Functions | List of all members
repast::relogo::RelogoLink Class Reference

Network link for Relogo. More...

#include <RelogoLink.h>

Inheritance diagram for repast::relogo::RelogoLink:
repast::RepastEdge< RelogoAgent >

Public Member Functions

 RelogoLink ()
 Creates an empty RelogoLink with no source or target.
 
 RelogoLink (RelogoAgent *source, RelogoAgent *target)
 Creates a RelogoLink with the specified source and target and a default weight of 1. More...
 
 RelogoLink (RelogoAgent *source, RelogoAgent *target, double weight)
 Creates a RelogoLink with the specified source, target, and weight. More...
 
 RelogoLink (boost::shared_ptr< RelogoAgent > source, boost::shared_ptr< RelogoAgent > target)
 Creates a RelogoLink with the specified source and target and a default weight of 1. More...
 
 RelogoLink (boost::shared_ptr< RelogoAgent > source, boost::shared_ptr< RelogoAgent > target, double weight)
 Creates a RelogoLink with the specified source, target, and weight. More...
 
 RelogoLink (const RelogoLink &edge)
 Copy constructor that creates a RelogoLink from another RelogoLink.
 
- Public Member Functions inherited from repast::RepastEdge< RelogoAgent >
 RepastEdge (RelogoAgent *source, RelogoAgent *target, MASTER_NODE useTargetAsMaster=DEFAULT)
 Creates a RepastEdge with the specified source and target and a default weight of 1. More...
 
 RepastEdge (RelogoAgent *source, RelogoAgent *target, double weight, MASTER_NODE useTargetAsMaster=DEFAULT)
 Creates a RepastEdge with the specified source, target, and weight. More...
 
 RepastEdge (boost::shared_ptr< RelogoAgent > source, boost::shared_ptr< RelogoAgent > 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< RelogoAgent > source, boost::shared_ptr< RelogoAgent > 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.
 
RelogoAgent * source () const
 Gets the source of this RepastEdge. More...
 
void source (RelogoAgent *source)
 
RelogoAgent * target () const
 Gets the target of this RepastEdge. More...
 
void target (RelogoAgent *target)
 
double weight () const
 Gets the weight of this RepastEdge. More...
 
void weight (double wt)
 
bool usesTargetAsMaster ()
 
void markConflicted ()
 
void clearConflicted ()
 
bool isConflicted ()
 

Additional Inherited Members

- Public Types inherited from repast::RepastEdge< RelogoAgent >
enum  MASTER_NODE
 

Detailed Description

Network link for Relogo.

Constructor & Destructor Documentation

◆ RelogoLink() [1/4]

repast::relogo::RelogoLink::RelogoLink ( RelogoAgent source,
RelogoAgent target 
)

Creates a RelogoLink with the specified source and target and a default weight of 1.

Parameters
sourcethe link source
targetthe link target

◆ RelogoLink() [2/4]

repast::relogo::RelogoLink::RelogoLink ( RelogoAgent source,
RelogoAgent target,
double  weight 
)

Creates a RelogoLink with the specified source, target, and weight.

Parameters
sourcethe link source
targetthe link target
weightthe link weight

◆ RelogoLink() [3/4]

repast::relogo::RelogoLink::RelogoLink ( boost::shared_ptr< RelogoAgent source,
boost::shared_ptr< RelogoAgent target 
)

Creates a RelogoLink with the specified source and target and a default weight of 1.

Parameters
sourcethe link source
targetthe link target

◆ RelogoLink() [4/4]

repast::relogo::RelogoLink::RelogoLink ( boost::shared_ptr< RelogoAgent source,
boost::shared_ptr< RelogoAgent target,
double  weight 
)

Creates a RelogoLink with the specified source, target, and weight.

Parameters
sourcethe link source
targetthe link target
weightthe link weight

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