Show / Hide Table of Contents

Class ActionEvaluation

A record type to represent an evaluation plan and result of a single action.

Inheritance
System.Object
ActionEvaluation
Implements
IActionEvaluation
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public class ActionEvaluation : object, IActionEvaluation

Constructors

| Improve this Doc View Source

ActionEvaluation(IAction, IActionContext, IWorld, Nullable<Exception>)

Creates an ActionEvaluation instance with filling properties.

Declaration
public ActionEvaluation(IAction action, IActionContext inputContext, IWorld outputState, Exception? exception = null)
Parameters
Type Name Description
IAction action

An action to evaluate.

IActionContext inputContext

An input IActionContext to evaluate action.

IWorld outputState

The result states that action makes.

System.Nullable<Exception> exception

An exception that has risen during evaluating a given action.

Properties

| Improve this Doc View Source

Action

An action to evaluate.

Declaration
public IAction Action { get; }
Property Value
Type Description
IAction
| Improve this Doc View Source

Exception

An exception that had risen during evaluation.

Declaration
public Exception? Exception { get; }
Property Value
Type Description
System.Nullable<Exception>
| Improve this Doc View Source

InputContext

An input IActionContext to evaluate Action.

Declaration
public IActionContext InputContext { get; }
Property Value
Type Description
IActionContext
Remarks

Its property is not consumed yet.

| Improve this Doc View Source

OutputState

The result states that Action makes.

Declaration
public IWorld OutputState { get; }
Property Value
Type Description
IWorld

Explicit Interface Implementations

| Improve this Doc View Source

IActionEvaluation.Action

A record type to represent an evaluation plan and result of a single action.

Declaration
IValue IActionEvaluation.Action { get; }
Returns
Type Description
IValue

Implements

IActionEvaluation
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium