Esempio n. 1
0
        public RootNodeType MapFrom(PartialProcess partialProcess)
        {
            var type = partialProcess.GetType();

            if (type.IsAnImplementationOf <EnzymaticProcess>())
            {
                return(PKSimRootNodeTypes.CompoundMetabolizingEnzymes);
            }

            if (type.IsAnImplementationOf <SpecificBindingPartialProcess>())
            {
                return(PKSimRootNodeTypes.CompoundProteinBindingPartners);
            }

            if (type.IsAnImplementationOf <InhibitionProcess>())
            {
                return(PKSimRootNodeTypes.InhibitionProcess);
            }

            if (type.IsAnImplementationOf <InductionProcess>())
            {
                return(PKSimRootNodeTypes.InductionProcess);
            }

            if (type.IsAnImplementationOf <TransportPartialProcess>())
            {
                return(PKSimRootNodeTypes.CompoundTransportProteins);
            }

            throw new ArgumentException(partialProcess.ToString());
        }
Esempio n. 2
0
 public PartialProcessMoleculeNode(string proteinName, PartialProcess process)
     : base(proteinName, CoreConstants.CompositeNameFor(process.GetProcessClass(), proteinName))
 {
     PartialProcessType = process.GetType();
 }