Allostery.buildAllosteryFromProps C# (CSharp) Method

buildAllosteryFromProps() public static method

public static buildAllosteryFromProps ( AllosteryProperties, props ) : IReaction,
props AllosteryProperties,
return IReaction,
  public static IReaction       buildAllosteryFromProps(AllosteryProperties props)
  {
    if (props == null)
      return null;

    Allostery reaction = new Allostery();

    reaction.setName(props.name);
    reaction.setEffector(props.effector);
    reaction.setK(props.K);
    reaction.setN(props.n);
    reaction.setProtein(props.protein);
    reaction.setProduct(props.product);
    reaction.setEnergyCost(props.energyCost);

    return reaction;
  }