public GraphModel(IDependencyParserStrategy dps, ISerializationStrategy iss, string file) { mDependencyParserStrategy = dps; mSerializationStrategy = iss; _nodeIdentifierDict = new Dictionary <Node, int>(); _nodeIdentifierReverseDict = new Dictionary <int, Node>(); _nodeConnections = new List <NodeConnection>(); iss.DeserializeFile(file, ref _nodeIdentifierDict, ref _nodeIdentifierReverseDict, ref _nodeConnections); }
public GraphModel(IDependencyParserStrategy dps, ISerializationStrategy iss, string file) { mDependencyParserStrategy = dps; mSerializationStrategy = iss; _nodeIdentifierDict = new Dictionary<Node, int>(); _nodeIdentifierReverseDict = new Dictionary<int, Node>(); _nodeConnections = new List<NodeConnection>(); iss.DeserializeFile(file, ref _nodeIdentifierDict, ref _nodeIdentifierReverseDict, ref _nodeConnections); }
public List <FormatFileGenerator.Format> ExecuteDeserialization(string filepath) => strategy.DeserializeFile(filepath);