Changeset 13


Ignore:
Timestamp:
06/11/20 16:34:45 (4 years ago)
Author:
bart
Message:

Update to version 1.41

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pom.xml

    r12 r13  
    66        <artifactId>profilesserver</artifactId>
    77        <packaging>war</packaging>
    8         <version>1.4.0</version>
     8        <version>1.4.1</version> <!-- must equal ${geniusweb.version} -->
    99        <name>profileserver Maven Webapp</name>
    1010        <url>http://maven.apache.org</url>
     
    1818                <jackson-2-version>2.9.10</jackson-2-version>
    1919                <tomcat.version>8.5.20</tomcat.version>
    20                 <geniusweb.version>1.4.0</geniusweb.version>
     20                <geniusweb.version>1.4.1</geniusweb.version>
    2121        </properties>
    2222
     
    7070                        <groupId>tudelft.utilities</groupId>
    7171                        <artifactId>tree</artifactId>
    72                         <version>1.0.0</version>
     72                        <version>1.1.0</version>
    7373                </dependency>
    7474
     
    8787                        <groupId>tudelft.utilities</groupId>
    8888                        <artifactId>files</artifactId>
    89                         <version>1.0.0</version>
     89                        <version>1.1.0</version>
    9090                </dependency>
    9191
     
    214214
    215215        <build>
    216                 <finalName>profilesserver-1.4.0</finalName>
    217 
    218 
     216                <!-- Don't specify finalName as the war number would mismatch the pom version -->
    219217
    220218                <resources>
  • src/main/java/geniusweb/profilesserver/websocket/GetProfileSocket.java

    r8 r13  
    4848 * the minimum utility bid is included. The other bids are picked at random.
    4949 * This filtering mechanism only works if the profile is {@link LinearAdditive}
    50  * space.
     50 * space. The reservation bid is passed through unmodified.
    5151 */
    5252@ServerEndpoint("/websocket/get/{domain}/{profile}")
     
    9797        }
    9898
     99        /**
     100         *
     101         * @param prof1
     102         * @return a filtered profile. If "partial" is not set, this returns the
     103         *         given profile unmodified. If partial is set, a
     104         *         DefaultPartialOrdering with the requested number of bids are
     105         *         selected
     106         */
    99107        private Profile filter(Profile prof1) {
    100108                String partial = params.get("partial");
  • src/main/webapp/domainsrepo/jobs/jobs1.json

    r1 r13  
    115115                "reservationBid": {
    116116                        "issuevalues": {
    117                                 "salary": "300",
     117                                "salary": "3500",
    118118                                "fte": "0.8",
    119                                 "work from home": "0",
     119                                "work from home": "1",
    120120                                "lease car": "no",
    121                                 "permanent contract": "no",
     121                                "permanent contract": "yes",
    122122                                "career development opportunities": "medium"
    123123                        }
  • src/main/webapp/domainsrepo/jobs/jobs2.json

    r1 r13  
    115115                "reservationBid": {
    116116                        "issuevalues": {
    117                                 "salary": "300",
     117                                "salary": "3000",
    118118                                "fte": "0.8",
    119119                                "work from home": "0",
  • src/test/java/geniusweb/clienttest/JavaClientTest.java

    r5 r13  
    2828        private static final String JSON = "\\{\"ws.*/jobs\":\\[\"ws.*/jobs/jobs1\".*\"ws.*/jobs/jobs2\"\\]\\}";
    2929
    30         private static final String JOBS1PROFILE = "{\"LinearAdditiveUtilitySpace\":{"
    31                         + "\"domain\":{\"name\":\"jobs\",\"issuesValues\":{\"lease car\":{\"values\":[\"yes\",\"no\"]},\"permanent contract\":{\"values\":[\"yes\",\"no\"]},\"career development opportunities\":{\"values\":[\"low\",\"medium\",\"high\"]},\"fte\":{\"values\":[\"0.6\",\"0.8\",\"1.0\"]},\"salary\":{\"values\":[\"2000\",\"2500\",\"3000\",\"3500\",\"4000\"]},\"work from home\":{\"values\":[\"0\",\"1\",\"2\"]}}},"
    32                         + "\"name\":\"jobs1\"," + "\"issueUtilities\":{"
    33                         + "\"lease car\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},"
    34                         + "\"permanent contract\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},"
    35                         + "\"career development opportunities\":{\"discreteutils\":{\"valueUtilities\":{\"high\":1,\"low\":0,\"medium\":0.5}}},"
    36                         + "\"fte\":{\"discreteutils\":{\"valueUtilities\":{\"1.0\":0.75,\"0.6\":0.25,\"0.8\":0.5}}},"
    37                         + "\"salary\":{\"discreteutils\":{\"valueUtilities\":{\"4000\":1.0,\"2500\":0.25,\"3500\":0.75,\"2000\":0,\"3000\":0.3}}},"
    38                         + "\"work from home\":{\"discreteutils\":{\"valueUtilities\":{\"1\":0.5,\"2\":0.666666666666,\"0\":0.333333333}}}},"
    39                         + "\"issueWeights\":{\"lease car\":0.06,\"permanent contract\":0.16,\"career development opportunities\":0.04,\"fte\":0.32,\"salary\":0.24,\"work from home\":0.18},"
    40                         + "\"reservationBid\":{\"issuevalues\":{\"lease car\":\"no\",\"permanent contract\":\"no\",\"career development opportunities\":\"medium\",\"fte\":\"0.8\",\"salary\":\"300\",\"work from home\":\"0\"}}}}";
     30        private static final String JOBS1PROFILE = "{\"LinearAdditiveUtilitySpace\":{\"domain\":{\"name\":\"jobs\",\"issuesValues\":{\"lease car\":{\"values\":[\"yes\",\"no\"]},\"permanent contract\":{\"values\":[\"yes\",\"no\"]},\"career development opportunities\":{\"values\":[\"low\",\"medium\",\"high\"]},\"fte\":{\"values\":[\"0.6\",\"0.8\",\"1.0\"]},\"salary\":{\"values\":[\"2000\",\"2500\",\"3000\",\"3500\",\"4000\"]},\"work from home\":{\"values\":[\"0\",\"1\",\"2\"]}}},\"name\":\"jobs1\",\"issueUtilities\":{\"lease car\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},\"permanent contract\":{\"discreteutils\":{\"valueUtilities\":{\"no\":0,\"yes\":1}}},\"career development opportunities\":{\"discreteutils\":{\"valueUtilities\":{\"high\":1,\"low\":0,\"medium\":0.5}}},\"fte\":{\"discreteutils\":{\"valueUtilities\":{\"1.0\":0.75,\"0.6\":0.25,\"0.8\":0.5}}},\"salary\":{\"discreteutils\":{\"valueUtilities\":{\"4000\":1.0,\"2500\":0.25,\"3500\":0.75,\"2000\":0,\"3000\":0.3}}},\"work from home\":{\"discreteutils\":{\"valueUtilities\":{\"1\":0.5,\"2\":0.666666666666,\"0\":0.333333333}}}},\"issueWeights\":{\"lease car\":0.06,\"permanent contract\":0.16,\"career development opportunities\":0.04,\"fte\":0.32,\"salary\":0.24,\"work from home\":0.18},\"reservationBid\":{\"issuevalues\":{\"lease car\":\"no\",\"permanent contract\":\"yes\",\"career development opportunities\":\"medium\",\"fte\":\"0.8\",\"salary\":\"3500\",\"work from home\":\"1\"}}}}";
     31
    4132        private static EmbeddedTomcat tomcat = new EmbeddedTomcat();
    4233
Note: See TracChangeset for help on using the changeset viewer.