Overview
Comment:Modified to data struture representation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: bac748693399c40ad8bd576abe66ca7705dc43aa2bcb7a5b7a1c4d3822706881
User & Date: gawthrop@users.sourceforge.net on 1998-08-25 07:16:49
Other Links: branch diff | manifest | tags
Context
1998-08-25
08:31:42
Fixed bug - didn't find the ports - use deblank check-in: f359fd304b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
07:16:49
Modified to data struture representation check-in: bac7486933 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
06:44:40
Furhter revisions check-in: 8285d226a8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/cbg2ese.m from [c96a10555d] to [9251859430].

19
20
21
22
23
24
25



26
27
28
29
30
31
32
# Structure matrix [states,nonstates,inputs,outputs,zero_outputs]

# ###############################################################
# ## Version control history
# ###############################################################
# ## $Id$
# ## $Log$



# ## Revision 1.25  1998/07/28 19:05:12  peterg
# ## Sttill has vector SS port bug?
# ##
# ## Revision 1.24  1998/07/27 10:26:02  peterg
# ## No change - but fixed bug in alias_args
# ##
# ## Revision 1.23  1998/07/08 12:33:51  peterg







>
>
>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Structure matrix [states,nonstates,inputs,outputs,zero_outputs]

# ###############################################################
# ## Version control history
# ###############################################################
# ## $Id$
# ## $Log$
# ## Revision 1.26  1998/08/24 14:53:55  peterg
# ## Uses new _cbg structure.
# ##
# ## Revision 1.25  1998/07/28 19:05:12  peterg
# ## Sttill has vector SS port bug?
# ##
# ## Revision 1.24  1998/07/27 10:26:02  peterg
# ## No change - but fixed bug in alias_args
# ##
# ## Revision 1.23  1998/07/08 12:33:51  peterg
203
204
205
206
207
208
209
210
211
212
213
214
215
216

217
218
219
220
221
222
223
224
    	disp(["---- ", field(i,:), "Component ---"]);    
				# Get the component details
				#eval([ "[comp_type,comp_name,cr,args,repetitions] = ", cmp_name, "(i)"]);
    	
				# Alias the args list -- if not at top level
    	message = sprintf("\tfor component  %s (%s) within %s",\
			  comp_name,subsystem.type,full_name);    
    	if (length(system_args)>0)
	  subsystem.arg = alias_args(subsystem.arg,subsystem.alias,";",message,infofilenum)
    	endif;
    	if (length(system_cr)>0)
	  subsystem.cr = alias_args(subsystem.cr,subsystem.alias,";",message,infofilenum)
    	endif;
	

				# Substitute positional ($1 etc) arguments
    	subsystem.cr = subs_arg(subsystem.cr,system_cr, ...
				"lin",full_name,subsystem.type,comp_name,infofilenum);
    	subsystem.arg = subs_arg(subsystem.arg,system_args, ...
				 "1",full_name,subsystem.type,comp_name,infofilenum);
    	
				# change name of 0 and 1 components -- matlab doesn't like numbers here
    	if strcmp(subsystem.type,"0")







|

<
<


|
>
|







206
207
208
209
210
211
212
213
214


215
216
217
218
219
220
221
222
223
224
225
226
    	disp(["---- ", field(i,:), "Component ---"]);    
				# Get the component details
				#eval([ "[comp_type,comp_name,cr,args,repetitions] = ", cmp_name, "(i)"]);
    	
				# Alias the args list -- if not at top level
    	message = sprintf("\tfor component  %s (%s) within %s",\
			  comp_name,subsystem.type,full_name);    
    	if struct_contains(subsystem,"alias")
	  subsystem.arg = alias_args(subsystem.arg,subsystem.alias,";",message,infofilenum)


	  subsystem.cr = alias_args(subsystem.cr,subsystem.alias,";",message,infofilenum)
    	endif;

	
			# Substitute positional ($1 etc) arguments
    	subsystem.cr = subs_arg(subsystem.cr,system_cr, ...
				"lin",full_name,subsystem.type,comp_name,infofilenum);
    	subsystem.arg = subs_arg(subsystem.arg,system_args, ...
				 "1",full_name,subsystem.type,comp_name,infofilenum);
    	
				# change name of 0 and 1 components -- matlab doesn't like numbers here
    	if strcmp(subsystem.type,"0")


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