C# Класс HPASharp.Cluster

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddEntrance ( int abstractNodeId, Position relativePosition ) : int

Adds an entrance point to the cluster and returns the entrance index assigned for the point

AreConnected ( EntrancePoint point1, EntrancePoint point2 ) : bool

Tells whether a path exists inside the cluster between localIdx1 and localIdx2

AreConnected ( int localIdx1, int localIdx2 ) : bool

Tells whether a path exists inside the cluster between localIdx1 and localIdx2

Cluster ( ConcreteMap concreteMap, int id, int clusterX, int clusterY, Position origin, Size size ) : System
ComputeInternalPaths ( ) : void

Computes the paths that lie inside the cluster, connecting the several entrances among them

ComputePath ( int start, int target ) : List
GetDistance ( int localIdx1, int localIdx2 ) : int
GetGlobalAbsNodeId ( int localIdx ) : int
GetLocalPosition ( int entranceLocalIndex ) : int

Gets the index of an entrance point of this cluster

GetNrEntrances ( ) : int
GetPath ( int localIdx1, int localIdx2 ) : List
RemoveLastEntranceRecord ( ) : void
UpdatePaths ( int localEntranceId ) : void

Приватные методы

Метод Описание
ComputePathBetweenEntrances ( EntrancePoint e1, EntrancePoint e2 ) : void
GetEntrancePositionIndex ( EntrancePoint entrancePoint ) : int

Gets the index of the entrance point inside this cluster

Описание методов

AddEntrance() публичный Метод

Adds an entrance point to the cluster and returns the entrance index assigned for the point
public AddEntrance ( int abstractNodeId, Position relativePosition ) : int
abstractNodeId int
relativePosition Position
Результат int

AreConnected() публичный Метод

Tells whether a path exists inside the cluster between localIdx1 and localIdx2
public AreConnected ( EntrancePoint point1, EntrancePoint point2 ) : bool
point1 EntrancePoint
point2 EntrancePoint
Результат bool

AreConnected() публичный Метод

Tells whether a path exists inside the cluster between localIdx1 and localIdx2
public AreConnected ( int localIdx1, int localIdx2 ) : bool
localIdx1 int
localIdx2 int
Результат bool

Cluster() публичный Метод

public Cluster ( ConcreteMap concreteMap, int id, int clusterX, int clusterY, Position origin, Size size ) : System
concreteMap ConcreteMap
id int
clusterX int
clusterY int
origin Position
size Size
Результат System

ComputeInternalPaths() публичный Метод

Computes the paths that lie inside the cluster, connecting the several entrances among them
public ComputeInternalPaths ( ) : void
Результат void

ComputePath() публичный Метод

public ComputePath ( int start, int target ) : List
start int
target int
Результат List

GetDistance() публичный Метод

public GetDistance ( int localIdx1, int localIdx2 ) : int
localIdx1 int
localIdx2 int
Результат int

GetGlobalAbsNodeId() публичный Метод

public GetGlobalAbsNodeId ( int localIdx ) : int
localIdx int
Результат int

GetLocalPosition() публичный Метод

Gets the index of an entrance point of this cluster
public GetLocalPosition ( int entranceLocalIndex ) : int
entranceLocalIndex int
Результат int

GetNrEntrances() публичный Метод

public GetNrEntrances ( ) : int
Результат int

GetPath() публичный Метод

public GetPath ( int localIdx1, int localIdx2 ) : List
localIdx1 int
localIdx2 int
Результат List

RemoveLastEntranceRecord() публичный Метод

public RemoveLastEntranceRecord ( ) : void
Результат void

UpdatePaths() публичный Метод

public UpdatePaths ( int localEntranceId ) : void
localEntranceId int
Результат void