www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdev_local/canGTS.m
function OK= canGTS(mdev) %CANGTS GTS methods can be run on this local node % % OK= canGTS(mdev) % Copyright 2006 The MathWorks, Inc. and Ford Global Technologies, Inc. TS= BestModel(mdev); if mdev.IsLinearised; OK = false; elseif ~isempty(TS) OK= canGTS(TS); else st= children(mdev,@status); if all([st{:}]) L= model(mdev); OK= canGTS(model(mdev)); if OK && DatumType(L)==3 % check datumlink pdatum= datumlink(mdev); OK= pdatum.status && canGTS(pdatum.model); end mdls= children(mdev,@model); for i=1:length(mdls) OK= OK && canGTS(mdls{i}); end else OK= false; end end