All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.logspace.agent.scheduling.AgentExecutor Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
/**
 * Logspace
 * Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
 * This program and the accompanying materials are made available under the terms of
 * the Eclipse Public License Version 1.0, which accompanies this distribution and
 * is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package io.logspace.agent.scheduling;

import java.util.Date;

import io.logspace.agent.api.order.AgentOrder;

/**
 * The agent executor is responsible for the time-based execution of its methods.
 */
public interface AgentExecutor {

    /**
     * Time-based execution of the agent with its order.
     *
     * @param agentOrder - The {@link AgentOrder} of the {@link io.logspace.agent.api.Agent Agent} to execute.
     */
    void executeScheduledAgent(AgentOrder agentOrder);

    /**
     * Time-based execution of updates (sending capabilities and receiving orders).
     * 
     * @param nextFireTime
     */
    void update(Date nextFireTime);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy