Class StandardOverlapRemovalAlgorithmFactory<TVertex>
Simple implementation of an overlap removal algorithm factory.
Inheritance
System.Object
StandardOverlapRemovalAlgorithmFactory<TVertex>
Implements
IOverlapRemovalAlgorithmFactory<TVertex>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.OverlapRemoval
Assembly: GraphShape.dll
Syntax
public class StandardOverlapRemovalAlgorithmFactory<TVertex> : IOverlapRemovalAlgorithmFactory<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Properties
| Improve this Doc View SourceAlgorithmTypes
The set of available algorithms.
Declaration
public IEnumerable<string> AlgorithmTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
| Improve this Doc View SourceCreateAlgorithm(String, IOverlapRemovalContext<TVertex>, IOverlapRemovalParameters)
Creates an algorithm corresponding to given algorithmType
,
context
and parameters
.
Declaration
public IOverlapRemovalAlgorithm<TVertex> CreateAlgorithm(string algorithmType, IOverlapRemovalContext<TVertex> context, IOverlapRemovalParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | algorithmType | Algorithm type. |
IOverlapRemovalContext<TVertex> | context | Creation context. |
IOverlapRemovalParameters | parameters | Algorithm parameters. |
Returns
Type | Description |
---|---|
IOverlapRemovalAlgorithm<TVertex> | Created algorithm. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Trying to create One Way FSA with other parameters than OneWayFSAParameters. |
CreateParameters(String, IOverlapRemovalParameters)
Creates algorithm parameters for an algorithm of given algorithmType
and parameters
.
Declaration
public IOverlapRemovalParameters CreateParameters(string algorithmType, IOverlapRemovalParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | algorithmType | Algorithm type. |
IOverlapRemovalParameters | parameters | Algorithm parameters. |
Returns
Type | Description |
---|---|
IOverlapRemovalParameters | Parameters for the algorithm. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
GetAlgorithmType(IOverlapRemovalAlgorithm<TVertex>)
Gets the algorithm type from a given algorithm
.
Declaration
public string GetAlgorithmType(IOverlapRemovalAlgorithm<TVertex> algorithm)
Parameters
Type | Name | Description |
---|---|---|
IOverlapRemovalAlgorithm<TVertex> | algorithm | Algorithm to get its type. |
Returns
Type | Description |
---|---|
System.String | Algorithm type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
IsValidAlgorithm(String)
Checks if the given algorithmType
is a valid one.
Declaration
public bool IsValidAlgorithm(string algorithmType)
Parameters
Type | Name | Description |
---|---|---|
System.String | algorithmType | Algorithm type. |
Returns
Type | Description |
---|---|
System.Boolean | True if the algorithm type is valid, false otherwise. |