Package | Description |
---|---|
edu.umass.cs.surveyman.analyses.rules |
Contains available rules for the wellformedness check in static analysis.
|
edu.umass.cs.surveyman.input |
Contains the abstract lexing and parsing protocols and some concrete implementations.
|
edu.umass.cs.surveyman.input.csv |
Contains concrete implementations of AbstractLexer and AbstractParser for csv input.
|
edu.umass.cs.surveyman.output |
Contains objects used to print out results or transmit data over a server.
|
edu.umass.cs.surveyman.qc |
Contains quality control metrics.
|
edu.umass.cs.surveyman.survey |
Contains internal representations of survey component abstractions.
|
edu.umass.cs.surveyman.survey.exceptions |
Survey exceptions.
|
Modifier and Type | Method and Description |
---|---|
static int |
BranchParadigm.ensureBranchParadigms(Block b) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Block> |
AbstractParser.allBlockLookUp
All blocks in the survey (including sub-blocks).
|
protected List<Block> |
AbstractParser.topLevelBlocks
The top-level blocks in the survey.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractParser.propagateBranchParadigm(Block b)
Traverses the structure of the block and its sub-blocks to ensure that the block/branch type is properly set.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
AbstractParser.addPhantomBlocks(Map<String,Block> blockLookUp)
Creates intermediate blocks that may not have been explicitly specified.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Block> |
CSVParser.getAllBlockLookUp()
Returns a map of all blocks, including top-level-blocks, sub-blocks, and "phantom" blocks.
|
Modifier and Type | Method and Description |
---|---|
void |
WordingBiasStruct.update(Block b,
Question q1,
Question q2,
CorrelationStruct correlationStruct) |
Modifier and Type | Method and Description |
---|---|
static Map<Boolean,List<Block>> |
Interpreter.partitionBlocks(Survey survey)
Partitions the top-level blocks in the survey into those that are floating and those that are static.
|
Constructor and Description |
---|
SurveyPath(Collection<Block> coll) |
Modifier and Type | Field and Description |
---|---|
Block |
Question.block
The enclosing block for this question.
|
Block |
Block.parentBlock
The parent pointer for this block.
|
Modifier and Type | Field and Description |
---|---|
Map<String,Block> |
Survey.blocks
Map of all block identifiers to
Block objects. |
List<Block> |
Block.subBlocks
The sub-blocks that this block contains.
|
List<Block> |
Survey.topLevelBlocks
List of all top-level blocks.
|
Modifier and Type | Method and Description |
---|---|
Block |
BranchMap.get(Object o) |
Block |
Question.getBranchDest(SurveyDatum c)
Returns the branch destination for the input question.
|
Block |
Block.getFarthestContainingBlock()
Returns the topmost block of this block; if this block is top-level, it returns itself.
|
Block |
BranchMap.put(SurveyDatum surveyDatum,
Block block) |
Block |
BranchMap.remove(Object o) |
static Block[] |
Block.shuffle(List<Block> blockList)
Shuffles the input block list, respecting static vs floating blocks.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<SurveyDatum,Block>> |
BranchMap.entrySet() |
Set<Block> |
Survey.getAllBlocks()
Gets all blocks (top level and subblocks) in this survey.
|
Set<Block> |
Question.getBranchDestinations()
Loops through the branch destinations for this question and returns the set of blocks this question branches to.
|
Set<Block> |
Block.getBranchDestinations() |
static List<Block> |
Block.getSorted(List<Block> blockList)
Sorts the input block list.
|
Collection<Block> |
BranchMap.values() |
Modifier and Type | Method and Description |
---|---|
void |
Survey.addBlock(Block b) |
void |
Block.addBlock(Block b)
Method to add a subblock to this block programmatically.
|
void |
Question.addOption(SurveyDatum surveyDatum,
Block branchTo)
Adds an answer option as part of a branch question.
|
void |
Question.addOption(SurveyDatum surveyDatum,
Block branchTo,
boolean exclusive,
boolean ordered)
Adds an answer option as part of a branch question.
|
boolean |
Block.before(Block that)
Compares this block to the input block.
|
boolean |
Block.isSubblockOf(Block b)
Compares this block with the input block and returns true if the input is a descendant of this block.
|
Block |
BranchMap.put(SurveyDatum surveyDatum,
Block block) |
void |
Question.setBranchDest(SurveyDatum c,
Block dest)
Sets the branch destination of this question at the input option to the input destination.
|
Modifier and Type | Method and Description |
---|---|
static List<Block> |
Block.getSorted(List<Block> blockList)
Sorts the input block list.
|
static String |
Block.idToString(int[] id,
Map<String,Block> blockMap)
Converts an internal block identifier to the string block identifier, according to the language/format specified
for CSVs.
|
static String |
Block.jsonize(List<Block> blockList) |
void |
BranchMap.putAll(Map<? extends SurveyDatum,? extends Block> map) |
static Block[] |
Block.shuffle(List<Block> blockList)
Shuffles the input block list, respecting static vs floating blocks.
|
Constructor and Description |
---|
UnreachableBlockException(Block b) |
Copyright © 2015. All rights reserved.