Class ActionEvaluation
A record type to represent an evaluation plan and result of a single action.
Implements
Inherited Members
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public class ActionEvaluation : IActionEvaluation
Constructors
| Improve this Doc View SourceActionEvaluation(IAction, IActionContext, IAccountStateDelta, Exception, List<String>)
Creates an ActionEvaluation instance with filling properties.
Declaration
public ActionEvaluation(IAction action, IActionContext inputContext, IAccountStateDelta outputStates, Exception exception = null, List<string> logs = null)
Parameters
Type | Name | Description |
---|---|---|
IAction | action | An action to evaluate. |
IActionContext | inputContext | An input IActionContext to
evaluate |
IAccountStateDelta | outputStates | The result states that
|
Exception | exception | An exception that has risen during evaluating a given
|
List<String> | logs | The logs recorded while executing action. |
Properties
| Improve this Doc View SourceAction
An action to evaluate.
Declaration
public IAction Action { get; }
Property Value
Type | Description |
---|---|
IAction |
Exception
An exception that had risen during evaluation.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception |
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.
Logs
Logs recorded while executing an action through PutLog(String).
Declaration
public List<string> Logs { get; }
Property Value
Type | Description |
---|---|
List<String> |
OutputStates
The result states that Action makes.
Declaration
public IAccountStateDelta OutputStates { get; }
Property Value
Type | Description |
---|---|
IAccountStateDelta |
Explicit Interface Implementations
| Improve this Doc View SourceIActionEvaluation.Action
A record type to represent an evaluation plan and result of a single action.
Declaration
IValue IActionEvaluation.Action { get; }
Returns
Type | Description |
---|---|
Bencodex.Types.IValue |