Package net.cis.common.model.sector

Examples of net.cis.common.model.sector.SectorPackage


    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    BasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);
    SectorPackage theSectorPackage = (SectorPackage)EPackage.Registry.INSTANCE.getEPackage(SectorPackage.eNS_URI);
    ShipdevicePackage theShipdevicePackage = (ShipdevicePackage)EPackage.Registry.INSTANCE.getEPackage(ShipdevicePackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    abstractStructureEClass.getESuperTypes().add(theBasePackage.getAbstractNamedEntity());
    stationEClass.getESuperTypes().add(this.getAbstractStructure());
    satelliteEClass.getESuperTypes().add(this.getAbstractStructure());
    jumpgateEClass.getESuperTypes().add(this.getAbstractStructure());
    shipEClass.getESuperTypes().add(this.getAbstractStructure());

    // Initialize classes and features; add operations and parameters
    initEClass(abstractStructureEClass, AbstractStructure.class, "AbstractStructure", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(stationEClass, Station.class, "Station", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(satelliteEClass, Satellite.class, "Satellite", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(jumpgateEClass, Jumpgate.class, "Jumpgate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getJumpgate_LinkedJumpgate(), this.getJumpgate(), null, "linkedJumpgate", null, 0, 1, Jumpgate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getJumpgate_ParentSector(), theSectorPackage.getSector(), null, "parentSector", null, 1, 1, Jumpgate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(shipEClass, Ship.class, "Ship", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getShip_Height(), ecorePackage.getEFloat(), "height", null, 1, 1, Ship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getShip_Width(), ecorePackage.getEFloat(), "width", null, 1, 1, Ship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getShip_Length(), ecorePackage.getEFloat(), "length", null, 1, 1, Ship.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
View Full Code Here


    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    BasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);
    SectorPackage theSectorPackage = (SectorPackage)EPackage.Registry.INSTANCE.getEPackage(SectorPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    planetEClass.getESuperTypes().add(this.getCelestialBody());
    planetarySystemEClass.getESuperTypes().add(this.getCelestialBody());
    starEClass.getESuperTypes().add(this.getCelestialBody());
    celestialBodyEClass.getESuperTypes().add(theBasePackage.getAbstractNamedEntity());
    asteroidBeltEClass.getESuperTypes().add(this.getCelestialBody());
    moonEClass.getESuperTypes().add(this.getCelestialBody());
    nebulaEClass.getESuperTypes().add(theBasePackage.getAbstractNamedEntity());

    // Initialize classes and features; add operations and parameters
    initEClass(planetEClass, Planet.class, "Planet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getPlanet_Moons(), this.getMoon(), null, "moons", null, 0, -1, Planet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(planetarySystemEClass, PlanetarySystem.class, "PlanetarySystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getPlanetarySystem_Stars(), this.getStar(), null, "stars", null, 1, -1, PlanetarySystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getPlanetarySystem_Planets(), this.getPlanet(), null, "planets", null, 0, -1, PlanetarySystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getPlanetarySystem_AsteroidBelts(), this.getAsteroidBelt(), null, "asteroidBelts", null, 0, -1, PlanetarySystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getPlanetarySystem_Nebulas(), this.getNebula(), null, "nebulas", null, 0, -1, PlanetarySystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(starEClass, Star.class, "Star", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(celestialBodyEClass, CelestialBody.class, "CelestialBody", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getCelestialBody_Radius(), ecorePackage.getEFloat(), "radius", null, 0, 1, CelestialBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getCelestialBody_Sectors(), theSectorPackage.getSector(), null, "sectors", null, 0, -1, CelestialBody.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    initEClass(asteroidBeltEClass, AsteroidBelt.class, "AsteroidBelt", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(moonEClass, Moon.class, "Moon", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
View Full Code Here

TOP

Related Classes of net.cis.common.model.sector.SectorPackage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.