Changes between Version 228 and Version 229 of WikiStart
- Timestamp:
- 08/14/19 09:07:22 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v228 v229 114 114 {{{ 115 115 {"LinearAdditiveUtilitySpace": 116 {"domain":{"name":"test", 116 {"name":"testprofile", 117 "domain":{"name":"test", 117 118 "issuesValues":{ 118 119 "issue2":{"values":["issue2value1","issue2value2"]}, 119 120 "issue1":{"values": ["issue1value1","issue1value2"]}}}, 120 "name":"testprofile",121 121 "issueUtilities":{ 122 122 "issue2":{"numberutils":{"lowValue":12,"lowUtility":0.3,"highValue":18,"highUtility":0.6}}, … … 129 129 130 130 A party receives a reference to a profile but has to fetch the actual profile. You can defer this task to the ProfileConnectionFactory and in that case you receive a ready-to-use parsed java object. Most likely you get a Linear Additive Utilityspace, please check [source:profile/src/main/java/geniusweb/profile/utilityspace] for conversion details. 131 132 133 == Create a profile134 A profile is usually created after the domain. An example linear additive profile looks like this135 {{{136 {137 "LinearAdditiveUtilitySpace": {138 "issueUtilities": {139 "salary": {140 "discreteutils": {141 "valueUtilities": {142 "2000": 0,143 "2500": 0.25,144 "3000": 0.3,145 "3500": 0.75,146 "4000": 1.0147 }148 }149 },150 "fte": {151 "discreteutils": {152 "valueUtilities": {153 "0.6": 0.25,154 "0.8": 0.5,155 "1.0": 0.75156 }157 }158 },159 "work from home": {160 .....161 }162 }163 }164 },165 "issueWeights": {166 "salary": 0.24,167 "fte": 0.32,168 "work from home": 0.18,169 "lease car": 0.06,170 "permanent contract": 0.16,171 "career development opportunities": 0.04172 },173 "domain": {174 "name": "jobs", .....175 },176 "name": "jobs1"177 }178 }179 180 }}}181 182 131 183 132 This is an "LinearAdditiveYtilitySpace", other utilityspaces would have different contents. It contains a number of components: