A metamodel framework for edge-based smart environments