Metamodel of network using a class diagram