Overview
Comment:Added is_port -- but not used at the moment.
Some explanation added.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 9b8ec096c5bd9fc24009264a19d1d0873cc51a8caa86b7734a450c679fd3a6fb
User & Date: gawthrop@users.sourceforge.net on 2003-03-25 11:50:54
Other Links: branch diff | manifest | tags
Context
2003-03-25
16:55:42
Generic amplifier sorted equation check-in: 0d8fde31f9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:50:54
Added is_port -- but not used at the moment.
Some explanation added.
check-in: 9b8ec096c5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:28:04
Explicitly passes is_port to equation genration - only relevant to SS. check-in: 2372f2422a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/mtt_is_external.m from [07ce2338e2] to [5dcc4690eb].

1
2
3
4




5
6
7
8
9
10
11
12


13
14
15
16
17
18
19
function is_external = mtt_is_external (comp_type,outsig, insigs, is_port)

  ## usage:  is_external = mtt_is_external (comp_type,outsig, insigs)
  ##




  ## 

  if nargin<4
    is_port = 0;
  endif

  is_external = 0;			# Default



  if strcmp(comp_type,"SS");
    is_external = insigs(1,2)!=outsig(2);
  else
    is_external = 0;
  endif

endfunction


|

>
>
>
>
|







>
>
|






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function is_external = mtt_is_external (comp_type,outsig, insigs, is_port)

  ## usage:  is_external = mtt_is_external (comp_type,outsig, insigs, is_port)
  ##
  ## This is to determine if mtt_component_equation should look for
  ## another equation. If is_external, the varable is available as a
  ## system input and therfore requires no further equation.
  ## I suspect that it needs more work.


  if nargin<4
    is_port = 0;
  endif

  is_external = 0;			# Default

  if is_port
    is_external = 0;
  elseif strcmp(comp_type,"SS");
    is_external = insigs(1,2)!=outsig(2);
  else
    is_external = 0;
  endif

endfunction


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]