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

com.massisframework.massis.ai.sposh.actions.DoNothing Maven / Gradle / Ivy

There is a newer version: 1.2.22
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.massisframework.massis.ai.sposh.actions;

import com.massisframework.massis.ai.sposh.SimulationContext;

import cz.cuni.amis.pogamut.sposh.executor.ActionResult;
import cz.cuni.amis.pogamut.sposh.executor.PrimitiveInfo;

/**
 * Primitive action that doesn't do anything. It is used in empty plans and so on.
 * @author rpax
 */
@PrimitiveInfo(name = "Nothing", description = "This action does nothing and lasts one iteration.")
public class DoNothing extends SimulationAction {

    public DoNothing(SimulationContext ctx) {
        super(ctx);
    }

    
    public ActionResult run() {
        return ActionResult.RUNNING_ONCE;
    }

    @Override
    public void init() {}
    @Override
    public void done() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy