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

nl.uu.cs.ape.sat.models.enums.WorkflowElement Maven / Gradle / Ivy

Go to download

APE is a command line tool and an API for the automated exploration of possible computational pipelines (workflows) from large collections of computational tools.

There is a newer version: 2.3.0
Show newest version
package nl.uu.cs.ape.sat.models.enums;

/**
 * Defines the values describing the states in the workflow.
 * 

* Values: [{@code MODULE}, {@code MEMORY_TYPE}, {@code USED_TYPE}, {@code MEM_TYPE_REFERENCE}] */ public enum WorkflowElement { /** * Depicts usage of a tool/module. */ MODULE, /** * Depicts the creation of a new type instance to the memory. */ MEMORY_TYPE, /** * Depicts the usage of an already created type instance. Usually as an input for a tool. */ USED_TYPE, /** * Depicts the usage of an already created type instance, as an input for a tool. It references the created data type. */ MEM_TYPE_REFERENCE, /** * Depicts the dependency between two data instances (states). It depicts that a data instance is dependent (was derived from) on another data instance. */ TYPE_DEPENDENCY; /** * Gets string shortcut. * * @param elem the elem * @param blockNumber the block number * @param stateNumber the state number * @return the string shortcut */ public static String getStringShortcut(WorkflowElement elem, Integer blockNumber, int stateNumber) { if (elem == MODULE) { return "Tool" + stateNumber; } else if (elem == MEMORY_TYPE) { return "MemT" + blockNumber + "." + stateNumber; } else if (elem == USED_TYPE) { return "UsedT" + blockNumber + "." + stateNumber; } return "NaN"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy