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
@@ -0,0 +1,2482 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: TaskJuggler::PropertyTreeNode</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="../index.html">Home</a>
|
29
|
+
<a href="../index.html#classes">Classes</a>
|
30
|
+
<a href="../index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="../lib/PropertyTreeNode_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/PropertyTreeNode.rb">lib/PropertyTreeNode.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link"><a href="../Object.html">Object</a></p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#M000947">::new</a></li>
|
73
|
+
|
74
|
+
<li><a href="#M000972">#[]</a></li>
|
75
|
+
|
76
|
+
<li><a href="#M000971">#[]=</a></li>
|
77
|
+
|
78
|
+
<li><a href="#M000960">#addChild</a></li>
|
79
|
+
|
80
|
+
<li><a href="#M000982">#alertMessages</a></li>
|
81
|
+
|
82
|
+
<li><a href="#M000952">#all</a></li>
|
83
|
+
|
84
|
+
<li><a href="#M000953">#allLeaves</a></li>
|
85
|
+
|
86
|
+
<li><a href="#M000966">#attributeDefinition</a></li>
|
87
|
+
|
88
|
+
<li><a href="#M000963">#container?</a></li>
|
89
|
+
|
90
|
+
<li><a href="#M000965">#declareAttribute</a></li>
|
91
|
+
|
92
|
+
<li><a href="#M000948">#deep_clone</a></li>
|
93
|
+
|
94
|
+
<li><a href="#M000954">#eachAttribute</a></li>
|
95
|
+
|
96
|
+
<li><a href="#M000955">#eachScenarioAttribute</a></li>
|
97
|
+
|
98
|
+
<li><a href="#M000956">#fullId</a></li>
|
99
|
+
|
100
|
+
<li><a href="#M000967">#get</a></li>
|
101
|
+
|
102
|
+
<li><a href="#M000968">#getAttr</a></li>
|
103
|
+
|
104
|
+
<li><a href="#M000969">#getAttribute</a></li>
|
105
|
+
|
106
|
+
<li><a href="#M000959">#getIndicies</a></li>
|
107
|
+
|
108
|
+
<li><a href="#M000958">#getWBSIndicies</a></li>
|
109
|
+
|
110
|
+
<li><a href="#M000984">#indent</a></li>
|
111
|
+
|
112
|
+
<li><a href="#M000950">#inheritAttributes</a></li>
|
113
|
+
|
114
|
+
<li><a href="#M000951">#inheritAttributesFromScenario</a></li>
|
115
|
+
|
116
|
+
<li><a href="#M000974">#inherited</a></li>
|
117
|
+
|
118
|
+
<li><a href="#M000961">#isChildOf?</a></li>
|
119
|
+
|
120
|
+
<li><a href="#M000962">#leaf?</a></li>
|
121
|
+
|
122
|
+
<li><a href="#M000957">#level</a></li>
|
123
|
+
|
124
|
+
<li><a href="#M000949">#levelSeqNo</a></li>
|
125
|
+
|
126
|
+
<li><a href="#M000981">#method_missing</a></li>
|
127
|
+
|
128
|
+
<li><a href="#M000975">#modified?</a></li>
|
129
|
+
|
130
|
+
<li><a href="#M000983">#newAttribute</a></li>
|
131
|
+
|
132
|
+
<li><a href="#M000973">#provided</a></li>
|
133
|
+
|
134
|
+
<li><a href="#M000976">#query_alert</a></li>
|
135
|
+
|
136
|
+
<li><a href="#M000978">#query_alertmessage</a></li>
|
137
|
+
|
138
|
+
<li><a href="#M000977">#query_alertsummary</a></li>
|
139
|
+
|
140
|
+
<li><a href="#M000979">#query_alerttrend</a></li>
|
141
|
+
|
142
|
+
<li><a href="#M000964">#root</a></li>
|
143
|
+
|
144
|
+
<li><a href="#M000970">#set</a></li>
|
145
|
+
|
146
|
+
</ul>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
<!-- Included Modules -->
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div id="project-metadata">
|
155
|
+
|
156
|
+
|
157
|
+
<div id="fileindex-section" class="section project-section">
|
158
|
+
<h3 class="section-header">Files</h3>
|
159
|
+
<ul>
|
160
|
+
|
161
|
+
<li class="file"><a href="../COPYING.html">COPYING</a></li>
|
162
|
+
|
163
|
+
<li class="file"><a href="../README.html">README</a></li>
|
164
|
+
|
165
|
+
</ul>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
<div id="classindex-section" class="section project-section">
|
170
|
+
<h3 class="section-header">Class Index
|
171
|
+
<span class="search-toggle"><img src="../images/find.png"
|
172
|
+
height="16" width="16" alt="[+]"
|
173
|
+
title="show/hide quicksearch" /></span></h3>
|
174
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
175
|
+
<fieldset>
|
176
|
+
<legend>Quicksearch</legend>
|
177
|
+
<input type="text" name="quicksearch" value=""
|
178
|
+
class="quicksearch-field" />
|
179
|
+
</fieldset>
|
180
|
+
</form>
|
181
|
+
|
182
|
+
<ul class="link-list">
|
183
|
+
|
184
|
+
<li><a href="../TaskJuggler.html">TaskJuggler</a></li>
|
185
|
+
|
186
|
+
<li><a href="../TaskJuggler/Account.html">TaskJuggler::Account</a></li>
|
187
|
+
|
188
|
+
<li><a href="../TaskJuggler/AccountAttribute.html">TaskJuggler::AccountAttribute</a></li>
|
189
|
+
|
190
|
+
<li><a href="../TaskJuggler/AccountScenario.html">TaskJuggler::AccountScenario</a></li>
|
191
|
+
|
192
|
+
<li><a href="../TaskJuggler/Allocation.html">TaskJuggler::Allocation</a></li>
|
193
|
+
|
194
|
+
<li><a href="../TaskJuggler/AllocationAttribute.html">TaskJuggler::AllocationAttribute</a></li>
|
195
|
+
|
196
|
+
<li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li>
|
197
|
+
|
198
|
+
<li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li>
|
199
|
+
|
200
|
+
<li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li>
|
201
|
+
|
202
|
+
<li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li>
|
203
|
+
|
204
|
+
<li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li>
|
205
|
+
|
206
|
+
<li><a href="../TaskJuggler/BooleanAttribute.html">TaskJuggler::BooleanAttribute</a></li>
|
207
|
+
|
208
|
+
<li><a href="../TaskJuggler/CSVFile.html">TaskJuggler::CSVFile</a></li>
|
209
|
+
|
210
|
+
<li><a href="../TaskJuggler/CellSettingPattern.html">TaskJuggler::CellSettingPattern</a></li>
|
211
|
+
|
212
|
+
<li><a href="../TaskJuggler/CellSettingPatternList.html">TaskJuggler::CellSettingPatternList</a></li>
|
213
|
+
|
214
|
+
<li><a href="../TaskJuggler/Charge.html">TaskJuggler::Charge</a></li>
|
215
|
+
|
216
|
+
<li><a href="../TaskJuggler/ChargeListAttribute.html">TaskJuggler::ChargeListAttribute</a></li>
|
217
|
+
|
218
|
+
<li><a href="../TaskJuggler/ChargeSet.html">TaskJuggler::ChargeSet</a></li>
|
219
|
+
|
220
|
+
<li><a href="../TaskJuggler/ChargeSetListAttribute.html">TaskJuggler::ChargeSetListAttribute</a></li>
|
221
|
+
|
222
|
+
<li><a href="../TaskJuggler/ColumnListAttribute.html">TaskJuggler::ColumnListAttribute</a></li>
|
223
|
+
|
224
|
+
<li><a href="../TaskJuggler/ColumnTable.html">TaskJuggler::ColumnTable</a></li>
|
225
|
+
|
226
|
+
<li><a href="../TaskJuggler/Daemon.html">TaskJuggler::Daemon</a></li>
|
227
|
+
|
228
|
+
<li><a href="../TaskJuggler/DateAttribute.html">TaskJuggler::DateAttribute</a></li>
|
229
|
+
|
230
|
+
<li><a href="../TaskJuggler/DefinitionListAttribute.html">TaskJuggler::DefinitionListAttribute</a></li>
|
231
|
+
|
232
|
+
<li><a href="../TaskJuggler/DependencyListAttribute.html">TaskJuggler::DependencyListAttribute</a></li>
|
233
|
+
|
234
|
+
<li><a href="../TaskJuggler/DurationAttribute.html">TaskJuggler::DurationAttribute</a></li>
|
235
|
+
|
236
|
+
<li><a href="../TaskJuggler/FixnumAttribute.html">TaskJuggler::FixnumAttribute</a></li>
|
237
|
+
|
238
|
+
<li><a href="../TaskJuggler/FlagListAttribute.html">TaskJuggler::FlagListAttribute</a></li>
|
239
|
+
|
240
|
+
<li><a href="../TaskJuggler/FloatAttribute.html">TaskJuggler::FloatAttribute</a></li>
|
241
|
+
|
242
|
+
<li><a href="../TaskJuggler/FormatListAttribute.html">TaskJuggler::FormatListAttribute</a></li>
|
243
|
+
|
244
|
+
<li><a href="../TaskJuggler/GanttChart.html">TaskJuggler::GanttChart</a></li>
|
245
|
+
|
246
|
+
<li><a href="../TaskJuggler/GanttContainer.html">TaskJuggler::GanttContainer</a></li>
|
247
|
+
|
248
|
+
<li><a href="../TaskJuggler/GanttHeader.html">TaskJuggler::GanttHeader</a></li>
|
249
|
+
|
250
|
+
<li><a href="../TaskJuggler/GanttHeaderScaleItem.html">TaskJuggler::GanttHeaderScaleItem</a></li>
|
251
|
+
|
252
|
+
<li><a href="../TaskJuggler/GanttLine.html">TaskJuggler::GanttLine</a></li>
|
253
|
+
|
254
|
+
<li><a href="../TaskJuggler/GanttLoadStack.html">TaskJuggler::GanttLoadStack</a></li>
|
255
|
+
|
256
|
+
<li><a href="../TaskJuggler/GanttMilestone.html">TaskJuggler::GanttMilestone</a></li>
|
257
|
+
|
258
|
+
<li><a href="../TaskJuggler/GanttRouter.html">TaskJuggler::GanttRouter</a></li>
|
259
|
+
|
260
|
+
<li><a href="../TaskJuggler/GanttTaskBar.html">TaskJuggler::GanttTaskBar</a></li>
|
261
|
+
|
262
|
+
<li><a href="../TaskJuggler/HTMLDocument.html">TaskJuggler::HTMLDocument</a></li>
|
263
|
+
|
264
|
+
<li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li>
|
265
|
+
|
266
|
+
<li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li>
|
267
|
+
|
268
|
+
<li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li>
|
269
|
+
|
270
|
+
<li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li>
|
271
|
+
|
272
|
+
<li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li>
|
273
|
+
|
274
|
+
<li><a href="../TaskJuggler/JournalEntry.html">TaskJuggler::JournalEntry</a></li>
|
275
|
+
|
276
|
+
<li><a href="../TaskJuggler/JournalEntryList.html">TaskJuggler::JournalEntryList</a></li>
|
277
|
+
|
278
|
+
<li><a href="../TaskJuggler/KeywordArray.html">TaskJuggler::KeywordArray</a></li>
|
279
|
+
|
280
|
+
<li><a href="../TaskJuggler/KeywordDocumentation.html">TaskJuggler::KeywordDocumentation</a></li>
|
281
|
+
|
282
|
+
<li><a href="../TaskJuggler/Limits.html">TaskJuggler::Limits</a></li>
|
283
|
+
|
284
|
+
<li><a href="../TaskJuggler/Limits/Limit.html">TaskJuggler::Limits::Limit</a></li>
|
285
|
+
|
286
|
+
<li><a href="../TaskJuggler/LimitsAttribute.html">TaskJuggler::LimitsAttribute</a></li>
|
287
|
+
|
288
|
+
<li><a href="../TaskJuggler/ListAttributeBase.html">TaskJuggler::ListAttributeBase</a></li>
|
289
|
+
|
290
|
+
<li><a href="../TaskJuggler/Log.html">TaskJuggler::Log</a></li>
|
291
|
+
|
292
|
+
<li><a href="../TaskJuggler/LogFile.html">TaskJuggler::LogFile</a></li>
|
293
|
+
|
294
|
+
<li><a href="../TaskJuggler/LogicalAttribute.html">TaskJuggler::LogicalAttribute</a></li>
|
295
|
+
|
296
|
+
<li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li>
|
297
|
+
|
298
|
+
<li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li>
|
299
|
+
|
300
|
+
<li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li>
|
301
|
+
|
302
|
+
<li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li>
|
303
|
+
|
304
|
+
<li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li>
|
305
|
+
|
306
|
+
<li><a href="../TaskJuggler/Macro.html">TaskJuggler::Macro</a></li>
|
307
|
+
|
308
|
+
<li><a href="../TaskJuggler/MacroParser.html">TaskJuggler::MacroParser</a></li>
|
309
|
+
|
310
|
+
<li><a href="../TaskJuggler/MacroTable.html">TaskJuggler::MacroTable</a></li>
|
311
|
+
|
312
|
+
<li><a href="../TaskJuggler/ManagerResponsibilities.html">TaskJuggler::ManagerResponsibilities</a></li>
|
313
|
+
|
314
|
+
<li><a href="../TaskJuggler/ManagerStatusRecord.html">TaskJuggler::ManagerStatusRecord</a></li>
|
315
|
+
|
316
|
+
<li><a href="../TaskJuggler/Message.html">TaskJuggler::Message</a></li>
|
317
|
+
|
318
|
+
<li><a href="../TaskJuggler/MessageHandler.html">TaskJuggler::MessageHandler</a></li>
|
319
|
+
|
320
|
+
<li><a href="../TaskJuggler/Navigator.html">TaskJuggler::Navigator</a></li>
|
321
|
+
|
322
|
+
<li><a href="../TaskJuggler/NavigatorElement.html">TaskJuggler::NavigatorElement</a></li>
|
323
|
+
|
324
|
+
<li><a href="../TaskJuggler/NikuProject.html">TaskJuggler::NikuProject</a></li>
|
325
|
+
|
326
|
+
<li><a href="../TaskJuggler/NikuReport.html">TaskJuggler::NikuReport</a></li>
|
327
|
+
|
328
|
+
<li><a href="../TaskJuggler/NikuResource.html">TaskJuggler::NikuResource</a></li>
|
329
|
+
|
330
|
+
<li><a href="../TaskJuggler/OnShiftCache.html">TaskJuggler::OnShiftCache</a></li>
|
331
|
+
|
332
|
+
<li><a href="../TaskJuggler/ProcessIntercom.html">TaskJuggler::ProcessIntercom</a></li>
|
333
|
+
|
334
|
+
<li><a href="../TaskJuggler/ProcessIntercomIface.html">TaskJuggler::ProcessIntercomIface</a></li>
|
335
|
+
|
336
|
+
<li><a href="../TaskJuggler/Project.html">TaskJuggler::Project</a></li>
|
337
|
+
|
338
|
+
<li><a href="../TaskJuggler/ProjectBroker.html">TaskJuggler::ProjectBroker</a></li>
|
339
|
+
|
340
|
+
<li><a href="../TaskJuggler/ProjectBrokerIface.html">TaskJuggler::ProjectBrokerIface</a></li>
|
341
|
+
|
342
|
+
<li><a href="../TaskJuggler/ProjectFileParser.html">TaskJuggler::ProjectFileParser</a></li>
|
343
|
+
|
344
|
+
<li><a href="../TaskJuggler/ProjectRecord.html">TaskJuggler::ProjectRecord</a></li>
|
345
|
+
|
346
|
+
<li><a href="../TaskJuggler/ProjectServer.html">TaskJuggler::ProjectServer</a></li>
|
347
|
+
|
348
|
+
<li><a href="../TaskJuggler/ProjectServerIface.html">TaskJuggler::ProjectServerIface</a></li>
|
349
|
+
|
350
|
+
<li><a href="../TaskJuggler/PropertyAttribute.html">TaskJuggler::PropertyAttribute</a></li>
|
351
|
+
|
352
|
+
<li><a href="../TaskJuggler/PropertyList.html">TaskJuggler::PropertyList</a></li>
|
353
|
+
|
354
|
+
<li><a href="../TaskJuggler/PropertySet.html">TaskJuggler::PropertySet</a></li>
|
355
|
+
|
356
|
+
<li><a href="../TaskJuggler/PropertyTreeNode.html">TaskJuggler::PropertyTreeNode</a></li>
|
357
|
+
|
358
|
+
<li><a href="../TaskJuggler/Query.html">TaskJuggler::Query</a></li>
|
359
|
+
|
360
|
+
<li><a href="../TaskJuggler/RTFNavigator.html">TaskJuggler::RTFNavigator</a></li>
|
361
|
+
|
362
|
+
<li><a href="../TaskJuggler/RTFQuery.html">TaskJuggler::RTFQuery</a></li>
|
363
|
+
|
364
|
+
<li><a href="../TaskJuggler/RTFReport.html">TaskJuggler::RTFReport</a></li>
|
365
|
+
|
366
|
+
<li><a href="../TaskJuggler/RealFormat.html">TaskJuggler::RealFormat</a></li>
|
367
|
+
|
368
|
+
<li><a href="../TaskJuggler/RealFormatAttribute.html">TaskJuggler::RealFormatAttribute</a></li>
|
369
|
+
|
370
|
+
<li><a href="../TaskJuggler/ReferenceAttribute.html">TaskJuggler::ReferenceAttribute</a></li>
|
371
|
+
|
372
|
+
<li><a href="../TaskJuggler/Report.html">TaskJuggler::Report</a></li>
|
373
|
+
|
374
|
+
<li><a href="../TaskJuggler/ReportBase.html">TaskJuggler::ReportBase</a></li>
|
375
|
+
|
376
|
+
<li><a href="../TaskJuggler/ReportContext.html">TaskJuggler::ReportContext</a></li>
|
377
|
+
|
378
|
+
<li><a href="../TaskJuggler/ReportServer.html">TaskJuggler::ReportServer</a></li>
|
379
|
+
|
380
|
+
<li><a href="../TaskJuggler/ReportServerIface.html">TaskJuggler::ReportServerIface</a></li>
|
381
|
+
|
382
|
+
<li><a href="../TaskJuggler/ReportServerRecord.html">TaskJuggler::ReportServerRecord</a></li>
|
383
|
+
|
384
|
+
<li><a href="../TaskJuggler/ReportTable.html">TaskJuggler::ReportTable</a></li>
|
385
|
+
|
386
|
+
<li><a href="../TaskJuggler/ReportTableCell.html">TaskJuggler::ReportTableCell</a></li>
|
387
|
+
|
388
|
+
<li><a href="../TaskJuggler/ReportTableColumn.html">TaskJuggler::ReportTableColumn</a></li>
|
389
|
+
|
390
|
+
<li><a href="../TaskJuggler/ReportTableLegend.html">TaskJuggler::ReportTableLegend</a></li>
|
391
|
+
|
392
|
+
<li><a href="../TaskJuggler/ReportTableLine.html">TaskJuggler::ReportTableLine</a></li>
|
393
|
+
|
394
|
+
<li><a href="../TaskJuggler/Resource.html">TaskJuggler::Resource</a></li>
|
395
|
+
|
396
|
+
<li><a href="../TaskJuggler/ResourceListAttribute.html">TaskJuggler::ResourceListAttribute</a></li>
|
397
|
+
|
398
|
+
<li><a href="../TaskJuggler/ResourceListRE.html">TaskJuggler::ResourceListRE</a></li>
|
399
|
+
|
400
|
+
<li><a href="../TaskJuggler/ResourceScenario.html">TaskJuggler::ResourceScenario</a></li>
|
401
|
+
|
402
|
+
<li><a href="../TaskJuggler/RichText.html">TaskJuggler::RichText</a></li>
|
403
|
+
|
404
|
+
<li><a href="../TaskJuggler/RichTextAttribute.html">TaskJuggler::RichTextAttribute</a></li>
|
405
|
+
|
406
|
+
<li><a href="../TaskJuggler/RichTextDocument.html">TaskJuggler::RichTextDocument</a></li>
|
407
|
+
|
408
|
+
<li><a href="../TaskJuggler/RichTextElement.html">TaskJuggler::RichTextElement</a></li>
|
409
|
+
|
410
|
+
<li><a href="../TaskJuggler/RichTextException.html">TaskJuggler::RichTextException</a></li>
|
411
|
+
|
412
|
+
<li><a href="../TaskJuggler/RichTextFunctionExample.html">TaskJuggler::RichTextFunctionExample</a></li>
|
413
|
+
|
414
|
+
<li><a href="../TaskJuggler/RichTextFunctionHandler.html">TaskJuggler::RichTextFunctionHandler</a></li>
|
415
|
+
|
416
|
+
<li><a href="../TaskJuggler/RichTextImage.html">TaskJuggler::RichTextImage</a></li>
|
417
|
+
|
418
|
+
<li><a href="../TaskJuggler/RichTextIntermediate.html">TaskJuggler::RichTextIntermediate</a></li>
|
419
|
+
|
420
|
+
<li><a href="../TaskJuggler/RichTextParser.html">TaskJuggler::RichTextParser</a></li>
|
421
|
+
|
422
|
+
<li><a href="../TaskJuggler/RichTextScanner.html">TaskJuggler::RichTextScanner</a></li>
|
423
|
+
|
424
|
+
<li><a href="../TaskJuggler/RichTextSnip.html">TaskJuggler::RichTextSnip</a></li>
|
425
|
+
|
426
|
+
<li><a href="../TaskJuggler/RichTextSyntaxRules.html">TaskJuggler::RichTextSyntaxRules</a></li>
|
427
|
+
|
428
|
+
<li><a href="../TaskJuggler/Scenario.html">TaskJuggler::Scenario</a></li>
|
429
|
+
|
430
|
+
<li><a href="../TaskJuggler/ScenarioData.html">TaskJuggler::ScenarioData</a></li>
|
431
|
+
|
432
|
+
<li><a href="../TaskJuggler/ScenarioListAttribute.html">TaskJuggler::ScenarioListAttribute</a></li>
|
433
|
+
|
434
|
+
<li><a href="../TaskJuggler/Scoreboard.html">TaskJuggler::Scoreboard</a></li>
|
435
|
+
|
436
|
+
<li><a href="../TaskJuggler/SheetHandlerBase.html">TaskJuggler::SheetHandlerBase</a></li>
|
437
|
+
|
438
|
+
<li><a href="../TaskJuggler/SheetReceiver.html">TaskJuggler::SheetReceiver</a></li>
|
439
|
+
|
440
|
+
<li><a href="../TaskJuggler/SheetSender.html">TaskJuggler::SheetSender</a></li>
|
441
|
+
|
442
|
+
<li><a href="../TaskJuggler/Shift.html">TaskJuggler::Shift</a></li>
|
443
|
+
|
444
|
+
<li><a href="../TaskJuggler/ShiftAssignment.html">TaskJuggler::ShiftAssignment</a></li>
|
445
|
+
|
446
|
+
<li><a href="../TaskJuggler/ShiftAssignments.html">TaskJuggler::ShiftAssignments</a></li>
|
447
|
+
|
448
|
+
<li><a href="../TaskJuggler/ShiftAssignmentsAttribute.html">TaskJuggler::ShiftAssignmentsAttribute</a></li>
|
449
|
+
|
450
|
+
<li><a href="../TaskJuggler/ShiftScenario.html">TaskJuggler::ShiftScenario</a></li>
|
451
|
+
|
452
|
+
<li><a href="../TaskJuggler/SortListAttribute.html">TaskJuggler::SortListAttribute</a></li>
|
453
|
+
|
454
|
+
<li><a href="../TaskJuggler/SourceFileInfo.html">TaskJuggler::SourceFileInfo</a></li>
|
455
|
+
|
456
|
+
<li><a href="../TaskJuggler/StatusSheetReceiver.html">TaskJuggler::StatusSheetReceiver</a></li>
|
457
|
+
|
458
|
+
<li><a href="../TaskJuggler/StatusSheetReport.html">TaskJuggler::StatusSheetReport</a></li>
|
459
|
+
|
460
|
+
<li><a href="../TaskJuggler/StatusSheetSender.html">TaskJuggler::StatusSheetSender</a></li>
|
461
|
+
|
462
|
+
<li><a href="../TaskJuggler/StringAttribute.html">TaskJuggler::StringAttribute</a></li>
|
463
|
+
|
464
|
+
<li><a href="../TaskJuggler/SymbolAttribute.html">TaskJuggler::SymbolAttribute</a></li>
|
465
|
+
|
466
|
+
<li><a href="../TaskJuggler/SyntaxReference.html">TaskJuggler::SyntaxReference</a></li>
|
467
|
+
|
468
|
+
<li><a href="../TaskJuggler/TOCEntry.html">TaskJuggler::TOCEntry</a></li>
|
469
|
+
|
470
|
+
<li><a href="../TaskJuggler/TSResourceRecord.html">TaskJuggler::TSResourceRecord</a></li>
|
471
|
+
|
472
|
+
<li><a href="../TaskJuggler/TSTaskRecord.html">TaskJuggler::TSTaskRecord</a></li>
|
473
|
+
|
474
|
+
<li><a href="../TaskJuggler/TableColumnDefinition.html">TaskJuggler::TableColumnDefinition</a></li>
|
475
|
+
|
476
|
+
<li><a href="../TaskJuggler/TableOfContents.html">TaskJuggler::TableOfContents</a></li>
|
477
|
+
|
478
|
+
<li><a href="../TaskJuggler/TableReport.html">TaskJuggler::TableReport</a></li>
|
479
|
+
|
480
|
+
<li><a href="../TaskJuggler/Task.html">TaskJuggler::Task</a></li>
|
481
|
+
|
482
|
+
<li><a href="../TaskJuggler/TaskDependency.html">TaskJuggler::TaskDependency</a></li>
|
483
|
+
|
484
|
+
<li><a href="../TaskJuggler/TaskListAttribute.html">TaskJuggler::TaskListAttribute</a></li>
|
485
|
+
|
486
|
+
<li><a href="../TaskJuggler/TaskListRE.html">TaskJuggler::TaskListRE</a></li>
|
487
|
+
|
488
|
+
<li><a href="../TaskJuggler/TaskScenario.html">TaskJuggler::TaskScenario</a></li>
|
489
|
+
|
490
|
+
<li><a href="../TaskJuggler/TextFormatter.html">TaskJuggler::TextFormatter</a></li>
|
491
|
+
|
492
|
+
<li><a href="../TaskJuggler/TextParser.html">TaskJuggler::TextParser</a></li>
|
493
|
+
|
494
|
+
<li><a href="../TaskJuggler/TextParser/Pattern.html">TaskJuggler::TextParser::Pattern</a></li>
|
495
|
+
|
496
|
+
<li><a href="../TaskJuggler/TextParser/Rule.html">TaskJuggler::TextParser::Rule</a></li>
|
497
|
+
|
498
|
+
<li><a href="../TaskJuggler/TextParser/StackElement.html">TaskJuggler::TextParser::StackElement</a></li>
|
499
|
+
|
500
|
+
<li><a href="../TaskJuggler/TextParser/TextParserResultArray.html">TaskJuggler::TextParser::TextParserResultArray</a></li>
|
501
|
+
|
502
|
+
<li><a href="../TaskJuggler/TextParser/TokenDoc.html">TaskJuggler::TextParser::TokenDoc</a></li>
|
503
|
+
|
504
|
+
<li><a href="../TaskJuggler/TextReport.html">TaskJuggler::TextReport</a></li>
|
505
|
+
|
506
|
+
<li><a href="../TaskJuggler/TextScanner.html">TaskJuggler::TextScanner</a></li>
|
507
|
+
|
508
|
+
<li><a href="../TaskJuggler/TextScanner/BufferStreamHandle.html">TaskJuggler::TextScanner::BufferStreamHandle</a></li>
|
509
|
+
|
510
|
+
<li><a href="../TaskJuggler/TextScanner/FileStreamHandle.html">TaskJuggler::TextScanner::FileStreamHandle</a></li>
|
511
|
+
|
512
|
+
<li><a href="../TaskJuggler/TextScanner/StreamHandle.html">TaskJuggler::TextScanner::StreamHandle</a></li>
|
513
|
+
|
514
|
+
<li><a href="../TaskJuggler/TimeSheet.html">TaskJuggler::TimeSheet</a></li>
|
515
|
+
|
516
|
+
<li><a href="../TaskJuggler/TimeSheetReceiver.html">TaskJuggler::TimeSheetReceiver</a></li>
|
517
|
+
|
518
|
+
<li><a href="../TaskJuggler/TimeSheetRecord.html">TaskJuggler::TimeSheetRecord</a></li>
|
519
|
+
|
520
|
+
<li><a href="../TaskJuggler/TimeSheetReport.html">TaskJuggler::TimeSheetReport</a></li>
|
521
|
+
|
522
|
+
<li><a href="../TaskJuggler/TimeSheetSender.html">TaskJuggler::TimeSheetSender</a></li>
|
523
|
+
|
524
|
+
<li><a href="../TaskJuggler/TimeSheetSummary.html">TaskJuggler::TimeSheetSummary</a></li>
|
525
|
+
|
526
|
+
<li><a href="../TaskJuggler/TimeSheets.html">TaskJuggler::TimeSheets</a></li>
|
527
|
+
|
528
|
+
<li><a href="../TaskJuggler/Tj3AppBase.html">TaskJuggler::Tj3AppBase</a></li>
|
529
|
+
|
530
|
+
<li><a href="../TaskJuggler/Tj3Client.html">TaskJuggler::Tj3Client</a></li>
|
531
|
+
|
532
|
+
<li><a href="../TaskJuggler/Tj3Daemon.html">TaskJuggler::Tj3Daemon</a></li>
|
533
|
+
|
534
|
+
<li><a href="../TaskJuggler/Tj3SheetAppBase.html">TaskJuggler::Tj3SheetAppBase</a></li>
|
535
|
+
|
536
|
+
<li><a href="../TaskJuggler/Tj3SsReceiver.html">TaskJuggler::Tj3SsReceiver</a></li>
|
537
|
+
|
538
|
+
<li><a href="../TaskJuggler/Tj3SsSender.html">TaskJuggler::Tj3SsSender</a></li>
|
539
|
+
|
540
|
+
<li><a href="../TaskJuggler/Tj3TsReceiver.html">TaskJuggler::Tj3TsReceiver</a></li>
|
541
|
+
|
542
|
+
<li><a href="../TaskJuggler/Tj3TsSender.html">TaskJuggler::Tj3TsSender</a></li>
|
543
|
+
|
544
|
+
<li><a href="../TaskJuggler/Tj3TsSummary.html">TaskJuggler::Tj3TsSummary</a></li>
|
545
|
+
|
546
|
+
<li><a href="../TaskJuggler/TjException.html">TaskJuggler::TjException</a></li>
|
547
|
+
|
548
|
+
<li><a href="../TaskJuggler/TjTime.html">TaskJuggler::TjTime</a></li>
|
549
|
+
|
550
|
+
<li><a href="../TaskJuggler/TjpExample.html">TaskJuggler::TjpExample</a></li>
|
551
|
+
|
552
|
+
<li><a href="../TaskJuggler/TjpExportRE.html">TaskJuggler::TjpExportRE</a></li>
|
553
|
+
|
554
|
+
<li><a href="../TaskJuggler/TjpSyntaxRules.html">TaskJuggler::TjpSyntaxRules</a></li>
|
555
|
+
|
556
|
+
<li><a href="../TaskJuggler/UserManual.html">TaskJuggler::UserManual</a></li>
|
557
|
+
|
558
|
+
<li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li>
|
559
|
+
|
560
|
+
<li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li>
|
561
|
+
|
562
|
+
<li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li>
|
563
|
+
|
564
|
+
<li><a href="../TaskJuggler/XMLComment.html">TaskJuggler::XMLComment</a></li>
|
565
|
+
|
566
|
+
<li><a href="../TaskJuggler/XMLDocument.html">TaskJuggler::XMLDocument</a></li>
|
567
|
+
|
568
|
+
<li><a href="../TaskJuggler/XMLElement.html">TaskJuggler::XMLElement</a></li>
|
569
|
+
|
570
|
+
<li><a href="../TaskJuggler/XMLNamedText.html">TaskJuggler::XMLNamedText</a></li>
|
571
|
+
|
572
|
+
<li><a href="../TaskJuggler/XMLText.html">TaskJuggler::XMLText</a></li>
|
573
|
+
|
574
|
+
<li><a href="../AppConfig.html">AppConfig</a></li>
|
575
|
+
|
576
|
+
<li><a href="../Arguments.html">Arguments</a></li>
|
577
|
+
|
578
|
+
<li><a href="../Object.html">Object</a></li>
|
579
|
+
|
580
|
+
<li><a href="../RuntimeConfig.html">RuntimeConfig</a></li>
|
581
|
+
|
582
|
+
<li><a href="../String.html">String</a></li>
|
583
|
+
|
584
|
+
</ul>
|
585
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
586
|
+
</div>
|
587
|
+
|
588
|
+
|
589
|
+
</div>
|
590
|
+
</div>
|
591
|
+
|
592
|
+
<div id="documentation">
|
593
|
+
<h1 class="class">TaskJuggler::PropertyTreeNode</h1>
|
594
|
+
|
595
|
+
<div id="description">
|
596
|
+
<p>
|
597
|
+
This class is the base object for all <a href="Project.html">Project</a>
|
598
|
+
properties. A <a href="Project.html">Project</a> property is a e. g. a <a
|
599
|
+
href="Task.html">Task</a>, a <a href="Resource.html">Resource</a> or other
|
600
|
+
objects. Such properties can be arranged in tree form by assigning child
|
601
|
+
properties to an existing property. The parent object needs to exist at
|
602
|
+
object creation time. The <a
|
603
|
+
href="PropertyTreeNode.html">PropertyTreeNode</a> class holds all data and
|
604
|
+
methods that are common to the different types of properties. Each property
|
605
|
+
can have a set of predifined attributes. The <a
|
606
|
+
href="PropertySet.html">PropertySet</a> class holds collections of the same
|
607
|
+
<a href="PropertyTreeNode.html">PropertyTreeNode</a> objects and the
|
608
|
+
defined attributes. Each <a href="PropertySet.html">PropertySet</a> has a
|
609
|
+
predefined set of attributes, but the attribute set can be extended by the
|
610
|
+
user. E.g. a task has the predefined attribute ‘start’ and
|
611
|
+
‘end’ date. The user can extend tasks with a user defined
|
612
|
+
attribute like an URL that contains more details about the task.
|
613
|
+
</p>
|
614
|
+
|
615
|
+
</div>
|
616
|
+
|
617
|
+
<!-- Constants -->
|
618
|
+
|
619
|
+
|
620
|
+
<!-- Attributes -->
|
621
|
+
|
622
|
+
<div id="attribute-method-details" class="method-section section">
|
623
|
+
<h3 class="section-header">Attributes</h3>
|
624
|
+
|
625
|
+
|
626
|
+
<div id="property-et-attribute-method" class="method-detail">
|
627
|
+
<a name="propertySet"></a>
|
628
|
+
|
629
|
+
<div class="method-heading attribute-method-heading">
|
630
|
+
<span class="method-name">propertySet</span><span
|
631
|
+
class="attribute-access-type">[R]</span>
|
632
|
+
</div>
|
633
|
+
|
634
|
+
<div class="method-description">
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
</div>
|
639
|
+
</div>
|
640
|
+
|
641
|
+
<div id="id-attribute-method" class="method-detail">
|
642
|
+
<a name="id"></a>
|
643
|
+
|
644
|
+
<div class="method-heading attribute-method-heading">
|
645
|
+
<span class="method-name">id</span><span
|
646
|
+
class="attribute-access-type">[R]</span>
|
647
|
+
</div>
|
648
|
+
|
649
|
+
<div class="method-description">
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
</div>
|
654
|
+
</div>
|
655
|
+
|
656
|
+
<div id="name-attribute-method" class="method-detail">
|
657
|
+
<a name="name"></a>
|
658
|
+
|
659
|
+
<div class="method-heading attribute-method-heading">
|
660
|
+
<span class="method-name">name</span><span
|
661
|
+
class="attribute-access-type">[R]</span>
|
662
|
+
</div>
|
663
|
+
|
664
|
+
<div class="method-description">
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
</div>
|
669
|
+
</div>
|
670
|
+
|
671
|
+
<div id="parent-attribute-method" class="method-detail">
|
672
|
+
<a name="parent"></a>
|
673
|
+
|
674
|
+
<div class="method-heading attribute-method-heading">
|
675
|
+
<span class="method-name">parent</span><span
|
676
|
+
class="attribute-access-type">[R]</span>
|
677
|
+
</div>
|
678
|
+
|
679
|
+
<div class="method-description">
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
</div>
|
684
|
+
</div>
|
685
|
+
|
686
|
+
<div id="project-attribute-method" class="method-detail">
|
687
|
+
<a name="project"></a>
|
688
|
+
|
689
|
+
<div class="method-heading attribute-method-heading">
|
690
|
+
<span class="method-name">project</span><span
|
691
|
+
class="attribute-access-type">[R]</span>
|
692
|
+
</div>
|
693
|
+
|
694
|
+
<div class="method-description">
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
</div>
|
699
|
+
</div>
|
700
|
+
|
701
|
+
<div id="sequence-o-attribute-method" class="method-detail">
|
702
|
+
<a name="sequenceNo"></a>
|
703
|
+
|
704
|
+
<div class="method-heading attribute-method-heading">
|
705
|
+
<span class="method-name">sequenceNo</span><span
|
706
|
+
class="attribute-access-type">[R]</span>
|
707
|
+
</div>
|
708
|
+
|
709
|
+
<div class="method-description">
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
</div>
|
714
|
+
</div>
|
715
|
+
|
716
|
+
<div id="children-attribute-method" class="method-detail">
|
717
|
+
<a name="children"></a>
|
718
|
+
|
719
|
+
<div class="method-heading attribute-method-heading">
|
720
|
+
<span class="method-name">children</span><span
|
721
|
+
class="attribute-access-type">[R]</span>
|
722
|
+
</div>
|
723
|
+
|
724
|
+
<div class="method-description">
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
</div>
|
729
|
+
</div>
|
730
|
+
|
731
|
+
<div id="source-ile-nfo-attribute-method" class="method-detail">
|
732
|
+
<a name="sourceFileInfo"></a>
|
733
|
+
|
734
|
+
<a name="sourceFileInfo="></a>
|
735
|
+
|
736
|
+
<div class="method-heading attribute-method-heading">
|
737
|
+
<span class="method-name">sourceFileInfo</span><span
|
738
|
+
class="attribute-access-type">[RW]</span>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
<div class="method-description">
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
</div>
|
746
|
+
</div>
|
747
|
+
|
748
|
+
<div id="data-attribute-method" class="method-detail">
|
749
|
+
<a name="data"></a>
|
750
|
+
|
751
|
+
<div class="method-heading attribute-method-heading">
|
752
|
+
<span class="method-name">data</span><span
|
753
|
+
class="attribute-access-type">[R]</span>
|
754
|
+
</div>
|
755
|
+
|
756
|
+
<div class="method-description">
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
</div>
|
761
|
+
</div>
|
762
|
+
|
763
|
+
</div>
|
764
|
+
|
765
|
+
|
766
|
+
<!-- Methods -->
|
767
|
+
|
768
|
+
<div id="public-class-method-details" class="method-section section">
|
769
|
+
<h3 class="section-header">Public Class Methods</h3>
|
770
|
+
|
771
|
+
|
772
|
+
<div id="new-method" class="method-detail ">
|
773
|
+
<a name="M000947"></a>
|
774
|
+
|
775
|
+
<div class="method-heading">
|
776
|
+
|
777
|
+
<span class="method-name">new</span><span
|
778
|
+
class="method-args">(propertySet, id, name, parent)</span>
|
779
|
+
<span class="method-click-advice">click to toggle source</span>
|
780
|
+
|
781
|
+
</div>
|
782
|
+
|
783
|
+
<div class="method-description">
|
784
|
+
|
785
|
+
<p>
|
786
|
+
Create a new <a href="PropertyTreeNode.html">PropertyTreeNode</a> object.
|
787
|
+
<em>propertySet</em> is the <a href="PropertySet.html">PropertySet</a> that
|
788
|
+
this <a href="PropertyTreeNode.html">PropertyTreeNode</a> object belongs
|
789
|
+
to. The <a href="PropertySet.html">PropertySet</a> determines the
|
790
|
+
attributes that are common to all Nodes in the set. <em>id</em> is a <a
|
791
|
+
href="../String.html">String</a> that is unique in the namespace of the
|
792
|
+
set. <em>name</em> is a user readable, short description of the object.
|
793
|
+
<em>parent</em> is the <a href="PropertyTreeNode.html">PropertyTreeNode</a>
|
794
|
+
that sits above this node in the object hierachy. A root object has a
|
795
|
+
<em>parent</em> of nil. For sets with hierachical name spaces, parent can
|
796
|
+
be nil and specified by a hierachical <em>id</em> (e. g.
|
797
|
+
‘father.son’).
|
798
|
+
</p>
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
<div class="method-source-code"
|
803
|
+
id="new-source">
|
804
|
+
<pre>
|
805
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 42</span>
|
806
|
+
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>)
|
807
|
+
43: <span class="ruby-ivar">@propertySet</span> = <span class="ruby-identifier">propertySet</span>
|
808
|
+
44: <span class="ruby-comment cmt"># If _id_ is still nil, we generate a unique id.</span>
|
809
|
+
45: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">id</span>
|
810
|
+
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>)
|
811
|
+
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>
|
812
|
+
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>
|
813
|
+
49: <span class="ruby-keyword kw">end</span>
|
814
|
+
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>)
|
815
|
+
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>)]
|
816
|
+
52: <span class="ruby-comment cmt"># Set parent to the parent property if it's still nil.</span>
|
817
|
+
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>
|
818
|
+
54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
|
819
|
+
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>]
|
820
|
+
56: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Fatal Error: parent must be member of same property set"</span>
|
821
|
+
57: <span class="ruby-keyword kw">end</span>
|
822
|
+
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>
|
823
|
+
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>
|
824
|
+
60: <span class="ruby-node">"(#{parentId}) don't match"</span>
|
825
|
+
61: <span class="ruby-keyword kw">end</span>
|
826
|
+
62: <span class="ruby-keyword kw">end</span>
|
827
|
+
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>]
|
828
|
+
64: <span class="ruby-keyword kw">else</span>
|
829
|
+
65: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
830
|
+
66: <span class="ruby-keyword kw">end</span>
|
831
|
+
67: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
832
|
+
68: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">propertySet</span>.<span class="ruby-identifier">project</span>
|
833
|
+
69: <span class="ruby-ivar">@level</span> = <span class="ruby-value">1</span>
|
834
|
+
70: <span class="ruby-ivar">@sourceFileInfo</span> = <span class="ruby-keyword kw">nil</span>
|
835
|
+
71:
|
836
|
+
72: <span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
|
837
|
+
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>
|
838
|
+
74: <span class="ruby-ivar">@children</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
839
|
+
75: <span class="ruby-comment cmt"># In case we have a parent object, we register this object as child of</span>
|
840
|
+
76: <span class="ruby-comment cmt"># the parent.</span>
|
841
|
+
77: <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@parent</span>)
|
842
|
+
78: <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">addChild</span>(<span class="ruby-keyword kw">self</span>)
|
843
|
+
79: <span class="ruby-keyword kw">end</span>
|
844
|
+
80:
|
845
|
+
81: <span class="ruby-ivar">@attributes</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
846
|
+
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>)
|
847
|
+
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> }
|
848
|
+
84:
|
849
|
+
85: <span class="ruby-comment cmt"># Scenario specific data</span>
|
850
|
+
86: <span class="ruby-ivar">@data</span> = <span class="ruby-keyword kw">nil</span>
|
851
|
+
87: <span class="ruby-keyword kw">end</span></pre>
|
852
|
+
</div>
|
853
|
+
|
854
|
+
</div>
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
|
859
|
+
</div>
|
860
|
+
|
861
|
+
|
862
|
+
</div>
|
863
|
+
|
864
|
+
<div id="public-instance-method-details" class="method-section section">
|
865
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
866
|
+
|
867
|
+
|
868
|
+
<div id="--method" class="method-detail ">
|
869
|
+
<a name="M000972"></a>
|
870
|
+
|
871
|
+
<div class="method-heading">
|
872
|
+
|
873
|
+
<span class="method-name">[]</span><span
|
874
|
+
class="method-args">(attributeId, scenario)</span>
|
875
|
+
<span class="method-click-advice">click to toggle source</span>
|
876
|
+
|
877
|
+
</div>
|
878
|
+
|
879
|
+
<div class="method-description">
|
880
|
+
|
881
|
+
<p>
|
882
|
+
Return the value of the attribute with ID <em>attributeId</em>. For
|
883
|
+
scenario-specific attributes, <em>scenario</em> must indicate the index of
|
884
|
+
the <a href="Scenario.html">Scenario</a>.
|
885
|
+
</p>
|
886
|
+
|
887
|
+
|
888
|
+
|
889
|
+
<div class="method-source-code"
|
890
|
+
id="--source">
|
891
|
+
<pre>
|
892
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 420</span>
|
893
|
+
420: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">attributeId</span>, <span class="ruby-identifier">scenario</span>)
|
894
|
+
421: <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>)
|
895
|
+
422: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenario</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">get</span>
|
896
|
+
423: <span class="ruby-keyword kw">else</span>
|
897
|
+
424: <span class="ruby-identifier">get</span>(<span class="ruby-identifier">attributeId</span>);
|
898
|
+
425: <span class="ruby-keyword kw">end</span>
|
899
|
+
426: <span class="ruby-keyword kw">end</span></pre>
|
900
|
+
</div>
|
901
|
+
|
902
|
+
</div>
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
</div>
|
908
|
+
|
909
|
+
|
910
|
+
<div id="--method" class="method-detail ">
|
911
|
+
<a name="M000971"></a>
|
912
|
+
|
913
|
+
<div class="method-heading">
|
914
|
+
|
915
|
+
<span class="method-name">[]=</span><span
|
916
|
+
class="method-args">(attributeId, scenario, value)</span>
|
917
|
+
<span class="method-click-advice">click to toggle source</span>
|
918
|
+
|
919
|
+
</div>
|
920
|
+
|
921
|
+
<div class="method-description">
|
922
|
+
|
923
|
+
<p>
|
924
|
+
Set the scenario specific attribute with ID <em>attributeId</em> for the
|
925
|
+
scenario with index <em>scenario</em> to <em>value</em>. In case the
|
926
|
+
attribute does not exist, an exception is raised.
|
927
|
+
</p>
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
<div class="method-source-code"
|
932
|
+
id="--source">
|
933
|
+
<pre>
|
934
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 406</span>
|
935
|
+
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>, <span class="ruby-identifier">value</span>)
|
936
|
+
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>)
|
937
|
+
408: <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>)
|
938
|
+
409: <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>)
|
939
|
+
410: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
940
|
+
411: <span class="ruby-keyword kw">else</span>
|
941
|
+
412: <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>
|
942
|
+
413: <span class="ruby-keyword kw">end</span>
|
943
|
+
414: <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>)
|
944
|
+
415: <span class="ruby-keyword kw">end</span></pre>
|
945
|
+
</div>
|
946
|
+
|
947
|
+
</div>
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
|
952
|
+
</div>
|
953
|
+
|
954
|
+
|
955
|
+
<div id="add-hild-method" class="method-detail ">
|
956
|
+
<a name="M000960"></a>
|
957
|
+
|
958
|
+
<div class="method-heading">
|
959
|
+
|
960
|
+
<span class="method-name">addChild</span><span
|
961
|
+
class="method-args">(child)</span>
|
962
|
+
<span class="method-click-advice">click to toggle source</span>
|
963
|
+
|
964
|
+
</div>
|
965
|
+
|
966
|
+
<div class="method-description">
|
967
|
+
|
968
|
+
<p>
|
969
|
+
Add <em>child</em> node as child to this node.
|
970
|
+
</p>
|
971
|
+
|
972
|
+
|
973
|
+
|
974
|
+
<div class="method-source-code"
|
975
|
+
id="add-hild-source">
|
976
|
+
<pre>
|
977
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 283</span>
|
978
|
+
283: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addChild</span>(<span class="ruby-identifier">child</span>)
|
979
|
+
284: <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>
|
980
|
+
285: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Child nodes must belong to the same property set as the parent"</span>
|
981
|
+
286: <span class="ruby-keyword kw">end</span>
|
982
|
+
287: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">child</span>)
|
983
|
+
288: <span class="ruby-keyword kw">end</span></pre>
|
984
|
+
</div>
|
985
|
+
|
986
|
+
</div>
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
|
991
|
+
</div>
|
992
|
+
|
993
|
+
|
994
|
+
<div id="all-method" class="method-detail ">
|
995
|
+
<a name="M000952"></a>
|
996
|
+
|
997
|
+
<div class="method-heading">
|
998
|
+
|
999
|
+
<span class="method-name">all</span><span
|
1000
|
+
class="method-args">()</span>
|
1001
|
+
<span class="method-click-advice">click to toggle source</span>
|
1002
|
+
|
1003
|
+
</div>
|
1004
|
+
|
1005
|
+
<div class="method-description">
|
1006
|
+
|
1007
|
+
<p>
|
1008
|
+
Returns a list of this node and all transient sub nodes.
|
1009
|
+
</p>
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
<div class="method-source-code"
|
1014
|
+
id="all-source">
|
1015
|
+
<pre>
|
1016
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 191</span>
|
1017
|
+
191: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all</span>
|
1018
|
+
192: <span class="ruby-identifier">res</span> = [ <span class="ruby-keyword kw">self</span> ]
|
1019
|
+
193: <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>
|
1020
|
+
194: <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>)
|
1021
|
+
195: <span class="ruby-keyword kw">end</span>
|
1022
|
+
196: <span class="ruby-identifier">res</span>
|
1023
|
+
197: <span class="ruby-keyword kw">end</span></pre>
|
1024
|
+
</div>
|
1025
|
+
|
1026
|
+
</div>
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
</div>
|
1032
|
+
|
1033
|
+
|
1034
|
+
<div id="all-eaves-method" class="method-detail ">
|
1035
|
+
<a name="M000953"></a>
|
1036
|
+
|
1037
|
+
<div class="method-heading">
|
1038
|
+
|
1039
|
+
<span class="method-name">allLeaves</span><span
|
1040
|
+
class="method-args">()</span>
|
1041
|
+
<span class="method-click-advice">click to toggle source</span>
|
1042
|
+
|
1043
|
+
</div>
|
1044
|
+
|
1045
|
+
<div class="method-description">
|
1046
|
+
|
1047
|
+
<p>
|
1048
|
+
Return a list of all leaf nodes of this node.
|
1049
|
+
</p>
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
<div class="method-source-code"
|
1054
|
+
id="all-eaves-source">
|
1055
|
+
<pre>
|
1056
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 200</span>
|
1057
|
+
200: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allLeaves</span>
|
1058
|
+
201: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf?</span>
|
1059
|
+
202: <span class="ruby-identifier">res</span> = [ <span class="ruby-keyword kw">self</span> ]
|
1060
|
+
203: <span class="ruby-keyword kw">else</span>
|
1061
|
+
204: <span class="ruby-identifier">res</span> = []
|
1062
|
+
205: <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>
|
1063
|
+
206: <span class="ruby-identifier">res</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">allLeaves</span>
|
1064
|
+
207: <span class="ruby-keyword kw">end</span>
|
1065
|
+
208: <span class="ruby-keyword kw">end</span>
|
1066
|
+
209: <span class="ruby-identifier">res</span>
|
1067
|
+
210: <span class="ruby-keyword kw">end</span></pre>
|
1068
|
+
</div>
|
1069
|
+
|
1070
|
+
</div>
|
1071
|
+
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
</div>
|
1076
|
+
|
1077
|
+
|
1078
|
+
<div id="attribute-efinition-method" class="method-detail ">
|
1079
|
+
<a name="M000966"></a>
|
1080
|
+
|
1081
|
+
<div class="method-heading">
|
1082
|
+
|
1083
|
+
<span class="method-name">attributeDefinition</span><span
|
1084
|
+
class="method-args">(attributeId)</span>
|
1085
|
+
<span class="method-click-advice">click to toggle source</span>
|
1086
|
+
|
1087
|
+
</div>
|
1088
|
+
|
1089
|
+
<div class="method-description">
|
1090
|
+
|
1091
|
+
<p>
|
1092
|
+
Return the type of the attribute with ID <em>attributeId</em>.
|
1093
|
+
</p>
|
1094
|
+
|
1095
|
+
|
1096
|
+
|
1097
|
+
<div class="method-source-code"
|
1098
|
+
id="attribute-efinition-source">
|
1099
|
+
<pre>
|
1100
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 333</span>
|
1101
|
+
333: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributeDefinition</span>(<span class="ruby-identifier">attributeId</span>)
|
1102
|
+
334: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">attributeDefinitions</span>[<span class="ruby-identifier">attributeId</span>]
|
1103
|
+
335: <span class="ruby-keyword kw">end</span></pre>
|
1104
|
+
</div>
|
1105
|
+
|
1106
|
+
</div>
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
1110
|
+
|
1111
|
+
</div>
|
1112
|
+
|
1113
|
+
|
1114
|
+
<div id="container--method" class="method-detail ">
|
1115
|
+
<a name="M000963"></a>
|
1116
|
+
|
1117
|
+
<div class="method-heading">
|
1118
|
+
|
1119
|
+
<span class="method-name">container?</span><span
|
1120
|
+
class="method-args">()</span>
|
1121
|
+
<span class="method-click-advice">click to toggle source</span>
|
1122
|
+
|
1123
|
+
</div>
|
1124
|
+
|
1125
|
+
<div class="method-description">
|
1126
|
+
|
1127
|
+
<p>
|
1128
|
+
Return true if the node has children.
|
1129
|
+
</p>
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
<div class="method-source-code"
|
1134
|
+
id="container--source">
|
1135
|
+
<pre>
|
1136
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 305</span>
|
1137
|
+
305: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">container?</span>
|
1138
|
+
306: <span class="ruby-operator">!</span><span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span>
|
1139
|
+
307: <span class="ruby-keyword kw">end</span></pre>
|
1140
|
+
</div>
|
1141
|
+
|
1142
|
+
</div>
|
1143
|
+
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
</div>
|
1148
|
+
|
1149
|
+
|
1150
|
+
<div id="declare-ttribute-method" class="method-detail ">
|
1151
|
+
<a name="M000965"></a>
|
1152
|
+
|
1153
|
+
<div class="method-heading">
|
1154
|
+
|
1155
|
+
<span class="method-name">declareAttribute</span><span
|
1156
|
+
class="method-args">(attributeType)</span>
|
1157
|
+
<span class="method-click-advice">click to toggle source</span>
|
1158
|
+
|
1159
|
+
</div>
|
1160
|
+
|
1161
|
+
<div class="method-description">
|
1162
|
+
|
1163
|
+
<p>
|
1164
|
+
Register a new attribute with the <a
|
1165
|
+
href="PropertyTreeNode.html">PropertyTreeNode</a> and create the instances
|
1166
|
+
for each scenario.
|
1167
|
+
</p>
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
<div class="method-source-code"
|
1172
|
+
id="declare-ttribute-source">
|
1173
|
+
<pre>
|
1174
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 320</span>
|
1175
|
+
320: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">declareAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
1176
|
+
321: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attributeType</span>.<span class="ruby-identifier">scenarioSpecific</span>
|
1177
|
+
322: <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>
|
1178
|
+
323: <span class="ruby-identifier">attribute</span> = <span class="ruby-identifier">newAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
1179
|
+
324: <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>
|
1180
|
+
325: <span class="ruby-keyword kw">end</span>
|
1181
|
+
326: <span class="ruby-keyword kw">else</span>
|
1182
|
+
327: <span class="ruby-identifier">attribute</span> = <span class="ruby-identifier">newAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
1183
|
+
328: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">attribute</span>
|
1184
|
+
329: <span class="ruby-keyword kw">end</span>
|
1185
|
+
330: <span class="ruby-keyword kw">end</span></pre>
|
1186
|
+
</div>
|
1187
|
+
|
1188
|
+
</div>
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
</div>
|
1194
|
+
|
1195
|
+
|
1196
|
+
<div id="deep-clone-method" class="method-detail ">
|
1197
|
+
<a name="M000948"></a>
|
1198
|
+
|
1199
|
+
<div class="method-heading">
|
1200
|
+
|
1201
|
+
<span class="method-name">deep_clone</span><span
|
1202
|
+
class="method-args">()</span>
|
1203
|
+
<span class="method-click-advice">click to toggle source</span>
|
1204
|
+
|
1205
|
+
</div>
|
1206
|
+
|
1207
|
+
<div class="method-description">
|
1208
|
+
|
1209
|
+
<p>
|
1210
|
+
We only use <a href="PropertyTreeNode.html#M000948">deep_clone</a> for
|
1211
|
+
attributes, never for properties. Since attributes may reference properties
|
1212
|
+
these references should remain references.
|
1213
|
+
</p>
|
1214
|
+
|
1215
|
+
|
1216
|
+
|
1217
|
+
<div class="method-source-code"
|
1218
|
+
id="deep-clone-source">
|
1219
|
+
<pre>
|
1220
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 92</span>
|
1221
|
+
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_clone</span>
|
1222
|
+
93: <span class="ruby-keyword kw">self</span>
|
1223
|
+
94: <span class="ruby-keyword kw">end</span></pre>
|
1224
|
+
</div>
|
1225
|
+
|
1226
|
+
</div>
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
</div>
|
1232
|
+
|
1233
|
+
|
1234
|
+
<div id="each-ttribute-method" class="method-detail ">
|
1235
|
+
<a name="M000954"></a>
|
1236
|
+
|
1237
|
+
<div class="method-heading">
|
1238
|
+
|
1239
|
+
<span class="method-name">eachAttribute</span><span
|
1240
|
+
class="method-args">()</span>
|
1241
|
+
<span class="method-click-advice">click to toggle source</span>
|
1242
|
+
|
1243
|
+
</div>
|
1244
|
+
|
1245
|
+
<div class="method-description">
|
1246
|
+
|
1247
|
+
<p>
|
1248
|
+
Iterator over all non-scenario-specific attributes of this node.
|
1249
|
+
</p>
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
<div class="method-source-code"
|
1254
|
+
id="each-ttribute-source">
|
1255
|
+
<pre>
|
1256
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 213</span>
|
1257
|
+
213: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachAttribute</span>
|
1258
|
+
214: <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>
|
1259
|
+
215: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">attr</span>
|
1260
|
+
216: <span class="ruby-keyword kw">end</span>
|
1261
|
+
217: <span class="ruby-keyword kw">end</span></pre>
|
1262
|
+
</div>
|
1263
|
+
|
1264
|
+
</div>
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
</div>
|
1270
|
+
|
1271
|
+
|
1272
|
+
<div id="each-cenario-ttribute-method" class="method-detail ">
|
1273
|
+
<a name="M000955"></a>
|
1274
|
+
|
1275
|
+
<div class="method-heading">
|
1276
|
+
|
1277
|
+
<span class="method-name">eachScenarioAttribute</span><span
|
1278
|
+
class="method-args">(scenario)</span>
|
1279
|
+
<span class="method-click-advice">click to toggle source</span>
|
1280
|
+
|
1281
|
+
</div>
|
1282
|
+
|
1283
|
+
<div class="method-description">
|
1284
|
+
|
1285
|
+
<p>
|
1286
|
+
Iterator over all scenario-specific attributes of this node.
|
1287
|
+
</p>
|
1288
|
+
|
1289
|
+
|
1290
|
+
|
1291
|
+
<div class="method-source-code"
|
1292
|
+
id="each-cenario-ttribute-source">
|
1293
|
+
<pre>
|
1294
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 220</span>
|
1295
|
+
220: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eachScenarioAttribute</span>(<span class="ruby-identifier">scenario</span>)
|
1296
|
+
221: <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>
|
1297
|
+
222: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">attr</span>
|
1298
|
+
223: <span class="ruby-keyword kw">end</span>
|
1299
|
+
224: <span class="ruby-keyword kw">end</span></pre>
|
1300
|
+
</div>
|
1301
|
+
|
1302
|
+
</div>
|
1303
|
+
|
1304
|
+
|
1305
|
+
|
1306
|
+
|
1307
|
+
</div>
|
1308
|
+
|
1309
|
+
|
1310
|
+
<div id="full-d-method" class="method-detail ">
|
1311
|
+
<a name="M000956"></a>
|
1312
|
+
|
1313
|
+
<div class="method-heading">
|
1314
|
+
|
1315
|
+
<span class="method-name">fullId</span><span
|
1316
|
+
class="method-args">()</span>
|
1317
|
+
<span class="method-click-advice">click to toggle source</span>
|
1318
|
+
|
1319
|
+
</div>
|
1320
|
+
|
1321
|
+
<div class="method-description">
|
1322
|
+
|
1323
|
+
<p>
|
1324
|
+
Return the full id of this node. For <a
|
1325
|
+
href="PropertySet.html">PropertySet</a> objects with a flat namespace, this
|
1326
|
+
is just the ID. Otherwise, the full ID is composed of all IDs from the root
|
1327
|
+
node to this node, separating the IDs by a dot.
|
1328
|
+
</p>
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
<div class="method-source-code"
|
1333
|
+
id="full-d-source">
|
1334
|
+
<pre>
|
1335
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 229</span>
|
1336
|
+
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fullId</span>
|
1337
|
+
230: <span class="ruby-identifier">res</span> = <span class="ruby-ivar">@id</span>
|
1338
|
+
231: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">flatNamespace</span>
|
1339
|
+
232: <span class="ruby-identifier">t</span> = <span class="ruby-keyword kw">self</span>
|
1340
|
+
233: <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>
|
1341
|
+
234: <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>
|
1342
|
+
235: <span class="ruby-keyword kw">end</span>
|
1343
|
+
236: <span class="ruby-keyword kw">end</span>
|
1344
|
+
237: <span class="ruby-identifier">res</span>
|
1345
|
+
238: <span class="ruby-keyword kw">end</span></pre>
|
1346
|
+
</div>
|
1347
|
+
|
1348
|
+
</div>
|
1349
|
+
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
</div>
|
1354
|
+
|
1355
|
+
|
1356
|
+
<div id="get-method" class="method-detail ">
|
1357
|
+
<a name="M000967"></a>
|
1358
|
+
|
1359
|
+
<div class="method-heading">
|
1360
|
+
|
1361
|
+
<span class="method-name">get</span><span
|
1362
|
+
class="method-args">(attributeId)</span>
|
1363
|
+
<span class="method-click-advice">click to toggle source</span>
|
1364
|
+
|
1365
|
+
</div>
|
1366
|
+
|
1367
|
+
<div class="method-description">
|
1368
|
+
|
1369
|
+
<p>
|
1370
|
+
Return the value of the non-scenario-specific attribute with ID
|
1371
|
+
<em>attributeId</em>. In case the attribute does not exist, an exception is
|
1372
|
+
raised.
|
1373
|
+
</p>
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
<div class="method-source-code"
|
1378
|
+
id="get-source">
|
1379
|
+
<pre>
|
1380
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 340</span>
|
1381
|
+
340: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">attributeId</span>)
|
1382
|
+
341: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
1383
|
+
342: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
1384
|
+
343: <span class="ruby-ivar">@id</span>
|
1385
|
+
344: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
1386
|
+
345: <span class="ruby-ivar">@name</span>
|
1387
|
+
346: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
1388
|
+
347: <span class="ruby-ivar">@sequenceNo</span>
|
1389
|
+
348: <span class="ruby-keyword kw">else</span>
|
1390
|
+
349: <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>)
|
1391
|
+
350: <span class="ruby-identifier">raise</span> <span class="ruby-constant">TjException</span>.<span class="ruby-identifier">new</span>,
|
1392
|
+
351: <span class="ruby-node">"Unknown attribute '#{attributeId}' requested for "</span> <span class="ruby-operator">+</span>
|
1393
|
+
352: <span class="ruby-node">"#{self.class.to_s.sub(/TaskJuggler::/, '')} '#{fullId}'"</span>
|
1394
|
+
353: <span class="ruby-keyword kw">end</span>
|
1395
|
+
354: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">get</span>
|
1396
|
+
355: <span class="ruby-keyword kw">end</span>
|
1397
|
+
356: <span class="ruby-keyword kw">end</span></pre>
|
1398
|
+
</div>
|
1399
|
+
|
1400
|
+
</div>
|
1401
|
+
|
1402
|
+
|
1403
|
+
|
1404
|
+
|
1405
|
+
</div>
|
1406
|
+
|
1407
|
+
|
1408
|
+
<div id="get-ttr-method" class="method-detail ">
|
1409
|
+
<a name="M000968"></a>
|
1410
|
+
|
1411
|
+
<div class="method-heading">
|
1412
|
+
|
1413
|
+
<span class="method-name">getAttr</span><span
|
1414
|
+
class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1415
|
+
<span class="method-click-advice">click to toggle source</span>
|
1416
|
+
|
1417
|
+
</div>
|
1418
|
+
|
1419
|
+
<div class="method-description">
|
1420
|
+
|
1421
|
+
<p>
|
1422
|
+
Return the value of the attribute with ID <em>attributeId</em>. In case
|
1423
|
+
this is a scenario-specific attribute, the scenario index needs to be
|
1424
|
+
provided by <em>scenarioIdx</em>.
|
1425
|
+
</p>
|
1426
|
+
|
1427
|
+
|
1428
|
+
|
1429
|
+
<div class="method-source-code"
|
1430
|
+
id="get-ttr-source">
|
1431
|
+
<pre>
|
1432
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 361</span>
|
1433
|
+
361: <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>)
|
1434
|
+
362: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>.<span class="ruby-identifier">nil?</span>
|
1435
|
+
363: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
1436
|
+
364: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
1437
|
+
365: <span class="ruby-ivar">@id</span>
|
1438
|
+
366: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
1439
|
+
367: <span class="ruby-ivar">@name</span>
|
1440
|
+
368: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
1441
|
+
369: <span class="ruby-ivar">@sequenceNo</span>
|
1442
|
+
370: <span class="ruby-keyword kw">else</span>
|
1443
|
+
371: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>]
|
1444
|
+
372: <span class="ruby-keyword kw">end</span>
|
1445
|
+
373: <span class="ruby-keyword kw">else</span>
|
1446
|
+
374: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>]
|
1447
|
+
375: <span class="ruby-keyword kw">end</span>
|
1448
|
+
376: <span class="ruby-keyword kw">end</span></pre>
|
1449
|
+
</div>
|
1450
|
+
|
1451
|
+
</div>
|
1452
|
+
|
1453
|
+
|
1454
|
+
|
1455
|
+
|
1456
|
+
</div>
|
1457
|
+
|
1458
|
+
|
1459
|
+
<div id="get-ttribute-method" class="method-detail ">
|
1460
|
+
<a name="M000969"></a>
|
1461
|
+
|
1462
|
+
<div class="method-heading">
|
1463
|
+
|
1464
|
+
<span class="method-name">getAttribute</span><span
|
1465
|
+
class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1466
|
+
<span class="method-click-advice">click to toggle source</span>
|
1467
|
+
|
1468
|
+
</div>
|
1469
|
+
|
1470
|
+
<div class="method-description">
|
1471
|
+
|
1472
|
+
<p>
|
1473
|
+
This function is similar to getAttr() but it always returns a <a
|
1474
|
+
href="AttributeBase.html">AttributeBase</a> object.
|
1475
|
+
</p>
|
1476
|
+
|
1477
|
+
|
1478
|
+
|
1479
|
+
<div class="method-source-code"
|
1480
|
+
id="get-ttribute-source">
|
1481
|
+
<pre>
|
1482
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 380</span>
|
1483
|
+
380: <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>)
|
1484
|
+
381: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">attributeId</span>
|
1485
|
+
382: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'id'</span>
|
1486
|
+
383: <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>)
|
1487
|
+
384: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'name'</span>
|
1488
|
+
385: <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>)
|
1489
|
+
386: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'seqno'</span>
|
1490
|
+
387: <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>)
|
1491
|
+
388: <span class="ruby-keyword kw">else</span>
|
1492
|
+
389: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>] <span class="ruby-operator">||</span>
|
1493
|
+
390: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>]
|
1494
|
+
391: <span class="ruby-keyword kw">end</span>
|
1495
|
+
392: <span class="ruby-keyword kw">end</span></pre>
|
1496
|
+
</div>
|
1497
|
+
|
1498
|
+
</div>
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
1503
|
+
</div>
|
1504
|
+
|
1505
|
+
|
1506
|
+
<div id="get-ndicies-method" class="method-detail ">
|
1507
|
+
<a name="M000959"></a>
|
1508
|
+
|
1509
|
+
<div class="method-heading">
|
1510
|
+
|
1511
|
+
<span class="method-name">getIndicies</span><span
|
1512
|
+
class="method-args">()</span>
|
1513
|
+
<span class="method-click-advice">click to toggle source</span>
|
1514
|
+
|
1515
|
+
</div>
|
1516
|
+
|
1517
|
+
<div class="method-description">
|
1518
|
+
|
1519
|
+
<p>
|
1520
|
+
Return the ‘index’ attributes of this property, prefixed by the
|
1521
|
+
‘index’ attributes of all its parents. The result is an Array
|
1522
|
+
of Fixnums.
|
1523
|
+
</p>
|
1524
|
+
|
1525
|
+
|
1526
|
+
|
1527
|
+
<div class="method-source-code"
|
1528
|
+
id="get-ndicies-source">
|
1529
|
+
<pre>
|
1530
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 271</span>
|
1531
|
+
271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getIndicies</span>
|
1532
|
+
272: <span class="ruby-identifier">idcs</span> = []
|
1533
|
+
273: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span>
|
1534
|
+
274: <span class="ruby-keyword kw">begin</span>
|
1535
|
+
275: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
1536
|
+
276: <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>))
|
1537
|
+
277: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">parent</span>
|
1538
|
+
278: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>
|
1539
|
+
279: <span class="ruby-identifier">idcs</span>
|
1540
|
+
280: <span class="ruby-keyword kw">end</span></pre>
|
1541
|
+
</div>
|
1542
|
+
|
1543
|
+
</div>
|
1544
|
+
|
1545
|
+
|
1546
|
+
|
1547
|
+
|
1548
|
+
</div>
|
1549
|
+
|
1550
|
+
|
1551
|
+
<div id="get-ndicies-method" class="method-detail ">
|
1552
|
+
<a name="M000958"></a>
|
1553
|
+
|
1554
|
+
<div class="method-heading">
|
1555
|
+
|
1556
|
+
<span class="method-name">getWBSIndicies</span><span
|
1557
|
+
class="method-args">()</span>
|
1558
|
+
<span class="method-click-advice">click to toggle source</span>
|
1559
|
+
|
1560
|
+
</div>
|
1561
|
+
|
1562
|
+
<div class="method-description">
|
1563
|
+
|
1564
|
+
<p>
|
1565
|
+
Return the hierarchical index of this node. In project management lingo
|
1566
|
+
this is called the Work Breakdown Structure (WBS). The result is an Array
|
1567
|
+
with an index for each level from the root to this node.
|
1568
|
+
</p>
|
1569
|
+
|
1570
|
+
|
1571
|
+
|
1572
|
+
<div class="method-source-code"
|
1573
|
+
id="get-ndicies-source">
|
1574
|
+
<pre>
|
1575
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 257</span>
|
1576
|
+
257: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getWBSIndicies</span>
|
1577
|
+
258: <span class="ruby-identifier">idcs</span> = []
|
1578
|
+
259: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span>
|
1579
|
+
260: <span class="ruby-keyword kw">begin</span>
|
1580
|
+
261: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span>
|
1581
|
+
262: <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-operator">?</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">p</span>) <span class="ruby-operator">:</span>
|
1582
|
+
263: <span class="ruby-ivar">@propertySet</span>.<span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">p</span>))
|
1583
|
+
264: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">parent</span>
|
1584
|
+
265: <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>
|
1585
|
+
266: <span class="ruby-identifier">idcs</span>
|
1586
|
+
267: <span class="ruby-keyword kw">end</span></pre>
|
1587
|
+
</div>
|
1588
|
+
|
1589
|
+
</div>
|
1590
|
+
|
1591
|
+
|
1592
|
+
|
1593
|
+
|
1594
|
+
</div>
|
1595
|
+
|
1596
|
+
|
1597
|
+
<div id="inherit-ttributes-method" class="method-detail ">
|
1598
|
+
<a name="M000950"></a>
|
1599
|
+
|
1600
|
+
<div class="method-heading">
|
1601
|
+
|
1602
|
+
<span class="method-name">inheritAttributes</span><span
|
1603
|
+
class="method-args">()</span>
|
1604
|
+
<span class="method-click-advice">click to toggle source</span>
|
1605
|
+
|
1606
|
+
</div>
|
1607
|
+
|
1608
|
+
<div class="method-description">
|
1609
|
+
|
1610
|
+
<p>
|
1611
|
+
Inherit values for the attributes from the parent node or the <a
|
1612
|
+
href="Project.html">Project</a>.
|
1613
|
+
</p>
|
1614
|
+
|
1615
|
+
|
1616
|
+
|
1617
|
+
<div class="method-source-code"
|
1618
|
+
id="inherit-ttributes-source">
|
1619
|
+
<pre>
|
1620
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 102</span>
|
1621
|
+
102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributes</span>
|
1622
|
+
103: <span class="ruby-comment cmt"># Inherit non-scenario-specific values</span>
|
1623
|
+
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>
|
1624
|
+
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>
|
1625
|
+
106:
|
1626
|
+
107: <span class="ruby-identifier">aId</span> = <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>
|
1627
|
+
108: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
1628
|
+
109: <span class="ruby-comment cmt"># Inherit values from parent property</span>
|
1629
|
+
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>)
|
1630
|
+
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>))
|
1631
|
+
112: <span class="ruby-keyword kw">end</span>
|
1632
|
+
113: <span class="ruby-keyword kw">else</span>
|
1633
|
+
114: <span class="ruby-comment cmt"># Inherit selected values from project if top-level property</span>
|
1634
|
+
115: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
1635
|
+
116: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@project</span>[<span class="ruby-identifier">aId</span>]
|
1636
|
+
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>])
|
1637
|
+
118: <span class="ruby-keyword kw">end</span>
|
1638
|
+
119: <span class="ruby-keyword kw">end</span>
|
1639
|
+
120: <span class="ruby-keyword kw">end</span>
|
1640
|
+
121: <span class="ruby-keyword kw">end</span>
|
1641
|
+
122:
|
1642
|
+
123: <span class="ruby-comment cmt"># Inherit scenario-specific values</span>
|
1643
|
+
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>
|
1644
|
+
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>
|
1645
|
+
126:
|
1646
|
+
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>
|
1647
|
+
128: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
|
1648
|
+
129: <span class="ruby-comment cmt"># Inherit scenario specific values from parent property</span>
|
1649
|
+
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>
|
1650
|
+
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>)
|
1651
|
+
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>(
|
1652
|
+
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>])
|
1653
|
+
134: <span class="ruby-keyword kw">end</span>
|
1654
|
+
135: <span class="ruby-keyword kw">else</span>
|
1655
|
+
136: <span class="ruby-comment cmt"># Inherit selected values from project if top-level property</span>
|
1656
|
+
137: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">inheritedFromProject</span>
|
1657
|
+
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>
|
1658
|
+
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>]
|
1659
|
+
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>(
|
1660
|
+
141: <span class="ruby-ivar">@project</span>[<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>])
|
1661
|
+
142: <span class="ruby-keyword kw">end</span>
|
1662
|
+
143: <span class="ruby-keyword kw">end</span>
|
1663
|
+
144: <span class="ruby-keyword kw">end</span>
|
1664
|
+
145: <span class="ruby-keyword kw">end</span>
|
1665
|
+
146: <span class="ruby-keyword kw">end</span>
|
1666
|
+
147: <span class="ruby-keyword kw">end</span></pre>
|
1667
|
+
</div>
|
1668
|
+
|
1669
|
+
</div>
|
1670
|
+
|
1671
|
+
|
1672
|
+
|
1673
|
+
|
1674
|
+
</div>
|
1675
|
+
|
1676
|
+
|
1677
|
+
<div id="inherit-ttributes-rom-cenario-method" class="method-detail ">
|
1678
|
+
<a name="M000951"></a>
|
1679
|
+
|
1680
|
+
<div class="method-heading">
|
1681
|
+
|
1682
|
+
<span class="method-name">inheritAttributesFromScenario</span><span
|
1683
|
+
class="method-args">()</span>
|
1684
|
+
<span class="method-click-advice">click to toggle source</span>
|
1685
|
+
|
1686
|
+
</div>
|
1687
|
+
|
1688
|
+
<div class="method-description">
|
1689
|
+
|
1690
|
+
<p>
|
1691
|
+
Inherit attribute values from the parent scenario. This is only being done
|
1692
|
+
for attributes that don’t have a user-specified value already.
|
1693
|
+
</p>
|
1694
|
+
|
1695
|
+
|
1696
|
+
|
1697
|
+
<div class="method-source-code"
|
1698
|
+
id="inherit-ttributes-rom-cenario-source">
|
1699
|
+
<pre>
|
1700
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 151</span>
|
1701
|
+
151: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inheritAttributesFromScenario</span>
|
1702
|
+
152: <span class="ruby-comment cmt"># Inherit scenario-specific values</span>
|
1703
|
+
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>
|
1704
|
+
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>
|
1705
|
+
155:
|
1706
|
+
156: <span class="ruby-comment cmt"># We know that parent scenarios precede their children in the list. So</span>
|
1707
|
+
157: <span class="ruby-comment cmt"># it's safe to iterate over the list instead of recursively descend</span>
|
1708
|
+
158: <span class="ruby-comment cmt"># the tree.</span>
|
1709
|
+
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>
|
1710
|
+
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>)
|
1711
|
+
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>
|
1712
|
+
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>
|
1713
|
+
163: <span class="ruby-comment cmt"># We copy only provided or inherited values from parent scenario when</span>
|
1714
|
+
164: <span class="ruby-comment cmt"># we don't have a provided value in this scenario. Inherited values</span>
|
1715
|
+
165: <span class="ruby-comment cmt"># will be overwritten</span>
|
1716
|
+
166: <span class="ruby-identifier">parPro</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>)
|
1717
|
+
167: <span class="ruby-identifier">parInh</span> = <span class="ruby-identifier">inherited</span>(<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>, <span class="ruby-identifier">parentScenarioIdx</span>)
|
1718
|
+
168: <span class="ruby-identifier">chiPro</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>)
|
1719
|
+
169: <span class="ruby-identifier">chiInh</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>)
|
1720
|
+
170: <span class="ruby-comment cmt"># Parent/Child inheritance matrix</span>
|
1721
|
+
171: <span class="ruby-comment cmt"># P: Provided p: not provided</span>
|
1722
|
+
172: <span class="ruby-comment cmt"># I: Inherited i: not inherited</span>
|
1723
|
+
173: <span class="ruby-comment cmt"># -: Illegal N: Don't copy Y: Copy</span>
|
1724
|
+
174: <span class="ruby-comment cmt">#</span>
|
1725
|
+
175: <span class="ruby-comment cmt"># parent</span>
|
1726
|
+
176: <span class="ruby-comment cmt"># PI Pi pI pi</span>
|
1727
|
+
177: <span class="ruby-comment cmt"># child PI - - - -</span>
|
1728
|
+
178: <span class="ruby-comment cmt"># Pi - N N N</span>
|
1729
|
+
179: <span class="ruby-comment cmt"># pI - Y N N</span>
|
1730
|
+
180: <span class="ruby-comment cmt"># pi - Y Y N</span>
|
1731
|
+
181: <span class="ruby-keyword kw">if</span> ((<span class="ruby-identifier">parPro</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">parInh</span>) <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">chiPro</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">chiInh</span>)) <span class="ruby-operator">||</span>
|
1732
|
+
182: (<span class="ruby-identifier">parPro</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">chiPro</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">chiInh</span>)
|
1733
|
+
183: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attrDef</span>.<span class="ruby-identifier">id</span>] =
|
1734
|
+
184: <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>
|
1735
|
+
185: <span class="ruby-keyword kw">end</span>
|
1736
|
+
186: <span class="ruby-keyword kw">end</span>
|
1737
|
+
187: <span class="ruby-keyword kw">end</span>
|
1738
|
+
188: <span class="ruby-keyword kw">end</span></pre>
|
1739
|
+
</div>
|
1740
|
+
|
1741
|
+
</div>
|
1742
|
+
|
1743
|
+
|
1744
|
+
|
1745
|
+
|
1746
|
+
</div>
|
1747
|
+
|
1748
|
+
|
1749
|
+
<div id="inherited-method" class="method-detail ">
|
1750
|
+
<a name="M000974"></a>
|
1751
|
+
|
1752
|
+
<div class="method-heading">
|
1753
|
+
|
1754
|
+
<span class="method-name">inherited</span><span
|
1755
|
+
class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1756
|
+
<span class="method-click-advice">click to toggle source</span>
|
1757
|
+
|
1758
|
+
</div>
|
1759
|
+
|
1760
|
+
<div class="method-description">
|
1761
|
+
|
1762
|
+
<p>
|
1763
|
+
Returns true if the value of the attribute <em>attributeId</em> (in
|
1764
|
+
scenario <em>scenarioIdx</em>) has been inherited from a parent node or
|
1765
|
+
scenario.
|
1766
|
+
</p>
|
1767
|
+
|
1768
|
+
|
1769
|
+
|
1770
|
+
<div class="method-source-code"
|
1771
|
+
id="inherited-source">
|
1772
|
+
<pre>
|
1773
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 442</span>
|
1774
|
+
442: <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>)
|
1775
|
+
443: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
1776
|
+
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">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">nil?</span>
|
1777
|
+
445: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1778
|
+
446: <span class="ruby-keyword kw">else</span>
|
1779
|
+
447: <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>
|
1780
|
+
448: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
1781
|
+
449: <span class="ruby-keyword kw">end</span>
|
1782
|
+
450: <span class="ruby-keyword kw">end</span></pre>
|
1783
|
+
</div>
|
1784
|
+
|
1785
|
+
</div>
|
1786
|
+
|
1787
|
+
|
1788
|
+
|
1789
|
+
|
1790
|
+
</div>
|
1791
|
+
|
1792
|
+
|
1793
|
+
<div id="is-hild-f--method" class="method-detail ">
|
1794
|
+
<a name="M000961"></a>
|
1795
|
+
|
1796
|
+
<div class="method-heading">
|
1797
|
+
|
1798
|
+
<span class="method-name">isChildOf?</span><span
|
1799
|
+
class="method-args">(ancestor)</span>
|
1800
|
+
<span class="method-click-advice">click to toggle source</span>
|
1801
|
+
|
1802
|
+
</div>
|
1803
|
+
|
1804
|
+
<div class="method-description">
|
1805
|
+
|
1806
|
+
<p>
|
1807
|
+
Find out if this property is a direct or indirect child of
|
1808
|
+
<em>ancestor</em>.
|
1809
|
+
</p>
|
1810
|
+
|
1811
|
+
|
1812
|
+
|
1813
|
+
<div class="method-source-code"
|
1814
|
+
id="is-hild-f--source">
|
1815
|
+
<pre>
|
1816
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 291</span>
|
1817
|
+
291: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">isChildOf?</span>(<span class="ruby-identifier">ancestor</span>)
|
1818
|
+
292: <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">self</span>
|
1819
|
+
293: <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>
|
1820
|
+
294: <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>)
|
1821
|
+
295: <span class="ruby-keyword kw">end</span>
|
1822
|
+
296: <span class="ruby-keyword kw">false</span>
|
1823
|
+
297: <span class="ruby-keyword kw">end</span></pre>
|
1824
|
+
</div>
|
1825
|
+
|
1826
|
+
</div>
|
1827
|
+
|
1828
|
+
|
1829
|
+
|
1830
|
+
|
1831
|
+
</div>
|
1832
|
+
|
1833
|
+
|
1834
|
+
<div id="leaf--method" class="method-detail ">
|
1835
|
+
<a name="M000962"></a>
|
1836
|
+
|
1837
|
+
<div class="method-heading">
|
1838
|
+
|
1839
|
+
<span class="method-name">leaf?</span><span
|
1840
|
+
class="method-args">()</span>
|
1841
|
+
<span class="method-click-advice">click to toggle source</span>
|
1842
|
+
|
1843
|
+
</div>
|
1844
|
+
|
1845
|
+
<div class="method-description">
|
1846
|
+
|
1847
|
+
<p>
|
1848
|
+
Return true if the node is a leaf node (has no children).
|
1849
|
+
</p>
|
1850
|
+
|
1851
|
+
|
1852
|
+
|
1853
|
+
<div class="method-source-code"
|
1854
|
+
id="leaf--source">
|
1855
|
+
<pre>
|
1856
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 300</span>
|
1857
|
+
300: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">leaf?</span>
|
1858
|
+
301: <span class="ruby-ivar">@children</span>.<span class="ruby-identifier">empty?</span>
|
1859
|
+
302: <span class="ruby-keyword kw">end</span></pre>
|
1860
|
+
</div>
|
1861
|
+
|
1862
|
+
</div>
|
1863
|
+
|
1864
|
+
|
1865
|
+
|
1866
|
+
|
1867
|
+
</div>
|
1868
|
+
|
1869
|
+
|
1870
|
+
<div id="level-method" class="method-detail ">
|
1871
|
+
<a name="M000957"></a>
|
1872
|
+
|
1873
|
+
<div class="method-heading">
|
1874
|
+
|
1875
|
+
<span class="method-name">level</span><span
|
1876
|
+
class="method-args">()</span>
|
1877
|
+
<span class="method-click-advice">click to toggle source</span>
|
1878
|
+
|
1879
|
+
</div>
|
1880
|
+
|
1881
|
+
<div class="method-description">
|
1882
|
+
|
1883
|
+
<p>
|
1884
|
+
Returns the level that this property is on. Top-level properties return 0,
|
1885
|
+
their children 1 and so on. This value is cached internally, so it does not
|
1886
|
+
have to be calculated each time the function is called.
|
1887
|
+
</p>
|
1888
|
+
|
1889
|
+
|
1890
|
+
|
1891
|
+
<div class="method-source-code"
|
1892
|
+
id="level-source">
|
1893
|
+
<pre>
|
1894
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 243</span>
|
1895
|
+
243: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">level</span>
|
1896
|
+
244: <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>
|
1897
|
+
245:
|
1898
|
+
246: <span class="ruby-identifier">t</span> = <span class="ruby-keyword kw">self</span>
|
1899
|
+
247: <span class="ruby-ivar">@level</span> = <span class="ruby-value">0</span>
|
1900
|
+
248: <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>
|
1901
|
+
249: <span class="ruby-ivar">@level</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
1902
|
+
250: <span class="ruby-keyword kw">end</span>
|
1903
|
+
251: <span class="ruby-ivar">@level</span>
|
1904
|
+
252: <span class="ruby-keyword kw">end</span></pre>
|
1905
|
+
</div>
|
1906
|
+
|
1907
|
+
</div>
|
1908
|
+
|
1909
|
+
|
1910
|
+
|
1911
|
+
|
1912
|
+
</div>
|
1913
|
+
|
1914
|
+
|
1915
|
+
<div id="level-eq-o-method" class="method-detail ">
|
1916
|
+
<a name="M000949"></a>
|
1917
|
+
|
1918
|
+
<div class="method-heading">
|
1919
|
+
|
1920
|
+
<span class="method-name">levelSeqNo</span><span
|
1921
|
+
class="method-args">(node)</span>
|
1922
|
+
<span class="method-click-advice">click to toggle source</span>
|
1923
|
+
|
1924
|
+
</div>
|
1925
|
+
|
1926
|
+
<div class="method-description">
|
1927
|
+
|
1928
|
+
<p>
|
1929
|
+
Return the index of the child <em>node</em>.
|
1930
|
+
</p>
|
1931
|
+
|
1932
|
+
|
1933
|
+
|
1934
|
+
<div class="method-source-code"
|
1935
|
+
id="level-eq-o-source">
|
1936
|
+
<pre>
|
1937
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 97</span>
|
1938
|
+
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">levelSeqNo</span>(<span class="ruby-identifier">node</span>)
|
1939
|
+
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>
|
1940
|
+
99: <span class="ruby-keyword kw">end</span></pre>
|
1941
|
+
</div>
|
1942
|
+
|
1943
|
+
</div>
|
1944
|
+
|
1945
|
+
|
1946
|
+
|
1947
|
+
|
1948
|
+
</div>
|
1949
|
+
|
1950
|
+
|
1951
|
+
<div id="method-missing-method" class="method-detail ">
|
1952
|
+
<a name="M000981"></a>
|
1953
|
+
|
1954
|
+
<div class="method-heading">
|
1955
|
+
|
1956
|
+
<span class="method-name">method_missing</span><span
|
1957
|
+
class="method-args">(func, scenarioIdx, *args)</span>
|
1958
|
+
<span class="method-click-advice">click to toggle source</span>
|
1959
|
+
|
1960
|
+
</div>
|
1961
|
+
|
1962
|
+
<div class="method-description">
|
1963
|
+
|
1964
|
+
<p>
|
1965
|
+
Many <a href="PropertyTreeNode.html">PropertyTreeNode</a> functions are
|
1966
|
+
scenario specific. These functions are provided by the class *<a
|
1967
|
+
href="Scenario.html">Scenario</a> classes. In case we can’t find a
|
1968
|
+
function called for the base class we try to find it in corresponding *<a
|
1969
|
+
href="Scenario.html">Scenario</a> class.
|
1970
|
+
</p>
|
1971
|
+
|
1972
|
+
|
1973
|
+
|
1974
|
+
<div class="method-source-code"
|
1975
|
+
id="method-missing-source">
|
1976
|
+
<pre>
|
1977
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 533</span>
|
1978
|
+
533: <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-identifier">args</span>)
|
1979
|
+
534: <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-identifier">args</span>)
|
1980
|
+
535: <span class="ruby-keyword kw">end</span></pre>
|
1981
|
+
</div>
|
1982
|
+
|
1983
|
+
</div>
|
1984
|
+
|
1985
|
+
|
1986
|
+
|
1987
|
+
|
1988
|
+
</div>
|
1989
|
+
|
1990
|
+
|
1991
|
+
<div id="modified--method" class="method-detail ">
|
1992
|
+
<a name="M000975"></a>
|
1993
|
+
|
1994
|
+
<div class="method-heading">
|
1995
|
+
|
1996
|
+
<span class="method-name">modified?</span><span
|
1997
|
+
class="method-args">(attributeId, scenarioIdx = nil)</span>
|
1998
|
+
<span class="method-click-advice">click to toggle source</span>
|
1999
|
+
|
2000
|
+
</div>
|
2001
|
+
|
2002
|
+
<div class="method-description">
|
2003
|
+
|
2004
|
+
|
2005
|
+
|
2006
|
+
|
2007
|
+
|
2008
|
+
<div class="method-source-code"
|
2009
|
+
id="modified--source">
|
2010
|
+
<pre>
|
2011
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 452</span>
|
2012
|
+
452: <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>)
|
2013
|
+
453: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
2014
|
+
454: <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>
|
2015
|
+
455: <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>
|
2016
|
+
456: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">inherited</span>
|
2017
|
+
457: <span class="ruby-keyword kw">else</span>
|
2018
|
+
458: <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>
|
2019
|
+
459: <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>
|
2020
|
+
460: <span class="ruby-keyword kw">end</span>
|
2021
|
+
461: <span class="ruby-keyword kw">end</span></pre>
|
2022
|
+
</div>
|
2023
|
+
|
2024
|
+
</div>
|
2025
|
+
|
2026
|
+
|
2027
|
+
|
2028
|
+
|
2029
|
+
</div>
|
2030
|
+
|
2031
|
+
|
2032
|
+
<div id="provided-method" class="method-detail ">
|
2033
|
+
<a name="M000973"></a>
|
2034
|
+
|
2035
|
+
<div class="method-heading">
|
2036
|
+
|
2037
|
+
<span class="method-name">provided</span><span
|
2038
|
+
class="method-args">(attributeId, scenarioIdx = nil)</span>
|
2039
|
+
<span class="method-click-advice">click to toggle source</span>
|
2040
|
+
|
2041
|
+
</div>
|
2042
|
+
|
2043
|
+
<div class="method-description">
|
2044
|
+
|
2045
|
+
<p>
|
2046
|
+
Returns true if the value of the attribute <em>attributeId</em> (in
|
2047
|
+
scenario <em>scenarioIdx</em>) has been provided by the user.
|
2048
|
+
</p>
|
2049
|
+
|
2050
|
+
|
2051
|
+
|
2052
|
+
<div class="method-source-code"
|
2053
|
+
id="provided-source">
|
2054
|
+
<pre>
|
2055
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 430</span>
|
2056
|
+
430: <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>)
|
2057
|
+
431: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">scenarioIdx</span>
|
2058
|
+
432: <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>
|
2059
|
+
433: <span class="ruby-ivar">@scenarioAttributes</span>[<span class="ruby-identifier">scenarioIdx</span>][<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span>
|
2060
|
+
434: <span class="ruby-keyword kw">else</span>
|
2061
|
+
435: <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>
|
2062
|
+
436: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">provided</span>
|
2063
|
+
437: <span class="ruby-keyword kw">end</span>
|
2064
|
+
438: <span class="ruby-keyword kw">end</span></pre>
|
2065
|
+
</div>
|
2066
|
+
|
2067
|
+
</div>
|
2068
|
+
|
2069
|
+
|
2070
|
+
|
2071
|
+
|
2072
|
+
</div>
|
2073
|
+
|
2074
|
+
|
2075
|
+
<div id="query-alert-method" class="method-detail ">
|
2076
|
+
<a name="M000976"></a>
|
2077
|
+
|
2078
|
+
<div class="method-heading">
|
2079
|
+
|
2080
|
+
<span class="method-name">query_alert</span><span
|
2081
|
+
class="method-args">(query)</span>
|
2082
|
+
<span class="method-click-advice">click to toggle source</span>
|
2083
|
+
|
2084
|
+
</div>
|
2085
|
+
|
2086
|
+
<div class="method-description">
|
2087
|
+
|
2088
|
+
|
2089
|
+
|
2090
|
+
|
2091
|
+
|
2092
|
+
<div class="method-source-code"
|
2093
|
+
id="query-alert-source">
|
2094
|
+
<pre>
|
2095
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 463</span>
|
2096
|
+
463: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alert</span>(<span class="ruby-identifier">query</span>)
|
2097
|
+
464: <span class="ruby-identifier">journal</span> = <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'journal'</span>]
|
2098
|
+
465: <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> =
|
2099
|
+
466: <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>)
|
2100
|
+
467: <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>)
|
2101
|
+
468: <span class="ruby-keyword kw">end</span></pre>
|
2102
|
+
</div>
|
2103
|
+
|
2104
|
+
</div>
|
2105
|
+
|
2106
|
+
|
2107
|
+
|
2108
|
+
|
2109
|
+
</div>
|
2110
|
+
|
2111
|
+
|
2112
|
+
<div id="query-alertmessage-method" class="method-detail ">
|
2113
|
+
<a name="M000978"></a>
|
2114
|
+
|
2115
|
+
<div class="method-heading">
|
2116
|
+
|
2117
|
+
<span class="method-name">query_alertmessage</span><span
|
2118
|
+
class="method-args">(query)</span>
|
2119
|
+
<span class="method-click-advice">click to toggle source</span>
|
2120
|
+
|
2121
|
+
</div>
|
2122
|
+
|
2123
|
+
<div class="method-description">
|
2124
|
+
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
2128
|
+
|
2129
|
+
<div class="method-source-code"
|
2130
|
+
id="query-alertmessage-source">
|
2131
|
+
<pre>
|
2132
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 474</span>
|
2133
|
+
474: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alertmessage</span>(<span class="ruby-identifier">query</span>)
|
2134
|
+
475: <span class="ruby-identifier">alertMessages</span>(<span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">true</span>)
|
2135
|
+
476: <span class="ruby-keyword kw">end</span></pre>
|
2136
|
+
</div>
|
2137
|
+
|
2138
|
+
</div>
|
2139
|
+
|
2140
|
+
|
2141
|
+
|
2142
|
+
|
2143
|
+
</div>
|
2144
|
+
|
2145
|
+
|
2146
|
+
<div id="query-alertsummary-method" class="method-detail ">
|
2147
|
+
<a name="M000977"></a>
|
2148
|
+
|
2149
|
+
<div class="method-heading">
|
2150
|
+
|
2151
|
+
<span class="method-name">query_alertsummary</span><span
|
2152
|
+
class="method-args">(query)</span>
|
2153
|
+
<span class="method-click-advice">click to toggle source</span>
|
2154
|
+
|
2155
|
+
</div>
|
2156
|
+
|
2157
|
+
<div class="method-description">
|
2158
|
+
|
2159
|
+
|
2160
|
+
|
2161
|
+
|
2162
|
+
|
2163
|
+
<div class="method-source-code"
|
2164
|
+
id="query-alertsummary-source">
|
2165
|
+
<pre>
|
2166
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 470</span>
|
2167
|
+
470: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alertsummary</span>(<span class="ruby-identifier">query</span>)
|
2168
|
+
471: <span class="ruby-identifier">alertMessages</span>(<span class="ruby-identifier">query</span>, <span class="ruby-keyword kw">false</span>)
|
2169
|
+
472: <span class="ruby-keyword kw">end</span></pre>
|
2170
|
+
</div>
|
2171
|
+
|
2172
|
+
</div>
|
2173
|
+
|
2174
|
+
|
2175
|
+
|
2176
|
+
|
2177
|
+
</div>
|
2178
|
+
|
2179
|
+
|
2180
|
+
<div id="query-alerttrend-method" class="method-detail ">
|
2181
|
+
<a name="M000979"></a>
|
2182
|
+
|
2183
|
+
<div class="method-heading">
|
2184
|
+
|
2185
|
+
<span class="method-name">query_alerttrend</span><span
|
2186
|
+
class="method-args">(query)</span>
|
2187
|
+
<span class="method-click-advice">click to toggle source</span>
|
2188
|
+
|
2189
|
+
</div>
|
2190
|
+
|
2191
|
+
<div class="method-description">
|
2192
|
+
|
2193
|
+
|
2194
|
+
|
2195
|
+
|
2196
|
+
|
2197
|
+
<div class="method-source-code"
|
2198
|
+
id="query-alerttrend-source">
|
2199
|
+
<pre>
|
2200
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 478</span>
|
2201
|
+
478: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_alerttrend</span>(<span class="ruby-identifier">query</span>)
|
2202
|
+
479: <span class="ruby-identifier">journal</span> = <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'journal'</span>]
|
2203
|
+
480: <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>)
|
2204
|
+
481: <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>)
|
2205
|
+
482: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">startAlert</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">endAlert</span>
|
2206
|
+
483: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">0</span>
|
2207
|
+
484: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Up'</span>
|
2208
|
+
485: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">startAlert</span> <span class="ruby-operator">></span> <span class="ruby-identifier">endAlert</span>
|
2209
|
+
486: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">2</span>
|
2210
|
+
487: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Down'</span>
|
2211
|
+
488: <span class="ruby-keyword kw">else</span>
|
2212
|
+
489: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">sortable</span> = <span class="ruby-value">1</span>
|
2213
|
+
490: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">string</span> = <span class="ruby-value str">'Flat'</span>
|
2214
|
+
491: <span class="ruby-keyword kw">end</span>
|
2215
|
+
492: <span class="ruby-keyword kw">end</span></pre>
|
2216
|
+
</div>
|
2217
|
+
|
2218
|
+
</div>
|
2219
|
+
|
2220
|
+
|
2221
|
+
|
2222
|
+
|
2223
|
+
</div>
|
2224
|
+
|
2225
|
+
|
2226
|
+
<div id="root-method" class="method-detail ">
|
2227
|
+
<a name="M000964"></a>
|
2228
|
+
|
2229
|
+
<div class="method-heading">
|
2230
|
+
|
2231
|
+
<span class="method-name">root</span><span
|
2232
|
+
class="method-args">()</span>
|
2233
|
+
<span class="method-click-advice">click to toggle source</span>
|
2234
|
+
|
2235
|
+
</div>
|
2236
|
+
|
2237
|
+
<div class="method-description">
|
2238
|
+
|
2239
|
+
<p>
|
2240
|
+
Return the top-level node for this node.
|
2241
|
+
</p>
|
2242
|
+
|
2243
|
+
|
2244
|
+
|
2245
|
+
<div class="method-source-code"
|
2246
|
+
id="root-source">
|
2247
|
+
<pre>
|
2248
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 310</span>
|
2249
|
+
310: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root</span>
|
2250
|
+
311: <span class="ruby-identifier">n</span> = <span class="ruby-keyword kw">self</span>
|
2251
|
+
312: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
2252
|
+
313: <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
2253
|
+
314: <span class="ruby-keyword kw">end</span>
|
2254
|
+
315: <span class="ruby-identifier">n</span>
|
2255
|
+
316: <span class="ruby-keyword kw">end</span></pre>
|
2256
|
+
</div>
|
2257
|
+
|
2258
|
+
</div>
|
2259
|
+
|
2260
|
+
|
2261
|
+
|
2262
|
+
|
2263
|
+
</div>
|
2264
|
+
|
2265
|
+
|
2266
|
+
<div id="set-method" class="method-detail ">
|
2267
|
+
<a name="M000970"></a>
|
2268
|
+
|
2269
|
+
<div class="method-heading">
|
2270
|
+
|
2271
|
+
<span class="method-name">set</span><span
|
2272
|
+
class="method-args">(attributeId, value)</span>
|
2273
|
+
<span class="method-click-advice">click to toggle source</span>
|
2274
|
+
|
2275
|
+
</div>
|
2276
|
+
|
2277
|
+
<div class="method-description">
|
2278
|
+
|
2279
|
+
<p>
|
2280
|
+
Set the non-scenario-specific attribute with ID <em>attributeId</em> to
|
2281
|
+
<em>value</em>. In case the attribute does not exist, an exception is
|
2282
|
+
raised.
|
2283
|
+
</p>
|
2284
|
+
|
2285
|
+
|
2286
|
+
|
2287
|
+
<div class="method-source-code"
|
2288
|
+
id="set-source">
|
2289
|
+
<pre>
|
2290
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 396</span>
|
2291
|
+
396: <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>)
|
2292
|
+
397: <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>)
|
2293
|
+
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>
|
2294
|
+
399: <span class="ruby-keyword kw">end</span>
|
2295
|
+
400: <span class="ruby-ivar">@attributes</span>[<span class="ruby-identifier">attributeId</span>].<span class="ruby-identifier">set</span>(<span class="ruby-identifier">value</span>)
|
2296
|
+
401: <span class="ruby-keyword kw">end</span></pre>
|
2297
|
+
</div>
|
2298
|
+
|
2299
|
+
</div>
|
2300
|
+
|
2301
|
+
|
2302
|
+
|
2303
|
+
|
2304
|
+
</div>
|
2305
|
+
|
2306
|
+
|
2307
|
+
</div>
|
2308
|
+
|
2309
|
+
<div id="private-instance-method-details" class="method-section section">
|
2310
|
+
<h3 class="section-header">Private Instance Methods</h3>
|
2311
|
+
|
2312
|
+
|
2313
|
+
<div id="alert-essages-method" class="method-detail ">
|
2314
|
+
<a name="M000982"></a>
|
2315
|
+
|
2316
|
+
<div class="method-heading">
|
2317
|
+
|
2318
|
+
<span class="method-name">alertMessages</span><span
|
2319
|
+
class="method-args">(query, longVersion)</span>
|
2320
|
+
<span class="method-click-advice">click to toggle source</span>
|
2321
|
+
|
2322
|
+
</div>
|
2323
|
+
|
2324
|
+
<div class="method-description">
|
2325
|
+
|
2326
|
+
<p>
|
2327
|
+
Create a blog-style list of all alert messages that match the <a
|
2328
|
+
href="Query.html">Query</a>.
|
2329
|
+
</p>
|
2330
|
+
|
2331
|
+
|
2332
|
+
|
2333
|
+
<div class="method-source-code"
|
2334
|
+
id="alert-essages-source">
|
2335
|
+
<pre>
|
2336
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 540</span>
|
2337
|
+
540: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alertMessages</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">longVersion</span>)
|
2338
|
+
541: <span class="ruby-comment cmt"># The components of the message are either UTF-8 text or RichText. For</span>
|
2339
|
+
542: <span class="ruby-comment cmt"># the RichText components, we use the originally provided markup since</span>
|
2340
|
+
543: <span class="ruby-comment cmt"># we compose the result as RichText markup first.</span>
|
2341
|
+
544: <span class="ruby-identifier">rText</span> = <span class="ruby-value str">''</span>
|
2342
|
+
545: <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'journal'</span>].<span class="ruby-identifier">currentEntries</span>(<span class="ruby-identifier">query</span>.<span class="ruby-identifier">end</span>, <span class="ruby-keyword kw">self</span>, <span class="ruby-value">0</span>,
|
2343
|
+
546: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">start</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span><span class="ruby-operator">|</span>
|
2344
|
+
547: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"=== <nowiki>"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">headline</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"</nowiki> ===\n"</span>
|
2345
|
+
548: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"''Reported on #{entry.date.to_s(query.timeFormat)}'' "</span>
|
2346
|
+
549: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">author</span>
|
2347
|
+
550: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"''by <nowiki>#{entry.author.name}</nowiki>''"</span>
|
2348
|
+
551: <span class="ruby-keyword kw">end</span>
|
2349
|
+
552: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"\n\n"</span>
|
2350
|
+
553: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">summary</span>
|
2351
|
+
554: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">summary</span>.<span class="ruby-identifier">richText</span>.<span class="ruby-identifier">inputText</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\n\n"</span>
|
2352
|
+
555: <span class="ruby-keyword kw">end</span>
|
2353
|
+
556: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">longVersion</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">details</span>
|
2354
|
+
557: <span class="ruby-identifier">rText</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">entry</span>.<span class="ruby-identifier">details</span>.<span class="ruby-identifier">richText</span>.<span class="ruby-identifier">inputText</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\n\n"</span>
|
2355
|
+
558: <span class="ruby-keyword kw">end</span>
|
2356
|
+
559: <span class="ruby-keyword kw">end</span>
|
2357
|
+
560: <span class="ruby-comment cmt"># Now convert the RichText markup String into RichTextIntermediate</span>
|
2358
|
+
561: <span class="ruby-comment cmt"># format.</span>
|
2359
|
+
562: <span class="ruby-identifier">handlers</span> = [
|
2360
|
+
563: <span class="ruby-constant">RTFNavigator</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@project</span>),
|
2361
|
+
564: <span class="ruby-constant">RTFQuery</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@project</span>),
|
2362
|
+
565: <span class="ruby-constant">RTFReport</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@project</span>)
|
2363
|
+
566: ]
|
2364
|
+
567: <span class="ruby-keyword kw">begin</span>
|
2365
|
+
568: <span class="ruby-identifier">rti</span> = <span class="ruby-constant">RichText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">rText</span>, <span class="ruby-identifier">handlers</span>).<span class="ruby-identifier">generateIntermediateFormat</span>
|
2366
|
+
569: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">RichTextException</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">msg</span>
|
2367
|
+
570: <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Error while processing Rich Text\n"</span> <span class="ruby-operator">+</span>
|
2368
|
+
571: <span class="ruby-node">"Line #{msg.lineNo}: #{msg.text}\n"</span> <span class="ruby-operator">+</span>
|
2369
|
+
572: <span class="ruby-node">"#{msg.line}"</span>
|
2370
|
+
573: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
2371
|
+
574: <span class="ruby-keyword kw">end</span>
|
2372
|
+
575: <span class="ruby-comment cmt"># No section numbers, please!</span>
|
2373
|
+
576: <span class="ruby-identifier">rti</span>.<span class="ruby-identifier">sectionNumbers</span> = <span class="ruby-keyword kw">false</span>
|
2374
|
+
577: <span class="ruby-comment cmt"># We use a special class to allow CSS formating.</span>
|
2375
|
+
578: <span class="ruby-identifier">rti</span>.<span class="ruby-identifier">cssClass</span> = <span class="ruby-value str">'tj_journal'</span>
|
2376
|
+
579: <span class="ruby-identifier">query</span>.<span class="ruby-identifier">rti</span> = <span class="ruby-identifier">rti</span>
|
2377
|
+
580: <span class="ruby-keyword kw">end</span></pre>
|
2378
|
+
</div>
|
2379
|
+
|
2380
|
+
</div>
|
2381
|
+
|
2382
|
+
|
2383
|
+
|
2384
|
+
|
2385
|
+
</div>
|
2386
|
+
|
2387
|
+
|
2388
|
+
<div id="indent-method" class="method-detail ">
|
2389
|
+
<a name="M000984"></a>
|
2390
|
+
|
2391
|
+
<div class="method-heading">
|
2392
|
+
|
2393
|
+
<span class="method-name">indent</span><span
|
2394
|
+
class="method-args">(tag, str)</span>
|
2395
|
+
<span class="method-click-advice">click to toggle source</span>
|
2396
|
+
|
2397
|
+
</div>
|
2398
|
+
|
2399
|
+
<div class="method-description">
|
2400
|
+
|
2401
|
+
|
2402
|
+
|
2403
|
+
|
2404
|
+
|
2405
|
+
<div class="method-source-code"
|
2406
|
+
id="indent-source">
|
2407
|
+
<pre>
|
2408
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 592</span>
|
2409
|
+
592: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">str</span>)
|
2410
|
+
593: <span class="ruby-identifier">tag</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\n/</span>, <span class="ruby-node">"\n#{' ' * tag.length}"</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">"\n"</span>
|
2411
|
+
594: <span class="ruby-keyword kw">end</span></pre>
|
2412
|
+
</div>
|
2413
|
+
|
2414
|
+
</div>
|
2415
|
+
|
2416
|
+
|
2417
|
+
|
2418
|
+
|
2419
|
+
</div>
|
2420
|
+
|
2421
|
+
|
2422
|
+
<div id="new-ttribute-method" class="method-detail ">
|
2423
|
+
<a name="M000983"></a>
|
2424
|
+
|
2425
|
+
<div class="method-heading">
|
2426
|
+
|
2427
|
+
<span class="method-name">newAttribute</span><span
|
2428
|
+
class="method-args">(attributeType)</span>
|
2429
|
+
<span class="method-click-advice">click to toggle source</span>
|
2430
|
+
|
2431
|
+
</div>
|
2432
|
+
|
2433
|
+
<div class="method-description">
|
2434
|
+
|
2435
|
+
|
2436
|
+
|
2437
|
+
|
2438
|
+
|
2439
|
+
<div class="method-source-code"
|
2440
|
+
id="new-ttribute-source">
|
2441
|
+
<pre>
|
2442
|
+
<span class="ruby-comment cmt"># File lib/PropertyTreeNode.rb, line 582</span>
|
2443
|
+
582: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">newAttribute</span>(<span class="ruby-identifier">attributeType</span>)
|
2444
|
+
583: <span class="ruby-identifier">attribute</span> = <span class="ruby-identifier">attributeType</span>.<span class="ruby-identifier">objClass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">attributeType</span>)
|
2445
|
+
584: <span class="ruby-comment cmt"># If the attribute requires a pointer to the project, we'll hand it over.</span>
|
2446
|
+
585: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value str">'setProject'</span>)
|
2447
|
+
586: <span class="ruby-identifier">attribute</span>.<span class="ruby-identifier">setProject</span>(<span class="ruby-ivar">@project</span>)
|
2448
|
+
587: <span class="ruby-keyword kw">end</span>
|
2449
|
+
588:
|
2450
|
+
589: <span class="ruby-identifier">attribute</span>
|
2451
|
+
590: <span class="ruby-keyword kw">end</span></pre>
|
2452
|
+
</div>
|
2453
|
+
|
2454
|
+
</div>
|
2455
|
+
|
2456
|
+
|
2457
|
+
|
2458
|
+
|
2459
|
+
</div>
|
2460
|
+
|
2461
|
+
|
2462
|
+
</div>
|
2463
|
+
|
2464
|
+
|
2465
|
+
</div>
|
2466
|
+
|
2467
|
+
|
2468
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
2469
|
+
|
2470
|
+
<p>Disabled; run with --debug to generate this.</p>
|
2471
|
+
|
2472
|
+
</div>
|
2473
|
+
|
2474
|
+
<div id="validator-badges">
|
2475
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
2476
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
2477
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
2478
|
+
</div>
|
2479
|
+
|
2480
|
+
</body>
|
2481
|
+
</html>
|
2482
|
+
|