simulator
Class SimulationOptions

java.lang.Object
  extended by simulator.SimulationOptions

public class SimulationOptions
extends java.lang.Object

Represents selectable options of a simulation.

Author:
Leo Bosnjak

Field Summary
private  boolean addToSlice
          Add the nodes to our slice?
private  boolean askForSaveFileName
          Let the user select the filename for saving results to it?
private  boolean bootstrapNodes
          Launch our application on each node?
private  boolean calcSemanticCl
          Calculate semantic closeness (forms semantic groups)?
private  boolean copyDirToSlice
          Copy a directory to every node?
private  java.lang.String defaultSaveFileName
          The default filename for saving results to it
private  boolean equalNrOfProxiesPerGroup
          When calculating semantic closeness: form groups with equal nr of nodes per group?
private  boolean randomSelect
          Select some random nodes?
 
Constructor Summary
SimulationOptions()
          Constructs an instance and initializes it with default values.
SimulationOptions(boolean randomSelect, boolean addToSlice, boolean copyDirToSlice, boolean bootstrapNodes, boolean calcSemanticCl, boolean equalNrOfProxiesPerGroup, boolean askForSaveFileName, java.lang.String defaultSaveFileName)
          Constructs an instance and initializes it with the given values.
 
Method Summary
 java.lang.String getDefaultSaveFileName()
           
 boolean isAddToSlice()
           
 boolean isAskForSaveFileName()
           
 boolean isBootstrapNodes()
           
 boolean isCalcSemanticCl()
           
 boolean isCopyDirToSlice()
           
 boolean isEqualNrOfProxiesPerGroup()
           
 boolean isRandomSelect()
           
 void setAddToSlice(boolean addToSlice)
           
 void setAskForSaveFileName(boolean askForSaveFileName)
           
 void setBootstrapNodes(boolean bootstrapNodes)
           
 void setCalcSemanticCl(boolean calcSemanticCl)
           
 void setCopyDirToSlice(boolean copyDirToSlice)
           
 void setDefaultSaveFileName(java.lang.String defaultSaveFileName)
           
 void setEqualNrOfProxiesPerGroup(boolean equalNrOfProxiesPerGroup)
           
 void setRandomSelect(boolean randomSelect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

randomSelect

private boolean randomSelect
Select some random nodes?


addToSlice

private boolean addToSlice
Add the nodes to our slice?


copyDirToSlice

private boolean copyDirToSlice
Copy a directory to every node?


bootstrapNodes

private boolean bootstrapNodes
Launch our application on each node?


calcSemanticCl

private boolean calcSemanticCl
Calculate semantic closeness (forms semantic groups)?


equalNrOfProxiesPerGroup

private boolean equalNrOfProxiesPerGroup
When calculating semantic closeness: form groups with equal nr of nodes per group?


askForSaveFileName

private boolean askForSaveFileName
Let the user select the filename for saving results to it?


defaultSaveFileName

private java.lang.String defaultSaveFileName
The default filename for saving results to it

Constructor Detail

SimulationOptions

public SimulationOptions()
Constructs an instance and initializes it with default values.


SimulationOptions

public SimulationOptions(boolean randomSelect,
                         boolean addToSlice,
                         boolean copyDirToSlice,
                         boolean bootstrapNodes,
                         boolean calcSemanticCl,
                         boolean equalNrOfProxiesPerGroup,
                         boolean askForSaveFileName,
                         java.lang.String defaultSaveFileName)
Constructs an instance and initializes it with the given values.

Method Detail

isRandomSelect

public boolean isRandomSelect()
Returns:
the randomSelect

setRandomSelect

public void setRandomSelect(boolean randomSelect)
Parameters:
randomSelect - the randomSelect to set

isAddToSlice

public boolean isAddToSlice()
Returns:
the addToSlice

setAddToSlice

public void setAddToSlice(boolean addToSlice)
Parameters:
addToSlice - the addToSlice to set

isCopyDirToSlice

public boolean isCopyDirToSlice()
Returns:
the copyDirToSlice

setCopyDirToSlice

public void setCopyDirToSlice(boolean copyDirToSlice)
Parameters:
copyDirToSlice - the copyDirToSlice to set

isBootstrapNodes

public boolean isBootstrapNodes()
Returns:
the bootstrapNodes

setBootstrapNodes

public void setBootstrapNodes(boolean bootstrapNodes)
Parameters:
bootstrapNodes - the bootstrapNodes to set

isCalcSemanticCl

public boolean isCalcSemanticCl()
Returns:
the calcSemanticCl

setCalcSemanticCl

public void setCalcSemanticCl(boolean calcSemanticCl)
Parameters:
calcSemanticCl - the calcSemanticCl to set

isEqualNrOfProxiesPerGroup

public boolean isEqualNrOfProxiesPerGroup()
Returns:
the equalNrOfProxiesPerGroup

setEqualNrOfProxiesPerGroup

public void setEqualNrOfProxiesPerGroup(boolean equalNrOfProxiesPerGroup)
Parameters:
equalNrOfProxiesPerGroup - the equalNrOfProxiesPerGroup to set

isAskForSaveFileName

public boolean isAskForSaveFileName()
Returns:
the askForSaveFileName

setAskForSaveFileName

public void setAskForSaveFileName(boolean askForSaveFileName)
Parameters:
askForSaveFileName - the askForSaveFileName to set

getDefaultSaveFileName

public java.lang.String getDefaultSaveFileName()
Returns:
the defaultSaveFileName

setDefaultSaveFileName

public void setDefaultSaveFileName(java.lang.String defaultSaveFileName)
Parameters:
defaultSaveFileName - the defaultSaveFileName to set