Ignore:
Timestamp:
10/06/20 13:12:20 (4 years ago)
Author:
bart
Message:

Fixes an issue with processing maxPower of a vote. Javadoc maven plugin now uses latest version.

Location:
exampleparties/timedependentparty
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • exampleparties/timedependentparty/pom.xml

    r23 r24  
    66        <groupId>geniusweb.exampleparties</groupId>
    77        <artifactId>timedependentparty</artifactId>
    8         <version>1.5.2</version> <!-- must equal ${geniusweb.version} -->
     8        <version>1.5.3</version> <!-- must equal ${geniusweb.version} -->
    99        <packaging>jar</packaging>
    1010
     
    1717                <passwd>${env.ARTIFACTORY_PASS}</passwd>
    1818                <jackson-2-version>2.9.10</jackson-2-version>
    19                 <geniusweb.version>1.5.2</geniusweb.version>
     19                <geniusweb.version>1.5.3</geniusweb.version>
    2020        </properties>
    2121
     
    3434                        <groupId>geniusweb</groupId>
    3535                        <artifactId>party</artifactId>
    36         <version>${geniusweb.version}</version>
     36                        <version>${geniusweb.version}</version>
    3737                </dependency>
    3838
     
    4040                        <groupId>geniusweb</groupId>
    4141                        <artifactId>bidspace</artifactId>
    42         <version>${geniusweb.version}</version>
     42                        <version>${geniusweb.version}</version>
    4343                </dependency>
    4444                <dependency>
    4545                        <groupId>geniusweb</groupId>
    4646                        <artifactId>profileconnection</artifactId>
    47         <version>${geniusweb.version}</version>
     47                        <version>${geniusweb.version}</version>
    4848                </dependency>
    4949                <dependency>
     
    188188                                <groupId>org.apache.maven.plugins</groupId>
    189189                                <artifactId>maven-javadoc-plugin</artifactId>
    190                                 <version>2.10.1</version>
     190                                <version>3.2.0</version>
    191191                                <executions>
    192192                                        <execution>
     
    195195                                                        <goal>jar</goal>
    196196                                                </goals>
    197                                                 <configuration>
    198                                                         <additionalparam>${javadoc.opts}</additionalparam>
    199                                                         <additionalparam>-Xdoclint:none</additionalparam>
    200                                                 </configuration>
    201197                                        </execution>
    202198                                </executions>
  • exampleparties/timedependentparty/src/main/java/geniusweb/exampleparties/timedependentparty/ExtendedUtilSpace.java

    r10 r24  
    2121public class ExtendedUtilSpace {
    2222        private LinearAdditive utilspace;
    23         private BigDecimal tolerance; // utility tolerance for a bid.
     23        /**
     24         * The tolerance for a utility. Generally utilities can be this amount
     25         * smaller than requested. See also {@link #computeTolerance()}.
     26         */
     27        private BigDecimal tolerance;
    2428        private BidsWithUtility bidutils;
    2529        // min and max achievable utility
     
    9296
    9397        /**
    94          * @param utilityGoal
    95          * @return bids with utility inside [utilitygoal-tolerance, utilitygoal]
     98         * @param utilityGoal the requested utility
     99         * @return bids with utility inside [utilitygoal-{@link #tolerance},
     100         *         utilitygoal]
    96101         */
    97102        public ImmutableList<Bid> getBids(BigDecimal utilityGoal) {
  • exampleparties/timedependentparty/src/main/java/geniusweb/exampleparties/timedependentparty/TimeDependentParty.java

    r21 r24  
    3434 * brute-force search through the bidspace and can handle bidspace sizes up to
    3535 * 2^31 (approx 1 billion bids). It may take excessive time and run out of time
    36  * on bidspaces > 10000 bids. In special cases it may even run out of memory,
     36 * on bidspaces &gt; 10000 bids. In special cases it may even run out of memory,
    3737 */
    3838public class TimeDependentParty extends DefaultParty {
     
    104104         *         behaviour [1]:
    105105         *
    106          *         1. Boulware: For this strategy e < 1 and the initial offer is
     106         *         1. Boulware: For this strategy e &lt; 1 and the initial offer is
    107107         *         maintained till time is almost exhausted, when the agent concedes
    108108         *         up to its reservation value.
    109109         *
    110          *         2. Conceder: For this strategy e > 1 and the agent goes to its
     110         *         2. Conceder: For this strategy e &gt; 1 and the agent goes to its
    111111         *         reservation value very quickly.
    112112         *
  • exampleparties/timedependentparty/src/test/java/geniusweb/exampleparties/timedependentparty/TimeDependentPartyTest.java

    r21 r24  
    88import static org.mockito.Mockito.mock;
    99import static org.mockito.Mockito.verify;
     10import static org.mockito.Mockito.when;
    1011
    1112import java.io.IOException;
     
    3536import geniusweb.connection.ConnectionEnd;
    3637import geniusweb.inform.ActionDone;
     38import geniusweb.inform.Agreements;
    3739import geniusweb.inform.Finished;
    3840import geniusweb.inform.Inform;
     
    181183                party.connect(connection);
    182184                party.notifyChange(settings);
    183                 party.notifyChange(new Finished(null));
     185                Agreements agreements = mock(Agreements.class);
     186                when(agreements.toString()).thenReturn("agree");
     187
     188                party.notifyChange(new Finished(agreements));
    184189
    185190                verify(reporter).log(eq(Level.INFO),
    186                                 eq("Final ourcome:Finished[null]"));
     191                                eq("Final ourcome:Finished[agree]"));
    187192        }
    188193
Note: See TracChangeset for help on using the changeset viewer.