Mercurial > hg > ishara
view arrows/@arrow/arrow.m @ 2:7357e1dc2ad6
Simplified scheduler library with new schedule representation.
author | samer |
---|---|
date | Sat, 22 Dec 2012 16:17:51 +0000 |
parents | 672052bd81f8 |
children | 5de03f77dae1 |
line wrap: on
line source
% arrow - Base class for processing unit % % arrow :: % N:natural ~'number of inputs', % M:natural ~'number of inputs' % -> arrow(T1:arglist(N),T2:arglist(M),_). % % The arrow(T1,T2,S) type denotes the type of an arrow with N inputs % and M outputs when T1 is a list of N types and T2 is list of M types. % S is the type of the state of the arrow and can be determined by subclasses, % The inputs and outputs then have the types as listed in T1 and T2 % respectively. % % The base arrow class cannot be used without subclassing since % any attempt to instantiate the live processing unit will throw % an exception. % % METHODS % % nargin - number of inputs % nargout - number of inputs % construct - instantiate live processing unit function o=arrow(nin,nout) s.nargin=nin; s.nargout=nout; o=class(s,'arrow');