Skip to content

Instantly share code, notes, and snippets.

//
// ListSortingViewController.h
// mss-cognition
//
// Created by Mike Rose on 11/22/14.
// Copyright (c) 2014 Northwestern University. All rights reserved.
//
#import <Player/MSSInstrumentViewController.h>
//
// SequenceBranchEngineByGate.h
// mss-cognition
//
// Created by Mike Rose on 9/11/14.
// Copyright (c) 2014 Northwestern University. All rights reserved.
//
#import <Player/Engine.h>
@rosem
rosem / StaticVisionEngine.h
Last active August 29, 2015 14:23
StaticVisionEngine.h
//
// StaticVisionEngine.h
// tbx_Sensation
//
// Created by Mike Rose on 4/8/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import "MSSSequenceEngine.h"
//
// StaticVisionViewController.h
// tbx_Sensation
//
// Created by Mike Rose on 4/8/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import <Player/Player.h>
@rosem
rosem / GatePracticeParameter3-7.xml
Last active October 9, 2015 16:37
Example parameter file that is parsed and passed to the engine. It works very well for practice logic. Allows the user to skip to the end of the test (finished) if their score is 3 or greater for any of sections. Additional sections with higher thresholds could be added to skip to that section.
<?xml version="1.0"?>
<Parameter>
<Criterias>
<!-- Section 1, Title -->
<!-- Section 2, Instruction -->
<Criteria Section="3" Threshold="1"/> <!-- First practice attempt -->
<Criteria Section="4" Threshold="1"/> <!-- Second practice attempt -->
<Criteria Section="5" Threshold="1"/> <!-- Third practice attempt -->
</Criterias>
<Thresholds>
//
// MSSSequenceEngine.h
// tbx_Sensation2
//
// Created by Mike Rose on 4/8/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import <Player/Player.h>
//
// MSSGatedSequenceEngine.h
// tbx_Sensation2
//
// Created by Mike Rose on 7/6/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import "MSSSequenceEngine.h"
@rosem
rosem / MSSSequenceEngine.m
Last active October 9, 2015 16:43
Basic engine for linear playback, used for instructions.
//
// MSSSequenceEngine.m
// tbx_Sensation2
//
// Created by Mike Rose on 4/8/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import "MSSSequenceEngine.h"
@rosem
rosem / StaticVisionEngine.m
Last active October 9, 2015 16:46
Dichotomous engine. Controls the logic to administer a scientifically valid vision test in under a minute.
//
// StaticVisionEngine.m
// tbx_Sensation
//
// Created by Mike Rose on 4/8/15.
// Copyright (c) 2015 Mike Rose. All rights reserved.
//
#import "StaticVisionEngine.h"
#import "StaticVisionConstants.h"
@rosem
rosem / SequenceBranchEngineByGate.m
Last active October 9, 2015 16:52
Engine uses parsed parameter XML and the user's response to decide which item is next. This engine using branching (eg. A->C or B->F) instead of gates and thresholds.
//
// SequenceBranchEngineByGate.m
// mss-cognition
//
// Created by Mike Rose on 9/11/14.
// Copyright (c) 2014 Northwestern University. All rights reserved.
//
#import "SequenceBranchEngineByGate.h"