taskjuggler 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -1
- data/bin/tj3client +3 -0
- data/bin/tj3d +3 -0
- data/bin/tj3ts_receiver +3 -0
- data/bin/tj3ts_sender +3 -0
- data/bin/tj3ts_summary +3 -0
- data/data/css/tjmanual.css +14 -0
- data/data/css/tjreport.css +233 -21
- data/data/scripts/wz_tooltip.js +20 -20
- data/doc/AppConfig.html +1389 -0
- data/doc/Arguments.html +678 -0
- data/doc/COPYING.html +837 -0
- data/doc/Object.html +996 -0
- data/doc/README.html +523 -0
- data/doc/RuntimeConfig.html +762 -0
- data/doc/String.html +872 -0
- data/doc/TaskJuggler/Account.html +691 -0
- data/doc/TaskJuggler/AccountAttribute.html +707 -0
- data/doc/TaskJuggler/AccountScenario.html +650 -0
- data/doc/TaskJuggler/Allocation.html +898 -0
- data/doc/TaskJuggler/AllocationAttribute.html +737 -0
- data/doc/TaskJuggler/AttributeBase.html +1193 -0
- data/doc/TaskJuggler/AttributeDefinition.html +753 -0
- data/doc/TaskJuggler/BatchProcessor.html +1112 -0
- data/doc/TaskJuggler/Booking.html +797 -0
- data/doc/TaskJuggler/BookingListAttribute.html +709 -0
- data/doc/TaskJuggler/BooleanAttribute.html +707 -0
- data/doc/TaskJuggler/CSVFile.html +924 -0
- data/doc/TaskJuggler/CellSettingPattern.html +638 -0
- data/doc/TaskJuggler/CellSettingPatternList.html +687 -0
- data/doc/TaskJuggler/Charge.html +715 -0
- data/doc/TaskJuggler/ChargeListAttribute.html +671 -0
- data/doc/TaskJuggler/ChargeSet.html +887 -0
- data/doc/TaskJuggler/ChargeSetListAttribute.html +718 -0
- data/doc/TaskJuggler/ColumnListAttribute.html +673 -0
- data/doc/TaskJuggler/ColumnTable.html +701 -0
- data/doc/TaskJuggler/Daemon.html +728 -0
- data/doc/TaskJuggler/DateAttribute.html +675 -0
- data/doc/TaskJuggler/DefinitionListAttribute.html +593 -0
- data/doc/TaskJuggler/DependencyListAttribute.html +713 -0
- data/doc/TaskJuggler/DurationAttribute.html +707 -0
- data/doc/TaskJuggler/FixnumAttribute.html +629 -0
- data/doc/TaskJuggler/FlagListAttribute.html +709 -0
- data/doc/TaskJuggler/FloatAttribute.html +671 -0
- data/doc/TaskJuggler/FormatListAttribute.html +635 -0
- data/doc/TaskJuggler/GanttChart.html +1473 -0
- data/doc/TaskJuggler/GanttContainer.html +885 -0
- data/doc/TaskJuggler/GanttHeader.html +886 -0
- data/doc/TaskJuggler/GanttHeaderScaleItem.html +700 -0
- data/doc/TaskJuggler/GanttLine.html +1263 -0
- data/doc/TaskJuggler/GanttLoadStack.html +766 -0
- data/doc/TaskJuggler/GanttMilestone.html +865 -0
- data/doc/TaskJuggler/GanttRouter.html +1433 -0
- data/doc/TaskJuggler/GanttTaskBar.html +880 -0
- data/doc/TaskJuggler/HTMLDocument.html +719 -0
- data/doc/TaskJuggler/HTMLGraphics.html +775 -0
- data/doc/TaskJuggler/Interval.html +1016 -0
- data/doc/TaskJuggler/IntervalListAttribute.html +713 -0
- data/doc/TaskJuggler/JobInfo.html +881 -0
- data/doc/TaskJuggler/Journal.html +991 -0
- data/doc/TaskJuggler/JournalEntry.html +779 -0
- data/doc/TaskJuggler/JournalEntryList.html +952 -0
- data/doc/TaskJuggler/KeywordArray.html +628 -0
- data/doc/TaskJuggler/KeywordDocumentation.html +1662 -0
- data/doc/TaskJuggler/Limits/Limit.html +826 -0
- data/doc/TaskJuggler/Limits.html +966 -0
- data/doc/TaskJuggler/LimitsAttribute.html +707 -0
- data/doc/TaskJuggler/ListAttributeBase.html +641 -0
- data/doc/TaskJuggler/Log.html +1103 -0
- data/doc/TaskJuggler/LogFile.html +918 -0
- data/doc/TaskJuggler/LogicalAttribute.html +698 -0
- data/doc/TaskJuggler/LogicalExpression.html +739 -0
- data/doc/TaskJuggler/LogicalExpressionAttribute.html +629 -0
- data/doc/TaskJuggler/LogicalFlag.html +681 -0
- data/doc/TaskJuggler/LogicalFunction.html +1218 -0
- data/doc/TaskJuggler/LogicalOperation.html +1078 -0
- data/doc/TaskJuggler/Macro.html +646 -0
- data/doc/TaskJuggler/MacroParser.html +810 -0
- data/doc/TaskJuggler/MacroTable.html +810 -0
- data/doc/TaskJuggler/ManagerResponsibilities.html +674 -0
- data/doc/TaskJuggler/ManagerStatusRecord.html +678 -0
- data/doc/TaskJuggler/Message.html +757 -0
- data/doc/TaskJuggler/MessageHandler.html +679 -0
- data/doc/TaskJuggler/Navigator.html +867 -0
- data/doc/TaskJuggler/NavigatorElement.html +932 -0
- data/doc/TaskJuggler/NikuProject.html +662 -0
- data/doc/TaskJuggler/NikuReport.html +1316 -0
- data/doc/TaskJuggler/NikuResource.html +632 -0
- data/doc/TaskJuggler/OnShiftCache.html +864 -0
- data/doc/TaskJuggler/ProcessIntercom.html +847 -0
- data/doc/TaskJuggler/ProcessIntercomIface.html +664 -0
- data/doc/TaskJuggler/Project.html +3056 -0
- data/doc/TaskJuggler/ProjectBroker.html +1260 -0
- data/doc/TaskJuggler/ProjectBrokerIface.html +734 -0
- data/doc/TaskJuggler/ProjectFileParser.html +1951 -0
- data/doc/TaskJuggler/ProjectRecord.html +859 -0
- data/doc/TaskJuggler/ProjectServer.html +1092 -0
- data/doc/TaskJuggler/ProjectServerIface.html +768 -0
- data/doc/TaskJuggler/PropertyAttribute.html +629 -0
- data/doc/TaskJuggler/PropertyList.html +1336 -0
- data/doc/TaskJuggler/PropertySet.html +1785 -0
- data/doc/TaskJuggler/PropertyTreeNode.html +2482 -0
- data/doc/TaskJuggler/Query.html +1831 -0
- data/doc/TaskJuggler/RTFNavigator.html +729 -0
- data/doc/TaskJuggler/RTFQuery.html +1038 -0
- data/doc/TaskJuggler/RTFReport.html +740 -0
- data/doc/TaskJuggler/RealFormat.html +743 -0
- data/doc/TaskJuggler/RealFormatAttribute.html +593 -0
- data/doc/TaskJuggler/ReferenceAttribute.html +782 -0
- data/doc/TaskJuggler/Report.html +1255 -0
- data/doc/TaskJuggler/ReportBase.html +1198 -0
- data/doc/TaskJuggler/ReportContext.html +711 -0
- data/doc/TaskJuggler/ReportServer.html +988 -0
- data/doc/TaskJuggler/ReportServerIface.html +838 -0
- data/doc/TaskJuggler/ReportServerRecord.html +716 -0
- data/doc/TaskJuggler/ReportTable.html +1106 -0
- data/doc/TaskJuggler/ReportTableCell.html +1536 -0
- data/doc/TaskJuggler/ReportTableColumn.html +828 -0
- data/doc/TaskJuggler/ReportTableLegend.html +999 -0
- data/doc/TaskJuggler/ReportTableLine.html +1003 -0
- data/doc/TaskJuggler/Resource.html +938 -0
- data/doc/TaskJuggler/ResourceListAttribute.html +752 -0
- data/doc/TaskJuggler/ResourceListRE.html +674 -0
- data/doc/TaskJuggler/ResourceScenario.html +2457 -0
- data/doc/TaskJuggler/RichText.html +791 -0
- data/doc/TaskJuggler/RichTextAttribute.html +743 -0
- data/doc/TaskJuggler/RichTextDocument.html +972 -0
- data/doc/TaskJuggler/RichTextElement.html +1615 -0
- data/doc/TaskJuggler/RichTextException.html +667 -0
- data/doc/TaskJuggler/RichTextFunctionExample.html +737 -0
- data/doc/TaskJuggler/RichTextFunctionHandler.html +689 -0
- data/doc/TaskJuggler/RichTextImage.html +650 -0
- data/doc/TaskJuggler/RichTextIntermediate.html +1161 -0
- data/doc/TaskJuggler/RichTextParser.html +756 -0
- data/doc/TaskJuggler/RichTextScanner.html +2010 -0
- data/doc/TaskJuggler/RichTextSnip.html +942 -0
- data/doc/TaskJuggler/RichTextSyntaxRules.html +1722 -0
- data/doc/TaskJuggler/Scenario.html +594 -0
- data/doc/TaskJuggler/ScenarioData.html +815 -0
- data/doc/TaskJuggler/ScenarioListAttribute.html +671 -0
- data/doc/TaskJuggler/Scoreboard.html +1114 -0
- data/doc/TaskJuggler/SheetHandlerBase.html +1115 -0
- data/doc/TaskJuggler/SheetReceiver.html +1293 -0
- data/doc/TaskJuggler/SheetSender.html +1089 -0
- data/doc/TaskJuggler/Shift.html +689 -0
- data/doc/TaskJuggler/ShiftAssignment.html +950 -0
- data/doc/TaskJuggler/ShiftAssignments.html +1379 -0
- data/doc/TaskJuggler/ShiftAssignmentsAttribute.html +707 -0
- data/doc/TaskJuggler/ShiftScenario.html +720 -0
- data/doc/TaskJuggler/SortListAttribute.html +631 -0
- data/doc/TaskJuggler/SourceFileInfo.html +698 -0
- data/doc/TaskJuggler/StatusSheetReceiver.html +615 -0
- data/doc/TaskJuggler/StatusSheetReport.html +872 -0
- data/doc/TaskJuggler/StatusSheetSender.html +654 -0
- data/doc/TaskJuggler/StringAttribute.html +671 -0
- data/doc/TaskJuggler/SymbolAttribute.html +629 -0
- data/doc/TaskJuggler/SyntaxReference.html +1155 -0
- data/doc/TaskJuggler/TOCEntry.html +723 -0
- data/doc/TaskJuggler/TSResourceRecord.html +670 -0
- data/doc/TaskJuggler/TSTaskRecord.html +682 -0
- data/doc/TaskJuggler/TableColumnDefinition.html +830 -0
- data/doc/TaskJuggler/TableOfContents.html +692 -0
- data/doc/TaskJuggler/TableReport.html +2444 -0
- data/doc/TaskJuggler/Task.html +781 -0
- data/doc/TaskJuggler/TaskDependency.html +730 -0
- data/doc/TaskJuggler/TaskListAttribute.html +713 -0
- data/doc/TaskJuggler/TaskListRE.html +673 -0
- data/doc/TaskJuggler/TaskScenario.html +4380 -0
- data/doc/TaskJuggler/TextFormatter.html +911 -0
- data/doc/TaskJuggler/TextParser/Pattern.html +1482 -0
- data/doc/TaskJuggler/TextParser/Rule.html +1288 -0
- data/doc/TaskJuggler/TextParser/StackElement.html +726 -0
- data/doc/TaskJuggler/TextParser/TextParserResultArray.html +648 -0
- data/doc/TaskJuggler/TextParser/TokenDoc.html +680 -0
- data/doc/TaskJuggler/TextParser.html +1670 -0
- data/doc/TaskJuggler/TextReport.html +856 -0
- data/doc/TaskJuggler/TextScanner/BufferStreamHandle.html +831 -0
- data/doc/TaskJuggler/TextScanner/FileStreamHandle.html +832 -0
- data/doc/TaskJuggler/TextScanner/StreamHandle.html +737 -0
- data/doc/TaskJuggler/TextScanner.html +2430 -0
- data/doc/TaskJuggler/TimeSheet.html +1233 -0
- data/doc/TaskJuggler/TimeSheetReceiver.html +612 -0
- data/doc/TaskJuggler/TimeSheetRecord.html +1352 -0
- data/doc/TaskJuggler/TimeSheetReport.html +948 -0
- data/doc/TaskJuggler/TimeSheetSender.html +637 -0
- data/doc/TaskJuggler/TimeSheetSummary.html +865 -0
- data/doc/TaskJuggler/TimeSheets.html +674 -0
- data/doc/TaskJuggler/Tj3AppBase.html +782 -0
- data/doc/TaskJuggler/Tj3Client.html +1455 -0
- data/doc/TaskJuggler/Tj3Daemon.html +767 -0
- data/doc/TaskJuggler/Tj3SheetAppBase.html +696 -0
- data/doc/TaskJuggler/Tj3SsReceiver.html +682 -0
- data/doc/TaskJuggler/Tj3SsSender.html +708 -0
- data/doc/TaskJuggler/Tj3TsReceiver.html +681 -0
- data/doc/TaskJuggler/Tj3TsSender.html +702 -0
- data/doc/TaskJuggler/Tj3TsSummary.html +710 -0
- data/doc/TaskJuggler/TjException.html +630 -0
- data/doc/TaskJuggler/TjTime.html +2590 -0
- data/doc/TaskJuggler/TjpExample.html +835 -0
- data/doc/TaskJuggler/TjpExportRE.html +1581 -0
- data/doc/TaskJuggler/TjpSyntaxRules.html +13004 -0
- data/doc/TaskJuggler/UserManual.html +1145 -0
- data/doc/TaskJuggler/WorkingHours.html +1101 -0
- data/doc/TaskJuggler/WorkingHoursAttribute.html +694 -0
- data/doc/TaskJuggler/XMLBlob.html +645 -0
- data/doc/TaskJuggler/XMLComment.html +640 -0
- data/doc/TaskJuggler/XMLDocument.html +732 -0
- data/doc/TaskJuggler/XMLElement.html +900 -0
- data/doc/TaskJuggler/XMLNamedText.html +601 -0
- data/doc/TaskJuggler/XMLText.html +655 -0
- data/doc/TaskJuggler.html +2243 -0
- data/doc/index.html +3778 -17
- data/doc/lib/AccountScenario_rb.html +67 -0
- data/doc/lib/Account_rb.html +69 -0
- data/doc/lib/Allocation_rb.html +69 -0
- data/doc/lib/AppConfig_rb.html +69 -0
- data/doc/lib/AttributeBase_rb.html +67 -0
- data/doc/lib/AttributeDefinition_rb.html +65 -0
- data/doc/lib/Attributes_rb.html +81 -0
- data/doc/lib/BatchProcessor_rb.html +69 -0
- data/doc/lib/Booking_rb.html +65 -0
- data/doc/lib/ChargeSet_rb.html +67 -0
- data/doc/lib/Charge_rb.html +67 -0
- data/doc/lib/HTMLDocument_rb.html +67 -0
- data/doc/lib/Interval_rb.html +67 -0
- data/doc/lib/Journal_rb.html +65 -0
- data/doc/lib/KeywordArray_rb.html +65 -0
- data/doc/lib/KeywordDocumentation_rb.html +75 -0
- data/doc/lib/Limits_rb.html +67 -0
- data/doc/lib/LogFile_rb.html +67 -0
- data/doc/lib/Log_rb.html +69 -0
- data/doc/lib/LogicalExpression_rb.html +71 -0
- data/doc/lib/LogicalFunction_rb.html +67 -0
- data/doc/lib/LogicalOperation_rb.html +67 -0
- data/doc/lib/MacroParser_rb.html +69 -0
- data/doc/lib/MacroTable_rb.html +73 -0
- data/doc/lib/MessageHandler_rb.html +65 -0
- data/doc/lib/Message_rb.html +67 -0
- data/doc/lib/ProjectFileParser_rb.html +79 -0
- data/doc/lib/Project_rb.html +109 -0
- data/doc/lib/PropertyList_rb.html +65 -0
- data/doc/lib/PropertySet_rb.html +69 -0
- data/doc/lib/PropertyTreeNode_rb.html +65 -0
- data/doc/lib/Query_rb.html +67 -0
- data/doc/lib/RTFNavigator_rb.html +71 -0
- data/doc/lib/RTFQuery_rb.html +71 -0
- data/doc/lib/RTFReport_rb.html +69 -0
- data/doc/lib/RealFormat_rb.html +65 -0
- data/doc/lib/ResourceScenario_rb.html +67 -0
- data/doc/lib/Resource_rb.html +69 -0
- data/doc/lib/RichTextDocument_rb.html +71 -0
- data/doc/lib/RichTextElement_rb.html +73 -0
- data/doc/lib/RichTextFunctionExample_rb.html +71 -0
- data/doc/lib/RichTextFunctionHandler_rb.html +65 -0
- data/doc/lib/RichTextParser_rb.html +71 -0
- data/doc/lib/RichTextScanner_rb.html +67 -0
- data/doc/lib/RichTextSnip_rb.html +69 -0
- data/doc/lib/RichTextSyntaxRules_rb.html +65 -0
- data/doc/lib/RichText_rb.html +69 -0
- data/doc/lib/RuntimeConfig_rb.html +67 -0
- data/doc/lib/ScenarioData_rb.html +69 -0
- data/doc/lib/Scenario_rb.html +67 -0
- data/doc/lib/Scoreboard_rb.html +65 -0
- data/doc/lib/SheetHandlerBase_rb.html +69 -0
- data/doc/lib/SheetReceiver_rb.html +75 -0
- data/doc/lib/SheetSender_rb.html +73 -0
- data/doc/lib/ShiftAssignments_rb.html +67 -0
- data/doc/lib/ShiftScenario_rb.html +67 -0
- data/doc/lib/Shift_rb.html +69 -0
- data/doc/lib/SourceFileInfo_rb.html +65 -0
- data/doc/lib/StatusSheetReceiver_rb.html +67 -0
- data/doc/lib/StatusSheetSender_rb.html +67 -0
- data/doc/lib/SyntaxReference_rb.html +73 -0
- data/doc/lib/TOCEntry_rb.html +69 -0
- data/doc/lib/TableColumnDefinition_rb.html +65 -0
- data/doc/lib/TableOfContents_rb.html +69 -0
- data/doc/lib/TaskDependency_rb.html +65 -0
- data/doc/lib/TaskJuggler_rb.html +73 -0
- data/doc/lib/TaskScenario_rb.html +67 -0
- data/doc/lib/Task_rb.html +69 -0
- data/doc/lib/TextFormatter_rb.html +67 -0
- data/doc/lib/TextParser/Pattern_rb.html +67 -0
- data/doc/lib/TextParser/Rule_rb.html +65 -0
- data/doc/lib/TextParser/StackElement_rb.html +65 -0
- data/doc/lib/TextParser/TokenDoc_rb.html +65 -0
- data/doc/lib/TextParser_rb.html +75 -0
- data/doc/lib/TextScanner_rb.html +79 -0
- data/doc/lib/TimeSheetReceiver_rb.html +67 -0
- data/doc/lib/TimeSheetSender_rb.html +67 -0
- data/doc/lib/TimeSheetSummary_rb.html +67 -0
- data/doc/lib/TimeSheets_rb.html +65 -0
- data/doc/lib/Tj3AppBase_rb.html +77 -0
- data/doc/lib/Tj3Config_rb.html +69 -0
- data/doc/lib/Tj3SheetAppBase_rb.html +67 -0
- data/doc/lib/TjException_rb.html +65 -0
- data/doc/lib/TjTime_rb.html +69 -0
- data/doc/lib/TjpExample_rb.html +67 -0
- data/doc/lib/TjpSyntaxRules_rb.html +65 -0
- data/doc/lib/UTF8String_rb.html +65 -0
- data/doc/lib/UserManual_rb.html +77 -0
- data/doc/lib/WorkingHours_rb.html +67 -0
- data/doc/lib/XMLDocument_rb.html +67 -0
- data/doc/lib/XMLElement_rb.html +67 -0
- data/doc/lib/daemon/Daemon_rb.html +67 -0
- data/doc/lib/daemon/ProcessIntercom_rb.html +67 -0
- data/doc/lib/daemon/ProjectBroker_rb.html +79 -0
- data/doc/lib/daemon/ProjectServer_rb.html +83 -0
- data/doc/lib/daemon/ReportServer_rb.html +73 -0
- data/doc/lib/deep_copy_rb.html +65 -0
- data/doc/lib/reports/CSVFile_rb.html +67 -0
- data/doc/lib/reports/ColumnTable_rb.html +67 -0
- data/doc/lib/reports/GanttChart_rb.html +73 -0
- data/doc/lib/reports/GanttContainer_rb.html +67 -0
- data/doc/lib/reports/GanttHeaderScaleItem_rb.html +65 -0
- data/doc/lib/reports/GanttHeader_rb.html +67 -0
- data/doc/lib/reports/GanttLine_rb.html +77 -0
- data/doc/lib/reports/GanttLoadStack_rb.html +67 -0
- data/doc/lib/reports/GanttMilestone_rb.html +67 -0
- data/doc/lib/reports/GanttRouter_rb.html +65 -0
- data/doc/lib/reports/GanttTaskBar_rb.html +67 -0
- data/doc/lib/reports/HTMLGraphics_rb.html +65 -0
- data/doc/lib/reports/Navigator_rb.html +67 -0
- data/doc/lib/reports/NikuReport_rb.html +69 -0
- data/doc/lib/reports/ReportBase_rb.html +65 -0
- data/doc/lib/reports/ReportContext_rb.html +65 -0
- data/doc/lib/reports/ReportTableCell_rb.html +65 -0
- data/doc/lib/reports/ReportTableColumn_rb.html +65 -0
- data/doc/lib/reports/ReportTableLegend_rb.html +65 -0
- data/doc/lib/reports/ReportTableLine_rb.html +67 -0
- data/doc/lib/reports/ReportTable_rb.html +69 -0
- data/doc/lib/reports/Report_rb.html +91 -0
- data/doc/lib/reports/ResourceListRE_rb.html +73 -0
- data/doc/lib/reports/StatusSheetReport_rb.html +67 -0
- data/doc/lib/reports/TableReport_rb.html +75 -0
- data/doc/lib/reports/TaskListRE_rb.html +73 -0
- data/doc/lib/reports/TextReport_rb.html +67 -0
- data/doc/lib/reports/TimeSheetReport_rb.html +67 -0
- data/doc/lib/reports/TjpExportRE_rb.html +67 -0
- data/doc/lib/ruby-signal-bug_rb.html +54 -0
- data/doc/lib/taskjuggler3_rb.html +73 -0
- data/doc/lib/tj3client_rb.html +73 -0
- data/doc/lib/tj3d_rb.html +73 -0
- data/doc/lib/tj3man_rb.html +73 -0
- data/doc/lib/tj3ss_receiver_rb.html +69 -0
- data/doc/lib/tj3ss_sender_rb.html +69 -0
- data/doc/lib/tj3ts_receiver_rb.html +69 -0
- data/doc/lib/tj3ts_sender_rb.html +69 -0
- data/doc/lib/tj3ts_summary_rb.html +69 -0
- data/doc/rdoc.css +701 -0
- data/examples/tutorial.tjp +25 -6
- data/lib/Attributes.rb +6 -2
- data/lib/HTMLDocument.rb +18 -2
- data/lib/Journal.rb +47 -4
- data/lib/KeywordArray.rb +1 -1
- data/lib/KeywordDocumentation.rb +17 -77
- data/lib/Log.rb +3 -1
- data/lib/LogFile.rb +72 -0
- data/lib/LogicalExpression.rb +5 -10
- data/lib/LogicalFunction.rb +34 -18
- data/lib/LogicalOperation.rb +32 -18
- data/lib/Project.rb +85 -13
- data/lib/ProjectFileParser.rb +19 -6
- data/lib/PropertyList.rb +12 -2
- data/lib/PropertyTreeNode.rb +23 -9
- data/lib/Query.rb +51 -13
- data/lib/RTFReport.rb +2 -2
- data/lib/Resource.rb +157 -0
- data/lib/ResourceScenario.rb +215 -68
- data/lib/RichText.rb +15 -3
- data/lib/RichTextDocument.rb +2 -4
- data/lib/RichTextElement.rb +87 -25
- data/lib/RichTextScanner.rb +32 -5
- data/lib/RichTextSnip.rb +6 -4
- data/lib/RichTextSyntaxRules.rb +44 -8
- data/lib/RuntimeConfig.rb +93 -0
- data/lib/Scoreboard.rb +6 -6
- data/lib/SheetHandlerBase.rb +215 -0
- data/lib/SheetReceiver.rb +355 -0
- data/lib/SheetSender.rb +264 -0
- data/lib/ShiftAssignments.rb +35 -27
- data/lib/StatusSheetReceiver.rb +45 -0
- data/lib/StatusSheetSender.rb +54 -0
- data/lib/SyntaxReference.rb +2 -7
- data/lib/Task.rb +70 -0
- data/lib/TaskJuggler.rb +114 -12
- data/lib/TaskScenario.rb +131 -22
- data/lib/TextFormatter.rb +177 -0
- data/lib/TextParser.rb +10 -1
- data/lib/TextScanner.rb +63 -33
- data/lib/TimeSheetReceiver.rb +42 -0
- data/lib/TimeSheetSender.rb +55 -0
- data/lib/TimeSheetSummary.rb +149 -0
- data/lib/TimeSheets.rb +406 -0
- data/lib/Tj3AppBase.rb +114 -0
- data/lib/Tj3Config.rb +1 -1
- data/lib/Tj3SheetAppBase.rb +59 -0
- data/lib/TjTime.rb +14 -1
- data/lib/TjpSyntaxRules.rb +573 -211
- data/lib/UTF8String.rb +4 -0
- data/lib/UserManual.rb +8 -7
- data/lib/XMLElement.rb +27 -19
- data/lib/daemon/Daemon.rb +70 -0
- data/lib/daemon/ProcessIntercom.rb +117 -0
- data/lib/daemon/ProjectBroker.rb +450 -0
- data/lib/daemon/ProjectServer.rb +348 -0
- data/lib/daemon/ReportServer.rb +194 -0
- data/lib/reports/ColumnTable.rb +2 -0
- data/lib/reports/GanttChart.rb +5 -7
- data/lib/reports/GanttContainer.rb +5 -8
- data/lib/reports/GanttHeader.rb +1 -1
- data/lib/reports/GanttLine.rb +89 -53
- data/lib/reports/GanttMilestone.rb +7 -4
- data/lib/reports/GanttTaskBar.rb +7 -3
- data/lib/reports/HTMLGraphics.rb +24 -9
- data/lib/reports/NikuReport.rb +414 -0
- data/lib/reports/Report.rb +54 -20
- data/lib/reports/ReportBase.rb +21 -0
- data/lib/reports/ReportTable.rb +29 -11
- data/lib/reports/ReportTableCell.rb +154 -86
- data/lib/reports/ReportTableLegend.rb +77 -80
- data/lib/reports/ResourceListRE.rb +2 -3
- data/lib/reports/StatusSheetReport.rb +231 -0
- data/lib/reports/TableReport.rb +74 -65
- data/lib/reports/TaskListRE.rb +2 -4
- data/lib/reports/TextReport.rb +18 -12
- data/lib/reports/TimeSheetReport.rb +145 -80
- data/lib/reports/TjpExportRE.rb +4 -4
- data/lib/ruby-signal-bug.rb +43 -0
- data/lib/taskjuggler3.rb +27 -10
- data/lib/tj3client.rb +411 -77
- data/lib/tj3d.rb +110 -0
- data/lib/tj3ss_receiver.rb +56 -0
- data/lib/tj3ss_sender.rb +84 -0
- data/lib/tj3ts_receiver.rb +59 -0
- data/lib/tj3ts_sender.rb +78 -0
- data/lib/tj3ts_summary.rb +87 -0
- data/manual/Day_To_Day_Juggling +761 -32
- data/manual/Getting_Started +12 -12
- data/manual/Rich_Text_Attributes +13 -1
- data/manual/TaskJuggler_2x_Migration +41 -3
- data/manual/TaskJuggler_Internals +87 -0
- data/manual/The_TaskJuggler_Syntax +1 -2
- data/manual/Tutorial +10 -10
- data/test/TestSuite/CSV-Reports/celltext.tjp +1 -1
- data/test/TestSuite/HTML-Reports/TimeSheet.html +79 -0
- data/test/TestSuite/HTML-Reports/icons/trend-down.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/trend-flat.png +0 -0
- data/test/TestSuite/HTML-Reports/icons/trend-up.png +0 -0
- data/test/TestSuite/HTML-Reports/reference.html +51 -0
- data/test/TestSuite/Scheduler/Correct/Booking2.html +603 -0
- data/test/TestSuite/Scheduler/Correct/Booking2.tjp +57 -0
- data/test/TestSuite/Scheduler/Correct/Duration.tjp +32 -18
- data/test/TestSuite/Scheduler/Correct/Manager.tjp +9 -0
- data/test/TestSuite/Scheduler/Correct/Shift.html +429 -0
- data/test/TestSuite/Scheduler/Correct/Shift2.html +162 -0
- data/test/TestSuite/Scheduler/Correct/Shift2.tjp +67 -0
- data/test/TestSuite/{Syntax/Correct/TimeSheet.tjp → Scheduler/Correct/TimeSheet2.tjp} +21 -8
- data/test/TestSuite/Scheduler/Correct/css/tjmanual.css +52 -0
- data/test/TestSuite/Scheduler/Correct/css/tjreport.css +195 -0
- data/test/TestSuite/{Syntax → Scheduler}/Correct/icons/details.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/flag-green.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/flag-red.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/flag-yellow.png +0 -0
- data/test/TestSuite/{Syntax → Scheduler}/Correct/icons/resource.png +0 -0
- data/test/TestSuite/{Syntax → Scheduler}/Correct/icons/resourcegroup.png +0 -0
- data/test/TestSuite/{Syntax → Scheduler}/Correct/icons/task.png +0 -0
- data/test/TestSuite/{Syntax → Scheduler}/Correct/icons/taskgroup.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/trend-down.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/trend-flat.png +0 -0
- data/test/TestSuite/Scheduler/Correct/icons/trend-up.png +0 -0
- data/test/TestSuite/{HTML-Reports/scripts → Scheduler/Correct}/scripts/wz_tooltip.js +0 -0
- data/test/TestSuite/Scheduler/Errors/manager_is_group.tjp +15 -0
- data/test/TestSuite/Scheduler/Errors/manager_is_self.tjp +11 -0
- data/test/TestSuite/Scheduler/Errors/resource_fail_check.tjp +12 -0
- data/test/TestSuite/Scheduler/Errors/resource_warn_check.tjp +12 -0
- data/test/TestSuite/Scheduler/Errors/task_fail_check.tjp +8 -0
- data/test/TestSuite/Scheduler/Errors/task_warn_check.tjp +8 -0
- data/test/TestSuite/Scheduler/Errors/ts_alert1_more_details.tjp +20 -0
- data/test/TestSuite/Scheduler/Errors/ts_alert2_more_details.tjp +21 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_expected_end.tjp +26 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_headline1.tjp +27 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_rem_or_end.tjp +26 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_remaining.tjp +26 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_status_work.tjp +18 -0
- data/test/TestSuite/Scheduler/Errors/ts_no_work.tjp +26 -0
- data/test/TestSuite/Scheduler/Errors/ts_res_new_task.tjp +20 -0
- data/test/TestSuite/Scheduler/Errors/ts_work_too_high.tjp +27 -0
- data/test/TestSuite/Scheduler/Errors/ts_work_too_low.tjp +27 -0
- data/test/TestSuite/StatusSheets/boss.tji +45 -0
- data/test/TestSuite/StatusSheets/boss_mail +51 -0
- data/test/TestSuite/StatusSheets/dev2_mail +37 -0
- data/test/TestSuite/StatusSheets/project.tjp +275 -0
- data/test/TestSuite/StatusSheets/run +50 -0
- data/test/TestSuite/Syntax/Correct/Include.tjp +4 -0
- data/test/TestSuite/Syntax/Correct/Limits-1.tjp +10 -1
- data/test/TestSuite/Syntax/Correct/Manager.tjp +30 -0
- data/test/TestSuite/Syntax/Correct/Niku.tjp +66 -0
- data/test/TestSuite/Syntax/Correct/TimeSheet1.tjp +83 -0
- data/test/TestSuite/Syntax/Correct/include/dir1/file2.tji +1 -0
- data/test/TestSuite/Syntax/Correct/include/dir2/file3.tji +2 -0
- data/test/TestSuite/Syntax/Correct/include/file1.tji +3 -0
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +29 -8
- data/test/TestSuite/Syntax/Errors/ts_bad_priority.tjp +19 -0
- data/test/TestSuite/Syntax/Errors/ts_default_details.tjp +22 -0
- data/test/TestSuite/Syntax/Errors/ts_default_summary.tjp +22 -0
- data/test/TestSuite/Syntax/Errors/ts_duplicate_task.tjp +23 -0
- data/test/TestSuite/Syntax/Errors/ts_end_too_early.tjp +18 -0
- data/test/TestSuite/Syntax/Errors/ts_headline_too_long.tjp +19 -0
- data/test/TestSuite/Syntax/Errors/ts_no_headline2.tjp +27 -0
- data/test/TestSuite/Syntax/Errors/ts_summary_too_long.tjp +29 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/boss_2002-03-01.tji +36 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev1_2002-03-01.tji +48 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev2_2002-03-01.tji +67 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/dev3_2002-03-01.tji +67 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/doc_2002-03-01.tji +48 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/resources.yml +31 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/2002-03-01/test_2002-03-01.tji +36 -0
- data/test/TestSuite/TimeSheets/TimeSheetTemplates/acceptable_intervals +1 -0
- data/test/TestSuite/TimeSheets/TimeSheets/2002-03-01/all.tji +1 -0
- data/test/TestSuite/TimeSheets/TimeSheets/2002-03-01/dev2_2002-03-01.tji +54 -0
- data/test/TestSuite/TimeSheets/TimeSheets/all.tji +2 -0
- data/test/TestSuite/TimeSheets/dev2_mail1 +84 -0
- data/test/TestSuite/TimeSheets/dev2_mail2 +87 -0
- data/test/TestSuite/TimeSheets/project.tjp +271 -0
- data/test/TestSuite/TimeSheets/receiver.log +102 -0
- data/test/TestSuite/TimeSheets/run +75 -0
- data/test/TestSuite/TimeSheets/sender.log +794 -0
- data/test/TestSuite/TimeSheets/summary.log +884 -0
- data/test/TestSuite/TimeSheets/timesheets.log +45 -0
- data/test/TestSuite/TimeSheets/tj3d.log +292 -0
- data/test/test_CSV-Reports.rb +5 -3
- data/test/test_RichText.rb +264 -56
- data/test/test_Scheduler.rb +1 -0
- data/test/test_TextFormatter.rb +142 -0
- data/test/test_TjTime.rb +15 -0
- metadata +816 -644
- data/benchmarks/UTF-8-Strings.rb +0 -58
- data/doc/classes/AppConfig.html +0 -880
- data/doc/classes/Arguments.html +0 -230
- data/doc/classes/Object.html +0 -229
- data/doc/classes/String.html +0 -399
- data/doc/classes/TaskJuggler/Account.html +0 -257
- data/doc/classes/TaskJuggler/AccountAttribute.html +0 -261
- data/doc/classes/TaskJuggler/AccountScenario.html +0 -218
- data/doc/classes/TaskJuggler/Allocation.html +0 -423
- data/doc/classes/TaskJuggler/AllocationAttribute.html +0 -291
- data/doc/classes/TaskJuggler/AttributeBase.html +0 -704
- data/doc/classes/TaskJuggler/AttributeDefinition.html +0 -276
- data/doc/classes/TaskJuggler/BatchProcessor.html +0 -347
- data/doc/classes/TaskJuggler/Booking.html +0 -311
- data/doc/classes/TaskJuggler/BookingListAttribute.html +0 -263
- data/doc/classes/TaskJuggler/BooleanAttribute.html +0 -261
- data/doc/classes/TaskJuggler/CSVFile.html +0 -329
- data/doc/classes/TaskJuggler/CellSettingPattern.html +0 -201
- data/doc/classes/TaskJuggler/CellSettingPatternList.html +0 -253
- data/doc/classes/TaskJuggler/Charge.html +0 -283
- data/doc/classes/TaskJuggler/ChargeListAttribute.html +0 -229
- data/doc/classes/TaskJuggler/ChargeSet.html +0 -444
- data/doc/classes/TaskJuggler/ChargeSetListAttribute.html +0 -276
- data/doc/classes/TaskJuggler/ColumnListAttribute.html +0 -231
- data/doc/classes/TaskJuggler/ColumnTable.html +0 -262
- data/doc/classes/TaskJuggler/DateAttribute.html +0 -233
- data/doc/classes/TaskJuggler/DefinitionListAttribute.html +0 -162
- data/doc/classes/TaskJuggler/DependencyListAttribute.html +0 -267
- data/doc/classes/TaskJuggler/DurationAttribute.html +0 -229
- data/doc/classes/TaskJuggler/FixnumAttribute.html +0 -194
- data/doc/classes/TaskJuggler/FlagListAttribute.html +0 -263
- data/doc/classes/TaskJuggler/FloatAttribute.html +0 -229
- data/doc/classes/TaskJuggler/FormatListAttribute.html +0 -197
- data/doc/classes/TaskJuggler/GanttChart.html +0 -696
- data/doc/classes/TaskJuggler/GanttContainer.html +0 -445
- data/doc/classes/TaskJuggler/GanttHeader.html +0 -284
- data/doc/classes/TaskJuggler/GanttHeaderScaleItem.html +0 -249
- data/doc/classes/TaskJuggler/GanttLine.html +0 -402
- data/doc/classes/TaskJuggler/GanttLoadStack.html +0 -331
- data/doc/classes/TaskJuggler/GanttMilestone.html +0 -419
- data/doc/classes/TaskJuggler/GanttRouter.html +0 -431
- data/doc/classes/TaskJuggler/GanttTaskBar.html +0 -433
- data/doc/classes/TaskJuggler/HTMLDocument.html +0 -240
- data/doc/classes/TaskJuggler/HTMLGraphics.html +0 -231
- data/doc/classes/TaskJuggler/Interval.html +0 -558
- data/doc/classes/TaskJuggler/IntervalListAttribute.html +0 -267
- data/doc/classes/TaskJuggler/JobInfo.html +0 -340
- data/doc/classes/TaskJuggler/Journal.html +0 -443
- data/doc/classes/TaskJuggler/JournalEntry.html +0 -274
- data/doc/classes/TaskJuggler/JournalEntryList.html +0 -454
- data/doc/classes/TaskJuggler/KeywordArray.html +0 -179
- data/doc/classes/TaskJuggler/KeywordDocumentation.html +0 -846
- data/doc/classes/TaskJuggler/Limits/Limit.html +0 -385
- data/doc/classes/TaskJuggler/Limits.html +0 -422
- data/doc/classes/TaskJuggler/LimitsAttribute.html +0 -261
- data/doc/classes/TaskJuggler/ListAttributeBase.html +0 -207
- data/doc/classes/TaskJuggler/Log.html +0 -655
- data/doc/classes/TaskJuggler/LogicalAttribute.html +0 -259
- data/doc/classes/TaskJuggler/LogicalExpression.html +0 -292
- data/doc/classes/TaskJuggler/LogicalExpressionAttribute.html +0 -194
- data/doc/classes/TaskJuggler/LogicalFlag.html +0 -209
- data/doc/classes/TaskJuggler/LogicalFunction.html +0 -339
- data/doc/classes/TaskJuggler/LogicalOperation.html +0 -351
- data/doc/classes/TaskJuggler/Macro.html +0 -198
- data/doc/classes/TaskJuggler/MacroParser.html +0 -360
- data/doc/classes/TaskJuggler/MacroTable.html +0 -370
- data/doc/classes/TaskJuggler/Message.html +0 -285
- data/doc/classes/TaskJuggler/MessageHandler.html +0 -231
- data/doc/classes/TaskJuggler/Navigator.html +0 -313
- data/doc/classes/TaskJuggler/NavigatorElement.html +0 -449
- data/doc/classes/TaskJuggler/OnShiftCache.html +0 -316
- data/doc/classes/TaskJuggler/Project.html +0 -2257
- data/doc/classes/TaskJuggler/ProjectFileParser.html +0 -420
- data/doc/classes/TaskJuggler/PropertyAttribute.html +0 -194
- data/doc/classes/TaskJuggler/PropertyList.html +0 -668
- data/doc/classes/TaskJuggler/PropertySet.html +0 -1286
- data/doc/classes/TaskJuggler/PropertyTreeNode.html +0 -1742
- data/doc/classes/TaskJuggler/Query.html +0 -870
- data/doc/classes/TaskJuggler/RTFNavigator.html +0 -293
- data/doc/classes/TaskJuggler/RTFQuery.html +0 -343
- data/doc/classes/TaskJuggler/RTFReport.html +0 -304
- data/doc/classes/TaskJuggler/RealFormat.html +0 -309
- data/doc/classes/TaskJuggler/RealFormatAttribute.html +0 -162
- data/doc/classes/TaskJuggler/ReferenceAttribute.html +0 -328
- data/doc/classes/TaskJuggler/RemoteServiceManager.html +0 -335
- data/doc/classes/TaskJuggler/Report.html +0 -321
- data/doc/classes/TaskJuggler/ReportBase.html +0 -437
- data/doc/classes/TaskJuggler/ReportContext.html +0 -248
- data/doc/classes/TaskJuggler/ReportServer.html +0 -320
- data/doc/classes/TaskJuggler/ReportTable.html +0 -526
- data/doc/classes/TaskJuggler/ReportTableCell.html +0 -614
- data/doc/classes/TaskJuggler/ReportTableColumn.html +0 -368
- data/doc/classes/TaskJuggler/ReportTableLegend.html +0 -347
- data/doc/classes/TaskJuggler/ReportTableLine.html +0 -481
- data/doc/classes/TaskJuggler/Resource.html +0 -211
- data/doc/classes/TaskJuggler/ResourceListAttribute.html +0 -302
- data/doc/classes/TaskJuggler/ResourceListRE.html +0 -245
- data/doc/classes/TaskJuggler/ResourceScenario.html +0 -1229
- data/doc/classes/TaskJuggler/RichText.html +0 -357
- data/doc/classes/TaskJuggler/RichTextAttribute.html +0 -293
- data/doc/classes/TaskJuggler/RichTextDocument.html +0 -424
- data/doc/classes/TaskJuggler/RichTextElement.html +0 -932
- data/doc/classes/TaskJuggler/RichTextException.html +0 -212
- data/doc/classes/TaskJuggler/RichTextFunctionExample.html +0 -301
- data/doc/classes/TaskJuggler/RichTextFunctionHandler.html +0 -245
- data/doc/classes/TaskJuggler/RichTextIntermediate.html +0 -563
- data/doc/classes/TaskJuggler/RichTextParser.html +0 -321
- data/doc/classes/TaskJuggler/RichTextScanner.html +0 -424
- data/doc/classes/TaskJuggler/RichTextSnip.html +0 -404
- data/doc/classes/TaskJuggler/RichTextSyntaxRules.html +0 -1105
- data/doc/classes/TaskJuggler/Scenario.html +0 -163
- data/doc/classes/TaskJuggler/ScenarioData.html +0 -358
- data/doc/classes/TaskJuggler/ScenarioListAttribute.html +0 -229
- data/doc/classes/TaskJuggler/Scoreboard.html +0 -642
- data/doc/classes/TaskJuggler/Shift.html +0 -255
- data/doc/classes/TaskJuggler/ShiftAssignment.html +0 -492
- data/doc/classes/TaskJuggler/ShiftAssignments.html +0 -719
- data/doc/classes/TaskJuggler/ShiftAssignmentsAttribute.html +0 -261
- data/doc/classes/TaskJuggler/ShiftScenario.html +0 -282
- data/doc/classes/TaskJuggler/SortListAttribute.html +0 -196
- data/doc/classes/TaskJuggler/SourceFileInfo.html +0 -251
- data/doc/classes/TaskJuggler/StringAttribute.html +0 -229
- data/doc/classes/TaskJuggler/SymbolAttribute.html +0 -194
- data/doc/classes/TaskJuggler/SyntaxReference.html +0 -520
- data/doc/classes/TaskJuggler/TOCEntry.html +0 -246
- data/doc/classes/TaskJuggler/TSResourceRecord.html +0 -197
- data/doc/classes/TaskJuggler/TSTaskRecord.html +0 -215
- data/doc/classes/TaskJuggler/TableColumnDefinition.html +0 -309
- data/doc/classes/TaskJuggler/TableOfContents.html +0 -260
- data/doc/classes/TaskJuggler/TableReport.html +0 -1015
- data/doc/classes/TaskJuggler/Task.html +0 -203
- data/doc/classes/TaskJuggler/TaskDependency.html +0 -255
- data/doc/classes/TaskJuggler/TaskListAttribute.html +0 -267
- data/doc/classes/TaskJuggler/TaskListRE.html +0 -245
- data/doc/classes/TaskJuggler/TaskScenario.html +0 -2543
- data/doc/classes/TaskJuggler/TextParser/Pattern.html +0 -927
- data/doc/classes/TaskJuggler/TextParser/Rule.html +0 -783
- data/doc/classes/TaskJuggler/TextParser/StackElement.html +0 -272
- data/doc/classes/TaskJuggler/TextParser/TextParserResultArray.html +0 -212
- data/doc/classes/TaskJuggler/TextParser/TokenDoc.html +0 -225
- data/doc/classes/TaskJuggler/TextParser.html +0 -754
- data/doc/classes/TaskJuggler/TextReport.html +0 -367
- data/doc/classes/TaskJuggler/TextScanner/BufferStreamHandle.html +0 -355
- data/doc/classes/TaskJuggler/TextScanner/FileStreamHandle.html +0 -348
- data/doc/classes/TaskJuggler/TextScanner/StreamHandle.html +0 -264
- data/doc/classes/TaskJuggler/TextScanner.html +0 -815
- data/doc/classes/TaskJuggler/TimeSheetReport.html +0 -406
- data/doc/classes/TaskJuggler/TjException.html +0 -185
- data/doc/classes/TaskJuggler/TjTime.html +0 -1904
- data/doc/classes/TaskJuggler/TjpExample.html +0 -314
- data/doc/classes/TaskJuggler/TjpExportRE.html +0 -306
- data/doc/classes/TaskJuggler/TjpSyntaxRules.html +0 -10812
- data/doc/classes/TaskJuggler/UserManual.html +0 -605
- data/doc/classes/TaskJuggler/WorkingHours.html +0 -586
- data/doc/classes/TaskJuggler/WorkingHoursAttribute.html +0 -252
- data/doc/classes/TaskJuggler/XMLBlob.html +0 -207
- data/doc/classes/TaskJuggler/XMLComment.html +0 -206
- data/doc/classes/TaskJuggler/XMLDocument.html +0 -298
- data/doc/classes/TaskJuggler/XMLElement.html +0 -389
- data/doc/classes/TaskJuggler/XMLNamedText.html +0 -174
- data/doc/classes/TaskJuggler/XMLText.html +0 -221
- data/doc/classes/TaskJuggler.html +0 -1573
- data/doc/files/COPYING.html +0 -448
- data/doc/files/README.html +0 -134
- data/doc/files/lib/AccountScenario_rb.html +0 -117
- data/doc/files/lib/Account_rb.html +0 -119
- data/doc/files/lib/Allocation_rb.html +0 -119
- data/doc/files/lib/AppConfig_rb.html +0 -119
- data/doc/files/lib/AttributeBase_rb.html +0 -117
- data/doc/files/lib/AttributeDefinition_rb.html +0 -107
- data/doc/files/lib/Attributes_rb.html +0 -131
- data/doc/files/lib/BatchProcessor_rb.html +0 -119
- data/doc/files/lib/Booking_rb.html +0 -107
- data/doc/files/lib/ChargeSet_rb.html +0 -117
- data/doc/files/lib/Charge_rb.html +0 -117
- data/doc/files/lib/HTMLDocument_rb.html +0 -117
- data/doc/files/lib/Interval_rb.html +0 -117
- data/doc/files/lib/Journal_rb.html +0 -107
- data/doc/files/lib/KeywordArray_rb.html +0 -107
- data/doc/files/lib/KeywordDocumentation_rb.html +0 -123
- data/doc/files/lib/Limits_rb.html +0 -117
- data/doc/files/lib/Log_rb.html +0 -117
- data/doc/files/lib/LogicalExpression_rb.html +0 -121
- data/doc/files/lib/LogicalFunction_rb.html +0 -117
- data/doc/files/lib/LogicalOperation_rb.html +0 -117
- data/doc/files/lib/MacroParser_rb.html +0 -119
- data/doc/files/lib/MacroTable_rb.html +0 -123
- data/doc/files/lib/MessageHandler_rb.html +0 -107
- data/doc/files/lib/Message_rb.html +0 -117
- data/doc/files/lib/ProjectFileParser_rb.html +0 -129
- data/doc/files/lib/Project_rb.html +0 -153
- data/doc/files/lib/PropertyList_rb.html +0 -107
- data/doc/files/lib/PropertySet_rb.html +0 -119
- data/doc/files/lib/PropertyTreeNode_rb.html +0 -107
- data/doc/files/lib/Query_rb.html +0 -117
- data/doc/files/lib/RTFNavigator_rb.html +0 -121
- data/doc/files/lib/RTFQuery_rb.html +0 -121
- data/doc/files/lib/RTFReport_rb.html +0 -119
- data/doc/files/lib/RealFormat_rb.html +0 -107
- data/doc/files/lib/RemoteServiceManager_rb.html +0 -117
- data/doc/files/lib/ReportServer_rb.html +0 -107
- data/doc/files/lib/ResourceScenario_rb.html +0 -117
- data/doc/files/lib/Resource_rb.html +0 -119
- data/doc/files/lib/RichTextDocument_rb.html +0 -121
- data/doc/files/lib/RichTextElement_rb.html +0 -121
- data/doc/files/lib/RichTextFunctionExample_rb.html +0 -121
- data/doc/files/lib/RichTextFunctionHandler_rb.html +0 -107
- data/doc/files/lib/RichTextParser_rb.html +0 -121
- data/doc/files/lib/RichTextScanner_rb.html +0 -117
- data/doc/files/lib/RichTextSnip_rb.html +0 -119
- data/doc/files/lib/RichTextSyntaxRules_rb.html +0 -107
- data/doc/files/lib/RichText_rb.html +0 -119
- data/doc/files/lib/ScenarioData_rb.html +0 -119
- data/doc/files/lib/Scenario_rb.html +0 -117
- data/doc/files/lib/Scoreboard_rb.html +0 -107
- data/doc/files/lib/ShiftAssignments_rb.html +0 -117
- data/doc/files/lib/ShiftScenario_rb.html +0 -117
- data/doc/files/lib/Shift_rb.html +0 -119
- data/doc/files/lib/SourceFileInfo_rb.html +0 -107
- data/doc/files/lib/SyntaxReference_rb.html +0 -123
- data/doc/files/lib/TOCEntry_rb.html +0 -119
- data/doc/files/lib/TableColumnDefinition_rb.html +0 -107
- data/doc/files/lib/TableOfContents_rb.html +0 -119
- data/doc/files/lib/TaskDependency_rb.html +0 -107
- data/doc/files/lib/TaskJuggler_rb.html +0 -125
- data/doc/files/lib/TaskScenario_rb.html +0 -117
- data/doc/files/lib/Task_rb.html +0 -119
- data/doc/files/lib/TextParser/Pattern_rb.html +0 -117
- data/doc/files/lib/TextParser/Rule_rb.html +0 -107
- data/doc/files/lib/TextParser/StackElement_rb.html +0 -107
- data/doc/files/lib/TextParser/TokenDoc_rb.html +0 -107
- data/doc/files/lib/TextParser_rb.html +0 -125
- data/doc/files/lib/TextScanner_rb.html +0 -129
- data/doc/files/lib/Tj3Config_rb.html +0 -119
- data/doc/files/lib/TjException_rb.html +0 -107
- data/doc/files/lib/TjTime_rb.html +0 -119
- data/doc/files/lib/TjpExample_rb.html +0 -117
- data/doc/files/lib/TjpSyntaxRules_rb.html +0 -107
- data/doc/files/lib/UTF8String_rb.html +0 -140
- data/doc/files/lib/UserManual_rb.html +0 -127
- data/doc/files/lib/WorkingHours_rb.html +0 -117
- data/doc/files/lib/XMLDocument_rb.html +0 -117
- data/doc/files/lib/XMLElement_rb.html +0 -117
- data/doc/files/lib/deep_copy_rb.html +0 -107
- data/doc/files/lib/reports/CSVFile_rb.html +0 -117
- data/doc/files/lib/reports/ColumnTable_rb.html +0 -117
- data/doc/files/lib/reports/GanttChart_rb.html +0 -123
- data/doc/files/lib/reports/GanttContainer_rb.html +0 -117
- data/doc/files/lib/reports/GanttHeaderScaleItem_rb.html +0 -107
- data/doc/files/lib/reports/GanttHeader_rb.html +0 -117
- data/doc/files/lib/reports/GanttLine_rb.html +0 -127
- data/doc/files/lib/reports/GanttLoadStack_rb.html +0 -117
- data/doc/files/lib/reports/GanttMilestone_rb.html +0 -117
- data/doc/files/lib/reports/GanttRouter_rb.html +0 -107
- data/doc/files/lib/reports/GanttTaskBar_rb.html +0 -117
- data/doc/files/lib/reports/HTMLGraphics_rb.html +0 -107
- data/doc/files/lib/reports/Navigator_rb.html +0 -117
- data/doc/files/lib/reports/ReportBase_rb.html +0 -107
- data/doc/files/lib/reports/ReportContext_rb.html +0 -107
- data/doc/files/lib/reports/ReportTableCell_rb.html +0 -107
- data/doc/files/lib/reports/ReportTableColumn_rb.html +0 -107
- data/doc/files/lib/reports/ReportTableLegend_rb.html +0 -107
- data/doc/files/lib/reports/ReportTableLine_rb.html +0 -117
- data/doc/files/lib/reports/ReportTable_rb.html +0 -119
- data/doc/files/lib/reports/Report_rb.html +0 -137
- data/doc/files/lib/reports/ResourceListRE_rb.html +0 -123
- data/doc/files/lib/reports/TableReport_rb.html +0 -125
- data/doc/files/lib/reports/TaskListRE_rb.html +0 -123
- data/doc/files/lib/reports/TextReport_rb.html +0 -117
- data/doc/files/lib/reports/TimeSheetReport_rb.html +0 -117
- data/doc/files/lib/reports/TjpExportRE_rb.html +0 -117
- data/doc/files/lib/taskjuggler3_rb.html +0 -298
- data/doc/files/lib/tj3client_rb.html +0 -280
- data/doc/files/lib/tj3man_rb.html +0 -190
- data/doc/fr_class_index.html +0 -345
- data/doc/fr_file_index.html +0 -247
- data/doc/fr_method_index.html +0 -2355
- data/doc/rdoc-style.css +0 -299
- data/lib/RemoteServiceManager.rb +0 -80
- data/lib/ReportServer.rb +0 -66
- data/test/TestSuite/HTML-Reports/Alerts.html +0 -172
- data/test/TestSuite/HTML-Reports/CellText.html +0 -758
- data/test/TestSuite/HTML-Reports/ColumnPeriods.html +0 -156
- data/test/TestSuite/HTML-Reports/IsOngoing.html +0 -172
- data/test/TestSuite/HTML-Reports/LogicalFunctions.html +0 -80
- data/test/TestSuite/HTML-Reports/Query.html +0 -31
- data/test/TestSuite/HTML-Reports/depArrows.html +0 -842
- data/test/TestSuite/Syntax/Correct/RawHTML.tjp +0 -31
- data/test/TestSuite/Syntax/Correct/icons/flag-green.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-red.png +0 -0
- data/test/TestSuite/Syntax/Correct/icons/flag-yellow.png +0 -0
- data/test/TestSuite/Syntax/Correct/scripts/wz_tooltip.js +0 -1301
- data/test/TestSuite/Syntax/Errors/export_bad_extn.tjp +0 -9
@@ -1,1742 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<title>Class: TaskJuggler::PropertyTreeNode [TaskJuggler III API documentation]</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
-
<script type="text/javascript">
|
10
|
-
// <![CDATA[
|
11
|
-
|
12
|
-
function popupCode( url ) {
|
13
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
-
}
|
15
|
-
|
16
|
-
function toggleCode( id ) {
|
17
|
-
if ( document.getElementById )
|
18
|
-
elem = document.getElementById( id );
|
19
|
-
else if ( document.all )
|
20
|
-
elem = eval( "document.all." + id );
|
21
|
-
else
|
22
|
-
return false;
|
23
|
-
|
24
|
-
elemStyle = elem.style;
|
25
|
-
|
26
|
-
if ( elemStyle.display != "block" ) {
|
27
|
-
elemStyle.display = "block"
|
28
|
-
} else {
|
29
|
-
elemStyle.display = "none"
|
30
|
-
}
|
31
|
-
|
32
|
-
return true;
|
33
|
-
}
|
34
|
-
|
35
|
-
// Make codeblocks hidden by default
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
-
|
38
|
-
// ]]>
|
39
|
-
</script>
|
40
|
-
|
41
|
-
</head>
|
42
|
-
<body>
|
43
|
-
|
44
|
-
|
45
|
-
<div id="classHeader">
|
46
|
-
<table class="header-table">
|
47
|
-
<tr class="top-aligned-row">
|
48
|
-
<td><strong>Class</strong></td>
|
49
|
-
<td class="class-name-in-header">TaskJuggler::PropertyTreeNode</td>
|
50
|
-
</tr>
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>In:</strong></td>
|
53
|
-
<td>
|
54
|
-
|
55
|
-
|
56
|
-
<a href="../../files/lib/PropertyTreeNode_rb.html">
|
57
|
-
|
58
|
-
lib/PropertyTreeNode.rb
|
59
|
-
|
60
|
-
</a>
|
61
|
-
|
62
|
-
|
63
|
-
<br />
|
64
|
-
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
|
68
|
-
|
69
|
-
<tr class="top-aligned-row">
|
70
|
-
<td><strong>Parent:</strong></td>
|
71
|
-
<td>
|
72
|
-
|
73
|
-
<a href="../Object.html">
|
74
|
-
|
75
|
-
Object
|
76
|
-
|
77
|
-
</a>
|
78
|
-
|
79
|
-
</td>
|
80
|
-
</tr>
|
81
|
-
|
82
|
-
</table>
|
83
|
-
</div>
|
84
|
-
<!-- banner header -->
|
85
|
-
|
86
|
-
<div id="bodyContent">
|
87
|
-
|
88
|
-
<div id="contextContent">
|
89
|
-
|
90
|
-
<div id="description">
|
91
|
-
<p>
|
92
|
-
This class is the base object for all <a href="Project.html">Project</a>
|
93
|
-
properties. A <a href="Project.html">Project</a> property is a e. g. a <a
|
94
|
-
href="Task.html">Task</a>, a <a href="Resource.html">Resource</a> or other
|
95
|
-
objects. Such properties can be arranged in tree form by assigning child
|
96
|
-
properties to an existing property. The parent object needs to exist at
|
97
|
-
object creation time. The <a
|
98
|
-
href="PropertyTreeNode.html">PropertyTreeNode</a> class holds all data and
|
99
|
-
methods that are common to the different types of properties. Each property
|
100
|
-
can have a set of predifined attributes. The <a
|
101
|
-
href="PropertySet.html">PropertySet</a> class holds collections of the same
|
102
|
-
<a href="PropertyTreeNode.html">PropertyTreeNode</a> objects and the
|
103
|
-
defined attributes. Each <a href="PropertySet.html">PropertySet</a> has a
|
104
|
-
predefined set of attributes, but the attribute set can be extended by the
|
105
|
-
user. E.g. a task has the predefined attribute ‘start’ and
|
106
|
-
‘end’ date. The user can extend tasks with a user defined
|
107
|
-
attribute like an URL that contains more details about the task.
|
108
|
-
</p>
|
109
|
-
|
110
|
-
</div>
|
111
|
-
|
112
|
-
</div>
|
113
|
-
|
114
|
-
|
115
|
-
<div id="method-list">
|
116
|
-
<h3 class="section-bar">Methods</h3>
|
117
|
-
|
118
|
-
<div class="name-list">
|
119
|
-
|
120
|
-
<a href="#M000616">[]</a>
|
121
|
-
|
122
|
-
<a href="#M000615">[]=</a>
|
123
|
-
|
124
|
-
<a href="#M000604">addChild</a>
|
125
|
-
|
126
|
-
<a href="#M000596">all</a>
|
127
|
-
|
128
|
-
<a href="#M000597">allLeaves</a>
|
129
|
-
|
130
|
-
<a href="#M000610">attributeDefinition</a>
|
131
|
-
|
132
|
-
<a href="#M000607">container?</a>
|
133
|
-
|
134
|
-
<a href="#M000609">declareAttribute</a>
|
135
|
-
|
136
|
-
<a href="#M000592">deep_clone</a>
|
137
|
-
|
138
|
-
<a href="#M000598">eachAttribute</a>
|
139
|
-
|
140
|
-
<a href="#M000599">eachScenarioAttribute</a>
|
141
|
-
|
142
|
-
<a href="#M000600">fullId</a>
|
143
|
-
|
144
|
-
<a href="#M000611">get</a>
|
145
|
-
|
146
|
-
<a href="#M000612">getAttr</a>
|
147
|
-
|
148
|
-
<a href="#M000613">getAttribute</a>
|
149
|
-
|
150
|
-
<a href="#M000603">getIndicies</a>
|
151
|
-
|
152
|
-
<a href="#M000602">getWBSIndicies</a>
|
153
|
-
|
154
|
-
<a href="#M000594">inheritAttributes</a>
|
155
|
-
|
156
|
-
<a href="#M000595">inheritAttributesFromScenario</a>
|
157
|
-
|
158
|
-
<a href="#M000618">inherited</a>
|
159
|
-
|
160
|
-
<a href="#M000605">isChildOf?</a>
|
161
|
-
|
162
|
-
<a href="#M000606">leaf?</a>
|
163
|
-
|
164
|
-
<a href="#M000601">level</a>
|
165
|
-
|
166
|
-
<a href="#M000593">levelSeqNo</a>
|
167
|
-
|
168
|
-
<a href="#M000624">method_missing</a>
|
169
|
-
|
170
|
-
<a href="#M000619">modified?</a>
|
171
|
-
|
172
|
-
<a href="#M000591">new</a>
|
173
|
-
|
174
|
-
<a href="#M000617">provided</a>
|
175
|
-
|
176
|
-
<a href="#M000620">query_alert</a>
|
177
|
-
|
178
|
-
<a href="#M000622">query_alertmessage</a>
|
179
|
-
|
180
|
-
<a href="#M000621">query_alertsummary</a>
|
181
|
-
|
182
|
-
<a href="#M000623">query_alerttrend</a>
|
183
|
-
|
184
|
-
<a href="#M000608">root</a>
|
185
|
-
|
186
|
-
<a href="#M000614">set</a>
|
187
|
-
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
|
193
|
-
<!-- if includes -->
|
194
|
-
|
195
|
-
<div id="section">
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<div id="attribute-list">
|
200
|
-
<h3 class="section-bar">Attributes</h3>
|
201
|
-
|
202
|
-
<div class="name-list">
|
203
|
-
<table>
|
204
|
-
|
205
|
-
<tr class="top-aligned-row context-row">
|
206
|
-
<td class="context-item-name">children</td>
|
207
|
-
|
208
|
-
<td class="context-item-value"> [R] </td>
|
209
|
-
|
210
|
-
<td class="context-item-desc"></td>
|
211
|
-
</tr>
|
212
|
-
|
213
|
-
<tr class="top-aligned-row context-row">
|
214
|
-
<td class="context-item-name">data</td>
|
215
|
-
|
216
|
-
<td class="context-item-value"> [R] </td>
|
217
|
-
|
218
|
-
<td class="context-item-desc"></td>
|
219
|
-
</tr>
|
220
|
-
|
221
|
-
<tr class="top-aligned-row context-row">
|
222
|
-
<td class="context-item-name">id</td>
|
223
|
-
|
224
|
-
<td class="context-item-value"> [R] </td>
|
225
|
-
|
226
|
-
<td class="context-item-desc"></td>
|
227
|
-
</tr>
|
228
|
-
|
229
|
-
<tr class="top-aligned-row context-row">
|
230
|
-
<td class="context-item-name">name</td>
|
231
|
-
|
232
|
-
<td class="context-item-value"> [R] </td>
|
233
|
-
|
234
|
-
<td class="context-item-desc"></td>
|
235
|
-
</tr>
|
236
|
-
|
237
|
-
<tr class="top-aligned-row context-row">
|
238
|
-
<td class="context-item-name">parent</td>
|
239
|
-
|
240
|
-
<td class="context-item-value"> [R] </td>
|
241
|
-
|
242
|
-
<td class="context-item-desc"></td>
|
243
|
-
</tr>
|
244
|
-
|
245
|
-
<tr class="top-aligned-row context-row">
|
246
|
-
<td class="context-item-name">project</td>
|
247
|
-
|
248
|
-
<td class="context-item-value"> [R] </td>
|
249
|
-
|
250
|
-
<td class="context-item-desc"></td>
|
251
|
-
</tr>
|
252
|
-
|
253
|
-
<tr class="top-aligned-row context-row">
|
254
|
-
<td class="context-item-name">propertySet</td>
|
255
|
-
|
256
|
-
<td class="context-item-value"> [R] </td>
|
257
|
-
|
258
|
-
<td class="context-item-desc"></td>
|
259
|
-
</tr>
|
260
|
-
|
261
|
-
<tr class="top-aligned-row context-row">
|
262
|
-
<td class="context-item-name">sequenceNo</td>
|
263
|
-
|
264
|
-
<td class="context-item-value"> [R] </td>
|
265
|
-
|
266
|
-
<td class="context-item-desc"></td>
|
267
|
-
</tr>
|
268
|
-
|
269
|
-
<tr class="top-aligned-row context-row">
|
270
|
-
<td class="context-item-name">sourceFileInfo</td>
|
271
|
-
|
272
|
-
<td class="context-item-value"> [RW] </td>
|
273
|
-
|
274
|
-
<td class="context-item-desc"></td>
|
275
|
-
</tr>
|
276
|
-
|
277
|
-
</table>
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
|
282
|
-
<!-- if method_list -->
|
283
|
-
|
284
|
-
<div id="methods">
|
285
|
-
|
286
|
-
<h3 class="section-bar">Public Class methods</h3>
|
287
|
-
|
288
|
-
|
289
|
-
<div id="method-M000591" class="method-detail">
|
290
|
-
<a name="M000591"></a>
|
291
|
-
|
292
|
-
<div class="method-heading">
|
293
|
-
|
294
|
-
<a href="#M000591" class="method-signature">
|
295
|
-
|
296
|
-
<span class="method-name">new</span><span class="method-args">(propertySet, id, name, parent)</span>
|
297
|
-
|
298
|
-
</a>
|
299
|
-
|
300
|
-
</div>
|
301
|
-
|
302
|
-
<div class="method-description">
|
303
|
-
|
304
|
-
<p>
|
305
|
-
Create a new <a href="PropertyTreeNode.html">PropertyTreeNode</a> object.
|
306
|
-
<em>propertySet</em> is the <a href="PropertySet.html">PropertySet</a> that
|
307
|
-
this <a href="PropertyTreeNode.html">PropertyTreeNode</a> object belongs
|
308
|
-
to. The <a href="PropertySet.html">PropertySet</a> determines the
|
309
|
-
attributes that are common to all Nodes in the set. <em>id</em> is a <a
|
310
|
-
href="../String.html">String</a> that is unique in the namespace of the
|
311
|
-
set. <em>name</em> is a user readable, short description of the object.
|
312
|
-
<em>parent</em> is the <a href="PropertyTreeNode.html">PropertyTreeNode</a>
|
313
|
-
that sits above this node in the object hierachy. A root object has a
|
314
|
-
<em>parent</em> of nil. For sets with hierachical name spaces, parent can
|
315
|
-
be nil and specified by a hierachical <em>id</em> (e. g.
|
316
|
-
‘father.son’).
|
317
|
-
</p>
|
318
|
-
|
319
|
-
<p><a class="source-toggle" href="#"
|
320
|
-
onclick="toggleCode('M000591-source');return false;">[Source]</a></p>
|
321
|
-
<div class="method-source-code" id="M000591-source">
|
322
|
-
<pre>
|
323
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 42</span>
|
324
|
-
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">propertySet</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">parent</span>)
|
325
|
-
43: <span class="ruby-ivar">@propertySet</span> = <span class="ruby-identifier">propertySet</span>
|
326
|
-
44: <span class="ruby-comment cmt"># If _id_ is still nil, we generate a unique id.</span>
|
327
|
-
45: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">id</span>
|
328
|
-
46: <span class="ruby-identifier">tag</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/TaskJuggler::/</span>, <span class="ruby-value str">''</span>)
|
329
|
-
47: <span class="ruby-identifier">id</span> = <span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">tag</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'_'</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">propertySet</span>.<span class="ruby-identifier">items</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>).<span class="ruby-identifier">to_s</span>
|
330
|
-
48: <span class="ruby-identifier">id</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">fullId</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">id</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">flatNamespace</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">parent</span>
|
331
|
-
49: <span class="ruby-keyword kw">end</span>
|
332
|
-
50: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">flatNamespace</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'.'</span>)
|
333
|
-
51: <span class="ruby-identifier">parentId</span> = <span class="ruby-identifier">id</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span>(<span class="ruby-identifier">id</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-value str">'.'</span>) <span class="ruby-operator">-</span> <span class="ruby-value">1</span>)]
|
334
|
-
52: <span class="ruby-comment cmt"># Set parent to the parent property if it's still nil.</span>
|
335
|
-
53: <span class="ruby-identifier">parent</span> = <span class="ruby-ivar">@propertySet</span>[<span class="ruby-identifier">parentId</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">parent</span>
|
336
|
-
54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
|
337
|
-
55: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">parent</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@propertySet</span>[<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">fullId</span>]
|
338
|
-
56: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Fatal Error: parent must be member of same property set"</span>
|
339
|
-
57: <span class="ruby-keyword kw">end</span>
|
340
|
-
58: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parentId</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">fullId</span>
|
341
|
-
59: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Fatal Error: parent (#{parent.fullId}) and parent ID "</span> <span class="ruby-operator">+</span>
|
342
|
-
60: <span class="ruby-node">"(#{parentId}) don't match"</span>
|
343
|
-
61: <span class="ruby-keyword kw">end</span>
|
344
|
-
62: <span class="ruby-keyword kw">end</span>
|
345
|
-
63: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>[(<span class="ruby-identifier">id</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-value str">'.'</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>)<span class="ruby-operator">..</span> <span class="ruby-value">-1</span>]
|
346
|
-
64: <span class="ruby-keyword kw">else</span>
|
347
|
-
65: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
348
|
-
66: <span class="ruby-keyword kw">end</span>
|
349
|
-
67: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
350
|
-
68: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">propertySet</span>.<span class="ruby-identifier">project</span>
|
351
|
-
69: <span class="ruby-ivar">@level</span> = <span class="ruby-value">-1</span>
|
352
|
-
70: <span class="ruby-ivar">@sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>
|
353
|
-
71:
|
354
|
-
72: <span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
355
|
-
73: <span class="ruby-ivar">@sequenceNo</span> = <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">items</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
356
|
-
74: <span class="ruby-ivar">@children</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
357
|
-
75: <span class="ruby-comment cmt"># In case we have a parent object, we register this object as child of</span>
|
358
|
-
76: <span class="ruby-comment cmt"># the parent.</span>
|
359
|
-
77: <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@parent</span>)
|
360
|
-
78: <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">addChild</span>(<span class="ruby-keyword kw">self</span>)
|
361
|
-
79: <span class="ruby-keyword kw">end</span>
|
362
|
-
80:
|
363
|
-
81: <span class="ruby-ivar">@attributes</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
364
|
-
82: <span class="ruby-ivar">@scenarioAttributes</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@project</span>.<span class="ruby-identifier">scenarioCount</span>)
|
365
|
-
83: <span class="ruby-ivar">@scenarioAttributes</span>.<span class="ruby-identifier">collect!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">sca</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sca</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> }
|
366
|
-
84:
|
367
|
-
85: <span class="ruby-comment cmt"># Scenario specific data</span>
|
368
|
-
86: <span class="ruby-ivar">@data</span> = <span class="ruby-keyword kw">nil</span>
|
369
|
-
87: <span class="ruby-keyword kw">end</span>
|
370
|
-
</pre>
|
371
|
-
</div>
|
372
|
-
|
373
|
-
</div>
|
374
|
-
</div>
|
375
|
-
|
376
|
-
|
377
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
378
|
-
|
379
|
-
|
380
|
-
<div id="method-M000616" class="method-detail">
|
381
|
-
<a name="M000616"></a>
|
382
|
-
|
383
|
-
<div class="method-heading">
|
384
|
-
|
385
|
-
<a href="#M000616" class="method-signature">
|
386
|
-
|
387
|
-
<span class="method-name">[]</span><span class="method-args">(attributeId, scenario)</span>
|
388
|
-
|
389
|
-
</a>
|
390
|
-
|
391
|
-
</div>
|
392
|
-
|
393
|
-
<div class="method-description">
|
394
|
-
|
395
|
-
<p>
|
396
|
-
Return the value of the attribute with ID <em>attributeId</em>. For
|
397
|
-
scenario-specific attributes, <em>scenario</em> must indicate the index of
|
398
|
-
the <a href="Scenario.html">Scenario</a>.
|
399
|
-
</p>
|
400
|
-
|
401
|
-
<p><a class="source-toggle" href="#"
|
402
|
-
onclick="toggleCode('M000616-source');return false;">[Source]</a></p>
|
403
|
-
<div class="method-source-code" id="M000616-source">
|
404
|
-
<pre>
|
405
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 406</span>
|
406
|
-
406: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenario</span>)
|
407
|
-
407: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>].<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attributeId</span>)
|
408
|
-
408: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">get</span>
|
409
|
-
409: <span class="ruby-keyword kw">else</span>
|
410
|
-
410: <span class="ruby-identifier">get</span>(<span class="ruby-identifier">attributeId</span>);
|
411
|
-
411: <span class="ruby-keyword kw">end</span>
|
412
|
-
412: <span class="ruby-keyword kw">end</span>
|
413
|
-
</pre>
|
414
|
-
</div>
|
415
|
-
|
416
|
-
</div>
|
417
|
-
</div>
|
418
|
-
|
419
|
-
|
420
|
-
<div id="method-M000615" class="method-detail">
|
421
|
-
<a name="M000615"></a>
|
422
|
-
|
423
|
-
<div class="method-heading">
|
424
|
-
|
425
|
-
<a href="#M000615" class="method-signature">
|
426
|
-
|
427
|
-
<span class="method-name">[]=</span><span class="method-args">(attributeId, scenario, value)</span>
|
428
|
-
|
429
|
-
</a>
|
430
|
-
|
431
|
-
</div>
|
432
|
-
|
433
|
-
<div class="method-description">
|
434
|
-
|
435
|
-
<p>
|
436
|
-
Set the scenario specific attribute with ID <em>attributeId</em> for the
|
437
|
-
scenario with index <em>scenario</em> to <em>value</em>. In case the
|
438
|
-
attribute does not exist, an exception is raised.
|
439
|
-
</p>
|
440
|
-
|
441
|
-
<p><a class="source-toggle" href="#"
|
442
|
-
onclick="toggleCode('M000615-source');return false;">[Source]</a></p>
|
443
|
-
<div class="method-source-code" id="M000615-source">
|
444
|
-
<pre>
|
445
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 392</span>
|
446
|
-
392: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenario</span>, <span class="ruby-identifier">value</span>)
|
447
|
-
393: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>].<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attributeId</span>)
|
448
|
-
394: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
449
|
-
395: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attributeId</span>)
|
450
|
-
396: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
451
|
-
397: <span class="ruby-keyword kw">else</span>
|
452
|
-
398: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>, <span class="ruby-node">"Unknown attribute #{attributeId}"</span>
|
453
|
-
399: <span class="ruby-keyword kw">end</span>
|
454
|
-
400: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
455
|
-
401: <span class="ruby-keyword kw">end</span>
|
456
|
-
</pre>
|
457
|
-
</div>
|
458
|
-
|
459
|
-
</div>
|
460
|
-
</div>
|
461
|
-
|
462
|
-
|
463
|
-
<div id="method-M000604" class="method-detail">
|
464
|
-
<a name="M000604"></a>
|
465
|
-
|
466
|
-
<div class="method-heading">
|
467
|
-
|
468
|
-
<a href="#M000604" class="method-signature">
|
469
|
-
|
470
|
-
<span class="method-name">addChild</span><span class="method-args">(child)</span>
|
471
|
-
|
472
|
-
</a>
|
473
|
-
|
474
|
-
</div>
|
475
|
-
|
476
|
-
<div class="method-description">
|
477
|
-
|
478
|
-
<p>
|
479
|
-
Add <em>child</em> node as child to this node.
|
480
|
-
</p>
|
481
|
-
|
482
|
-
<p><a class="source-toggle" href="#"
|
483
|
-
onclick="toggleCode('M000604-source');return false;">[Source]</a></p>
|
484
|
-
<div class="method-source-code" id="M000604-source">
|
485
|
-
<pre>
|
486
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 269</span>
|
487
|
-
269: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addChild</span>(<span class="ruby-identifier">child</span>)
|
488
|
-
270: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">child</span>.<span class="ruby-identifier">propertySet</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@propertySet</span>
|
489
|
-
271: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Child nodes must belong to the same property set as the parent"</span>
|
490
|
-
272: <span class="ruby-keyword kw">end</span>
|
491
|
-
273: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">child</span>)
|
492
|
-
274: <span class="ruby-keyword kw">end</span>
|
493
|
-
</pre>
|
494
|
-
</div>
|
495
|
-
|
496
|
-
</div>
|
497
|
-
</div>
|
498
|
-
|
499
|
-
|
500
|
-
<div id="method-M000596" class="method-detail">
|
501
|
-
<a name="M000596"></a>
|
502
|
-
|
503
|
-
<div class="method-heading">
|
504
|
-
|
505
|
-
<a href="#M000596" class="method-signature">
|
506
|
-
|
507
|
-
<span class="method-name">all</span><span class="method-args">()</span>
|
508
|
-
|
509
|
-
</a>
|
510
|
-
|
511
|
-
</div>
|
512
|
-
|
513
|
-
<div class="method-description">
|
514
|
-
|
515
|
-
<p>
|
516
|
-
Returns a list of this node and all transient sub nodes.
|
517
|
-
</p>
|
518
|
-
|
519
|
-
<p><a class="source-toggle" href="#"
|
520
|
-
onclick="toggleCode('M000596-source');return false;">[Source]</a></p>
|
521
|
-
<div class="method-source-code" id="M000596-source">
|
522
|
-
<pre>
|
523
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 177</span>
|
524
|
-
177: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all</span>
|
525
|
-
178: <span class="ruby-identifier">res</span> = [ <span class="ruby-keyword kw">self</span> ]
|
526
|
-
179: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
527
|
-
180: <span class="ruby-identifier">res</span> = <span class="ruby-identifier">res</span>.<span class="ruby-identifier">concat</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">all</span>)
|
528
|
-
181: <span class="ruby-keyword kw">end</span>
|
529
|
-
182: <span class="ruby-identifier">res</span>
|
530
|
-
183: <span class="ruby-keyword kw">end</span>
|
531
|
-
</pre>
|
532
|
-
</div>
|
533
|
-
|
534
|
-
</div>
|
535
|
-
</div>
|
536
|
-
|
537
|
-
|
538
|
-
<div id="method-M000597" class="method-detail">
|
539
|
-
<a name="M000597"></a>
|
540
|
-
|
541
|
-
<div class="method-heading">
|
542
|
-
|
543
|
-
<a href="#M000597" class="method-signature">
|
544
|
-
|
545
|
-
<span class="method-name">allLeaves</span><span class="method-args">()</span>
|
546
|
-
|
547
|
-
</a>
|
548
|
-
|
549
|
-
</div>
|
550
|
-
|
551
|
-
<div class="method-description">
|
552
|
-
|
553
|
-
<p>
|
554
|
-
Return a list of all leaf nodes of this node.
|
555
|
-
</p>
|
556
|
-
|
557
|
-
<p><a class="source-toggle" href="#"
|
558
|
-
onclick="toggleCode('M000597-source');return false;">[Source]</a></p>
|
559
|
-
<div class="method-source-code" id="M000597-source">
|
560
|
-
<pre>
|
561
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 186</span>
|
562
|
-
186: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allLeaves</span>
|
563
|
-
187: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf?</span>
|
564
|
-
188: <span class="ruby-identifier">res</span> = [ <span class="ruby-keyword kw">self</span> ]
|
565
|
-
189: <span class="ruby-keyword kw">else</span>
|
566
|
-
190: <span class="ruby-identifier">res</span> = []
|
567
|
-
191: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
568
|
-
192: <span class="ruby-identifier">res</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">allLeaves</span>
|
569
|
-
193: <span class="ruby-keyword kw">end</span>
|
570
|
-
194: <span class="ruby-keyword kw">end</span>
|
571
|
-
195: <span class="ruby-identifier">res</span>
|
572
|
-
196: <span class="ruby-keyword kw">end</span>
|
573
|
-
</pre>
|
574
|
-
</div>
|
575
|
-
|
576
|
-
</div>
|
577
|
-
</div>
|
578
|
-
|
579
|
-
|
580
|
-
<div id="method-M000610" class="method-detail">
|
581
|
-
<a name="M000610"></a>
|
582
|
-
|
583
|
-
<div class="method-heading">
|
584
|
-
|
585
|
-
<a href="#M000610" class="method-signature">
|
586
|
-
|
587
|
-
<span class="method-name">attributeDefinition</span><span class="method-args">(attributeId)</span>
|
588
|
-
|
589
|
-
</a>
|
590
|
-
|
591
|
-
</div>
|
592
|
-
|
593
|
-
<div class="method-description">
|
594
|
-
|
595
|
-
<p>
|
596
|
-
Return the type of the attribute with ID <em>attributeId</em>.
|
597
|
-
</p>
|
598
|
-
|
599
|
-
<p><a class="source-toggle" href="#"
|
600
|
-
onclick="toggleCode('M000610-source');return false;">[Source]</a></p>
|
601
|
-
<div class="method-source-code" id="M000610-source">
|
602
|
-
<pre>
|
603
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 319</span>
|
604
|
-
319: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeDefinition</span>(<span class="ruby-identifier">attributeId</span>)
|
605
|
-
320: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">attributeDefinitions</span>[<span class="ruby-identifier">attributeId</span>]
|
606
|
-
321: <span class="ruby-keyword kw">end</span>
|
607
|
-
</pre>
|
608
|
-
</div>
|
609
|
-
|
610
|
-
</div>
|
611
|
-
</div>
|
612
|
-
|
613
|
-
|
614
|
-
<div id="method-M000607" class="method-detail">
|
615
|
-
<a name="M000607"></a>
|
616
|
-
|
617
|
-
<div class="method-heading">
|
618
|
-
|
619
|
-
<a href="#M000607" class="method-signature">
|
620
|
-
|
621
|
-
<span class="method-name">container?</span><span class="method-args">()</span>
|
622
|
-
|
623
|
-
</a>
|
624
|
-
|
625
|
-
</div>
|
626
|
-
|
627
|
-
<div class="method-description">
|
628
|
-
|
629
|
-
<p>
|
630
|
-
Return true if the node has children.
|
631
|
-
</p>
|
632
|
-
|
633
|
-
<p><a class="source-toggle" href="#"
|
634
|
-
onclick="toggleCode('M000607-source');return false;">[Source]</a></p>
|
635
|
-
<div class="method-source-code" id="M000607-source">
|
636
|
-
<pre>
|
637
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 291</span>
|
638
|
-
291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">container?</span>
|
639
|
-
292: <span class="ruby-operator">!</span><span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span>
|
640
|
-
293: <span class="ruby-keyword kw">end</span>
|
641
|
-
</pre>
|
642
|
-
</div>
|
643
|
-
|
644
|
-
</div>
|
645
|
-
</div>
|
646
|
-
|
647
|
-
|
648
|
-
<div id="method-M000609" class="method-detail">
|
649
|
-
<a name="M000609"></a>
|
650
|
-
|
651
|
-
<div class="method-heading">
|
652
|
-
|
653
|
-
<a href="#M000609" class="method-signature">
|
654
|
-
|
655
|
-
<span class="method-name">declareAttribute</span><span class="method-args">(attributeType)</span>
|
656
|
-
|
657
|
-
</a>
|
658
|
-
|
659
|
-
</div>
|
660
|
-
|
661
|
-
<div class="method-description">
|
662
|
-
|
663
|
-
<p>
|
664
|
-
Register a new attribute with the <a
|
665
|
-
href="PropertyTreeNode.html">PropertyTreeNode</a> and create the instances
|
666
|
-
for each scenario.
|
667
|
-
</p>
|
668
|
-
|
669
|
-
<p><a class="source-toggle" href="#"
|
670
|
-
onclick="toggleCode('M000609-source');return false;">[Source]</a></p>
|
671
|
-
<div class="method-source-code" id="M000609-source">
|
672
|
-
<pre>
|
673
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 306</span>
|
674
|
-
306: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">declareAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
675
|
-
307: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attributeType</span>.<span class="ruby-identifier">scenarioSpecific</span>
|
676
|
-
308: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">scenarioCount</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
677
|
-
309: <span class="ruby-identifier">attribute</span> = <span class="ruby-identifier">newAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
678
|
-
310: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">i</span>][<span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">attribute</span>
|
679
|
-
311: <span class="ruby-keyword kw">end</span>
|
680
|
-
312: <span class="ruby-keyword kw">else</span>
|
681
|
-
313: <span class="ruby-identifier">attribute</span> = <span class="ruby-identifier">newAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
682
|
-
314: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">attribute</span>
|
683
|
-
315: <span class="ruby-keyword kw">end</span>
|
684
|
-
316: <span class="ruby-keyword kw">end</span>
|
685
|
-
</pre>
|
686
|
-
</div>
|
687
|
-
|
688
|
-
</div>
|
689
|
-
</div>
|
690
|
-
|
691
|
-
|
692
|
-
<div id="method-M000592" class="method-detail">
|
693
|
-
<a name="M000592"></a>
|
694
|
-
|
695
|
-
<div class="method-heading">
|
696
|
-
|
697
|
-
<a href="#M000592" class="method-signature">
|
698
|
-
|
699
|
-
<span class="method-name">deep_clone</span><span class="method-args">()</span>
|
700
|
-
|
701
|
-
</a>
|
702
|
-
|
703
|
-
</div>
|
704
|
-
|
705
|
-
<div class="method-description">
|
706
|
-
|
707
|
-
<p>
|
708
|
-
We only use <a href="PropertyTreeNode.html#M000592">deep_clone</a> for
|
709
|
-
attributes, never for properties. Since attributes may reference properties
|
710
|
-
these references should remain references.
|
711
|
-
</p>
|
712
|
-
|
713
|
-
<p><a class="source-toggle" href="#"
|
714
|
-
onclick="toggleCode('M000592-source');return false;">[Source]</a></p>
|
715
|
-
<div class="method-source-code" id="M000592-source">
|
716
|
-
<pre>
|
717
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 92</span>
|
718
|
-
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_clone</span>
|
719
|
-
93: <span class="ruby-keyword kw">self</span>
|
720
|
-
94: <span class="ruby-keyword kw">end</span>
|
721
|
-
</pre>
|
722
|
-
</div>
|
723
|
-
|
724
|
-
</div>
|
725
|
-
</div>
|
726
|
-
|
727
|
-
|
728
|
-
<div id="method-M000598" class="method-detail">
|
729
|
-
<a name="M000598"></a>
|
730
|
-
|
731
|
-
<div class="method-heading">
|
732
|
-
|
733
|
-
<a href="#M000598" class="method-signature">
|
734
|
-
|
735
|
-
<span class="method-name">eachAttribute</span><span class="method-args">() {|attr| ...}</span>
|
736
|
-
|
737
|
-
</a>
|
738
|
-
|
739
|
-
</div>
|
740
|
-
|
741
|
-
<div class="method-description">
|
742
|
-
|
743
|
-
<p>
|
744
|
-
Iterator over all non-scenario-specific attributes of this node.
|
745
|
-
</p>
|
746
|
-
|
747
|
-
<p><a class="source-toggle" href="#"
|
748
|
-
onclick="toggleCode('M000598-source');return false;">[Source]</a></p>
|
749
|
-
<div class="method-source-code" id="M000598-source">
|
750
|
-
<pre>
|
751
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 199</span>
|
752
|
-
199: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachAttribute</span>
|
753
|
-
200: <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
754
|
-
201: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">attr</span>
|
755
|
-
202: <span class="ruby-keyword kw">end</span>
|
756
|
-
203: <span class="ruby-keyword kw">end</span>
|
757
|
-
</pre>
|
758
|
-
</div>
|
759
|
-
|
760
|
-
</div>
|
761
|
-
</div>
|
762
|
-
|
763
|
-
|
764
|
-
<div id="method-M000599" class="method-detail">
|
765
|
-
<a name="M000599"></a>
|
766
|
-
|
767
|
-
<div class="method-heading">
|
768
|
-
|
769
|
-
<a href="#M000599" class="method-signature">
|
770
|
-
|
771
|
-
<span class="method-name">eachScenarioAttribute</span><span class="method-args">(scenario) {|attr| ...}</span>
|
772
|
-
|
773
|
-
</a>
|
774
|
-
|
775
|
-
</div>
|
776
|
-
|
777
|
-
<div class="method-description">
|
778
|
-
|
779
|
-
<p>
|
780
|
-
Iterator over all scenario-specific attributes of this node.
|
781
|
-
</p>
|
782
|
-
|
783
|
-
<p><a class="source-toggle" href="#"
|
784
|
-
onclick="toggleCode('M000599-source');return false;">[Source]</a></p>
|
785
|
-
<div class="method-source-code" id="M000599-source">
|
786
|
-
<pre>
|
787
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 206</span>
|
788
|
-
206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachScenarioAttribute</span>(<span class="ruby-identifier">scenario</span>)
|
789
|
-
207: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>].<span class="ruby-identifier">each_value</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
790
|
-
208: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">attr</span>
|
791
|
-
209: <span class="ruby-keyword kw">end</span>
|
792
|
-
210: <span class="ruby-keyword kw">end</span>
|
793
|
-
</pre>
|
794
|
-
</div>
|
795
|
-
|
796
|
-
</div>
|
797
|
-
</div>
|
798
|
-
|
799
|
-
|
800
|
-
<div id="method-M000600" class="method-detail">
|
801
|
-
<a name="M000600"></a>
|
802
|
-
|
803
|
-
<div class="method-heading">
|
804
|
-
|
805
|
-
<a href="#M000600" class="method-signature">
|
806
|
-
|
807
|
-
<span class="method-name">fullId</span><span class="method-args">()</span>
|
808
|
-
|
809
|
-
</a>
|
810
|
-
|
811
|
-
</div>
|
812
|
-
|
813
|
-
<div class="method-description">
|
814
|
-
|
815
|
-
<p>
|
816
|
-
Return the full id of this node. For <a
|
817
|
-
href="PropertySet.html">PropertySet</a> objects with a flat namespace, this
|
818
|
-
is just the ID. Otherwise, the full ID is composed of all IDs from the root
|
819
|
-
node to this node, separating the IDs by a dot.
|
820
|
-
</p>
|
821
|
-
|
822
|
-
<p><a class="source-toggle" href="#"
|
823
|
-
onclick="toggleCode('M000600-source');return false;">[Source]</a></p>
|
824
|
-
<div class="method-source-code" id="M000600-source">
|
825
|
-
<pre>
|
826
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 215</span>
|
827
|
-
215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fullId</span>
|
828
|
-
216: <span class="ruby-identifier">res</span> = <span class="ruby-ivar">@id</span>
|
829
|
-
217: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">flatNamespace</span>
|
830
|
-
218: <span class="ruby-identifier">t</span> = <span class="ruby-keyword kw">self</span>
|
831
|
-
219: <span class="ruby-keyword kw">until</span> (<span class="ruby-identifier">t</span> = <span class="ruby-identifier">t</span>.<span class="ruby-identifier">parent</span>).<span class="ruby-identifier">nil?</span>
|
832
|
-
220: <span class="ruby-identifier">res</span> = <span class="ruby-identifier">t</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"."</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">res</span>
|
833
|
-
221: <span class="ruby-keyword kw">end</span>
|
834
|
-
222: <span class="ruby-keyword kw">end</span>
|
835
|
-
223: <span class="ruby-identifier">res</span>
|
836
|
-
224: <span class="ruby-keyword kw">end</span>
|
837
|
-
</pre>
|
838
|
-
</div>
|
839
|
-
|
840
|
-
</div>
|
841
|
-
</div>
|
842
|
-
|
843
|
-
|
844
|
-
<div id="method-M000611" class="method-detail">
|
845
|
-
<a name="M000611"></a>
|
846
|
-
|
847
|
-
<div class="method-heading">
|
848
|
-
|
849
|
-
<a href="#M000611" class="method-signature">
|
850
|
-
|
851
|
-
<span class="method-name">get</span><span class="method-args">(attributeId)</span>
|
852
|
-
|
853
|
-
</a>
|
854
|
-
|
855
|
-
</div>
|
856
|
-
|
857
|
-
<div class="method-description">
|
858
|
-
|
859
|
-
<p>
|
860
|
-
Return the value of the non-scenario-specific attribute with ID
|
861
|
-
<em>attributeId</em>. In case the attribute does not exist, an exception is
|
862
|
-
raised.
|
863
|
-
</p>
|
864
|
-
|
865
|
-
<p><a class="source-toggle" href="#"
|
866
|
-
onclick="toggleCode('M000611-source');return false;">[Source]</a></p>
|
867
|
-
<div class="method-source-code" id="M000611-source">
|
868
|
-
<pre>
|
869
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 326</span>
|
870
|
-
326: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">attributeId</span>)
|
871
|
-
327: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
872
|
-
328: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
873
|
-
329: <span class="ruby-ivar">@id</span>
|
874
|
-
330: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
875
|
-
331: <span class="ruby-ivar">@name</span>
|
876
|
-
332: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
877
|
-
333: <span class="ruby-ivar">@sequenceNo</span>
|
878
|
-
334: <span class="ruby-keyword kw">else</span>
|
879
|
-
335: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attributeId</span>)
|
880
|
-
336: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>,
|
881
|
-
337: <span class="ruby-node">"Unknown attribute '#{attributeId}' requested for "</span> <span class="ruby-operator">+</span>
|
882
|
-
338: <span class="ruby-node">"#{self.class.to_s.sub(/TaskJuggler::/, '')} '#{fullId}'"</span>
|
883
|
-
339: <span class="ruby-keyword kw">end</span>
|
884
|
-
340: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">get</span>
|
885
|
-
341: <span class="ruby-keyword kw">end</span>
|
886
|
-
342: <span class="ruby-keyword kw">end</span>
|
887
|
-
</pre>
|
888
|
-
</div>
|
889
|
-
|
890
|
-
</div>
|
891
|
-
</div>
|
892
|
-
|
893
|
-
|
894
|
-
<div id="method-M000612" class="method-detail">
|
895
|
-
<a name="M000612"></a>
|
896
|
-
|
897
|
-
<div class="method-heading">
|
898
|
-
|
899
|
-
<a href="#M000612" class="method-signature">
|
900
|
-
|
901
|
-
<span class="method-name">getAttr</span><span class="method-args">(attributeId, scenarioIdx = nil)</span>
|
902
|
-
|
903
|
-
</a>
|
904
|
-
|
905
|
-
</div>
|
906
|
-
|
907
|
-
<div class="method-description">
|
908
|
-
|
909
|
-
<p>
|
910
|
-
Return the value of the attribute with ID <em>attributeId</em>. In case
|
911
|
-
this is a scenario-specific attribute, the scenario index needs to be
|
912
|
-
provided by <em>scenarioIdx</em>.
|
913
|
-
</p>
|
914
|
-
|
915
|
-
<p><a class="source-toggle" href="#"
|
916
|
-
onclick="toggleCode('M000612-source');return false;">[Source]</a></p>
|
917
|
-
<div class="method-source-code" id="M000612-source">
|
918
|
-
<pre>
|
919
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 347</span>
|
920
|
-
347: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getAttr</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
921
|
-
348: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>.<span class="ruby-identifier">nil?</span>
|
922
|
-
349: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
923
|
-
350: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
924
|
-
351: <span class="ruby-ivar">@id</span>
|
925
|
-
352: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
926
|
-
353: <span class="ruby-ivar">@name</span>
|
927
|
-
354: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
928
|
-
355: <span class="ruby-ivar">@sequenceNo</span>
|
929
|
-
356: <span class="ruby-keyword kw">else</span>
|
930
|
-
357: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>]
|
931
|
-
358: <span class="ruby-keyword kw">end</span>
|
932
|
-
359: <span class="ruby-keyword kw">else</span>
|
933
|
-
360: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>]
|
934
|
-
361: <span class="ruby-keyword kw">end</span>
|
935
|
-
362: <span class="ruby-keyword kw">end</span>
|
936
|
-
</pre>
|
937
|
-
</div>
|
938
|
-
|
939
|
-
</div>
|
940
|
-
</div>
|
941
|
-
|
942
|
-
|
943
|
-
<div id="method-M000613" class="method-detail">
|
944
|
-
<a name="M000613"></a>
|
945
|
-
|
946
|
-
<div class="method-heading">
|
947
|
-
|
948
|
-
<a href="#M000613" class="method-signature">
|
949
|
-
|
950
|
-
<span class="method-name">getAttribute</span><span class="method-args">(attributeId, scenarioIdx = nil)</span>
|
951
|
-
|
952
|
-
</a>
|
953
|
-
|
954
|
-
</div>
|
955
|
-
|
956
|
-
<div class="method-description">
|
957
|
-
|
958
|
-
<p>
|
959
|
-
This function is similar to getAttr() but it always returns a <a
|
960
|
-
href="AttributeBase.html">AttributeBase</a> object.
|
961
|
-
</p>
|
962
|
-
|
963
|
-
<p><a class="source-toggle" href="#"
|
964
|
-
onclick="toggleCode('M000613-source');return false;">[Source]</a></p>
|
965
|
-
<div class="method-source-code" id="M000613-source">
|
966
|
-
<pre>
|
967
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 366</span>
|
968
|
-
366: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getAttribute</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
969
|
-
367: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
970
|
-
368: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
971
|
-
369: <span class="ruby-constant">StringAttribute</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-ivar">@id</span>)
|
972
|
-
370: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
973
|
-
371: <span class="ruby-constant">StringAttribute</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-ivar">@name</span>)
|
974
|
-
372: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
975
|
-
373: <span class="ruby-constant">FixnumAttribute</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-ivar">@sequenceNo</span>)
|
976
|
-
374: <span class="ruby-keyword kw">else</span>
|
977
|
-
375: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>] <span class="ruby-operator">||</span>
|
978
|
-
376: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>]
|
979
|
-
377: <span class="ruby-keyword kw">end</span>
|
980
|
-
378: <span class="ruby-keyword kw">end</span>
|
981
|
-
</pre>
|
982
|
-
</div>
|
983
|
-
|
984
|
-
</div>
|
985
|
-
</div>
|
986
|
-
|
987
|
-
|
988
|
-
<div id="method-M000603" class="method-detail">
|
989
|
-
<a name="M000603"></a>
|
990
|
-
|
991
|
-
<div class="method-heading">
|
992
|
-
|
993
|
-
<a href="#M000603" class="method-signature">
|
994
|
-
|
995
|
-
<span class="method-name">getIndicies</span><span class="method-args">()</span>
|
996
|
-
|
997
|
-
</a>
|
998
|
-
|
999
|
-
</div>
|
1000
|
-
|
1001
|
-
<div class="method-description">
|
1002
|
-
|
1003
|
-
<p>
|
1004
|
-
Return the ‘index’ attributes of this property, prefixed by the
|
1005
|
-
‘index’ attributes of all its parents. The result is an Array
|
1006
|
-
of Fixnums.
|
1007
|
-
</p>
|
1008
|
-
|
1009
|
-
<p><a class="source-toggle" href="#"
|
1010
|
-
onclick="toggleCode('M000603-source');return false;">[Source]</a></p>
|
1011
|
-
<div class="method-source-code" id="M000603-source">
|
1012
|
-
<pre>
|
1013
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 257</span>
|
1014
|
-
257: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getIndicies</span>
|
1015
|
-
258: <span class="ruby-identifier">idcs</span> = []
|
1016
|
-
259: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span>
|
1017
|
-
260: <span class="ruby-keyword kw">begin</span>
|
1018
|
-
261: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
1019
|
-
262: <span class="ruby-identifier">idcs</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">p</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">'index'</span>))
|
1020
|
-
263: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">parent</span>
|
1021
|
-
264: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>
|
1022
|
-
265: <span class="ruby-identifier">idcs</span>
|
1023
|
-
266: <span class="ruby-keyword kw">end</span>
|
1024
|
-
</pre>
|
1025
|
-
</div>
|
1026
|
-
|
1027
|
-
</div>
|
1028
|
-
</div>
|
1029
|
-
|
1030
|
-
|
1031
|
-
<div id="method-M000602" class="method-detail">
|
1032
|
-
<a name="M000602"></a>
|
1033
|
-
|
1034
|
-
<div class="method-heading">
|
1035
|
-
|
1036
|
-
<a href="#M000602" class="method-signature">
|
1037
|
-
|
1038
|
-
<span class="method-name">getWBSIndicies</span><span class="method-args">()</span>
|
1039
|
-
|
1040
|
-
</a>
|
1041
|
-
|
1042
|
-
</div>
|
1043
|
-
|
1044
|
-
<div class="method-description">
|
1045
|
-
|
1046
|
-
<p>
|
1047
|
-
Return the hierarchical index of this node. In project management lingo
|
1048
|
-
this is called the Work Breakdown Structure (WBS). The result is an Array
|
1049
|
-
with an index for each level from the root to this node.
|
1050
|
-
</p>
|
1051
|
-
|
1052
|
-
<p><a class="source-toggle" href="#"
|
1053
|
-
onclick="toggleCode('M000602-source');return false;">[Source]</a></p>
|
1054
|
-
<div class="method-source-code" id="M000602-source">
|
1055
|
-
<pre>
|
1056
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 243</span>
|
1057
|
-
243: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getWBSIndicies</span>
|
1058
|
-
244: <span class="ruby-identifier">idcs</span> = []
|
1059
|
-
245: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span>
|
1060
|
-
246: <span class="ruby-keyword kw">begin</span>
|
1061
|
-
247: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
1062
|
-
248: <span class="ruby-identifier">idcs</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">parent</span> <span class="ruby-value">? </span><span class="ruby-identifier">parent</span>.<span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">p</span>) <span class="ruby-operator">:</span>
|
1063
|
-
249: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">p</span>))
|
1064
|
-
250: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">parent</span>
|
1065
|
-
251: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>
|
1066
|
-
252: <span class="ruby-identifier">idcs</span>
|
1067
|
-
253: <span class="ruby-keyword kw">end</span>
|
1068
|
-
</pre>
|
1069
|
-
</div>
|
1070
|
-
|
1071
|
-
</div>
|
1072
|
-
</div>
|
1073
|
-
|
1074
|
-
|
1075
|
-
<div id="method-M000594" class="method-detail">
|
1076
|
-
<a name="M000594"></a>
|
1077
|
-
|
1078
|
-
<div class="method-heading">
|
1079
|
-
|
1080
|
-
<a href="#M000594" class="method-signature">
|
1081
|
-
|
1082
|
-
<span class="method-name">inheritAttributes</span><span class="method-args">()</span>
|
1083
|
-
|
1084
|
-
</a>
|
1085
|
-
|
1086
|
-
</div>
|
1087
|
-
|
1088
|
-
<div class="method-description">
|
1089
|
-
|
1090
|
-
<p>
|
1091
|
-
Inherit values for the attributes from the parent node or the <a
|
1092
|
-
href="Project.html">Project</a>.
|
1093
|
-
</p>
|
1094
|
-
|
1095
|
-
<p><a class="source-toggle" href="#"
|
1096
|
-
onclick="toggleCode('M000594-source');return false;">[Source]</a></p>
|
1097
|
-
<div class="method-source-code" id="M000594-source">
|
1098
|
-
<pre>
|
1099
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 102</span>
|
1100
|
-
102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributes</span>
|
1101
|
-
103: <span class="ruby-comment cmt"># Inherit non-scenario-specific values</span>
|
1102
|
-
104: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">eachAttributeDefinition</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attrDef</span><span class="ruby-operator">|</span>
|
1103
|
-
105: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">scenarioSpecific</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
1104
|
-
106:
|
1105
|
-
107: <span class="ruby-identifier">aId</span> = <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>
|
1106
|
-
108: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
1107
|
-
109: <span class="ruby-comment cmt"># Inherit values from parent property</span>
|
1108
|
-
110: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">provided</span>(<span class="ruby-identifier">aId</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">aId</span>)
|
1109
|
-
111: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">aId</span>].<span class="ruby-identifier">inherit</span>(<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">aId</span>))
|
1110
|
-
112: <span class="ruby-keyword kw">end</span>
|
1111
|
-
113: <span class="ruby-keyword kw">else</span>
|
1112
|
-
114: <span class="ruby-comment cmt"># Inherit selected values from project if top-level property</span>
|
1113
|
-
115: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
1114
|
-
116: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@project</span>[<span class="ruby-identifier">aId</span>]
|
1115
|
-
117: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">aId</span>].<span class="ruby-identifier">inherit</span>(<span class="ruby-ivar">@project</span>[<span class="ruby-identifier">aId</span>])
|
1116
|
-
118: <span class="ruby-keyword kw">end</span>
|
1117
|
-
119: <span class="ruby-keyword kw">end</span>
|
1118
|
-
120: <span class="ruby-keyword kw">end</span>
|
1119
|
-
121: <span class="ruby-keyword kw">end</span>
|
1120
|
-
122:
|
1121
|
-
123: <span class="ruby-comment cmt"># Inherit scenario-specific values</span>
|
1122
|
-
124: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">eachAttributeDefinition</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attrDef</span><span class="ruby-operator">|</span>
|
1123
|
-
125: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">scenarioSpecific</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromParent</span>
|
1124
|
-
126:
|
1125
|
-
127: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">scenarioCount</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
1126
|
-
128: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
1127
|
-
129: <span class="ruby-comment cmt"># Inherit scenario specific values from parent property</span>
|
1128
|
-
130: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">provided</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">scenarioIdx</span>) <span class="ruby-operator">||</span>
|
1129
|
-
131: <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">scenarioIdx</span>)
|
1130
|
-
132: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>].<span class="ruby-identifier">inherit</span>(
|
1131
|
-
133: <span class="ruby-identifier">parent</span>[<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">scenarioIdx</span>])
|
1132
|
-
134: <span class="ruby-keyword kw">end</span>
|
1133
|
-
135: <span class="ruby-keyword kw">else</span>
|
1134
|
-
136: <span class="ruby-comment cmt"># Inherit selected values from project if top-level property</span>
|
1135
|
-
137: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
1136
|
-
138: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@project</span>[<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>] <span class="ruby-operator">&&</span>
|
1137
|
-
139: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>]
|
1138
|
-
140: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>].<span class="ruby-identifier">inherit</span>(
|
1139
|
-
141: <span class="ruby-ivar">@project</span>[<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>])
|
1140
|
-
142: <span class="ruby-keyword kw">end</span>
|
1141
|
-
143: <span class="ruby-keyword kw">end</span>
|
1142
|
-
144: <span class="ruby-keyword kw">end</span>
|
1143
|
-
145: <span class="ruby-keyword kw">end</span>
|
1144
|
-
146: <span class="ruby-keyword kw">end</span>
|
1145
|
-
147: <span class="ruby-keyword kw">end</span>
|
1146
|
-
</pre>
|
1147
|
-
</div>
|
1148
|
-
|
1149
|
-
</div>
|
1150
|
-
</div>
|
1151
|
-
|
1152
|
-
|
1153
|
-
<div id="method-M000595" class="method-detail">
|
1154
|
-
<a name="M000595"></a>
|
1155
|
-
|
1156
|
-
<div class="method-heading">
|
1157
|
-
|
1158
|
-
<a href="#M000595" class="method-signature">
|
1159
|
-
|
1160
|
-
<span class="method-name">inheritAttributesFromScenario</span><span class="method-args">()</span>
|
1161
|
-
|
1162
|
-
</a>
|
1163
|
-
|
1164
|
-
</div>
|
1165
|
-
|
1166
|
-
<div class="method-description">
|
1167
|
-
|
1168
|
-
<p>
|
1169
|
-
Inherit attribute values from the parent scenario. This is only being done
|
1170
|
-
for attributes that don’t have a user-specified value already.
|
1171
|
-
</p>
|
1172
|
-
|
1173
|
-
<p><a class="source-toggle" href="#"
|
1174
|
-
onclick="toggleCode('M000595-source');return false;">[Source]</a></p>
|
1175
|
-
<div class="method-source-code" id="M000595-source">
|
1176
|
-
<pre>
|
1177
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 151</span>
|
1178
|
-
151: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributesFromScenario</span>
|
1179
|
-
152: <span class="ruby-comment cmt"># Inherit scenario-specific values</span>
|
1180
|
-
153: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">eachAttributeDefinition</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attrDef</span><span class="ruby-operator">|</span>
|
1181
|
-
154: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">scenarioSpecific</span>
|
1182
|
-
155:
|
1183
|
-
156: <span class="ruby-comment cmt"># We know that parent scenarios precede their children in the list. So</span>
|
1184
|
-
157: <span class="ruby-comment cmt"># it's safe to iterate over the list instead of recursively descend</span>
|
1185
|
-
158: <span class="ruby-comment cmt"># the tree.</span>
|
1186
|
-
159: <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">scenarioCount</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
1187
|
-
160: <span class="ruby-identifier">scenario</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">scenario</span>(<span class="ruby-identifier">scenarioIdx</span>)
|
1188
|
-
161: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
1189
|
-
162: <span class="ruby-identifier">parentScenarioIdx</span> = <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">sequenceNo</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
1190
|
-
163: <span class="ruby-comment cmt"># We copy only provided or inherited values from parent scenario when</span>
|
1191
|
-
164: <span class="ruby-comment cmt"># we don't have a provided or inherited value in this scenario.</span>
|
1192
|
-
165: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">provided</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">parentScenarioIdx</span>) <span class="ruby-operator">||</span>
|
1193
|
-
166: <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">parentScenarioIdx</span>)) <span class="ruby-operator">&&</span>
|
1194
|
-
167: <span class="ruby-operator">!</span>(<span class="ruby-identifier">provided</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">scenarioIdx</span>) <span class="ruby-operator">||</span>
|
1195
|
-
168: <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">scenarioIdx</span>))
|
1196
|
-
169: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>] =
|
1197
|
-
170: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">parentScenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>].<span class="ruby-identifier">deep_clone</span>
|
1198
|
-
171: <span class="ruby-keyword kw">end</span>
|
1199
|
-
172: <span class="ruby-keyword kw">end</span>
|
1200
|
-
173: <span class="ruby-keyword kw">end</span>
|
1201
|
-
174: <span class="ruby-keyword kw">end</span>
|
1202
|
-
</pre>
|
1203
|
-
</div>
|
1204
|
-
|
1205
|
-
</div>
|
1206
|
-
</div>
|
1207
|
-
|
1208
|
-
|
1209
|
-
<div id="method-M000618" class="method-detail">
|
1210
|
-
<a name="M000618"></a>
|
1211
|
-
|
1212
|
-
<div class="method-heading">
|
1213
|
-
|
1214
|
-
<a href="#M000618" class="method-signature">
|
1215
|
-
|
1216
|
-
<span class="method-name">inherited</span><span class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1217
|
-
|
1218
|
-
</a>
|
1219
|
-
|
1220
|
-
</div>
|
1221
|
-
|
1222
|
-
<div class="method-description">
|
1223
|
-
|
1224
|
-
<p>
|
1225
|
-
Returns true if the value of the attribute <em>attributeId</em> (in
|
1226
|
-
scenario <em>scenarioIdx</em>) has been inherited from a parent node or
|
1227
|
-
scenario.
|
1228
|
-
</p>
|
1229
|
-
|
1230
|
-
<p><a class="source-toggle" href="#"
|
1231
|
-
onclick="toggleCode('M000618-source');return false;">[Source]</a></p>
|
1232
|
-
<div class="method-source-code" id="M000618-source">
|
1233
|
-
<pre>
|
1234
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 428</span>
|
1235
|
-
428: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
1236
|
-
429: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
1237
|
-
430: <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">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1238
|
-
431: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1239
|
-
432: <span class="ruby-keyword kw">else</span>
|
1240
|
-
433: <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">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1241
|
-
434: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1242
|
-
435: <span class="ruby-keyword kw">end</span>
|
1243
|
-
436: <span class="ruby-keyword kw">end</span>
|
1244
|
-
</pre>
|
1245
|
-
</div>
|
1246
|
-
|
1247
|
-
</div>
|
1248
|
-
</div>
|
1249
|
-
|
1250
|
-
|
1251
|
-
<div id="method-M000605" class="method-detail">
|
1252
|
-
<a name="M000605"></a>
|
1253
|
-
|
1254
|
-
<div class="method-heading">
|
1255
|
-
|
1256
|
-
<a href="#M000605" class="method-signature">
|
1257
|
-
|
1258
|
-
<span class="method-name">isChildOf?</span><span class="method-args">(ancestor)</span>
|
1259
|
-
|
1260
|
-
</a>
|
1261
|
-
|
1262
|
-
</div>
|
1263
|
-
|
1264
|
-
<div class="method-description">
|
1265
|
-
|
1266
|
-
<p>
|
1267
|
-
Find out if this property is a direct or indirect child of
|
1268
|
-
<em>ancestor</em>.
|
1269
|
-
</p>
|
1270
|
-
|
1271
|
-
<p><a class="source-toggle" href="#"
|
1272
|
-
onclick="toggleCode('M000605-source');return false;">[Source]</a></p>
|
1273
|
-
<div class="method-source-code" id="M000605-source">
|
1274
|
-
<pre>
|
1275
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 277</span>
|
1276
|
-
277: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">isChildOf?</span>(<span class="ruby-identifier">ancestor</span>)
|
1277
|
-
278: <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">self</span>
|
1278
|
-
279: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">parent</span>
|
1279
|
-
280: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">parent</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">ancestor</span>)
|
1280
|
-
281: <span class="ruby-keyword kw">end</span>
|
1281
|
-
282: <span class="ruby-keyword kw">false</span>
|
1282
|
-
283: <span class="ruby-keyword kw">end</span>
|
1283
|
-
</pre>
|
1284
|
-
</div>
|
1285
|
-
|
1286
|
-
</div>
|
1287
|
-
</div>
|
1288
|
-
|
1289
|
-
|
1290
|
-
<div id="method-M000606" class="method-detail">
|
1291
|
-
<a name="M000606"></a>
|
1292
|
-
|
1293
|
-
<div class="method-heading">
|
1294
|
-
|
1295
|
-
<a href="#M000606" class="method-signature">
|
1296
|
-
|
1297
|
-
<span class="method-name">leaf?</span><span class="method-args">()</span>
|
1298
|
-
|
1299
|
-
</a>
|
1300
|
-
|
1301
|
-
</div>
|
1302
|
-
|
1303
|
-
<div class="method-description">
|
1304
|
-
|
1305
|
-
<p>
|
1306
|
-
Return true if the node is a leaf node (has no children).
|
1307
|
-
</p>
|
1308
|
-
|
1309
|
-
<p><a class="source-toggle" href="#"
|
1310
|
-
onclick="toggleCode('M000606-source');return false;">[Source]</a></p>
|
1311
|
-
<div class="method-source-code" id="M000606-source">
|
1312
|
-
<pre>
|
1313
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 286</span>
|
1314
|
-
286: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">leaf?</span>
|
1315
|
-
287: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span>
|
1316
|
-
288: <span class="ruby-keyword kw">end</span>
|
1317
|
-
</pre>
|
1318
|
-
</div>
|
1319
|
-
|
1320
|
-
</div>
|
1321
|
-
</div>
|
1322
|
-
|
1323
|
-
|
1324
|
-
<div id="method-M000601" class="method-detail">
|
1325
|
-
<a name="M000601"></a>
|
1326
|
-
|
1327
|
-
<div class="method-heading">
|
1328
|
-
|
1329
|
-
<a href="#M000601" class="method-signature">
|
1330
|
-
|
1331
|
-
<span class="method-name">level</span><span class="method-args">()</span>
|
1332
|
-
|
1333
|
-
</a>
|
1334
|
-
|
1335
|
-
</div>
|
1336
|
-
|
1337
|
-
<div class="method-description">
|
1338
|
-
|
1339
|
-
<p>
|
1340
|
-
Returns the level that this property is on. Top-level properties return 0,
|
1341
|
-
their children 1 and so on. This value is cached internally, so it does not
|
1342
|
-
have to be calculated each time the function is called.
|
1343
|
-
</p>
|
1344
|
-
|
1345
|
-
<p><a class="source-toggle" href="#"
|
1346
|
-
onclick="toggleCode('M000601-source');return false;">[Source]</a></p>
|
1347
|
-
<div class="method-source-code" id="M000601-source">
|
1348
|
-
<pre>
|
1349
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 229</span>
|
1350
|
-
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">level</span>
|
1351
|
-
230: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@level</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@level</span> <span class="ruby-operator">>=</span> <span class="ruby-value">0</span>
|
1352
|
-
231:
|
1353
|
-
232: <span class="ruby-identifier">t</span> = <span class="ruby-keyword kw">self</span>
|
1354
|
-
233: <span class="ruby-ivar">@level</span> = <span class="ruby-value">0</span>
|
1355
|
-
234: <span class="ruby-keyword kw">until</span> (<span class="ruby-identifier">t</span> = <span class="ruby-identifier">t</span>.<span class="ruby-identifier">parent</span>).<span class="ruby-identifier">nil?</span>
|
1356
|
-
235: <span class="ruby-ivar">@level</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
1357
|
-
236: <span class="ruby-keyword kw">end</span>
|
1358
|
-
237: <span class="ruby-ivar">@level</span>
|
1359
|
-
238: <span class="ruby-keyword kw">end</span>
|
1360
|
-
</pre>
|
1361
|
-
</div>
|
1362
|
-
|
1363
|
-
</div>
|
1364
|
-
</div>
|
1365
|
-
|
1366
|
-
|
1367
|
-
<div id="method-M000593" class="method-detail">
|
1368
|
-
<a name="M000593"></a>
|
1369
|
-
|
1370
|
-
<div class="method-heading">
|
1371
|
-
|
1372
|
-
<a href="#M000593" class="method-signature">
|
1373
|
-
|
1374
|
-
<span class="method-name">levelSeqNo</span><span class="method-args">(node)</span>
|
1375
|
-
|
1376
|
-
</a>
|
1377
|
-
|
1378
|
-
</div>
|
1379
|
-
|
1380
|
-
<div class="method-description">
|
1381
|
-
|
1382
|
-
<p>
|
1383
|
-
Return the index of the child <em>node</em>.
|
1384
|
-
</p>
|
1385
|
-
|
1386
|
-
<p><a class="source-toggle" href="#"
|
1387
|
-
onclick="toggleCode('M000593-source');return false;">[Source]</a></p>
|
1388
|
-
<div class="method-source-code" id="M000593-source">
|
1389
|
-
<pre>
|
1390
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 97</span>
|
1391
|
-
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">node</span>)
|
1392
|
-
98: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">node</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
|
1393
|
-
99: <span class="ruby-keyword kw">end</span>
|
1394
|
-
</pre>
|
1395
|
-
</div>
|
1396
|
-
|
1397
|
-
</div>
|
1398
|
-
</div>
|
1399
|
-
|
1400
|
-
|
1401
|
-
<div id="method-M000624" class="method-detail">
|
1402
|
-
<a name="M000624"></a>
|
1403
|
-
|
1404
|
-
<div class="method-heading">
|
1405
|
-
|
1406
|
-
<a href="#M000624" class="method-signature">
|
1407
|
-
|
1408
|
-
<span class="method-name">method_missing</span><span class="method-args">(func, scenarioIdx, *args)</span>
|
1409
|
-
|
1410
|
-
</a>
|
1411
|
-
|
1412
|
-
</div>
|
1413
|
-
|
1414
|
-
<div class="method-description">
|
1415
|
-
|
1416
|
-
<p>
|
1417
|
-
Many <a href="PropertyTreeNode.html">PropertyTreeNode</a> functions are
|
1418
|
-
scenario specific. These functions are provided by the class *<a
|
1419
|
-
href="Scenario.html">Scenario</a> classes. In case we can’t find a
|
1420
|
-
function called for the base class we try to find it in corresponding *<a
|
1421
|
-
href="Scenario.html">Scenario</a> class.
|
1422
|
-
</p>
|
1423
|
-
|
1424
|
-
<p><a class="source-toggle" href="#"
|
1425
|
-
onclick="toggleCode('M000624-source');return false;">[Source]</a></p>
|
1426
|
-
<div class="method-source-code" id="M000624-source">
|
1427
|
-
<pre>
|
1428
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 519</span>
|
1429
|
-
519: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">func</span>, <span class="ruby-identifier">scenarioIdx</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
1430
|
-
520: <span class="ruby-ivar">@data</span>[<span class="ruby-identifier">scenarioIdx</span>].<span class="ruby-identifier">method</span>(<span class="ruby-identifier">func</span>).<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
1431
|
-
521: <span class="ruby-keyword kw">end</span>
|
1432
|
-
</pre>
|
1433
|
-
</div>
|
1434
|
-
|
1435
|
-
</div>
|
1436
|
-
</div>
|
1437
|
-
|
1438
|
-
|
1439
|
-
<div id="method-M000619" class="method-detail">
|
1440
|
-
<a name="M000619"></a>
|
1441
|
-
|
1442
|
-
<div class="method-heading">
|
1443
|
-
|
1444
|
-
<a href="#M000619" class="method-signature">
|
1445
|
-
|
1446
|
-
<span class="method-name">modified?</span><span class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1447
|
-
|
1448
|
-
</a>
|
1449
|
-
|
1450
|
-
</div>
|
1451
|
-
|
1452
|
-
<div class="method-description">
|
1453
|
-
|
1454
|
-
<p><a class="source-toggle" href="#"
|
1455
|
-
onclick="toggleCode('M000619-source');return false;">[Source]</a></p>
|
1456
|
-
<div class="method-source-code" id="M000619-source">
|
1457
|
-
<pre>
|
1458
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 438</span>
|
1459
|
-
438: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modified?</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
1460
|
-
439: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
1461
|
-
440: <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">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1462
|
-
441: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span> <span class="ruby-operator">||</span>
|
1463
|
-
442: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1464
|
-
443: <span class="ruby-keyword kw">else</span>
|
1465
|
-
444: <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">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1466
|
-
445: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1467
|
-
446: <span class="ruby-keyword kw">end</span>
|
1468
|
-
447: <span class="ruby-keyword kw">end</span>
|
1469
|
-
</pre>
|
1470
|
-
</div>
|
1471
|
-
|
1472
|
-
</div>
|
1473
|
-
</div>
|
1474
|
-
|
1475
|
-
|
1476
|
-
<div id="method-M000617" class="method-detail">
|
1477
|
-
<a name="M000617"></a>
|
1478
|
-
|
1479
|
-
<div class="method-heading">
|
1480
|
-
|
1481
|
-
<a href="#M000617" class="method-signature">
|
1482
|
-
|
1483
|
-
<span class="method-name">provided</span><span class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1484
|
-
|
1485
|
-
</a>
|
1486
|
-
|
1487
|
-
</div>
|
1488
|
-
|
1489
|
-
<div class="method-description">
|
1490
|
-
|
1491
|
-
<p>
|
1492
|
-
Returns true if the value of the attribute <em>attributeId</em> (in
|
1493
|
-
scenario <em>scenarioIdx</em>) has been provided by the user.
|
1494
|
-
</p>
|
1495
|
-
|
1496
|
-
<p><a class="source-toggle" href="#"
|
1497
|
-
onclick="toggleCode('M000617-source');return false;">[Source]</a></p>
|
1498
|
-
<div class="method-source-code" id="M000617-source">
|
1499
|
-
<pre>
|
1500
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 416</span>
|
1501
|
-
416: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">provided</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenarioIdx</span> = <span class="ruby-keyword kw">nil</span>)
|
1502
|
-
417: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
1503
|
-
418: <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">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1504
|
-
419: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span>
|
1505
|
-
420: <span class="ruby-keyword kw">else</span>
|
1506
|
-
421: <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">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1507
|
-
422: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span>
|
1508
|
-
423: <span class="ruby-keyword kw">end</span>
|
1509
|
-
424: <span class="ruby-keyword kw">end</span>
|
1510
|
-
</pre>
|
1511
|
-
</div>
|
1512
|
-
|
1513
|
-
</div>
|
1514
|
-
</div>
|
1515
|
-
|
1516
|
-
|
1517
|
-
<div id="method-M000620" class="method-detail">
|
1518
|
-
<a name="M000620"></a>
|
1519
|
-
|
1520
|
-
<div class="method-heading">
|
1521
|
-
|
1522
|
-
<a href="#M000620" class="method-signature">
|
1523
|
-
|
1524
|
-
<span class="method-name">query_alert</span><span class="method-args">(query)</span>
|
1525
|
-
|
1526
|
-
</a>
|
1527
|
-
|
1528
|
-
</div>
|
1529
|
-
|
1530
|
-
<div class="method-description">
|
1531
|
-
|
1532
|
-
<p><a class="source-toggle" href="#"
|
1533
|
-
onclick="toggleCode('M000620-source');return false;">[Source]</a></p>
|
1534
|
-
<div class="method-source-code" id="M000620-source">
|
1535
|
-
<pre>
|
1536
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 449</span>
|
1537
|
-
449: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alert</span>(<span class="ruby-identifier">query</span>)
|
1538
|
-
450: <span class="ruby-identifier">journal</span> = <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'journal'</span>]
|
1539
|
-
451: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-identifier">query</span>.<span class="ruby-identifier">numerical</span> = <span class="ruby-identifier">alert</span> =
|
1540
|
-
452: <span class="ruby-identifier">journal</span>.<span class="ruby-identifier">alertLevel</span>(<span class="ruby-identifier">query</span>.<span class="ruby-identifier">end</span>, <span class="ruby-keyword kw">self</span>)
|
1541
|
-
453: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">alertLevelName</span>(<span class="ruby-identifier">alert</span>)
|
1542
|
-
454: <span class="ruby-keyword kw">end</span>
|
1543
|
-
</pre>
|
1544
|
-
</div>
|
1545
|
-
|
1546
|
-
</div>
|
1547
|
-
</div>
|
1548
|
-
|
1549
|
-
|
1550
|
-
<div id="method-M000622" class="method-detail">
|
1551
|
-
<a name="M000622"></a>
|
1552
|
-
|
1553
|
-
<div class="method-heading">
|
1554
|
-
|
1555
|
-
<a href="#M000622" class="method-signature">
|
1556
|
-
|
1557
|
-
<span class="method-name">query_alertmessage</span><span class="method-args">(query)</span>
|
1558
|
-
|
1559
|
-
</a>
|
1560
|
-
|
1561
|
-
</div>
|
1562
|
-
|
1563
|
-
<div class="method-description">
|
1564
|
-
|
1565
|
-
<p><a class="source-toggle" href="#"
|
1566
|
-
onclick="toggleCode('M000622-source');return false;">[Source]</a></p>
|
1567
|
-
<div class="method-source-code" id="M000622-source">
|
1568
|
-
<pre>
|
1569
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 460</span>
|
1570
|
-
460: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alertmessage</span>(<span class="ruby-identifier">query</span>)
|
1571
|
-
461: <span class="ruby-identifier">alertMessages</span>(<span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">true</span>)
|
1572
|
-
462: <span class="ruby-keyword kw">end</span>
|
1573
|
-
</pre>
|
1574
|
-
</div>
|
1575
|
-
|
1576
|
-
</div>
|
1577
|
-
</div>
|
1578
|
-
|
1579
|
-
|
1580
|
-
<div id="method-M000621" class="method-detail">
|
1581
|
-
<a name="M000621"></a>
|
1582
|
-
|
1583
|
-
<div class="method-heading">
|
1584
|
-
|
1585
|
-
<a href="#M000621" class="method-signature">
|
1586
|
-
|
1587
|
-
<span class="method-name">query_alertsummary</span><span class="method-args">(query)</span>
|
1588
|
-
|
1589
|
-
</a>
|
1590
|
-
|
1591
|
-
</div>
|
1592
|
-
|
1593
|
-
<div class="method-description">
|
1594
|
-
|
1595
|
-
<p><a class="source-toggle" href="#"
|
1596
|
-
onclick="toggleCode('M000621-source');return false;">[Source]</a></p>
|
1597
|
-
<div class="method-source-code" id="M000621-source">
|
1598
|
-
<pre>
|
1599
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 456</span>
|
1600
|
-
456: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alertsummary</span>(<span class="ruby-identifier">query</span>)
|
1601
|
-
457: <span class="ruby-identifier">alertMessages</span>(<span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">false</span>)
|
1602
|
-
458: <span class="ruby-keyword kw">end</span>
|
1603
|
-
</pre>
|
1604
|
-
</div>
|
1605
|
-
|
1606
|
-
</div>
|
1607
|
-
</div>
|
1608
|
-
|
1609
|
-
|
1610
|
-
<div id="method-M000623" class="method-detail">
|
1611
|
-
<a name="M000623"></a>
|
1612
|
-
|
1613
|
-
<div class="method-heading">
|
1614
|
-
|
1615
|
-
<a href="#M000623" class="method-signature">
|
1616
|
-
|
1617
|
-
<span class="method-name">query_alerttrend</span><span class="method-args">(query)</span>
|
1618
|
-
|
1619
|
-
</a>
|
1620
|
-
|
1621
|
-
</div>
|
1622
|
-
|
1623
|
-
<div class="method-description">
|
1624
|
-
|
1625
|
-
<p><a class="source-toggle" href="#"
|
1626
|
-
onclick="toggleCode('M000623-source');return false;">[Source]</a></p>
|
1627
|
-
<div class="method-source-code" id="M000623-source">
|
1628
|
-
<pre>
|
1629
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 464</span>
|
1630
|
-
464: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alerttrend</span>(<span class="ruby-identifier">query</span>)
|
1631
|
-
465: <span class="ruby-identifier">journal</span> = <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'journal'</span>]
|
1632
|
-
466: <span class="ruby-identifier">startAlert</span> = <span class="ruby-identifier">journal</span>.<span class="ruby-identifier">alertLevel</span>(<span class="ruby-identifier">query</span>.<span class="ruby-identifier">start</span>, <span class="ruby-keyword kw">self</span>)
|
1633
|
-
467: <span class="ruby-identifier">endAlert</span> = <span class="ruby-identifier">journal</span>.<span class="ruby-identifier">alertLevel</span>(<span class="ruby-identifier">query</span>.<span class="ruby-identifier">end</span>, <span class="ruby-keyword kw">self</span>)
|
1634
|
-
468: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">startAlert</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">endAlert</span>
|
1635
|
-
469: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">0</span>
|
1636
|
-
470: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Up'</span>
|
1637
|
-
471: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">startAlert</span> <span class="ruby-operator">></span> <span class="ruby-identifier">endAlert</span>
|
1638
|
-
472: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">2</span>
|
1639
|
-
473: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Down'</span>
|
1640
|
-
474: <span class="ruby-keyword kw">else</span>
|
1641
|
-
475: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">1</span>
|
1642
|
-
476: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Flat'</span>
|
1643
|
-
477: <span class="ruby-keyword kw">end</span>
|
1644
|
-
478: <span class="ruby-keyword kw">end</span>
|
1645
|
-
</pre>
|
1646
|
-
</div>
|
1647
|
-
|
1648
|
-
</div>
|
1649
|
-
</div>
|
1650
|
-
|
1651
|
-
|
1652
|
-
<div id="method-M000608" class="method-detail">
|
1653
|
-
<a name="M000608"></a>
|
1654
|
-
|
1655
|
-
<div class="method-heading">
|
1656
|
-
|
1657
|
-
<a href="#M000608" class="method-signature">
|
1658
|
-
|
1659
|
-
<span class="method-name">root</span><span class="method-args">()</span>
|
1660
|
-
|
1661
|
-
</a>
|
1662
|
-
|
1663
|
-
</div>
|
1664
|
-
|
1665
|
-
<div class="method-description">
|
1666
|
-
|
1667
|
-
<p>
|
1668
|
-
Return the top-level node for this node.
|
1669
|
-
</p>
|
1670
|
-
|
1671
|
-
<p><a class="source-toggle" href="#"
|
1672
|
-
onclick="toggleCode('M000608-source');return false;">[Source]</a></p>
|
1673
|
-
<div class="method-source-code" id="M000608-source">
|
1674
|
-
<pre>
|
1675
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 296</span>
|
1676
|
-
296: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root</span>
|
1677
|
-
297: <span class="ruby-identifier">n</span> = <span class="ruby-keyword kw">self</span>
|
1678
|
-
298: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
1679
|
-
299: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
1680
|
-
300: <span class="ruby-keyword kw">end</span>
|
1681
|
-
301: <span class="ruby-identifier">n</span>
|
1682
|
-
302: <span class="ruby-keyword kw">end</span>
|
1683
|
-
</pre>
|
1684
|
-
</div>
|
1685
|
-
|
1686
|
-
</div>
|
1687
|
-
</div>
|
1688
|
-
|
1689
|
-
|
1690
|
-
<div id="method-M000614" class="method-detail">
|
1691
|
-
<a name="M000614"></a>
|
1692
|
-
|
1693
|
-
<div class="method-heading">
|
1694
|
-
|
1695
|
-
<a href="#M000614" class="method-signature">
|
1696
|
-
|
1697
|
-
<span class="method-name">set</span><span class="method-args">(attributeId, value)</span>
|
1698
|
-
|
1699
|
-
</a>
|
1700
|
-
|
1701
|
-
</div>
|
1702
|
-
|
1703
|
-
<div class="method-description">
|
1704
|
-
|
1705
|
-
<p>
|
1706
|
-
Set the non-scenario-specific attribute with ID <em>attributeId</em> to
|
1707
|
-
<em>value</em>. In case the attribute does not exist, an exception is
|
1708
|
-
raised.
|
1709
|
-
</p>
|
1710
|
-
|
1711
|
-
<p><a class="source-toggle" href="#"
|
1712
|
-
onclick="toggleCode('M000614-source');return false;">[Source]</a></p>
|
1713
|
-
<div class="method-source-code" id="M000614-source">
|
1714
|
-
<pre>
|
1715
|
-
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 382</span>
|
1716
|
-
382: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">value</span>)
|
1717
|
-
383: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@attributes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">attributeId</span>)
|
1718
|
-
384: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>, <span class="ruby-node">"Unknown attribute #{attributeId}"</span>
|
1719
|
-
385: <span class="ruby-keyword kw">end</span>
|
1720
|
-
386: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
1721
|
-
387: <span class="ruby-keyword kw">end</span>
|
1722
|
-
</pre>
|
1723
|
-
</div>
|
1724
|
-
|
1725
|
-
</div>
|
1726
|
-
</div>
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1730
|
-
</div>
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
</div>
|
1736
|
-
|
1737
|
-
<div id="validator-badges">
|
1738
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
1739
|
-
</div>
|
1740
|
-
|
1741
|
-
</body>
|
1742
|
-
</html>
|