hasNewUpdate
Class: slreq.Reference
Namespace: slreq
Check if import node has available update
Syntax
tf = hasNewUpdate(topRef)
Description
Input Arguments
Import node, specified as an slreq.Reference
object.
Output Arguments
Available update indicator, returned as a 1
or
0
of data type logical
.
Examples
This example shows how to check if the import node has an available update and update the referenced requirements.
Load the crs_req
requirement set.
rs = slreq.load("crs_req");
Get a handle to the import node of the requirement set.
topRef = children(rs);
Check if the import node has an available update.
tf = hasNewUpdate(topRef)
tf = logical
1
A result of 1
means that topRef
has been updated since the last time it was imported. Update the referenced requirements under the import node.
[status,changelist] = updateFromDocument(topRef)
status = 'Update completed. Refer to Comments on Import1.'
changelist = 'Updated: CC003_01. Properties: description Updated: CC003_02. Properties: description Updated: CC003_03. Properties: description Updated: CC003_04. Properties: description Updated: Cruise Control SET Indicator Light. Properties: description Updated: Cruise control buttons. Properties: description Updated: Cruise control mode indicator. Properties: description Deleted: Cruise control modes Updated: Dashboard image. Properties: description Inserted: Dashboard image_1 Updated: Deactivating cruise control. Properties: description Deleted: Disabling cruise control Updated: Enabling cruise control. Properties: description Updated: Other inputs. Properties: description Updated: ROM. Properties: description Updated: Resuming cruise control. Properties: description Inserted: Simulink_requirement_item_1 Inserted: Simulink_requirement_item_10 Inserted: Simulink_requirement_item_11 Inserted: Simulink_requirement_item_12 Inserted: Simulink_requirement_item_13 Inserted: Simulink_requirement_item_14 Inserted: Simulink_requirement_item_15 Inserted: Simulink_requirement_item_2 Inserted: Simulink_requirement_item_3 Inserted: Simulink_requirement_item_4 Inserted: Simulink_requirement_item_5 Inserted: Simulink_requirement_item_6 Inserted: Simulink_requirement_item_7 Inserted: Simulink_requirement_item_8 Inserted: Simulink_requirement_item_9 Updated: System Inputs. Properties: description Updated: System outputs. Properties: description Updated: Throttle value calculation. Properties: description Inserted: When the vehicle is started. Cru Inserted: boolean Inserted: boolean_1 Inserted: boolean_2 Inserted: boolean_3 Inserted: boolean_4 Inserted: boolean_5 Inserted: single Inserted: single_1 Inserted: single_2 Inserted: uint8 Inserted: uint8_1 '
Version History
Introduced in R2019b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)