objective progress status - scorm

If Objective has a readSatisfiedStatus = true and we need its Objective Progress Status; In this case, which Objective Progress Status must be retrieved? Local Objective Progress Status or Shared Global Objective Progress Status?

"readSatisifiedStatus" reads the satisfied status of a global objective declared in a different activity where the mapInfo has set "writeSatisfiedStatus" to true.
EDIT "readSatisifiedStatus" reads satisfied status and "Objective progress status". "Objective progress status" is determined by the LMS based on the "objective success status". If "Objective success status" is "Unknown", "Objective progress status" is set to "false", if "Objective success status" is set to "passed" or "failed", "Objective progress status" is set to "true". "objective satisfied status" has three states: null, true, and false: They are in parallel with the three states of the "objective success status" (unkonwn, passed, failed).
When a local objective is mapped to a global objective, both of them have the same value.
This diagram explains the states of the objectives

Related

Why is net logo showing a runtime error using with command

first time poster.
I am a student working in netlogo.
I am running the Game if Thrones model and have an error.
The code works, but is appears when the humans defeat the nightlong, before the text comes up, I get an error message.
Code is:
If season = “winter” and count whitewalkers = 0 [
set season “spring”
ask patches with [ snow? ][
set snow? false
if else resources = 0 [
set pcolor brown
][
set pcolor green
]
]
user-message “The Night King has been defeated! Summer is back.”
stop
]
The error message is:
WITH expected a true/false value from (patch 70 253), but got 0 instead. Error while observer running WITH Called bu procedure GO Called by button “go”
Many thanks
I have tried removing the brackets, but I believe they are needed.
I have put more space in between the brackets, but that makes no difference.
NetLogo does not perform type inference and the ? at the end of such primitives is a convention to indicate to the reader of the code that it is a boolean type, but not a language feature. NetLogo’s compiler does not immediately assign a boolean value to a variable that has a ? in its name, but simply assumes that it is an integer and assigns 0.
You probably need to set the snow? variable to a default value before using it elsewhere in your code, probably on top of your model’s setup procedure.
Here is a simple piece of code to illustrate how to initialize boolean variables in NetLogo:
patches-own [snow?]
to show-snow
show "before assigning bool value"
show [snow?] of patches
ask patches [ set snow? false ]
show "after assigning bool value"
show [snow?] of patches
end
enter image description here

need help programming buttons in applescript

I'm trying to add some buttons at the end of a small program that will end uo being pretty extensive when all is said and done. once the program is run I'm want 3 buttons {"Show formula", "return to list", "exit"}
I have no idea what I'm doing lol, I'm basically constantly googling while I'm writing this and I think I need help
I had some code after the buttons option but it kept giving me "end" errors. I deleted the code and I forget that I had to show yall
here's my code
set x to item 1 of (choose from list {"Divers consumption at depth", "Free gas volume", "Price list"})
if x is "Divers consumption at depth" then
display dialog "what is divers breathing volume (default 1.4 l/min?" default answer "1.4"
set varDvol to text returned of result
display dialog "What is divers absolute depth pressure" default answer ""
set varPbar to text returned of result
set answer to varDvol * varPbar
display dialog "Diver consumption is " & answer as text buttons {"See formula", "Return to list", "Exit"}
I would like the buttons to just what they say. the show formula button would show "Consumption = volume * pressure", return to list would return to the original list if another function needs to be preformed, and exit would exit the application
You are looking for a structure like this:
display dialog "Diver consumption is " & answer as text buttons {"See formula", "Return to list", "Exit"}
set response to button returned of result
if response = "See formula" then
#do one thing
else if response = "Return to list" then
#do a different thing
else if response = "Exit" then
#do a third thing
end if

How to fix "No keyword with name '0=' found" in Robot Framework

I am a newbie in Robot framework. I want to run multiline IF Statement but I am getting below error:
Error :
"0= Evaluate, ${G_NO_OF_RECIPIENTS}+${NUMBER_OF_CALLEE} FAIL No
keyword with name '0=' found. "
This error is occurring for variable ${REM_COUNT}
Code :
Log ${G_NO_OF_RECIPIENTS}
Log ${NUMBER_OF_CALLEE}
${REM_COUNT} Set Variable ${0}
Run Keyword If "${NUMBER_OF_CALLEE}" != "${G_NO_OF_RECIPIENTS}" Run Keywords
... ${REM_COUNT}= Evaluate ${G_NO_OF_RECIPIENTS}+${NUMBER_OF_CALLEE}
... AND Log "ITS WORKING"
Similar piece of code works somewhere else, only thing was I did not use multiline if statement in it. I appreciate if I get help on this.
Thanks
The Run Keywords does not allow variable assignment inside its block, e.g. this line:
Run Keywords
... ${REM_COUNT}= Evaluate ${G_NO_OF_RECIPIENTS}+${NUMBER_OF_CALLEE}
... AND Log "ITS WORKING"
is illegal syntax. It tried to substitute ${REM_COUNT} with its value (0), and to run it - thus the failure.
Run Keyword If does pass any return values, so you can do it this way:
${REM_COUNT}= Run Keyword If "${NUMBER_OF_CALLEE}" != "${G_NO_OF_RECIPIENTS}"
... Evaluate ${G_NO_OF_RECIPIENTS}+${NUMBER_OF_CALLEE}
... ELSE Set Variable ${REM_COUNT} # if the condition is False, leave the variable to its previous value
Run Keyword If "${NUMBER_OF_CALLEE}" != "${G_NO_OF_RECIPIENTS}" Log "ITS WORKING"

Hide default error message for a failed robot test

I am writing a robot test to see if a list of servers appears in a unix configuration file.
The test is something along the lines of:
Test Case
#{server_list}= server1 server2 server3
${lines}= Get File /etc/config_file
:FOR ${server} in #{server_list}
\ Run Keyword and Continue on Failure Should Contain ${lines} ${server} msg="${server} not in /etc/config_file"
When the test fails it prints out my custom error message to console and then prints out the default message, i.e. 'contents of file' does not contain 'server name', to console. The messages also appear in the output.xml file as well.
Is there a way to disable this default message, so that only my custom message is shown?
Thanks
The msg and values attributes for the Should Contain keyword work like this:
If msg is not given, the error message is <first> != <second>.
If msg is given and values gets a true value (default), the error message is <msg>: <first> != <second>.
If msg is given and values gets a false value, the error message is simply <msg>. See Boolean arguments for more details about using false values.
(see http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Should%20Be%20Equal)
So it seems that if you only want your message to be shown you need to set the values=False attribute.

Obtaining HIT Status while Creating HIT using Mturkr Package in R

library("MTurkR")
credentials(c("EXAMPLEAWSKEY","EXAMPLEAWSSCERETKEY"))
AccountBalance()
#Fetching AccountBalance=$0.00
# First set qualifications
# ListQualificationTypes() to see different qual types
qualReqs = paste(
# Set Location to US only
GenerateQualificationRequirement(
"Location","==","US"),
sep="" )
# Create new batch of hits:
newHIT = CreateHIT(
# layoutid in sandbox:
hitlayoutid="EXAMPLEHITLAYOUTID",
sandbox=T,
annotation = "HET Experiment with Pre-Screen",
assignments = "1200",
title="Rate this hypothetical representative",
description="It's easy, just rate this
hypothetical representative on how well
she delivers funds to his district",
reward=".50",
duration=seconds(hours=4),
expiration=seconds(days=7),
keywords="survey, question, answers, research,
politics, opinion",
auto.approval.delay=seconds(days=15),
qual.reqs=qualReqs
)
# Get HITId (record result below)
newHIT$HITId
HITStatus(hit="EXAMPLEHITID")
#not able to fetch HIT STATUS.
#I Can see HIT been Created in Worker Sandbox, But after submitting the by the worker I am not able to fetch anything.
review = GetAssignments(hit="Example HITID",
status="Submitted", return.all=T)
I am getting the following error:
Error (AWS.MechanicalTurk.HITDoesNotExist): Hit 3IV1AEQ4DRV9ICWQ5F0YS4QBNVOJ85 does not exist. (1444808078544)
# Error in while (request$total > runningtotal) { :
# missing value where TRUE/FALSE needed
This one is pretty simple, actually, despite the not terribly informative (second) error message. You've created a HIT in the sandbox but you're trying to check its status on the live server, where it does not exist.
You can solve this by passing a sandbox = TRUE (or sandbox = FALSE) argument to each function and do so consistently across all of your code. An easier alternative is to specify a global option:
options(MTurkR.sandbox = TRUE)
at the beginning of your code, which you can then easily toggle on and off as needed.

Resources