Example #1
0
        public CommonCore(TaskType myType)
        {
            _myType = myType;
            switch (myType)
            {
            case TaskType.Control:
                _informationHolder = new ControlInformation();
                break;

            case TaskType.Reward:
                _informationHolder = new RewardInformation();
                break;

            case TaskType.Punishment:
                _informationHolder = new PunishmentInformation();
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(myType), myType, null);
            }
        }
Example #2
0
 public UserInfo()
 {
     _informationHolder = new UserInfoInformation();
 }
 public Baseline()
 {
     _informationHolder = new BaselineInformation();
 }