Skip to content

Conversation

@jcbgamboa
Copy link

@jcbgamboa jcbgamboa commented Jul 1, 2018

Basically, what I do is:

  1. Create a BackwardDigitSpan class that extends WordDigitSpan
  2. Override the two relevant functions
  3. Make several variables in WordDigitSpan public (I could have made them protected, but I didn't care much about modularity)
  4. Create a new backward_digit_span.xml file that is almost identical to default_digit_span.xml (but refers to BackwardDigitSpan instead).
  5. Create a new Instructions file

I know this could have been made much more cleanly and nicely. I don't know how much you care about the cleanliness now (I have to say I am doing this in a rush, but I can take my time in the future and clean if you would like me to =) ).

jcbgamboa added 2 commits July 1, 2018 04:42
 Changes to be committed:
	new file:   modules/core_wm_modules/backward_digit_span.xml
	new file:   src/main/java/jms/cogtasks/executables/BackwardDigitSpan.java
	modified:   src/main/java/jms/cogtasks/executables/WordDigitSpan.java
	new file:   src/main/resources/jms/cogtasks/instructions/BackwardDigitSpan/BackwardDigitSpanInstructions.html
@jcbgamboa jcbgamboa changed the title Implements (very uncleanly) Backward Digit Span task Implements Backward Digit Span task Jul 2, 2018
@jcbgamboa
Copy link
Author

Hi...

I renamed the .xml into something that follows the pattern of the other ones.

I also removed the second overridden function, that is not necessary, and made the variables that I used protected instead of private.

(I guess this should make the code a little cleaner. Feel free to tell me if I can make the code better in any way. I am using this Backward Digit span in an experiment in the next weeks, so I'll be able to tell if there are any bugs that I couldn't notice)

@j-stone
Copy link
Owner

j-stone commented Jul 2, 2018

This sounds good, I'll have a look over it when I get a chance and see if I can spot anything to improve before adding it. Let me know if you have any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants