Interface IModalChoiceResolver
The
IModalChoiceResolver
checks
ISpatialNode
s with regard to providing and
consuming
ModalChoice
s.
Assembly: Mars.Components.dll
Syntax
public interface IModalChoiceResolver
Methods
|
Improve this Doc
View Source
Consumes(ModalChoice, ISpatialNode)
Checks if given source can consume given modal choice.
Declaration
bool Consumes(ModalChoice modalChoice, ISpatialNode source)
Parameters
Type |
Name |
Description |
ModalChoice |
modalChoice |
That is checked for consumption. |
ISpatialNode |
source |
That might consume given modal choice. |
Returns
Type |
Description |
System.Boolean |
True, if given source can consume given modal choice, false otherwise. |
|
Improve this Doc
View Source
Provides(IModalCapabilitiesAgent, ISpatialNode)
Provides all
ModalChoice
s that are available at given source node for given agent.
Declaration
IEnumerable<ModalChoice> Provides(IModalCapabilitiesAgent agent, ISpatialNode source)
Parameters
Type |
Name |
Description |
IModalCapabilitiesAgent |
agent |
Defines the supported capabilities and can be used to identify personal vehicles. |
ISpatialNode |
source |
The ISpatialNode that provides returned modal choices. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ModalChoice> |
All modal choices that are available for this agent at this node. |
Extension Methods