fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NodeView Class Reference

#include <dot.h>

Public Member Functions

 NodeView ()=default
 
 NodeView (DistributedId id, int rank, float utility)
 
 NodeView (DistributedId id, int rank)
 
 NodeView (DistributedId id, int rank, float utility, int x, int y)
 

Public Attributes

DistributedId id
 
int rank
 
int x
 
int y
 
bool is_location
 
bool fixed_position
 
float utility
 

Detailed Description

Helper class to serialize nodes information for the DotOutput.

Constructor & Destructor Documentation

◆ NodeView() [1/4]

NodeView::NodeView ( )
default

Default generated contructor, for internal use.

◆ NodeView() [2/4]

NodeView::NodeView ( DistributedId  id,
int  rank,
float  utility 
)
inline

NodeView constructor for a node containing a generic MetaCell.

fixed_position is set to false, and x and y are left default initialized.

Parameters
idID of the MetaCell
rankCurrent location of the MetaCell
utilityCurrent utility of the MetaCell

◆ NodeView() [3/4]

NodeView::NodeView ( DistributedId  id,
int  rank 
)
inline

NodeView constructor for a generic node.

fixed_position and is_location are set to false, and x, y and utility are left default initialized.

Parameters
idID of the MetaCell
rankCurrent location of the MetaCell

◆ NodeView() [4/4]

NodeView::NodeView ( DistributedId  id,
int  rank,
float  utility,
int  x,
int  y 
)
inline

NodeView constructor for a MetaGridCell.

is_location and fixed_position are set to true.

Parameters
idID of the MetaCell
rankCurrent location of the MetaCell
utilityCurrent utility of the MetaCell
xDiscrete x coordinate of the GridCell
yDiscrete y coordinate of the GridCell

Member Data Documentation

◆ id

DistributedId NodeView::id

ID of the node.

◆ rank

int NodeView::rank

Current location of the node.

◆ x

int NodeView::x

If fixed_position is true, represents the x coordinate of the DOT node.

◆ y

int NodeView::y

If fixed_position is true, represents the y coordinate of the DOT node.

◆ is_location

bool NodeView::is_location

True iff the node contains a Cell (MetaGraphCell or MetaGridCell).

◆ fixed_position

bool NodeView::fixed_position

If true, the position of the node is set to be fixed in the DOT output.

See also
https://graphviz.org/docs/attrs/pos/
https://graphviz.org/docs/attr-types/point/

◆ utility

float NodeView::utility

If the node contains a MetaCell, utility of that MetaCell.


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