|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object partage.ComplexInstance
public class ComplexInstance
This class describes an instance of a resource allocation problem with logical preferences and constraints.
Nested Class Summary | |
---|---|
static class |
ComplexInstance.AbstractIntegerAggregator
This static abstract class represents an aggregation operator for aggregating weights into individual utilities, and individual utilities into collective utility. |
static interface |
ComplexInstance.Constraint
A generic interface for representing the constraints. |
static class |
ComplexInstance.GenericObjectAgentFormula
A static class representing a generic propositional formula made of an array of subformulae, and a logical operator, on the set of alloc(object, agent). |
static class |
ComplexInstance.GenericObjectFormula
A static class representing a generic propositional formula made of an array of subformulae, and a logical operator, on the set of objects. |
static class |
ComplexInstance.LogicalConstraint
A static class implementing a constraint expressed on the propositional language over the variables alloc(object, agent). |
static interface |
ComplexInstance.LogicalObjectAgentFormula
A static interface representing any propositional formula over the set of alloc(o,i) (the set of propositional variables representing the allocation of objects o to agents i). |
static interface |
ComplexInstance.LogicalObjectFormula
A static interface representing any propositional formula over the set of objects. |
static class |
ComplexInstance.MaxAggregator
An implementation of a real aggregator which computes the max of the weights. |
static class |
ComplexInstance.MinAggregator
An implementation of a real aggregator which computes the min of the weights. |
static class |
ComplexInstance.ObjectAgentAtom
A static class representing an atomic propositional variable (i.e. an alloc(object, agent)). |
static class |
ComplexInstance.ObjectAgentClause
A static class representing a clause of litterals alloc(o,i) or not(alloc(o,i)). |
static class |
ComplexInstance.ObjectAgentDNF
A static class representing a propositional logical formula of alloc(o, i) in disjunctive normal form (allows for a more efficient processing of this kind of preferences). |
static class |
ComplexInstance.ObjectAtom
A static class representing an atomic propositional variable (i.e. an object). |
static class |
ComplexInstance.ObjectCNF
A static class representing a propositional logical formula of objects in conjunctive normal form (allows for a more efficient processing of this kind of preferences). |
static class |
ComplexInstance.ObjectDNF
A static class representing a propositional logical formula of objects in disjunctive normal form (allows for a more efficient processing of this kind of preferences). |
static class |
ComplexInstance.PreemptionConstraint
A static class implementing the Preemption constraint on a set of objects. |
static class |
ComplexInstance.SumAggregator
An implementation of a real aggregator which computes the sum of the weights. |
static class |
ComplexInstance.VolumeConstraint
A static class implementing the Volume constraint on a set of objects. |
static class |
ComplexInstance.WeightedLogicalObjectFormula
A static class implementing a weighted propositional formula (for representing the agents' preferences) |
Field Summary | |
---|---|
ComplexInstance.AbstractIntegerAggregator |
collectiveAggregator
The operator aggregating weights into collective utilities |
ComplexInstance.AbstractIntegerAggregator |
individualAggregator
The operator aggregating weights into individual utilities |
Constructor Summary | |
---|---|
ComplexInstance(int _nA,
int _nO,
java.lang.String _name)
Constructs an instance of the resource allocation problem with logical preferences and constraints. |
Method Summary | |
---|---|
void |
addConstraint(ComplexInstance.Constraint c)
|
void |
addPref(int agent,
ComplexInstance.WeightedLogicalObjectFormula f)
Adds a preference formula to an agent. |
java.util.ArrayList<ComplexInstance.Constraint> |
getConstraints()
The getter to the list of constraints. |
int |
getNA()
|
java.lang.String |
getName()
returns the name of the instance. |
int |
getNO()
|
java.util.ArrayList<ComplexInstance.WeightedLogicalObjectFormula> |
getPrefs(int i)
The getter to the preferences of a given agent. |
int |
getValMaxCollectiveUtility()
|
int |
getValMaxIndividualUtility()
|
java.lang.String |
pretty()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ComplexInstance.AbstractIntegerAggregator individualAggregator
public ComplexInstance.AbstractIntegerAggregator collectiveAggregator
Constructor Detail |
---|
public ComplexInstance(int _nA, int _nO, java.lang.String _name)
_nA
- the number of agents of the instance._nO
- the number of objects of the instance._name
- the name of the instance.Method Detail |
---|
public java.lang.String getName()
Instance
getName
in interface Instance
public void addPref(int agent, ComplexInstance.WeightedLogicalObjectFormula f)
agent
- the agent whose preferences will be modified.f
- the formula to add to the agents preferences.public void addConstraint(ComplexInstance.Constraint c)
public java.util.ArrayList<ComplexInstance.WeightedLogicalObjectFormula> getPrefs(int i)
i
- the number of the agents whose preferences we want.
public java.util.ArrayList<ComplexInstance.Constraint> getConstraints()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String pretty()
public int getNA()
public int getNO()
public int getValMaxIndividualUtility()
public int getValMaxCollectiveUtility()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |