org.dbe.eve.interaction_patterns
Class Analysis

java.lang.Object
  extended by org.dbe.eve.interaction_patterns.Analysis

public class Analysis
extends java.lang.Object


Field Summary
(package private)  int businessCase
           
(package private) static org.apache.log4j.Logger logger
           
(package private)  EvEModel model
           
(package private)  java.util.Vector modelParameters
           
(package private)  int numberOfRuns
           
 
Constructor Summary
Analysis(EvEModel model, int numberOfRuns)
          The number of simulation runs is set by the value which is handed over to the Constructor and not the value stored in the parameter file.
Analysis(EvEModel model, int businessCaseNr, int numberOfRuns, java.lang.String parameterFile)
           
Analysis(EvEModel model, int businessCaseNr, java.lang.String parameterFile)
          The number of simulation runs is set by the value stored in the parameter file.
 
Method Summary
 int getBusinessCaseNumber()
          return the number of the current BusinessCase
 int getNumberOfRuns()
          returns the number of simulation runs
 boolean loadBusinessCase()
          Load an business case
private  java.util.Vector readCSVFiles(java.lang.String fileName)
          Loads the model start parameters which are stored in a .csv file
private  void setEvEModelParameters(java.lang.String fileName)
          This methode loads the model parameter from an .csv file an set them in the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

EvEModel model

modelParameters

java.util.Vector modelParameters

businessCase

int businessCase

numberOfRuns

int numberOfRuns

logger

static org.apache.log4j.Logger logger
Constructor Detail

Analysis

public Analysis(EvEModel model,
                int businessCaseNr,
                java.lang.String parameterFile)
The number of simulation runs is set by the value stored in the parameter file.

Parameters:
model -
businessCaseNr - is 1,2,3 or 4.
parameterFile -

Analysis

public Analysis(EvEModel model,
                int numberOfRuns)
The number of simulation runs is set by the value which is handed over to the Constructor and not the value stored in the parameter file.

Parameters:
model -
businessCaseNr -
numberOfRuns -
parameterFile -

Analysis

public Analysis(EvEModel model,
                int businessCaseNr,
                int numberOfRuns,
                java.lang.String parameterFile)
Method Detail

setEvEModelParameters

private void setEvEModelParameters(java.lang.String fileName)
This methode loads the model parameter from an .csv file an set them in the model. The .cvs file must have the following structure. File structur: GrowthFactor;ServicePoolExchangeFactor;MutationFactor;SpeedFactor;NumSMEs; NumServices;NumDemandedServicesMin;NumDemandedServicesMax;NumAttributesMin; NumAttributesMax;NumAttributes;DistanceSME;NumUselessHops;WorldXSize; WorldYSize;WebServerPort;StepsToEnd;SimulationRuns File example: .03f;.01f;.05f;10;5;20;5;15;2;10;30;40;5;800;600;8080;100;2

Parameters:
fileName - is the file were the parameters are stored.

readCSVFiles

private java.util.Vector readCSVFiles(java.lang.String fileName)
Loads the model start parameters which are stored in a .csv file

Parameters:
fileName - is the which stores the model start parameter
Returns:
Vector in which the model parameters are stored

loadBusinessCase

public boolean loadBusinessCase()
Load an business case

Returns:
true if the loading was successful

getNumberOfRuns

public int getNumberOfRuns()
returns the number of simulation runs

Returns:
int number of simulation runs

getBusinessCaseNumber

public int getBusinessCaseNumber()
return the number of the current BusinessCase

Returns:
int the number of the current BusinessCase