MasterScan  Lab_Matlab_control Master Branch
List of all members | Properties and Events | Protected Properties | Methods
topsTaskHelperTargets Class Reference

Overview

Helper class for showing targets using the monitor (as a dotsDrawableTargets), LEDs (dotsWritableDOutArduinoLEDs), and spoken words (directions).

Inheritance diagram for topsTaskHelperTargets:
Inheritance graph
[legend]

Properties and Events

Property showDrawables
 By default assumes 5 LEDS: More...
 
Property showLEDs
 Flag to show LEDs.
 
- Properties and Events inherited from topsTaskHelper
Property theObject
 Class topsTaskHelper. More...
 
Property removeCopy = true
 Flag to remove copy from treeNode (see start)
 
Property ensembleObjectNames
 Keep track of the names of the objects in the ensemble.
 
Property ensembleObjectClasses
 Keep track of the classes of objects in the ensemble.
 
 sync
 For time synchronization.
 
 topsBindings
 Below are properties used to bind the helper to a topsTreeNode Defaults are defined in the constructor method.
 
- Properties and Events inherited from topsFoundation
Property name = ''
 a string name to indentify the object
 
Property clockFunction =@topsClock
 clock function, to standardize
 

Protected Properties

Property LEDObject
 dotsWritableDOutArduinoLEDs object used to show LEDs
 
Property targetProperties
 Array of structs with target specifications – see constructor for detailsn below.
 

Methods

self topsTaskHelperTargets (varargin)
 Constuct the helper. More...
 
 set (self, index, varargin)
 % set More...
 
 show (self, indices, task, eventTag)
 % show More...
 
 blank (self)
 % blank
 
- Methods inherited from topsTaskHelper
self topsTaskHelper (varargin)
 Specs to use when looking for a copy. More...
 
theObject parse (self, name, fevalable, settings, commonSettings, unmatched)
 Parse constructor specs to make theObject – possibly recursive if making multiple objects and putting them into an ensemble. More...
 
 start (self, treeNode)
 start More...
 
 finish (self, treeNode)
 finish More...
 
 startTrial (self, treeNode)
 Function to prepare for use, called before each trial. More...
 
 finishTrial (self, treeNode)
 Finish trial method – should overload in subclass if needed.
 
 setProperty (self, varargin)
 Set property. More...
 
synchronizedTime getSynchronizedTime (self, unSynchronizedTime, useScreen)
 % getSyncronizedTime More...
 
 saveSynchronizedTime (self, unSynchronizedTime, useScreen, task, eventTag)
 % saveSyncronizedTime More...
 
- Methods inherited from topsFoundation
self topsFoundation (name)
 Constuct with name optional. More...
 
fig gui (self)
 Open a GUI to view object details. More...
 
guiPanel (self, varargin)
 Make a topsDetailPanel with details about this object. More...
 

Additional Inherited Members

- Protected Methods inherited from topsTaskHelper
 callFevalables (self, fevalables)
 Utility to call a list of fevalables.
 
- Static Methods inherited from topsTaskHelper
static synchronizationData getSynchronizationData (helperName, varargin)
 Get synchroniztion data from the current topsDataLog and make a maxtrix with columns: referenceTime offset. More...
 
static helpers makeHelpers (constructor, varargin)
 Utility to make helpers. More...
 
- Static Methods inherited from topsFoundation
static c index cellAdd (c, item, index)
 Add an item to a cell array. More...
 
static selector cellContains (c, item)
 Does a cell array conatin an item? More...
 
static c cellRemoveItem (c, item)
 Remove an item from a cell array. More...
 
static c cellRemoveElement (c, index)
 Remove indexed elements from a cell array. More...
 
static index selector findStructName (s, name)
 Where is the given name in the given struct array? More...
 

Constructor

◆ topsTaskHelperTargets()

self topsTaskHelperTargets ( varargin  )

Constuct the helper.

Optional parameters: showDrawables ... used by dotsTheScreen showLEDs ... flag onPlayables ... struct of playables when target turns on offPlayables ... struct of playables when target turns off

Methods

◆ set()

set ( self  ,
index  ,
varargin   
)

% set

Utility for setting target(s) properties

◆ show()

show ( self  ,
indices  ,
task  ,
eventTag   
)

% show

Utility for showing target(s) indices is cell array of {<array of="" on="" indices>=""> <array of="" off="" indices>="">} task is pointer to task object ... used to save trial data eventTag is string ... used to save trial data

Properties and Events

◆ showDrawables

Property showDrawables

By default assumes 5 LEDS:

1: Right 2: Top 3: Center 4: Left 5: Bottom Flag to show drawables


The documentation for this class was generated from the following file: