Last change
on this file since 94 was 90, checked in by Bart Vastenhouw, 3 years ago |
Refactor to help reusing partiesserver.
|
File size:
602 bytes
|
Line | |
---|
1 | from typing import List, Set
|
---|
2 | from geniusweb.profile.Profile import Profile
|
---|
3 | from abc import ABC, abstractmethod
|
---|
4 | from geniusweb.issuevalue.Bid import Bid
|
---|
5 |
|
---|
6 | class ParetoFrontier (ABC):
|
---|
7 | '''
|
---|
8 | The pareto frontier is the set of {@link Bid}s for which there is no other
|
---|
9 | bid that is similar or better for the involved profiles.
|
---|
10 | '''
|
---|
11 |
|
---|
12 | @abstractmethod
|
---|
13 | def getProfiles(self) -> List[Profile] :
|
---|
14 | '''
|
---|
15 | @return the profiles that form the basis of this pareto frontier.
|
---|
16 | '''
|
---|
17 |
|
---|
18 | @abstractmethod
|
---|
19 | def getPoints(self) -> Set[Bid] :
|
---|
20 | '''
|
---|
21 | @return the set of all {@link Bid}s that are on the pareto frontier.
|
---|
22 | '''
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.