Class Recipe

java.lang.Object
  extended byswarm.BaseImpl
      extended byswarm.objectbase.SwarmObjectImpl
          extended byRecipe
All Implemented Interfaces:
swarm.defobj.Create, swarm.defobj.CreateS, swarm.defobj.Customize, swarm.defobj.CustomizeS, swarm.defobj.DefinedObject, swarm.defobj.DefinedObjectS, swarm.defobj.Drop, swarm.defobj.DropS, swarm.defobj.GetName, swarm.defobj.GetNameS, swarm.objectbase.SwarmObject, swarm.objectbase.SwarmObjectS

public class Recipe
extends swarm.objectbase.SwarmObjectImpl

Recipe.java This class is used to read the recipes and their code from the worksheet. Recipes are converted in the intermediate format of jES and ready to be assigned to a List

Author:
Cristian Barreca, Elena Bonessa, Antonella Borra, modified by Marco Lamieri, Francesco Merlo, refactored by Francesco Merlo

Constructor Summary
Recipe(swarm.defobj.Zone aZone)
           
 
Method Summary
 int getLength()
          Returns the length of the recipe in the intermediate format)
 int getRecipeCode()
          Returns the code of the recipe
 java.lang.String getRecipeName()
          Returns the name of the recipe
 int[] getRecipeSteps()
          Returns the steps (in the intermediate format) of the recipe
 void setRecipeFrom(ExcelReader e)
          This method is used to store the intermediate format of a recipe in a List.
 
Methods inherited from class swarm.objectbase.SwarmObjectImpl
compare, describe, describeID, drop, getCompleteProbeMap, getDisplayName, getName, getProbeForMessage, getProbeForVariable, getProbeMap, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recipe

public Recipe(swarm.defobj.Zone aZone)
Method Detail

setRecipeFrom

public void setRecipeFrom(ExcelReader e)
This method is used to store the intermediate format of a recipe in a List. See OrderDistiller.java.


getRecipeName

public java.lang.String getRecipeName()
Returns the name of the recipe


getRecipeCode

public int getRecipeCode()
Returns the code of the recipe


getRecipeSteps

public int[] getRecipeSteps()
Returns the steps (in the intermediate format) of the recipe


getLength

public int getLength()
Returns the length of the recipe in the intermediate format)