/** */ package modes3; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * * A representation of the model object 'Segment'. * * *

* The following features are supported: *

* * * @see modes3.Modes3Package#getSegment() * @model * @generated */ public interface Segment extends EObject { /** * Returns the value of the 'Connected To' reference list. * The list contents are of type {@link modes3.Segment}. * * * @return the value of the 'Connected To' reference list. * @see modes3.Modes3Package#getSegment_ConnectedTo() * @model upper="2" * @generated */ EList getConnectedTo(); /** * Returns the value of the 'Occupied By' reference. * It is bidirectional and its opposite is '{@link modes3.Train#getLocation Location}'. * * * @return the value of the 'Occupied By' reference. * @see #setOccupiedBy(Train) * @see modes3.Modes3Package#getSegment_OccupiedBy() * @see modes3.Train#getLocation * @model opposite="location" * @generated */ Train getOccupiedBy(); /** * Sets the value of the '{@link modes3.Segment#getOccupiedBy Occupied By}' reference. * * * @param value the new value of the 'Occupied By' reference. * @see #getOccupiedBy() * @generated */ void setOccupiedBy(Train value); /** * Returns the value of the 'Id' attribute. * * * @return the value of the 'Id' attribute. * @see #setId(int) * @see modes3.Modes3Package#getSegment_Id() * @model * @generated */ int getId(); /** * Sets the value of the '{@link modes3.Segment#getId Id}' attribute. * * * @param value the new value of the 'Id' attribute. * @see #getId() * @generated */ void setId(int value); } // Segment