From Constraint-oriented to Resource-oriented Specification of Data-flow Networks