The following source files, led by gray banners, contain all the class functions needed for Project Cool. The sections highlighted by a yellow background Color are manually entered. Code sections with white background color are generated by the SansGUI Source Code Framework. The source files are compiled into a dynamic linked library to be invoked by SansGUI during simulation runs.
Functions in Class Base.CoffeeCup
Functions in Class Collection.Clock
For more details about this example, please read A Tour of SansGUI Examples in the SansGUI Getting Started Guide.
Functions in Class Base.CoffeeCup [Go To Top] |
!
Base_CoffeeCup.f !
Attribute indices in class version [1.0.alpha.4] !
====================================================================== ! TODO: declare your local variables here |
! fTemp and fR are from self |
if (self%nSGobjSchema .ne. SG_OBJ_SCHEMA) then ! TODO: put your simulator code here |
! first connect zValues pointer to that of self
! now connect zValues pointer to that of simCtrl
! now do the calculation |
SG_xEval_Base_CoffeeCup = SG_R_OK |
Functions in Class Collection.Clock [Go To Top] |
!
Collection_Clock.f !
====================================================================== ! TODO: declare your local variables here |
! two variables of interest, current time and time increment |
if (self%nSGobjSchema .ne. SG_OBJ_SCHEMA) then ! TODO: put your simulator code here |
! connect pointer alias to the actual storage; all are arrays
! actual calculation - we only care about the first elements |
SG_xEval_Collection_Clock = SG_R_OK |
SansGUI Modeling and Simulation Environment version 1.2
Copyright © 2000-2003 ProtoDesign, Inc. All rights reserved.