|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.usc.cse.desi.generate.Generator
This class generates new systems from given input values.
InputData| Constructor Summary | |
Generator()
|
|
| Method Summary | |
static void |
checkComponentsFit(DESIDataModel model)
|
static void |
checkComponentsFit(DESIViewModel model)
This is a utility method that can be used to make sure that the components fit on their hosts (memory-wise). |
static DESIViewModel |
generate(InputData input,
PropertyInitializer prop_init)
This method generates a new System based on the parameters it is given as input. |
private static java.lang.Object |
generateInRange(java.lang.String max,
java.lang.String min,
java.lang.String type,
java.util.Random rand)
This method generates a random number between min and max of the given type and returns it as one of the primitive wrappers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Generator()
| Method Detail |
public static DESIViewModel generate(InputData input,
PropertyInitializer prop_init)
throws NoValidDeploymentException
input - prop_init - PropertyInitializer - In order to create a new model, we need to know what properties are being used.
NoValidDeploymentException
public static void checkComponentsFit(DESIViewModel model)
throws NoValidDeploymentException
model - DESIDataModel - The model object.
NoValidDeploymentException - Thrown if the components do not fit on the hosts.
public static void checkComponentsFit(DESIDataModel model)
throws NoValidDeploymentException
NoValidDeploymentException
private static java.lang.Object generateInRange(java.lang.String max,
java.lang.String min,
java.lang.String type,
java.util.Random rand)
max - min - type - rand -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||