Ignore:
Timestamp:
08/28/19 11:35:52 (5 years ago)
Author:
bart
Message:

Added new parties : linear, hardliner, conceder, boulware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • profileconnection/src/main/java/geniusweb/profileconnection/FileProfileConnector.java

    r1 r2  
    1010
    1111import geniusweb.profile.Profile;
    12 import geniusweb.profile.utilityspace.LinearAdditiveUtilitySpace;
    1312
    1413/**
     
    1716public class FileProfileConnector implements ProfileInterface {
    1817        private final static ObjectMapper jackson = new ObjectMapper();
    19         private final LinearAdditiveUtilitySpace profile;
     18        private final Profile profile;
    2019
    2120        /**
     
    2625        public FileProfileConnector(String filename) throws IOException {
    2726                Path path = new File(filename).toPath();
    28                 String serialized = new String(Files.readAllBytes(path),
    29                                 StandardCharsets.UTF_8);
    30                 profile = (LinearAdditiveUtilitySpace) jackson.readValue(serialized,
    31                                 Profile.class);
     27                String serialized = new String(Files.readAllBytes(path), StandardCharsets.UTF_8);
     28                profile = jackson.readValue(serialized, Profile.class);
    3229        }
    3330
    3431        @Override
    35         public LinearAdditiveUtilitySpace getProfile() {
     32        public Profile getProfile() {
    3633                return profile;
    3734        }
Note: See TracChangeset for help on using the changeset viewer.