Changeset 13
- Timestamp:
- 06/11/20 16:34:45 (4 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pom.xml
r12 r13 6 6 <artifactId>profilesserver</artifactId> 7 7 <packaging>war</packaging> 8 <version>1.4. 0</version>8 <version>1.4.1</version> <!-- must equal ${geniusweb.version} --> 9 9 <name>profileserver Maven Webapp</name> 10 10 <url>http://maven.apache.org</url> … … 18 18 <jackson-2-version>2.9.10</jackson-2-version> 19 19 <tomcat.version>8.5.20</tomcat.version> 20 <geniusweb.version>1.4. 0</geniusweb.version>20 <geniusweb.version>1.4.1</geniusweb.version> 21 21 </properties> 22 22 … … 70 70 <groupId>tudelft.utilities</groupId> 71 71 <artifactId>tree</artifactId> 72 <version>1. 0.0</version>72 <version>1.1.0</version> 73 73 </dependency> 74 74 … … 87 87 <groupId>tudelft.utilities</groupId> 88 88 <artifactId>files</artifactId> 89 <version>1. 0.0</version>89 <version>1.1.0</version> 90 90 </dependency> 91 91 … … 214 214 215 215 <build> 216 <finalName>profilesserver-1.4.0</finalName> 217 218 216 <!-- Don't specify finalName as the war number would mismatch the pom version --> 219 217 220 218 <resources> -
src/main/java/geniusweb/profilesserver/websocket/GetProfileSocket.java
r8 r13 48 48 * the minimum utility bid is included. The other bids are picked at random. 49 49 * This filtering mechanism only works if the profile is {@link LinearAdditive} 50 * space. 50 * space. The reservation bid is passed through unmodified. 51 51 */ 52 52 @ServerEndpoint("/websocket/get/{domain}/{profile}") … … 97 97 } 98 98 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 */ 99 107 private Profile filter(Profile prof1) { 100 108 String partial = params.get("partial"); -
src/main/webapp/domainsrepo/jobs/jobs1.json
r1 r13 115 115 "reservationBid": { 116 116 "issuevalues": { 117 "salary": "3 00",117 "salary": "3500", 118 118 "fte": "0.8", 119 "work from home": " 0",119 "work from home": "1", 120 120 "lease car": "no", 121 "permanent contract": " no",121 "permanent contract": "yes", 122 122 "career development opportunities": "medium" 123 123 } -
src/main/webapp/domainsrepo/jobs/jobs2.json
r1 r13 115 115 "reservationBid": { 116 116 "issuevalues": { 117 "salary": "300 ",117 "salary": "3000", 118 118 "fte": "0.8", 119 119 "work from home": "0", -
src/test/java/geniusweb/clienttest/JavaClientTest.java
r5 r13 28 28 private static final String JSON = "\\{\"ws.*/jobs\":\\[\"ws.*/jobs/jobs1\".*\"ws.*/jobs/jobs2\"\\]\\}"; 29 29 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 41 32 private static EmbeddedTomcat tomcat = new EmbeddedTomcat(); 42 33
Note:
See TracChangeset
for help on using the changeset viewer.