Class ActionEvaluation<T>
A record type to represent an evaluation plan and result of
a single action (T
).
Inherited Members
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public class ActionEvaluation<T>
where T : IAction, new()
Type Parameters
Name | Description |
---|---|
T | A concrete type that implements IAction. |
Constructors
| Improve this Doc View SourceActionEvaluation(T, IActionContext, IAccountStateDelta)
Creates an ActionEvaluation<T> instance with filling properties.
Declaration
public ActionEvaluation(T action, IActionContext inputContext, IAccountStateDelta outputStates)
Parameters
Type | Name | Description |
---|---|---|
T | action | An action to evaluate. |
IActionContext | inputContext | An input IActionContext to
evaluate |
IAccountStateDelta | outputStates | The result states that
|
Properties
| Improve this Doc View SourceAction
An action to evaluate.
Declaration
public T Action { get; }
Property Value
Type | Description |
---|---|
T |
InputContext
An input IActionContext to evaluate Action.
Declaration
public IActionContext InputContext { get; }
Property Value
Type | Description |
---|---|
IActionContext |
Remarks
Its Random property is not consumed yet.
OutputStates
The result states that Action makes.
Declaration
public IAccountStateDelta OutputStates { get; }
Property Value
Type | Description |
---|---|
IAccountStateDelta |