Skip to content

Adding an entity with a duplicate name creates an entity reachable only by ID #223

@Gurankio

Description

@Gurankio

CloudSim::addEntity does not raise an error when an entity with a duplicate name is inserted (the previous dictionary entry is simply replaced), making the previous entity unreachable by name (though still retrievable by ID).

Should an exception be raised? Or is documenting this edge case enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions