partage
Class PleiadesComplexInstanceGenerator

java.lang.Object
  extended by partage.PleiadesComplexInstanceGenerator

public class PleiadesComplexInstanceGenerator
extends java.lang.Object

This class generates a random instance of the resource allocation problem with logical constraints and preferences, that aims at simulating an instance of the real-world problem of sharing the Earth Observation Satellites constellation Pleiades.

Version:
July 07
Author:
Sylvain Bouveret

Nested Class Summary
static class PleiadesComplexInstanceGenerator.ConsumptionRightsParameters
          A nested class for customizing all the parameters concerning the consumption rights of the instance.
static class PleiadesComplexInstanceGenerator.RequestsParameters
          A static class for representing the requests parameters of the Pleiades instance.
static class PleiadesComplexInstanceGenerator.VolumeConstraintParameters
          A nested class for customizing all the parameters concerning the volume constraint parameters of the instance.
 
Field Summary
 PleiadesComplexInstanceGenerator.ConsumptionRightsParameters consumption
          The parameters concerning the consumption rights (simulating unequal exogenous rights)
 int nA
          The number of agents.
 int nOMax
          The maximal number of objects.
 PleiadesComplexInstanceGenerator.RequestsParameters requests
          The parameters concerning the requests of the agents
 long seed
          The seed of the random number generator.
 PleiadesComplexInstanceGenerator.VolumeConstraintParameters volume
          The parameters concerning the volume constraints (simulating physical imcompatibilities)
 
Constructor Summary
PleiadesComplexInstanceGenerator(int _nA, int _nOMax)
          Creating an instance of the class PleiadesComplexInstanceGenerator by specifying only the basic parameters.
PleiadesComplexInstanceGenerator(int _nA, int _nOMax, long _seed)
          Creating an instance of the class PleiadesComplexInstanceGenerator by specifying only the basic parameters.
PleiadesComplexInstanceGenerator(PleiadesComplexInstanceGenerator.ConsumptionRightsParameters _consumption, PleiadesComplexInstanceGenerator.VolumeConstraintParameters _volume, PleiadesComplexInstanceGenerator.RequestsParameters _req, int _nA, int _nOMax, long _seed)
          Creating an instance of the class PleiadesComplexInstanceGenerator by specifying explicitely all the parameters.
 
Method Summary
 ComplexInstance generate()
          This method generates an instance of the allocation problem with complex preferences and constraints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consumption

public PleiadesComplexInstanceGenerator.ConsumptionRightsParameters consumption
The parameters concerning the consumption rights (simulating unequal exogenous rights)


volume

public PleiadesComplexInstanceGenerator.VolumeConstraintParameters volume
The parameters concerning the volume constraints (simulating physical imcompatibilities)


requests

public PleiadesComplexInstanceGenerator.RequestsParameters requests
The parameters concerning the requests of the agents


seed

public long seed
The seed of the random number generator.


nA

public int nA
The number of agents.


nOMax

public int nOMax
The maximal number of objects.

Constructor Detail

PleiadesComplexInstanceGenerator

public PleiadesComplexInstanceGenerator(PleiadesComplexInstanceGenerator.ConsumptionRightsParameters _consumption,
                                        PleiadesComplexInstanceGenerator.VolumeConstraintParameters _volume,
                                        PleiadesComplexInstanceGenerator.RequestsParameters _req,
                                        int _nA,
                                        int _nOMax,
                                        long _seed)
Creating an instance of the class PleiadesComplexInstanceGenerator by specifying explicitely all the parameters.

Parameters:
_consumption - The parameters concerning the consumption rights (simulating unequal exogenous rights).
_volume - The parameters concerning the volume constraints (simulating physical imcompatibilities).
_req - The parameters concerning the requests of the agents.
_nA - The number of agents.
_nOMax - The maximal number of objects.
_seed - The seed of the random number generator.

PleiadesComplexInstanceGenerator

public PleiadesComplexInstanceGenerator(int _nA,
                                        int _nOMax,
                                        long _seed)
Creating an instance of the class PleiadesComplexInstanceGenerator by specifying only the basic parameters. The other are left to the defaults which are the following ones:

Parameters:
_nA - The number of agents.
_nOMax - The maximal number of objects.
_seed - The seed of the random number generator.

PleiadesComplexInstanceGenerator

public PleiadesComplexInstanceGenerator(int _nA,
                                        int _nOMax)
Creating an instance of the class PleiadesComplexInstanceGenerator by specifying only the basic parameters. The other are left to the defaults. The seed is set to System.currentTimeMillis()

Parameters:
_nA - The number of agents.
_nOMax - The maximal number of objects.
Method Detail

generate

public ComplexInstance generate()
This method generates an instance of the allocation problem with complex preferences and constraints.

Returns:
An instance of ComplexInstance generated according to the generator's parameters set (the Spot generator).