Class GraphAdjacentModel
Functions as AdjacentModel, but is more generic and will function for any toplogy.
Inheritance
GraphAdjacentModel
Assembly: DeBroglie.dll
Syntax
public class GraphAdjacentModel : TileModel
Constructors
|
Edit this page
View Source
GraphAdjacentModel(GraphInfo)
Declaration
public GraphAdjacentModel(GraphInfo graphInfo)
Parameters
|
Edit this page
View Source
GraphAdjacentModel(int, int)
Declaration
public GraphAdjacentModel(int directionsCount, int edgeLabelCount)
Parameters
Type |
Name |
Description |
int |
directionsCount |
|
int |
edgeLabelCount |
|
Properties
|
Edit this page
View Source
Tiles
Declaration
public override IEnumerable<Tile> Tiles { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
AddAdjacency(Tile, Tile, Direction, TileRotation)
Declaration
public void AddAdjacency(Tile src, Tile dest, Direction direction, TileRotation tileRotation)
Parameters
|
Edit this page
View Source
AddAdjacency(Tile, Tile, EdgeLabel)
Declaration
public void AddAdjacency(Tile src, Tile dest, EdgeLabel edgeLabel)
Parameters
|
Edit this page
View Source
AddAdjacency(IList<Tile>, IList<Tile>, Direction, TileRotation)
Declaration
public void AddAdjacency(IList<Tile> src, IList<Tile> dest, Direction direction, TileRotation tileRotation)
Parameters
|
Edit this page
View Source
AddAdjacency(IList<Tile>, IList<Tile>, EdgeLabel)
Declaration
public void AddAdjacency(IList<Tile> src, IList<Tile> dest, EdgeLabel edgeLabel)
Parameters
|
Edit this page
View Source
IsAdjacent(Tile, Tile, EdgeLabel)
Declaration
public bool IsAdjacent(Tile src, Tile dest, EdgeLabel edgeLabel)
Parameters
Returns
|
Edit this page
View Source
MultiplyFrequency(Tile, double)
Scales the the occurency frequency of a given tile by the given multiplier.
Declaration
public override void MultiplyFrequency(Tile tile, double multiplier)
Parameters
Overrides
|
Edit this page
View Source
SetFrequency(Tile, double)
Sets the frequency of a given tile.
Declaration
public void SetFrequency(Tile tile, double frequency)
Parameters
|
Edit this page
View Source
SetFrequency(Tile, double, TileRotation)
Finds a tile and all its rotations, and sets their total frequency.
Declaration
public void SetFrequency(Tile tile, double frequency, TileRotation tileRotation)
Parameters
|
Edit this page
View Source
Sets all tiles as equally likely to be picked
Declaration
public void SetUniformFrequency()