Search Results for

    Show / Hide Table of Contents

    Class AgentBaseTask

    Base class which provides default implementations for the interface methods Using this class avoids repeatedly implementing empty interface classes if they are not needed

    Inheritance
    Object
    BaseTask
    AgentBaseTask
    AgentAdaptiveGazeTask
    AgentAnimationTask
    AgentDropTask
    AgentMovementTask
    AgentPickUpTask
    AgentWaitTask
    Implements
    IAgentTask
    ITask
    Inherited Members
    BaseTask.State
    BaseTask.EvaluateTaskState()
    BaseTask.StartExecution(Agent)
    BaseTask.StopExecution()
    BaseTask.StopAsFailed()
    BaseTask.StopAsSucceeded()
    BaseTask.Tick(Agent)
    Namespace: i5.VirtualAgents.AgentTasks
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class AgentBaseTask : BaseTask, IAgentTask, ITask

    Constructors

    AgentBaseTask()

    Creates a new task

    Declaration
    public AgentBaseTask()

    Properties

    CanStart

    Indicates whether this task is ready to start execution Checks whether all depending tasks are finished Can be overridden to add custom conditions in child classes

    Declaration
    public virtual bool CanStart { get; }
    Property Value
    Type Description
    Boolean

    DependsOnTasks

    List of tasks which need to finish first in order for this task to start

    Declaration
    public List<IAgentTask> DependsOnTasks { get; protected set; }
    Property Value
    Type Description
    List<IAgentTask>

    IsFinished

    Indicates whether the task is finished

    Declaration
    public bool IsFinished { get; protected set; }
    Property Value
    Type Description
    Boolean

    Methods

    FinishTask()

    Declaration
    public virtual void FinishTask()

    FinishTaskAsFailed()

    Declaration
    public virtual void FinishTaskAsFailed()

    WaitFor(AgentBaseTask[])

    Indicates that the task has to wait for at least one oter task to finish first Adds the tasks to the list of dependencies

    Declaration
    public void WaitFor(params AgentBaseTask[] otherTasks)
    Parameters
    Type Name Description
    AgentBaseTask[] otherTasks

    The other tasks which have to finish before this task can start

    Implements

    IAgentTask
    ITask
    In This Article
    Back to top Documentation of the Virtual Agents Framework