taskjuggler 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/benchmarks/depends.tjp +2 -1
- data/benchmarks/htmltaskreport.tjp +2 -1
- data/doc/classes/AppConfig.html +124 -120
- data/doc/classes/Arguments.html +10 -6
- data/doc/classes/Object.html +229 -0
- data/doc/classes/String.html +35 -31
- data/doc/classes/TaskJuggler/Account.html +18 -18
- data/doc/classes/TaskJuggler/AccountAttribute.html +261 -0
- data/doc/classes/TaskJuggler/AccountScenario.html +12 -12
- data/doc/classes/TaskJuggler/Allocation.html +34 -30
- data/doc/classes/TaskJuggler/AllocationAttribute.html +70 -70
- data/doc/classes/TaskJuggler/AttributeBase.html +131 -147
- data/doc/classes/TaskJuggler/AttributeDefinition.html +38 -21
- data/doc/classes/TaskJuggler/BatchProcessor.html +313 -0
- data/doc/classes/TaskJuggler/Booking.html +22 -18
- data/doc/classes/TaskJuggler/BookingListAttribute.html +42 -42
- data/doc/classes/TaskJuggler/BooleanAttribute.html +40 -40
- data/doc/classes/TaskJuggler/CSVFile.html +28 -24
- data/doc/classes/TaskJuggler/Charge.html +22 -18
- data/doc/classes/TaskJuggler/ChargeListAttribute.html +30 -30
- data/doc/classes/TaskJuggler/ChargeSet.html +41 -37
- data/doc/classes/TaskJuggler/ChargeSetListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/ColumnListAttribute.html +231 -0
- data/doc/classes/TaskJuggler/ColumnTable.html +23 -21
- data/doc/classes/TaskJuggler/DateAttribute.html +20 -20
- data/doc/classes/TaskJuggler/DefinitionListAttribute.html +162 -0
- data/doc/classes/TaskJuggler/DependencyListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/DurationAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FixnumAttribute.html +20 -20
- data/doc/classes/TaskJuggler/FlagListAttribute.html +42 -42
- data/doc/classes/TaskJuggler/FloatAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FormatListAttribute.html +197 -0
- data/doc/classes/TaskJuggler/GanttChart.html +236 -207
- data/doc/classes/TaskJuggler/GanttContainer.html +46 -42
- data/doc/classes/TaskJuggler/GanttHeader.html +16 -12
- data/doc/classes/TaskJuggler/GanttHeaderScaleItem.html +16 -12
- data/doc/classes/TaskJuggler/GanttLine.html +28 -24
- data/doc/classes/TaskJuggler/GanttLoadStack.html +22 -18
- data/doc/classes/TaskJuggler/GanttMilestone.html +46 -42
- data/doc/classes/TaskJuggler/GanttRouter.html +104 -98
- data/doc/classes/TaskJuggler/GanttTaskBar.html +46 -42
- data/doc/classes/TaskJuggler/HTMLDocument.html +12 -12
- data/doc/classes/TaskJuggler/HTMLGraphics.html +12 -12
- data/doc/classes/TaskJuggler/Interval.html +126 -120
- data/doc/classes/TaskJuggler/IntervalListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/JobInfo.html +284 -0
- data/doc/classes/TaskJuggler/Journal.html +197 -0
- data/doc/classes/TaskJuggler/JournalEntry.html +218 -0
- data/doc/classes/TaskJuggler/KeywordArray.html +179 -0
- data/doc/classes/TaskJuggler/KeywordDocumentation.html +445 -396
- data/doc/classes/TaskJuggler/Limits/Limit.html +34 -30
- data/doc/classes/TaskJuggler/Limits.html +68 -62
- data/doc/classes/TaskJuggler/LimitsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ListAttributeBase.html +207 -0
- data/doc/classes/TaskJuggler/Log.html +72 -68
- data/doc/classes/TaskJuggler/LogicalAttribute.html +38 -34
- data/doc/classes/TaskJuggler/LogicalExpression.html +16 -12
- data/doc/classes/TaskJuggler/LogicalExpressionAttribute.html +194 -0
- data/doc/classes/TaskJuggler/LogicalFlag.html +32 -32
- data/doc/classes/TaskJuggler/LogicalFunction.html +28 -24
- data/doc/classes/TaskJuggler/LogicalOperation.html +17 -13
- data/doc/classes/TaskJuggler/Macro.html +10 -6
- data/doc/classes/TaskJuggler/MacroParser.html +36 -36
- data/doc/classes/TaskJuggler/MacroTable.html +40 -36
- data/doc/classes/TaskJuggler/Message.html +16 -12
- data/doc/classes/TaskJuggler/MessageHandler.html +16 -12
- data/doc/classes/TaskJuggler/Navigator.html +249 -0
- data/doc/classes/TaskJuggler/OnShiftCache.html +316 -0
- data/doc/classes/TaskJuggler/Project.html +1064 -678
- data/doc/classes/TaskJuggler/ProjectFileParser.html +90 -85
- data/doc/classes/TaskJuggler/PropertyAttribute.html +194 -0
- data/doc/classes/TaskJuggler/PropertyList.html +114 -113
- data/doc/classes/TaskJuggler/PropertySet.html +355 -312
- data/doc/classes/TaskJuggler/PropertyTreeNode.html +527 -474
- data/doc/classes/TaskJuggler/Query.html +90 -85
- data/doc/classes/TaskJuggler/RTPNavigator.html +292 -0
- data/doc/classes/TaskJuggler/RTPReport.html +301 -0
- data/doc/classes/TaskJuggler/RealFormat.html +114 -57
- data/doc/classes/TaskJuggler/RealFormatAttribute.html +162 -0
- data/doc/classes/TaskJuggler/ReferenceAttribute.html +87 -20
- data/doc/classes/TaskJuggler/Report.html +82 -291
- data/doc/classes/TaskJuggler/ReportBase.html +448 -0
- data/doc/classes/TaskJuggler/ReportContext.html +243 -0
- data/doc/classes/TaskJuggler/ReportTable.html +158 -129
- data/doc/classes/TaskJuggler/ReportTableCell.html +30 -26
- data/doc/classes/TaskJuggler/ReportTableColumn.html +29 -25
- data/doc/classes/TaskJuggler/ReportTableLegend.html +28 -24
- data/doc/classes/TaskJuggler/ReportTableLine.html +34 -30
- data/doc/classes/TaskJuggler/Resource.html +12 -12
- data/doc/classes/TaskJuggler/ResourceListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/ResourceListRE.html +49 -57
- data/doc/classes/TaskJuggler/ResourceScenario.html +126 -126
- data/doc/classes/TaskJuggler/RichText.html +52 -48
- data/doc/classes/TaskJuggler/RichTextAttribute.html +30 -30
- data/doc/classes/TaskJuggler/RichTextDocument.html +41 -37
- data/doc/classes/TaskJuggler/RichTextElement.html +274 -264
- data/doc/classes/TaskJuggler/RichTextException.html +13 -13
- data/doc/classes/TaskJuggler/RichTextParser.html +48 -47
- data/doc/classes/TaskJuggler/RichTextProtocolExample.html +52 -55
- data/doc/classes/TaskJuggler/RichTextProtocolHandler.html +55 -10
- data/doc/classes/TaskJuggler/RichTextScanner.html +106 -245
- data/doc/classes/TaskJuggler/RichTextSnip.html +28 -24
- data/doc/classes/TaskJuggler/RichTextSyntaxRules.html +381 -301
- data/doc/classes/TaskJuggler/Scenario.html +6 -6
- data/doc/classes/TaskJuggler/ScenarioData.html +40 -36
- data/doc/classes/TaskJuggler/ScenarioListAttribute.html +229 -0
- data/doc/classes/TaskJuggler/Scoreboard.html +70 -66
- data/doc/classes/TaskJuggler/Shift.html +18 -18
- data/doc/classes/TaskJuggler/ShiftAssignment.html +58 -54
- data/doc/classes/TaskJuggler/ShiftAssignments.html +82 -78
- data/doc/classes/TaskJuggler/ShiftAssignmentsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ShiftScenario.html +24 -24
- data/doc/classes/TaskJuggler/SortListAttribute.html +196 -0
- data/doc/classes/TaskJuggler/SourceFileInfo.html +16 -12
- data/doc/classes/TaskJuggler/StringAttribute.html +30 -30
- data/doc/classes/TaskJuggler/SymbolAttribute.html +20 -20
- data/doc/classes/TaskJuggler/SyntaxReference.html +46 -42
- data/doc/classes/TaskJuggler/TOCEntry.html +16 -12
- data/doc/classes/TaskJuggler/TableColumnDefinition.html +48 -33
- data/doc/classes/TaskJuggler/TableOfContents.html +22 -18
- data/doc/classes/TaskJuggler/TableReport.html +1036 -0
- data/doc/classes/TaskJuggler/Task.html +12 -12
- data/doc/classes/TaskJuggler/TaskDependency.html +16 -12
- data/doc/classes/TaskJuggler/TaskListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/TaskListRE.html +49 -58
- data/doc/classes/TaskJuggler/TaskScenario.html +1270 -1180
- data/doc/classes/TaskJuggler/TextParser/Pattern.html +100 -96
- data/doc/classes/TaskJuggler/TextParser/Rule.html +88 -84
- data/doc/classes/TaskJuggler/TextParser/StackElement.html +16 -12
- data/doc/classes/TaskJuggler/TextParser/TextParserResultArray.html +12 -12
- data/doc/classes/TaskJuggler/TextParser/TokenDoc.html +10 -6
- data/doc/classes/TaskJuggler/TextParser.html +203 -140
- data/doc/classes/TaskJuggler/TextReport.html +364 -0
- data/doc/classes/TaskJuggler/TextScanner/BufferStreamHandle.html +70 -70
- data/doc/classes/TaskJuggler/TextScanner/FileStreamHandle.html +50 -42
- data/doc/classes/TaskJuggler/TextScanner/StreamHandle.html +16 -12
- data/doc/classes/TaskJuggler/TextScanner.html +334 -240
- data/doc/classes/TaskJuggler/TjException.html +6 -6
- data/doc/classes/TaskJuggler/TjTime.html +547 -497
- data/doc/classes/TaskJuggler/TjpExample.html +29 -25
- data/doc/classes/TaskJuggler/TjpExportRE.html +77 -97
- data/doc/classes/TaskJuggler/TjpSyntaxRules.html +3911 -3886
- data/doc/classes/TaskJuggler/UserManual.html +54 -54
- data/doc/classes/TaskJuggler/WorkingHours.html +53 -49
- data/doc/classes/TaskJuggler/WorkingHoursAttribute.html +53 -85
- data/doc/classes/TaskJuggler/XMLBlob.html +21 -21
- data/doc/classes/TaskJuggler/XMLComment.html +21 -21
- data/doc/classes/TaskJuggler/XMLDocument.html +28 -24
- data/doc/classes/TaskJuggler/XMLElement.html +70 -58
- data/doc/classes/TaskJuggler/XMLNamedText.html +11 -11
- data/doc/classes/TaskJuggler/XMLText.html +36 -36
- data/doc/classes/TaskJuggler.html +266 -183
- data/doc/files/COPYING.html +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/AccountScenario_rb.html +1 -1
- data/doc/files/lib/Account_rb.html +1 -1
- data/doc/files/lib/Allocation_rb.html +1 -1
- data/doc/files/lib/AppConfig_rb.html +1 -1
- data/doc/files/lib/AttributeBase_rb.html +11 -1
- data/doc/files/lib/AttributeDefinition_rb.html +1 -1
- data/doc/files/lib/Attributes_rb.html +1 -1
- data/doc/files/lib/{LogicalFlag_rb.html → BatchProcessor_rb.html} +8 -6
- data/doc/files/lib/Booking_rb.html +1 -1
- data/doc/files/lib/ChargeSet_rb.html +1 -1
- data/doc/files/lib/Charge_rb.html +1 -1
- data/doc/files/lib/HTMLDocument_rb.html +1 -1
- data/doc/files/lib/Interval_rb.html +1 -1
- data/doc/files/lib/Journal_rb.html +106 -0
- data/doc/files/lib/KeywordArray_rb.html +106 -0
- data/doc/files/lib/KeywordDocumentation_rb.html +1 -1
- data/doc/files/lib/Limits_rb.html +1 -1
- data/doc/files/lib/Log_rb.html +1 -1
- data/doc/files/lib/LogicalExpression_rb.html +1 -3
- data/doc/files/lib/LogicalFunction_rb.html +1 -1
- data/doc/files/lib/LogicalOperation_rb.html +1 -1
- data/doc/files/lib/MacroParser_rb.html +1 -1
- data/doc/files/lib/MacroTable_rb.html +1 -1
- data/doc/files/lib/MessageHandler_rb.html +1 -1
- data/doc/files/lib/Message_rb.html +1 -1
- data/doc/files/lib/ProjectFileParser_rb.html +5 -1
- data/doc/files/lib/Project_rb.html +5 -1
- data/doc/files/lib/PropertyList_rb.html +1 -1
- data/doc/files/lib/PropertySet_rb.html +1 -1
- data/doc/files/lib/PropertyTreeNode_rb.html +1 -1
- data/doc/files/lib/Query_rb.html +1 -1
- data/doc/files/lib/RTPNavigator_rb.html +120 -0
- data/doc/files/lib/RTPReport_rb.html +118 -0
- data/doc/files/lib/RealFormat_rb.html +1 -1
- data/doc/files/lib/ResourceScenario_rb.html +1 -1
- data/doc/files/lib/Resource_rb.html +1 -1
- data/doc/files/lib/RichTextDocument_rb.html +1 -1
- data/doc/files/lib/RichTextElement_rb.html +1 -1
- data/doc/files/lib/RichTextParser_rb.html +1 -1
- data/doc/files/lib/RichTextProtocolExample_rb.html +1 -1
- data/doc/files/lib/RichTextProtocolHandler_rb.html +1 -1
- data/doc/files/lib/RichTextScanner_rb.html +1 -1
- data/doc/files/lib/RichTextSnip_rb.html +1 -1
- data/doc/files/lib/RichTextSyntaxRules_rb.html +1 -1
- data/doc/files/lib/RichText_rb.html +1 -1
- data/doc/files/lib/ScenarioData_rb.html +1 -1
- data/doc/files/lib/Scenario_rb.html +1 -1
- data/doc/files/lib/Scoreboard_rb.html +1 -1
- data/doc/files/lib/ShiftAssignments_rb.html +1 -1
- data/doc/files/lib/ShiftScenario_rb.html +1 -1
- data/doc/files/lib/Shift_rb.html +1 -1
- data/doc/files/lib/SourceFileInfo_rb.html +1 -1
- data/doc/files/lib/SyntaxReference_rb.html +1 -1
- data/doc/files/lib/TOCEntry_rb.html +1 -1
- data/doc/files/lib/TableColumnDefinition_rb.html +1 -1
- data/doc/files/lib/TableOfContents_rb.html +1 -1
- data/doc/files/lib/TaskDependency_rb.html +1 -1
- data/doc/files/lib/TaskJuggler_rb.html +1 -1
- data/doc/files/lib/TaskScenario_rb.html +1 -1
- data/doc/files/lib/Task_rb.html +1 -1
- data/doc/files/lib/TextParser/Pattern_rb.html +1 -1
- data/doc/files/lib/TextParser/Rule_rb.html +1 -1
- data/doc/files/lib/TextParser/StackElement_rb.html +1 -1
- data/doc/files/lib/TextParser/TokenDoc_rb.html +1 -1
- data/doc/files/lib/TextParser_rb.html +1 -1
- data/doc/files/lib/TextScanner_rb.html +1 -1
- data/doc/files/lib/Tj3Config_rb.html +1 -1
- data/doc/files/lib/TjException_rb.html +1 -1
- data/doc/files/lib/TjTime_rb.html +1 -1
- data/doc/files/lib/TjpExample_rb.html +1 -1
- data/doc/files/lib/TjpSyntaxRules_rb.html +1 -1
- data/doc/files/lib/UTF8String_rb.html +1 -1
- data/doc/files/lib/UserManual_rb.html +1 -1
- data/doc/files/lib/WorkingHours_rb.html +1 -1
- data/doc/files/lib/XMLDocument_rb.html +1 -1
- data/doc/files/lib/XMLElement_rb.html +1 -1
- data/doc/files/lib/deep_copy_rb.html +106 -0
- data/doc/files/lib/ms_test_rb.html +90 -0
- data/doc/files/lib/reports/CSVFile_rb.html +1 -1
- data/doc/files/lib/reports/ColumnTable_rb.html +1 -1
- data/doc/files/lib/reports/GanttChart_rb.html +1 -1
- data/doc/files/lib/reports/GanttContainer_rb.html +1 -1
- data/doc/files/lib/reports/GanttHeaderScaleItem_rb.html +1 -1
- data/doc/files/lib/reports/GanttHeader_rb.html +1 -1
- data/doc/files/lib/reports/GanttLine_rb.html +1 -1
- data/doc/files/lib/reports/GanttLoadStack_rb.html +1 -1
- data/doc/files/lib/reports/GanttMilestone_rb.html +1 -1
- data/doc/files/lib/reports/GanttRouter_rb.html +1 -1
- data/doc/files/lib/reports/GanttTaskBar_rb.html +1 -1
- data/doc/files/lib/reports/HTMLGraphics_rb.html +1 -1
- data/doc/files/lib/reports/{ReportElement_rb.html → Navigator_rb.html} +6 -8
- data/doc/files/lib/reports/ReportBase_rb.html +106 -0
- data/doc/files/lib/reports/ReportContext_rb.html +106 -0
- data/doc/files/lib/reports/ReportTableCell_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableColumn_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableLegend_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableLine_rb.html +1 -1
- data/doc/files/lib/reports/ReportTable_rb.html +1 -1
- data/doc/files/lib/reports/Report_rb.html +8 -2
- data/doc/files/lib/reports/ResourceListRE_rb.html +2 -2
- data/doc/files/lib/reports/{ReportTableElement_rb.html → TableReport_rb.html} +7 -5
- data/doc/files/lib/reports/TaskListRE_rb.html +2 -2
- data/doc/files/lib/reports/TextReport_rb.html +116 -0
- data/doc/files/lib/reports/TjpExportRE_rb.html +2 -2
- data/doc/files/lib/taskjuggler3_rb.html +61 -56
- data/doc/files/lib/tj3man_rb.html +1 -1
- data/doc/fr_class_index.html +41 -3
- data/doc/fr_file_index.html +21 -5
- data/doc/fr_method_index.html +1069 -959
- data/examples/ContactList.html +1467 -0
- data/examples/Deliveries.html +485 -0
- data/examples/Development.html +2525 -0
- data/examples/Overview.html +747 -0
- data/examples/Resource Graph.html +616 -0
- data/examples/tutorial.tjp +63 -67
- data/lib/AttributeBase.rb +27 -31
- data/lib/AttributeDefinition.rb +12 -7
- data/lib/Attributes.rb +134 -34
- data/lib/Interval.rb +2 -0
- data/lib/Journal.rb +44 -0
- data/lib/{LogicalFlag.rb → KeywordArray.rb} +5 -13
- data/lib/KeywordDocumentation.rb +84 -47
- data/lib/Limits.rb +7 -5
- data/lib/LogicalExpression.rb +1 -1
- data/lib/LogicalOperation.rb +33 -0
- data/lib/Project.rb +313 -99
- data/lib/ProjectFileParser.rb +88 -11
- data/lib/PropertyList.rb +2 -1
- data/lib/PropertySet.rb +13 -4
- data/lib/PropertyTreeNode.rb +34 -15
- data/lib/Query.rb +2 -1
- data/lib/RTPNavigator.rb +53 -0
- data/lib/RTPReport.rb +62 -0
- data/lib/RealFormat.rb +28 -10
- data/lib/RichTextElement.rb +18 -12
- data/lib/RichTextParser.rb +1 -0
- data/lib/RichTextProtocolExample.rb +8 -11
- data/lib/RichTextProtocolHandler.rb +11 -1
- data/lib/RichTextScanner.rb +308 -164
- data/lib/RichTextSyntaxRules.rb +24 -0
- data/lib/TableColumnDefinition.rb +5 -1
- data/lib/TaskJuggler.rb +3 -2
- data/lib/TaskScenario.rb +123 -31
- data/lib/TextParser.rb +14 -3
- data/lib/TextScanner.rb +210 -34
- data/lib/Tj3Config.rb +1 -1
- data/lib/TjTime.rb +15 -0
- data/lib/TjpExample.rb +1 -1
- data/lib/TjpSyntaxRules.rb +674 -473
- data/lib/WorkingHours.rb +1 -1
- data/lib/XMLElement.rb +11 -3
- data/lib/deep_copy.rb +72 -0
- data/lib/ms_test.rb +27 -0
- data/lib/reports/ColumnTable.rb +7 -5
- data/lib/reports/GanttChart.rb +60 -34
- data/lib/reports/GanttHeader.rb +1 -1
- data/lib/reports/GanttRouter.rb +7 -5
- data/lib/reports/Navigator.rb +72 -0
- data/lib/reports/Report.rb +58 -73
- data/lib/reports/ReportBase.rb +241 -0
- data/lib/reports/ReportContext.rb +41 -0
- data/lib/reports/ReportTable.rb +7 -2
- data/lib/reports/ReportTableCell.rb +3 -3
- data/lib/reports/ResourceListRE.rb +19 -26
- data/lib/reports/{ReportTableElement.rb → TableReport.rb} +297 -97
- data/lib/reports/TaskListRE.rb +16 -24
- data/lib/reports/TextReport.rb +87 -0
- data/lib/reports/TjpExportRE.rb +55 -50
- data/lib/taskjuggler3.rb +6 -1
- data/manual/Getting_Started +57 -6
- data/manual/How_To_Contribute +2 -4
- data/manual/Intro +2 -2
- data/manual/Reporting_Bugs +9 -2
- data/manual/Rich_Text_Attributes +41 -0
- data/manual/Tutorial +219 -173
- data/tasks/test.rake +3 -0
- data/test/TestSuite/CSV-Reports/celltext.tjp +2 -1
- data/test/TestSuite/CSV-Reports/resourcereport.tjp +2 -1
- data/test/TestSuite/CSV-Reports/resourcereport_with_tasks.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortByTree.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_duration.down.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_effort.up.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_plan.start.down.tjp +2 -1
- data/test/TestSuite/CSV-Reports/taskreport.tjp +2 -1
- data/test/TestSuite/CSV-Reports/taskreport_with_resources.tjp +2 -1
- data/test/TestSuite/HTML-Reports/depArrows.tjp +72 -0
- data/test/TestSuite/HTML-Reports/reference-export.html +187 -0
- data/test/TestSuite/HTML-Reports/reference.tjp +21 -0
- data/test/TestSuite/Scheduler/Correct/Allocate.tjp +2 -1
- data/test/TestSuite/Scheduler/Correct/AutomaticMilestones.tjp +3 -3
- data/test/TestSuite/Scheduler/Correct/Booking.tjp +3 -3
- data/test/TestSuite/Scheduler/Correct/Container-2.tjp +37 -0
- data/test/TestSuite/Scheduler/Correct/Container.tjp +40 -0
- data/test/TestSuite/Scheduler/Correct/Depends.tjp +9 -14
- data/test/TestSuite/Scheduler/Correct/Duration.tjp +2 -1
- data/test/TestSuite/Scheduler/Correct/InheritStartEnd.tjp +20 -29
- data/test/TestSuite/Scheduler/Correct/Limits.tjp +11 -13
- data/test/TestSuite/Scheduler/Correct/Optimize-1.tjp +6 -5
- data/test/TestSuite/Scheduler/Correct/Optimize-2.tjp +10 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-3.tjp +9 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-4.tjp +9 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-5.tjp +13 -10
- data/test/TestSuite/Scheduler/Correct/Precedes.tjp +9 -14
- data/test/TestSuite/Scheduler/Correct/Shift.tjp +9 -8
- data/test/TestSuite/Scheduler/Correct/checks.tji +4 -0
- data/test/TestSuite/Scheduler/Errors/weak_end_dep.tjp +16 -0
- data/test/TestSuite/Scheduler/Errors/weak_start_dep.tjp +16 -0
- data/test/TestSuite/Syntax/Correct/Account.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/AutoID.tjp +21 -0
- data/test/TestSuite/Syntax/Correct/AutoMacros.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/Caption.tjp +7 -6
- data/test/TestSuite/Syntax/Correct/Celltext.tjp +7 -4
- data/test/TestSuite/Syntax/Correct/Comments.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/CompletedWork.tji +11 -19
- data/test/TestSuite/Syntax/Correct/CriticalPath.tjp +4 -3
- data/test/TestSuite/Syntax/Correct/Export.tjp +3 -1
- data/test/TestSuite/Syntax/Correct/Flags.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/HtmlTaskReport.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/Journal.tjp +18 -0
- data/test/TestSuite/Syntax/Correct/LoadUnits.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/LogicalExpression.tjp +16 -0
- data/test/TestSuite/Syntax/Correct/Period.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/RawHTML.tjp +4 -2
- data/test/TestSuite/Syntax/Correct/Reports.tjp +4 -2
- data/test/TestSuite/Syntax/Correct/ResourcePrefix.tji +2 -0
- data/test/TestSuite/Syntax/Correct/ResourcePrefix.tjp +23 -0
- data/test/TestSuite/Syntax/Correct/Responsible.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/Simple.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/String.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/TaskRoot.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +92 -70
- data/test/TestSuite/Syntax/Errors/bad_comment.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/bad_include.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/bad_time_zone.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/bad_timing_res.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/chargeset_master.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/container_attribute.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/cost_acct_no_top.tjp +3 -2
- data/test/TestSuite/Syntax/Errors/cost_rev_same.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/eof_in_istring1.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring2.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring3.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring4.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring5.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/include_recursion.tji +1 -0
- data/test/TestSuite/Syntax/Errors/include_recursion.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/junk_after_cut.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/navigator_exists.tjp +10 -0
- data/test/TestSuite/Syntax/Errors/operand_unkn_flag.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/report_end.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/report_exists.tjp +10 -0
- data/test/TestSuite/Syntax/Errors/report_start.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/rev_acct_no_top.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sort_direction.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sort_unknown_scen.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_crit_exptd1.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_crit_exptd2.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_wbs.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/too_large_timing_res.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/unknown_scenario_idx.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/unknown_task.tjp +1 -1
- data/test/all.rb +1 -16
- data/test/test_CSV-Reports.rb +8 -5
- data/test/test_Query.rb +2 -2
- data/test/test_RichText.rb +95 -0
- data/test/test_Scheduler.rb +8 -4
- data/test/test_Syntax.rb +8 -4
- data/test/test_deep_copy.rb +83 -0
- metadata +549 -487
- data/benchmarks/UTF-8-Strings.rb +0 -58
- data/doc/classes/TaskJuggler/ReportElement.html +0 -1070
- data/doc/classes/TaskJuggler/ReportTableElement.html +0 -644
- data/lib/reports/ReportElement.rb +0 -427
- data/test/TestSuite/Syntax/Correct/csvtest +0 -16
- data/test/TestSuite/Syntax/Errors/no_csv_suffix.tjp +0 -10
- data/test/TestSuite/Syntax/Errors/no_html_suffix.tjp +0 -10
- data/test/TestSuite/Syntax/Errors/report_redifinition.tjp +0 -10
@@ -70,8 +70,12 @@
|
|
70
70
|
<td><strong>Parent:</strong></td>
|
71
71
|
<td>
|
72
72
|
|
73
|
+
<a href="../Object.html">
|
74
|
+
|
73
75
|
Object
|
74
76
|
|
77
|
+
</a>
|
78
|
+
|
75
79
|
</td>
|
76
80
|
</tr>
|
77
81
|
|
@@ -106,53 +110,55 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
106
110
|
|
107
111
|
<div class="name-list">
|
108
112
|
|
109
|
-
<a href="#
|
113
|
+
<a href="#M000852">[]</a>
|
114
|
+
|
115
|
+
<a href="#M000839">addAttributeType</a>
|
110
116
|
|
111
|
-
<a href="#
|
117
|
+
<a href="#M000849">addProperty</a>
|
112
118
|
|
113
|
-
<a href="#
|
119
|
+
<a href="#M000847">attributeName</a>
|
114
120
|
|
115
|
-
<a href="#
|
121
|
+
<a href="#M000848">attributeType</a>
|
116
122
|
|
117
|
-
<a href="#
|
123
|
+
<a href="#M000851">clearProperties</a>
|
118
124
|
|
119
|
-
<a href="#
|
125
|
+
<a href="#M000846">defaultValue</a>
|
120
126
|
|
121
|
-
<a href="#
|
127
|
+
<a href="#M000859">each</a>
|
122
128
|
|
123
|
-
<a href="#
|
129
|
+
<a href="#M000840">eachAttributeDefinition</a>
|
124
130
|
|
125
|
-
<a href="#
|
131
|
+
<a href="#M000857">empty?</a>
|
126
132
|
|
127
|
-
<a href="#
|
133
|
+
<a href="#M000853">index</a>
|
128
134
|
|
129
|
-
<a href="#
|
135
|
+
<a href="#M000838">inheritAttributesFromScenario</a>
|
130
136
|
|
131
|
-
<a href="#
|
137
|
+
<a href="#M000844">inheritedFromParent?</a>
|
132
138
|
|
133
|
-
<a href="#
|
139
|
+
<a href="#M000843">inheritedFromProject?</a>
|
134
140
|
|
135
|
-
<a href="#
|
141
|
+
<a href="#M000856">items</a>
|
136
142
|
|
137
|
-
<a href="#
|
143
|
+
<a href="#M000841">knownAttribute?</a>
|
138
144
|
|
139
|
-
<a href="#
|
145
|
+
<a href="#M000854">levelSeqNo</a>
|
140
146
|
|
141
|
-
<a href="#
|
147
|
+
<a href="#M000855">maxDepth</a>
|
142
148
|
|
143
|
-
<a href="#
|
149
|
+
<a href="#M000837">new</a>
|
144
150
|
|
145
|
-
<a href="#
|
151
|
+
<a href="#M000850">removeProperty</a>
|
146
152
|
|
147
|
-
<a href="#
|
153
|
+
<a href="#M000842">scenarioSpecific?</a>
|
148
154
|
|
149
|
-
<a href="#
|
155
|
+
<a href="#M000860">to_ary</a>
|
150
156
|
|
151
|
-
<a href="#
|
157
|
+
<a href="#M000861">to_s</a>
|
152
158
|
|
153
|
-
<a href="#
|
159
|
+
<a href="#M000858">topLevelItems</a>
|
154
160
|
|
155
|
-
<a href="#
|
161
|
+
<a href="#M000845">userDefined?</a>
|
156
162
|
|
157
163
|
</div>
|
158
164
|
</div>
|
@@ -207,12 +213,12 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
207
213
|
<h3 class="section-bar">Public Class methods</h3>
|
208
214
|
|
209
215
|
|
210
|
-
<div id="method-
|
211
|
-
<a name="
|
216
|
+
<div id="method-M000837" class="method-detail">
|
217
|
+
<a name="M000837"></a>
|
212
218
|
|
213
219
|
<div class="method-heading">
|
214
220
|
|
215
|
-
<a href="#
|
221
|
+
<a href="#M000837" class="method-signature">
|
216
222
|
|
217
223
|
<span class="method-name">new</span><span class="method-args">(project, flatNamespace)</span>
|
218
224
|
|
@@ -223,8 +229,8 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
223
229
|
<div class="method-description">
|
224
230
|
|
225
231
|
<p><a class="source-toggle" href="#"
|
226
|
-
onclick="toggleCode('
|
227
|
-
<div class="method-source-code" id="
|
232
|
+
onclick="toggleCode('M000837-source');return false;">[Source]</a></p>
|
233
|
+
<div class="method-source-code" id="M000837-source">
|
228
234
|
<pre>
|
229
235
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 29</span>
|
230
236
|
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">project</span>, <span class="ruby-identifier">flatNamespace</span>)
|
@@ -273,12 +279,12 @@ attributes. All Properties of the set will have a set of these attributes.
|
|
273
279
|
<h3 class="section-bar">Public Instance methods</h3>
|
274
280
|
|
275
281
|
|
276
|
-
<div id="method-
|
277
|
-
<a name="
|
282
|
+
<div id="method-M000852" class="method-detail">
|
283
|
+
<a name="M000852"></a>
|
278
284
|
|
279
285
|
<div class="method-heading">
|
280
286
|
|
281
|
-
<a href="#
|
287
|
+
<a href="#M000852" class="method-signature">
|
282
288
|
|
283
289
|
<span class="method-name">[]</span><span class="method-args">(id)</span>
|
284
290
|
|
@@ -294,13 +300,13 @@ ID <em>id</em> from the set or nil if not present.
|
|
294
300
|
</p>
|
295
301
|
|
296
302
|
<p><a class="source-toggle" href="#"
|
297
|
-
onclick="toggleCode('
|
298
|
-
<div class="method-source-code" id="
|
303
|
+
onclick="toggleCode('M000852-source');return false;">[Source]</a></p>
|
304
|
+
<div class="method-source-code" id="M000852-source">
|
299
305
|
<pre>
|
300
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
301
|
-
|
302
|
-
|
303
|
-
|
306
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 223</span>
|
307
|
+
223: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">id</span>)
|
308
|
+
224: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">id</span>]
|
309
|
+
225: <span class="ruby-keyword kw">end</span>
|
304
310
|
</pre>
|
305
311
|
</div>
|
306
312
|
|
@@ -308,12 +314,12 @@ ID <em>id</em> from the set or nil if not present.
|
|
308
314
|
</div>
|
309
315
|
|
310
316
|
|
311
|
-
<div id="method-
|
312
|
-
<a name="
|
317
|
+
<div id="method-M000839" class="method-detail">
|
318
|
+
<a name="M000839"></a>
|
313
319
|
|
314
320
|
<div class="method-heading">
|
315
321
|
|
316
|
-
<a href="#
|
322
|
+
<a href="#M000839" class="method-signature">
|
317
323
|
|
318
324
|
<span class="method-name">addAttributeType</span><span class="method-args">(attributeType)</span>
|
319
325
|
|
@@ -330,8 +336,8 @@ declared before the first property is added to the set.
|
|
330
336
|
</p>
|
331
337
|
|
332
338
|
<p><a class="source-toggle" href="#"
|
333
|
-
onclick="toggleCode('
|
334
|
-
<div class="method-source-code" id="
|
339
|
+
onclick="toggleCode('M000839-source');return false;">[Source]</a></p>
|
340
|
+
<div class="method-source-code" id="M000839-source">
|
335
341
|
<pre>
|
336
342
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 74</span>
|
337
343
|
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addAttributeType</span>(<span class="ruby-identifier">attributeType</span>)
|
@@ -349,12 +355,12 @@ declared before the first property is added to the set.
|
|
349
355
|
</div>
|
350
356
|
|
351
357
|
|
352
|
-
<div id="method-
|
353
|
-
<a name="
|
358
|
+
<div id="method-M000849" class="method-detail">
|
359
|
+
<a name="M000849"></a>
|
354
360
|
|
355
361
|
<div class="method-heading">
|
356
362
|
|
357
|
-
<a href="#
|
363
|
+
<a href="#M000849" class="method-signature">
|
358
364
|
|
359
365
|
<span class="method-name">addProperty</span><span class="method-args">(property)</span>
|
360
366
|
|
@@ -376,26 +382,26 @@ You must call index() before using these attributes.
|
|
376
382
|
</p>
|
377
383
|
|
378
384
|
<p><a class="source-toggle" href="#"
|
379
|
-
onclick="toggleCode('
|
380
|
-
<div class="method-source-code" id="
|
385
|
+
onclick="toggleCode('M000849-source');return false;">[Source]</a></p>
|
386
|
+
<div class="method-source-code" id="M000849-source">
|
381
387
|
<pre>
|
382
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
388
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 172</span>
|
389
|
+
172: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addProperty</span>(<span class="ruby-identifier">property</span>)
|
390
|
+
173: <span class="ruby-comment cmt"># The PropertySet defines the set of attribute that each PropertyTreeNode</span>
|
391
|
+
174: <span class="ruby-comment cmt"># in this set has. Create these attributes with their default values.</span>
|
392
|
+
175: <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span>, <span class="ruby-identifier">attributeType</span><span class="ruby-operator">|</span>
|
393
|
+
176: <span class="ruby-identifier">property</span>.<span class="ruby-identifier">declareAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
394
|
+
177: <span class="ruby-keyword kw">end</span>
|
395
|
+
178:
|
396
|
+
179: <span class="ruby-comment cmt"># The PropertyTreeNode objects are indexed by ID or hierachical ID</span>
|
397
|
+
180: <span class="ruby-comment cmt"># depending on the name space setting of this set.</span>
|
398
|
+
181: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@flatNamespace</span>
|
399
|
+
182: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">property</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">property</span>
|
400
|
+
183: <span class="ruby-keyword kw">else</span>
|
401
|
+
184: <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">property</span>.<span class="ruby-identifier">fullId</span>] = <span class="ruby-identifier">property</span>
|
402
|
+
185: <span class="ruby-keyword kw">end</span>
|
403
|
+
186: <span class="ruby-ivar">@properties</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">property</span>
|
404
|
+
187: <span class="ruby-keyword kw">end</span>
|
399
405
|
</pre>
|
400
406
|
</div>
|
401
407
|
|
@@ -403,12 +409,12 @@ You must call index() before using these attributes.
|
|
403
409
|
</div>
|
404
410
|
|
405
411
|
|
406
|
-
<div id="method-
|
407
|
-
<a name="
|
412
|
+
<div id="method-M000847" class="method-detail">
|
413
|
+
<a name="M000847"></a>
|
408
414
|
|
409
415
|
<div class="method-heading">
|
410
416
|
|
411
|
-
<a href="#
|
417
|
+
<a href="#M000847" class="method-signature">
|
412
418
|
|
413
419
|
<span class="method-name">attributeName</span><span class="method-args">(attrId)</span>
|
414
420
|
|
@@ -424,23 +430,23 @@ specified by <em>attrId</em>.
|
|
424
430
|
</p>
|
425
431
|
|
426
432
|
<p><a class="source-toggle" href="#"
|
427
|
-
onclick="toggleCode('
|
428
|
-
<div class="method-source-code" id="
|
433
|
+
onclick="toggleCode('M000847-source');return false;">[Source]</a></p>
|
434
|
+
<div class="method-source-code" id="M000847-source">
|
429
435
|
<pre>
|
430
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
436
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 137</span>
|
437
|
+
137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeName</span>(<span class="ruby-identifier">attrId</span>)
|
438
|
+
138: <span class="ruby-comment cmt"># Some attributes are hardwired into the properties. These need to be</span>
|
439
|
+
139: <span class="ruby-comment cmt"># treated separately.</span>
|
440
|
+
140: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@fixedAttributeNames</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
441
|
+
141: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">attrId</span>)
|
442
|
+
142: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">name</span>
|
443
|
+
143: <span class="ruby-keyword kw">end</span>
|
444
|
+
144: <span class="ruby-keyword kw">else</span>
|
445
|
+
145: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@@fixedAttributeNames</span>[<span class="ruby-identifier">attrId</span>]
|
446
|
+
146: <span class="ruby-keyword kw">end</span>
|
447
|
+
147:
|
448
|
+
148: <span class="ruby-keyword kw">nil</span>
|
449
|
+
149: <span class="ruby-keyword kw">end</span>
|
444
450
|
</pre>
|
445
451
|
</div>
|
446
452
|
|
@@ -448,12 +454,12 @@ specified by <em>attrId</em>.
|
|
448
454
|
</div>
|
449
455
|
|
450
456
|
|
451
|
-
<div id="method-
|
452
|
-
<a name="
|
457
|
+
<div id="method-M000848" class="method-detail">
|
458
|
+
<a name="M000848"></a>
|
453
459
|
|
454
460
|
<div class="method-heading">
|
455
461
|
|
456
|
-
<a href="#
|
462
|
+
<a href="#M000848" class="method-signature">
|
457
463
|
|
458
464
|
<span class="method-name">attributeType</span><span class="method-args">(attrId)</span>
|
459
465
|
|
@@ -468,22 +474,22 @@ Return the type of the attribute with the Id specified by <em>attrId</em>.
|
|
468
474
|
</p>
|
469
475
|
|
470
476
|
<p><a class="source-toggle" href="#"
|
471
|
-
onclick="toggleCode('
|
472
|
-
<div class="method-source-code" id="
|
477
|
+
onclick="toggleCode('M000848-source');return false;">[Source]</a></p>
|
478
|
+
<div class="method-source-code" id="M000848-source">
|
473
479
|
<pre>
|
474
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
480
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 152</span>
|
481
|
+
152: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeType</span>(<span class="ruby-identifier">attrId</span>)
|
482
|
+
153: <span class="ruby-comment cmt"># Hardwired attributes need special treatment.</span>
|
483
|
+
154: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@fixedAttributesTypes</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
484
|
+
155: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attrId</span>)
|
485
|
+
156: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">objClass</span>
|
486
|
+
157: <span class="ruby-keyword kw">else</span>
|
487
|
+
158: <span class="ruby-keyword kw">nil</span>
|
488
|
+
159: <span class="ruby-keyword kw">end</span>
|
489
|
+
160: <span class="ruby-keyword kw">else</span>
|
490
|
+
161: <span class="ruby-ivar">@@fixedAttributesTypes</span>[<span class="ruby-identifier">attrId</span>]
|
491
|
+
162: <span class="ruby-keyword kw">end</span>
|
492
|
+
163: <span class="ruby-keyword kw">end</span>
|
487
493
|
</pre>
|
488
494
|
</div>
|
489
495
|
|
@@ -491,12 +497,12 @@ Return the type of the attribute with the Id specified by <em>attrId</em>.
|
|
491
497
|
</div>
|
492
498
|
|
493
499
|
|
494
|
-
<div id="method-
|
495
|
-
<a name="
|
500
|
+
<div id="method-M000851" class="method-detail">
|
501
|
+
<a name="M000851"></a>
|
496
502
|
|
497
503
|
<div class="method-heading">
|
498
504
|
|
499
|
-
<a href="#
|
505
|
+
<a href="#M000851" class="method-signature">
|
500
506
|
|
501
507
|
<span class="method-name">clearProperties</span><span class="method-args">()</span>
|
502
508
|
|
@@ -511,14 +517,14 @@ Call this function to delete all registered properties.
|
|
511
517
|
</p>
|
512
518
|
|
513
519
|
<p><a class="source-toggle" href="#"
|
514
|
-
onclick="toggleCode('
|
515
|
-
<div class="method-source-code" id="
|
520
|
+
onclick="toggleCode('M000851-source');return false;">[Source]</a></p>
|
521
|
+
<div class="method-source-code" id="M000851-source">
|
516
522
|
<pre>
|
517
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
523
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 216</span>
|
524
|
+
216: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clearProperties</span>
|
525
|
+
217: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">clear</span>
|
526
|
+
218: <span class="ruby-ivar">@propertyMap</span>.<span class="ruby-identifier">clear</span>
|
527
|
+
219: <span class="ruby-keyword kw">end</span>
|
522
528
|
</pre>
|
523
529
|
</div>
|
524
530
|
|
@@ -526,12 +532,12 @@ Call this function to delete all registered properties.
|
|
526
532
|
</div>
|
527
533
|
|
528
534
|
|
529
|
-
<div id="method-
|
530
|
-
<a name="
|
535
|
+
<div id="method-M000846" class="method-detail">
|
536
|
+
<a name="M000846"></a>
|
531
537
|
|
532
538
|
<div class="method-heading">
|
533
539
|
|
534
|
-
<a href="#
|
540
|
+
<a href="#M000846" class="method-signature">
|
535
541
|
|
536
542
|
<span class="method-name">defaultValue</span><span class="method-args">(attrId)</span>
|
537
543
|
|
@@ -546,15 +552,15 @@ Return the default value of the attribute.
|
|
546
552
|
</p>
|
547
553
|
|
548
554
|
<p><a class="source-toggle" href="#"
|
549
|
-
onclick="toggleCode('
|
550
|
-
<div class="method-source-code" id="
|
555
|
+
onclick="toggleCode('M000846-source');return false;">[Source]</a></p>
|
556
|
+
<div class="method-source-code" id="M000846-source">
|
551
557
|
<pre>
|
552
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 129</span>
|
559
|
+
129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">defaultValue</span>(<span class="ruby-identifier">attrId</span>)
|
560
|
+
130: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
561
|
+
131:
|
562
|
+
132: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">default</span>
|
563
|
+
133: <span class="ruby-keyword kw">end</span>
|
558
564
|
</pre>
|
559
565
|
</div>
|
560
566
|
|
@@ -562,12 +568,12 @@ Return the default value of the attribute.
|
|
562
568
|
</div>
|
563
569
|
|
564
570
|
|
565
|
-
<div id="method-
|
566
|
-
<a name="
|
571
|
+
<div id="method-M000859" class="method-detail">
|
572
|
+
<a name="M000859"></a>
|
567
573
|
|
568
574
|
<div class="method-heading">
|
569
575
|
|
570
|
-
<a href="#
|
576
|
+
<a href="#M000859" class="method-signature">
|
571
577
|
|
572
578
|
<span class="method-name">each</span><span class="method-args">() {|value| ...}</span>
|
573
579
|
|
@@ -583,15 +589,15 @@ objects in this set.
|
|
583
589
|
</p>
|
584
590
|
|
585
591
|
<p><a class="source-toggle" href="#"
|
586
|
-
onclick="toggleCode('
|
587
|
-
<div class="method-source-code" id="
|
592
|
+
onclick="toggleCode('M000859-source');return false;">[Source]</a></p>
|
593
|
+
<div class="method-source-code" id="M000859-source">
|
588
594
|
<pre>
|
589
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 295</span>
|
596
|
+
295: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
|
597
|
+
296: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
598
|
+
297: <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">value</span>)
|
599
|
+
298: <span class="ruby-keyword kw">end</span>
|
600
|
+
299: <span class="ruby-keyword kw">end</span>
|
595
601
|
</pre>
|
596
602
|
</div>
|
597
603
|
|
@@ -599,12 +605,12 @@ objects in this set.
|
|
599
605
|
</div>
|
600
606
|
|
601
607
|
|
602
|
-
<div id="method-
|
603
|
-
<a name="
|
608
|
+
<div id="method-M000840" class="method-detail">
|
609
|
+
<a name="M000840"></a>
|
604
610
|
|
605
611
|
<div class="method-heading">
|
606
612
|
|
607
|
-
<a href="#
|
613
|
+
<a href="#M000840" class="method-signature">
|
608
614
|
|
609
615
|
<span class="method-name">eachAttributeDefinition</span><span class="method-args">() {|value| ...}</span>
|
610
616
|
|
@@ -619,8 +625,8 @@ Iterate over all attribute definitions.
|
|
619
625
|
</p>
|
620
626
|
|
621
627
|
<p><a class="source-toggle" href="#"
|
622
|
-
onclick="toggleCode('
|
623
|
-
<div class="method-source-code" id="
|
628
|
+
onclick="toggleCode('M000840-source');return false;">[Source]</a></p>
|
629
|
+
<div class="method-source-code" id="M000840-source">
|
624
630
|
<pre>
|
625
631
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 84</span>
|
626
632
|
84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachAttributeDefinition</span>
|
@@ -635,12 +641,12 @@ Iterate over all attribute definitions.
|
|
635
641
|
</div>
|
636
642
|
|
637
643
|
|
638
|
-
<div id="method-
|
639
|
-
<a name="
|
644
|
+
<div id="method-M000857" class="method-detail">
|
645
|
+
<a name="M000857"></a>
|
640
646
|
|
641
647
|
<div class="method-heading">
|
642
648
|
|
643
|
-
<a href="#
|
649
|
+
<a href="#M000857" class="method-signature">
|
644
650
|
|
645
651
|
<span class="method-name">empty?</span><span class="method-args">()</span>
|
646
652
|
|
@@ -655,13 +661,13 @@ Return true if the set is empty.
|
|
655
661
|
</p>
|
656
662
|
|
657
663
|
<p><a class="source-toggle" href="#"
|
658
|
-
onclick="toggleCode('
|
659
|
-
<div class="method-source-code" id="
|
664
|
+
onclick="toggleCode('M000857-source');return false;">[Source]</a></p>
|
665
|
+
<div class="method-source-code" id="M000857-source">
|
660
666
|
<pre>
|
661
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
662
|
-
|
663
|
-
|
664
|
-
|
667
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 280</span>
|
668
|
+
280: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>
|
669
|
+
281: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">empty?</span>
|
670
|
+
282: <span class="ruby-keyword kw">end</span>
|
665
671
|
</pre>
|
666
672
|
</div>
|
667
673
|
|
@@ -669,12 +675,12 @@ Return true if the set is empty.
|
|
669
675
|
</div>
|
670
676
|
|
671
677
|
|
672
|
-
<div id="method-
|
673
|
-
<a name="
|
678
|
+
<div id="method-M000853" class="method-detail">
|
679
|
+
<a name="M000853"></a>
|
674
680
|
|
675
681
|
<div class="method-heading">
|
676
682
|
|
677
|
-
<a href="#
|
683
|
+
<a href="#M000853" class="method-signature">
|
678
684
|
|
679
685
|
<span class="method-name">index</span><span class="method-args">()</span>
|
680
686
|
|
@@ -690,32 +696,32 @@ the set has been modified.
|
|
690
696
|
</p>
|
691
697
|
|
692
698
|
<p><a class="source-toggle" href="#"
|
693
|
-
onclick="toggleCode('
|
694
|
-
<div class="method-source-code" id="
|
699
|
+
onclick="toggleCode('M000853-source');return false;">[Source]</a></p>
|
700
|
+
<div class="method-source-code" id="M000853-source">
|
695
701
|
<pre>
|
696
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
702
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 229</span>
|
703
|
+
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
704
|
+
230: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
705
|
+
231: <span class="ruby-identifier">wbsIdcs</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">getWBSIndicies</span>
|
706
|
+
232: <span class="ruby-identifier">tree</span> = <span class="ruby-value str">""</span>
|
707
|
+
233: <span class="ruby-identifier">wbs</span> = <span class="ruby-value str">""</span>
|
708
|
+
234: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span>
|
709
|
+
235: <span class="ruby-identifier">wbsIdcs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>
|
710
|
+
236: <span class="ruby-comment cmt"># Prefix the level index with zeros so that we always have a 5 digit</span>
|
711
|
+
237: <span class="ruby-comment cmt"># long String. 5 digits should be large enough for all real-world</span>
|
712
|
+
238: <span class="ruby-comment cmt"># projects.</span>
|
713
|
+
239: <span class="ruby-identifier">tree</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">idx</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">rjust</span>(<span class="ruby-value">5</span>, <span class="ruby-value str">'0'</span>)
|
714
|
+
240: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span>
|
715
|
+
241: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span>
|
716
|
+
242: <span class="ruby-keyword kw">else</span>
|
717
|
+
243: <span class="ruby-identifier">wbs</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'.'</span>
|
718
|
+
244: <span class="ruby-keyword kw">end</span>
|
719
|
+
245: <span class="ruby-identifier">wbs</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">idx</span>.<span class="ruby-identifier">to_s</span>
|
720
|
+
246: <span class="ruby-keyword kw">end</span>
|
721
|
+
247: <span class="ruby-identifier">p</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'wbs'</span>, <span class="ruby-identifier">wbs</span>)
|
722
|
+
248: <span class="ruby-identifier">p</span>.<span class="ruby-identifier">set</span>(<span class="ruby-value str">'tree'</span>, <span class="ruby-identifier">tree</span>)
|
723
|
+
249: <span class="ruby-keyword kw">end</span>
|
724
|
+
250: <span class="ruby-keyword kw">end</span>
|
719
725
|
</pre>
|
720
726
|
</div>
|
721
727
|
|
@@ -723,12 +729,12 @@ the set has been modified.
|
|
723
729
|
</div>
|
724
730
|
|
725
731
|
|
726
|
-
<div id="method-
|
727
|
-
<a name="
|
732
|
+
<div id="method-M000838" class="method-detail">
|
733
|
+
<a name="M000838"></a>
|
728
734
|
|
729
735
|
<div class="method-heading">
|
730
736
|
|
731
|
-
<a href="#
|
737
|
+
<a href="#M000838" class="method-signature">
|
732
738
|
|
733
739
|
<span class="method-name">inheritAttributesFromScenario</span><span class="method-args">()</span>
|
734
740
|
|
@@ -743,8 +749,8 @@ Inherit all attributes of each property from the parent scenario.
|
|
743
749
|
</p>
|
744
750
|
|
745
751
|
<p><a class="source-toggle" href="#"
|
746
|
-
onclick="toggleCode('
|
747
|
-
<div class="method-source-code" id="
|
752
|
+
onclick="toggleCode('M000838-source');return false;">[Source]</a></p>
|
753
|
+
<div class="method-source-code" id="M000838-source">
|
748
754
|
<pre>
|
749
755
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 67</span>
|
750
756
|
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributesFromScenario</span>
|
@@ -757,14 +763,14 @@ Inherit all attributes of each property from the parent scenario.
|
|
757
763
|
</div>
|
758
764
|
|
759
765
|
|
760
|
-
<div id="method-
|
761
|
-
<a name="
|
766
|
+
<div id="method-M000844" class="method-detail">
|
767
|
+
<a name="M000844"></a>
|
762
768
|
|
763
769
|
<div class="method-heading">
|
764
770
|
|
765
|
-
<a href="#
|
771
|
+
<a href="#M000844" class="method-signature">
|
766
772
|
|
767
|
-
<span class="method-name">
|
773
|
+
<span class="method-name">inheritedFromParent?</span><span class="method-args">(attrId)</span>
|
768
774
|
|
769
775
|
</a>
|
770
776
|
|
@@ -773,21 +779,20 @@ Inherit all attributes of each property from the parent scenario.
|
|
773
779
|
<div class="method-description">
|
774
780
|
|
775
781
|
<p>
|
776
|
-
Return whether the attribute with <em>attrId</em> is
|
777
|
-
not.
|
782
|
+
Return whether the attribute with <em>attrId</em> is inherited from parent.
|
778
783
|
</p>
|
779
784
|
|
780
785
|
<p><a class="source-toggle" href="#"
|
781
|
-
onclick="toggleCode('
|
782
|
-
<div class="method-source-code" id="
|
786
|
+
onclick="toggleCode('M000844-source');return false;">[Source]</a></p>
|
787
|
+
<div class="method-source-code" id="M000844-source">
|
783
788
|
<pre>
|
784
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
789
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 114</span>
|
790
|
+
114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritedFromParent?</span>(<span class="ruby-identifier">attrId</span>)
|
791
|
+
115: <span class="ruby-comment cmt"># All hardwired attributes are not inherited.</span>
|
792
|
+
116: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
793
|
+
117:
|
794
|
+
118: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">inheritedFromParent</span>
|
795
|
+
119: <span class="ruby-keyword kw">end</span>
|
791
796
|
</pre>
|
792
797
|
</div>
|
793
798
|
|
@@ -795,12 +800,50 @@ not.
|
|
795
800
|
</div>
|
796
801
|
|
797
802
|
|
798
|
-
<div id="method-
|
799
|
-
<a name="
|
803
|
+
<div id="method-M000843" class="method-detail">
|
804
|
+
<a name="M000843"></a>
|
800
805
|
|
801
806
|
<div class="method-heading">
|
802
807
|
|
803
|
-
<a href="#
|
808
|
+
<a href="#M000843" class="method-signature">
|
809
|
+
|
810
|
+
<span class="method-name">inheritedFromProject?</span><span class="method-args">(attrId)</span>
|
811
|
+
|
812
|
+
</a>
|
813
|
+
|
814
|
+
</div>
|
815
|
+
|
816
|
+
<div class="method-description">
|
817
|
+
|
818
|
+
<p>
|
819
|
+
Return whether the attribute with <em>attrId</em> is inherited from the
|
820
|
+
global scope.
|
821
|
+
</p>
|
822
|
+
|
823
|
+
<p><a class="source-toggle" href="#"
|
824
|
+
onclick="toggleCode('M000843-source');return false;">[Source]</a></p>
|
825
|
+
<div class="method-source-code" id="M000843-source">
|
826
|
+
<pre>
|
827
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 106</span>
|
828
|
+
106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritedFromProject?</span>(<span class="ruby-identifier">attrId</span>)
|
829
|
+
107: <span class="ruby-comment cmt"># All hardwired attributes are not inherited.</span>
|
830
|
+
108: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
831
|
+
109:
|
832
|
+
110: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">inheritedFromProject</span>
|
833
|
+
111: <span class="ruby-keyword kw">end</span>
|
834
|
+
</pre>
|
835
|
+
</div>
|
836
|
+
|
837
|
+
</div>
|
838
|
+
</div>
|
839
|
+
|
840
|
+
|
841
|
+
<div id="method-M000856" class="method-detail">
|
842
|
+
<a name="M000856"></a>
|
843
|
+
|
844
|
+
<div class="method-heading">
|
845
|
+
|
846
|
+
<a href="#M000856" class="method-signature">
|
804
847
|
|
805
848
|
<span class="method-name">items</span><span class="method-args">()</span>
|
806
849
|
|
@@ -816,13 +859,13 @@ objects in this set.
|
|
816
859
|
</p>
|
817
860
|
|
818
861
|
<p><a class="source-toggle" href="#"
|
819
|
-
onclick="toggleCode('
|
820
|
-
<div class="method-source-code" id="
|
862
|
+
onclick="toggleCode('M000856-source');return false;">[Source]</a></p>
|
863
|
+
<div class="method-source-code" id="M000856-source">
|
821
864
|
<pre>
|
822
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
823
|
-
|
824
|
-
|
825
|
-
|
865
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 275</span>
|
866
|
+
275: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">items</span>
|
867
|
+
276: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">length</span>
|
868
|
+
277: <span class="ruby-keyword kw">end</span>
|
826
869
|
</pre>
|
827
870
|
</div>
|
828
871
|
|
@@ -830,12 +873,12 @@ objects in this set.
|
|
830
873
|
</div>
|
831
874
|
|
832
875
|
|
833
|
-
<div id="method-
|
834
|
-
<a name="
|
876
|
+
<div id="method-M000841" class="method-detail">
|
877
|
+
<a name="M000841"></a>
|
835
878
|
|
836
879
|
<div class="method-heading">
|
837
880
|
|
838
|
-
<a href="#
|
881
|
+
<a href="#M000841" class="method-signature">
|
839
882
|
|
840
883
|
<span class="method-name">knownAttribute?</span><span class="method-args">(attrId)</span>
|
841
884
|
|
@@ -852,8 +895,8 @@ href="AttributeDefinition.html">AttributeDefinition</a> for
|
|
852
895
|
</p>
|
853
896
|
|
854
897
|
<p><a class="source-toggle" href="#"
|
855
|
-
onclick="toggleCode('
|
856
|
-
<div class="method-source-code" id="
|
898
|
+
onclick="toggleCode('M000841-source');return false;">[Source]</a></p>
|
899
|
+
<div class="method-source-code" id="M000841-source">
|
857
900
|
<pre>
|
858
901
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 91</span>
|
859
902
|
91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">knownAttribute?</span>(<span class="ruby-identifier">attrId</span>)
|
@@ -867,12 +910,12 @@ href="AttributeDefinition.html">AttributeDefinition</a> for
|
|
867
910
|
</div>
|
868
911
|
|
869
912
|
|
870
|
-
<div id="method-
|
871
|
-
<a name="
|
913
|
+
<div id="method-M000854" class="method-detail">
|
914
|
+
<a name="M000854"></a>
|
872
915
|
|
873
916
|
<div class="method-heading">
|
874
917
|
|
875
|
-
<a href="#
|
918
|
+
<a href="#M000854" class="method-signature">
|
876
919
|
|
877
920
|
<span class="method-name">levelSeqNo</span><span class="method-args">(property)</span>
|
878
921
|
|
@@ -887,20 +930,20 @@ Return the index of the top-level <em>property</em> in the set.
|
|
887
930
|
</p>
|
888
931
|
|
889
932
|
<p><a class="source-toggle" href="#"
|
890
|
-
onclick="toggleCode('
|
891
|
-
<div class="method-source-code" id="
|
933
|
+
onclick="toggleCode('M000854-source');return false;">[Source]</a></p>
|
934
|
+
<div class="method-source-code" id="M000854-source">
|
892
935
|
<pre>
|
893
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
936
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 253</span>
|
937
|
+
253: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">property</span>)
|
938
|
+
254: <span class="ruby-identifier">seqNo</span> = <span class="ruby-value">1</span>
|
939
|
+
255: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
940
|
+
256: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
941
|
+
257: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">seqNo</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">property</span>
|
942
|
+
258: <span class="ruby-identifier">seqNo</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
943
|
+
259: <span class="ruby-keyword kw">end</span>
|
944
|
+
260: <span class="ruby-keyword kw">end</span>
|
945
|
+
261: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Fatal Error: Unknow property #{property}"</span>
|
946
|
+
262: <span class="ruby-keyword kw">end</span>
|
904
947
|
</pre>
|
905
948
|
</div>
|
906
949
|
|
@@ -908,12 +951,12 @@ Return the index of the top-level <em>property</em> in the set.
|
|
908
951
|
</div>
|
909
952
|
|
910
953
|
|
911
|
-
<div id="method-
|
912
|
-
<a name="
|
954
|
+
<div id="method-M000855" class="method-detail">
|
955
|
+
<a name="M000855"></a>
|
913
956
|
|
914
957
|
<div class="method-heading">
|
915
958
|
|
916
|
-
<a href="#
|
959
|
+
<a href="#M000855" class="method-signature">
|
917
960
|
|
918
961
|
<span class="method-name">maxDepth</span><span class="method-args">()</span>
|
919
962
|
|
@@ -929,17 +972,17 @@ maxDepth of 1. A list with one sub level has a maxDepth of 2 and so on.
|
|
929
972
|
</p>
|
930
973
|
|
931
974
|
<p><a class="source-toggle" href="#"
|
932
|
-
onclick="toggleCode('
|
933
|
-
<div class="method-source-code" id="
|
975
|
+
onclick="toggleCode('M000855-source');return false;">[Source]</a></p>
|
976
|
+
<div class="method-source-code" id="M000855-source">
|
934
977
|
<pre>
|
935
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
978
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 266</span>
|
979
|
+
266: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">maxDepth</span>
|
980
|
+
267: <span class="ruby-identifier">md</span> = <span class="ruby-value">0</span>
|
981
|
+
268: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
982
|
+
269: <span class="ruby-identifier">md</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">level</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">level</span> <span class="ruby-operator">></span> <span class="ruby-identifier">md</span>
|
983
|
+
270: <span class="ruby-keyword kw">end</span>
|
984
|
+
271: <span class="ruby-identifier">md</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
985
|
+
272: <span class="ruby-keyword kw">end</span>
|
943
986
|
</pre>
|
944
987
|
</div>
|
945
988
|
|
@@ -947,12 +990,12 @@ maxDepth of 1. A list with one sub level has a maxDepth of 2 and so on.
|
|
947
990
|
</div>
|
948
991
|
|
949
992
|
|
950
|
-
<div id="method-
|
951
|
-
<a name="
|
993
|
+
<div id="method-M000850" class="method-detail">
|
994
|
+
<a name="M000850"></a>
|
952
995
|
|
953
996
|
<div class="method-heading">
|
954
997
|
|
955
|
-
<a href="#
|
998
|
+
<a href="#M000850" class="method-signature">
|
956
999
|
|
957
1000
|
<span class="method-name">removeProperty</span><span class="method-args">(prop)</span>
|
958
1001
|
|
@@ -973,31 +1016,31 @@ TODO: This function does not take care of references to this PTN!
|
|
973
1016
|
</p>
|
974
1017
|
|
975
1018
|
<p><a class="source-toggle" href="#"
|
976
|
-
onclick="toggleCode('
|
977
|
-
<div class="method-source-code" id="
|
1019
|
+
onclick="toggleCode('M000850-source');return false;">[Source]</a></p>
|
1020
|
+
<div class="method-source-code" id="M000850-source">
|
978
1021
|
<pre>
|
979
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
190:
|
987
|
-
191: <span class="ruby-comment cmt"># Recursively remove all sub-nodes. The children list is modified during</span>
|
988
|
-
192: <span class="ruby-comment cmt"># the call, so we can't use an iterator here.</span>
|
989
|
-
193: <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">do</span>
|
990
|
-
194: <span class="ruby-identifier">removeProperty</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>)
|
991
|
-
195: <span class="ruby-keyword kw">end</span>
|
992
|
-
196:
|
993
|
-
197: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>)
|
994
|
-
198: <span class="ruby-ivar">@propertyMap</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">fullId</span>)
|
1022
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 193</span>
|
1023
|
+
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeProperty</span>(<span class="ruby-identifier">prop</span>)
|
1024
|
+
194: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">prop</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
|
1025
|
+
195: <span class="ruby-identifier">property</span> = <span class="ruby-ivar">@propertyMap</span>[<span class="ruby-identifier">prop</span>]
|
1026
|
+
196: <span class="ruby-keyword kw">else</span>
|
1027
|
+
197: <span class="ruby-identifier">property</span> = <span class="ruby-identifier">prop</span>
|
1028
|
+
198: <span class="ruby-keyword kw">end</span>
|
995
1029
|
199:
|
996
|
-
200: <span class="ruby-comment cmt">#
|
997
|
-
201: <span class="ruby-
|
998
|
-
202:
|
999
|
-
203:
|
1000
|
-
204:
|
1030
|
+
200: <span class="ruby-comment cmt"># Recursively remove all sub-nodes. The children list is modified during</span>
|
1031
|
+
201: <span class="ruby-comment cmt"># the call, so we can't use an iterator here.</span>
|
1032
|
+
202: <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">do</span>
|
1033
|
+
203: <span class="ruby-identifier">removeProperty</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>)
|
1034
|
+
204: <span class="ruby-keyword kw">end</span>
|
1035
|
+
205:
|
1036
|
+
206: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>)
|
1037
|
+
207: <span class="ruby-ivar">@propertyMap</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">fullId</span>)
|
1038
|
+
208:
|
1039
|
+
209: <span class="ruby-comment cmt"># Remove this node from the child list of the parent node.</span>
|
1040
|
+
210: <span class="ruby-identifier">property</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">property</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">parent</span>
|
1041
|
+
211:
|
1042
|
+
212: <span class="ruby-identifier">property</span>
|
1043
|
+
213: <span class="ruby-keyword kw">end</span>
|
1001
1044
|
</pre>
|
1002
1045
|
</div>
|
1003
1046
|
|
@@ -1005,12 +1048,12 @@ TODO: This function does not take care of references to this PTN!
|
|
1005
1048
|
</div>
|
1006
1049
|
|
1007
1050
|
|
1008
|
-
<div id="method-
|
1009
|
-
<a name="
|
1051
|
+
<div id="method-M000842" class="method-detail">
|
1052
|
+
<a name="M000842"></a>
|
1010
1053
|
|
1011
1054
|
<div class="method-heading">
|
1012
1055
|
|
1013
|
-
<a href="#
|
1056
|
+
<a href="#M000842" class="method-signature">
|
1014
1057
|
|
1015
1058
|
<span class="method-name">scenarioSpecific?</span><span class="method-args">(attrId)</span>
|
1016
1059
|
|
@@ -1026,8 +1069,8 @@ not.
|
|
1026
1069
|
</p>
|
1027
1070
|
|
1028
1071
|
<p><a class="source-toggle" href="#"
|
1029
|
-
onclick="toggleCode('
|
1030
|
-
<div class="method-source-code" id="
|
1072
|
+
onclick="toggleCode('M000842-source');return false;">[Source]</a></p>
|
1073
|
+
<div class="method-source-code" id="M000842-source">
|
1031
1074
|
<pre>
|
1032
1075
|
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 97</span>
|
1033
1076
|
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenarioSpecific?</span>(<span class="ruby-identifier">attrId</span>)
|
@@ -1043,12 +1086,12 @@ not.
|
|
1043
1086
|
</div>
|
1044
1087
|
|
1045
1088
|
|
1046
|
-
<div id="method-
|
1047
|
-
<a name="
|
1089
|
+
<div id="method-M000860" class="method-detail">
|
1090
|
+
<a name="M000860"></a>
|
1048
1091
|
|
1049
1092
|
<div class="method-heading">
|
1050
1093
|
|
1051
|
-
<a href="#
|
1094
|
+
<a href="#M000860" class="method-signature">
|
1052
1095
|
|
1053
1096
|
<span class="method-name">to_ary</span><span class="method-args">()</span>
|
1054
1097
|
|
@@ -1064,13 +1107,13 @@ objects as flat Array.
|
|
1064
1107
|
</p>
|
1065
1108
|
|
1066
1109
|
<p><a class="source-toggle" href="#"
|
1067
|
-
onclick="toggleCode('
|
1068
|
-
<div class="method-source-code" id="
|
1110
|
+
onclick="toggleCode('M000860-source');return false;">[Source]</a></p>
|
1111
|
+
<div class="method-source-code" id="M000860-source">
|
1069
1112
|
<pre>
|
1070
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1113
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 302</span>
|
1114
|
+
302: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ary</span>
|
1115
|
+
303: <span class="ruby-ivar">@properties</span>
|
1116
|
+
304: <span class="ruby-keyword kw">end</span>
|
1074
1117
|
</pre>
|
1075
1118
|
</div>
|
1076
1119
|
|
@@ -1078,12 +1121,12 @@ objects as flat Array.
|
|
1078
1121
|
</div>
|
1079
1122
|
|
1080
1123
|
|
1081
|
-
<div id="method-
|
1082
|
-
<a name="
|
1124
|
+
<div id="method-M000861" class="method-detail">
|
1125
|
+
<a name="M000861"></a>
|
1083
1126
|
|
1084
1127
|
<div class="method-heading">
|
1085
1128
|
|
1086
|
-
<a href="#
|
1129
|
+
<a href="#M000861" class="method-signature">
|
1087
1130
|
|
1088
1131
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
1089
1132
|
|
@@ -1094,13 +1137,13 @@ objects as flat Array.
|
|
1094
1137
|
<div class="method-description">
|
1095
1138
|
|
1096
1139
|
<p><a class="source-toggle" href="#"
|
1097
|
-
onclick="toggleCode('
|
1098
|
-
<div class="method-source-code" id="
|
1140
|
+
onclick="toggleCode('M000861-source');return false;">[Source]</a></p>
|
1141
|
+
<div class="method-source-code" id="M000861-source">
|
1099
1142
|
<pre>
|
1100
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1143
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 306</span>
|
1144
|
+
306: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
1145
|
+
307: <span class="ruby-constant">PropertyList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">to_s</span>
|
1146
|
+
308: <span class="ruby-keyword kw">end</span>
|
1104
1147
|
</pre>
|
1105
1148
|
</div>
|
1106
1149
|
|
@@ -1108,12 +1151,12 @@ objects as flat Array.
|
|
1108
1151
|
</div>
|
1109
1152
|
|
1110
1153
|
|
1111
|
-
<div id="method-
|
1112
|
-
<a name="
|
1154
|
+
<div id="method-M000858" class="method-detail">
|
1155
|
+
<a name="M000858"></a>
|
1113
1156
|
|
1114
1157
|
<div class="method-heading">
|
1115
1158
|
|
1116
|
-
<a href="#
|
1159
|
+
<a href="#M000858" class="method-signature">
|
1117
1160
|
|
1118
1161
|
<span class="method-name">topLevelItems</span><span class="method-args">()</span>
|
1119
1162
|
|
@@ -1130,17 +1173,17 @@ are no children.
|
|
1130
1173
|
</p>
|
1131
1174
|
|
1132
1175
|
<p><a class="source-toggle" href="#"
|
1133
|
-
onclick="toggleCode('
|
1134
|
-
<div class="method-source-code" id="
|
1176
|
+
onclick="toggleCode('M000858-source');return false;">[Source]</a></p>
|
1177
|
+
<div class="method-source-code" id="M000858-source">
|
1135
1178
|
<pre>
|
1136
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1179
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 286</span>
|
1180
|
+
286: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">topLevelItems</span>
|
1181
|
+
287: <span class="ruby-identifier">items</span> = <span class="ruby-value">0</span>
|
1182
|
+
288: <span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span>
|
1183
|
+
289: <span class="ruby-identifier">items</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
1184
|
+
290: <span class="ruby-keyword kw">end</span>
|
1185
|
+
291: <span class="ruby-identifier">items</span>
|
1186
|
+
292: <span class="ruby-keyword kw">end</span>
|
1144
1187
|
</pre>
|
1145
1188
|
</div>
|
1146
1189
|
|
@@ -1148,12 +1191,12 @@ are no children.
|
|
1148
1191
|
</div>
|
1149
1192
|
|
1150
1193
|
|
1151
|
-
<div id="method-
|
1152
|
-
<a name="
|
1194
|
+
<div id="method-M000845" class="method-detail">
|
1195
|
+
<a name="M000845"></a>
|
1153
1196
|
|
1154
1197
|
<div class="method-heading">
|
1155
1198
|
|
1156
|
-
<a href="#
|
1199
|
+
<a href="#M000845" class="method-signature">
|
1157
1200
|
|
1158
1201
|
<span class="method-name">userDefined?</span><span class="method-args">(attrId)</span>
|
1159
1202
|
|
@@ -1168,15 +1211,15 @@ Return whether or not the attribute was user defined.
|
|
1168
1211
|
</p>
|
1169
1212
|
|
1170
1213
|
<p><a class="source-toggle" href="#"
|
1171
|
-
onclick="toggleCode('
|
1172
|
-
<div class="method-source-code" id="
|
1214
|
+
onclick="toggleCode('M000845-source');return false;">[Source]</a></p>
|
1215
|
+
<div class="method-source-code" id="M000845-source">
|
1173
1216
|
<pre>
|
1174
|
-
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1217
|
+
<span class="ruby-comment cmt"># File lib/PropertySet.rb, line 122</span>
|
1218
|
+
122: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">userDefined?</span>(<span class="ruby-identifier">attrId</span>)
|
1219
|
+
123: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">nil?</span>
|
1220
|
+
124:
|
1221
|
+
125: <span class="ruby-ivar">@attributeDefinitions</span>[<span class="ruby-identifier">attrId</span>].<span class="ruby-identifier">userDefined</span>
|
1222
|
+
126: <span class="ruby-keyword kw">end</span>
|
1180
1223
|
</pre>
|
1181
1224
|
</div>
|
1182
1225
|
|