|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
org.eclipse.ohf.stem.core.graph.impl.LabelImpl
org.eclipse.ohf.stem.core.graph.impl.DynamicLabelImpl
org.eclipse.ohf.stem.core.graph.impl.DynamicEdgeLabelImpl
org.eclipse.ohf.stem.definitions.labels.impl.TransportRelationshipLabelImpl
public class TransportRelationshipLabelImpl
An implementation of the model object 'Transport Relationship Label'.
The following features are implemented:
Transport Mode
Population Identifier
Transport Identifier
Current Transport Relationship Label Value
Rate Time Period
Departure Capacity
Maximum Departure Capacity
Capacity
Maximum Capacity
Transit Time
Start Up Delay
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
ELAST_EOBJECT_FLAG |
Fields inherited from interface org.eclipse.ohf.stem.core.graph.DynamicLabel |
---|
URI_TYPE_DYNAMIC_LABEL, URI_TYPE_DYNAMIC_LABEL_SEGMENT |
Fields inherited from interface org.eclipse.ohf.stem.core.graph.Label |
---|
URI_TYPE_LABEL, URI_TYPE_LABEL_SEGMENT |
Fields inherited from interface org.eclipse.ohf.stem.core.graph.Label |
---|
URI_TYPE_LABEL, URI_TYPE_LABEL_SEGMENT |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Method Summary | |
---|---|
static Edge |
createTransportRelationship(Node nodeA,
Node nodeB,
TransportMode transportMode,
java.lang.String transportIdentifier,
java.lang.String populationIdentifier,
long rateTimePeriod,
int maximumCapacity)
Create an edge the represents a reflexive transportation relationship between two nodes. |
static Edge |
createTransportRelationship(Node nodeA,
Node nodeB,
TransportMode transportMode,
java.lang.String transportIdentifier,
java.lang.String populationIdentifier,
long rateTimePeriod,
int maximumCapacity,
boolean directed)
Create an edge the represents a reflexive transportation relationship between two nodes. |
static Edge |
createTransportRelationship(Node nodeA,
Node nodeB,
TransportMode transportMode,
java.lang.String transportIdentifier,
java.lang.String populationIdentifier,
long rateTimePeriod,
int maximumDepartureCapacity,
int maximumCapacity,
long transitTime,
long startUpDelay)
Create an edge the represents a reflexive transportation relationship between two nodes. |
static Edge |
createTransportRelationship(Node nodeA,
Node nodeB,
TransportMode transportMode,
java.lang.String transportIdentifier,
java.lang.String populationIdentifier,
long rateTimePeriod,
int maximumDepartureCapacity,
int maximumCapacity,
long transitTime,
long startUpDelay,
boolean directed)
Create an edge the represents a transportation relationship between two nodes. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
void |
eUnset(int featureID)
|
int |
getCapacity()
|
TransportRelationshipLabelValue |
getCurrentTransportRelationshipLabelValue()
|
int |
getDepartureCapacity()
|
int |
getMaximumCapacity()
|
int |
getMaximumDepartureCapacity()
|
java.lang.String |
getPopulationIdentifier()
|
long |
getRateTimePeriod()
|
long |
getStartUpDelay()
|
long |
getTransitTime()
|
static java.util.List<Edge> |
getTransportEdgesFromNode(Node node,
java.lang.String populationIdentifier)
|
static java.util.List<Edge> |
getTransportEdgesToNode(Node node,
java.lang.String populationIdentifier)
|
java.lang.String |
getTransportIdentifier()
|
TransportMode |
getTransportMode()
|
org.eclipse.emf.common.util.EList |
receive(Node here,
STEMTime currentTime)
Receive some travelers. |
void |
reset()
Set the next value valid flag to false. |
boolean |
sane()
|
void |
send(Node here,
org.eclipse.emf.ecore.EObject departees)
Send a representation of population members to be "transported" from the Node here to the other Node
in the relationship. |
void |
setMaximumCapacity(int newMaximumCapacity)
|
void |
setMaximumDepartureCapacity(int newMaximumDepartureCapacity)
|
void |
setPopulationIdentifier(java.lang.String newPopulationIdentifier)
|
void |
setRateTimePeriod(long newRateTimePeriod)
|
void |
setStartUpDelay(long newStartUpDelay)
|
void |
setTransitTime(long newTransitTime)
|
void |
setTransportIdentifier(java.lang.String newTransportIdentifier)
|
void |
setTransportMode(TransportMode newTransportMode)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.DynamicEdgeLabelImpl |
---|
basicSetEdge, eBaseStructuralFeatureID, eBasicRemoveFromContainerFeature, eDerivedStructuralFeatureID, eInverseAdd, eInverseRemove, getEdge, getIdentifiable, setEdge, setIdentifiable |
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.DynamicLabelImpl |
---|
basicGetDecorator, basicSetDecorator, basicSetNextValue, getDecorator, getNextValue, isNextValueValid, setDecorator, setNextValue, setNextValueValid, switchToNextValue |
Methods inherited from class org.eclipse.ohf.stem.core.graph.impl.LabelImpl |
---|
basicGetIdentifiable, basicSetCurrentValue, getCurrentValue, getURIOfIdentifiableToBeLabeled, setCurrentValue, setURIOfIdentifiableToBeLabeled |
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl |
---|
basicSetDublinCore, getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ohf.stem.core.graph.DynamicLabel |
---|
getDecorator, getNextValue, isNextValueValid, setDecorator, setNextValue, setNextValueValid, switchToNextValue |
Methods inherited from interface org.eclipse.ohf.stem.core.graph.Label |
---|
getCurrentValue, getIdentifiable, getURIOfIdentifiableToBeLabeled, setCurrentValue, setIdentifiable, setURIOfIdentifiableToBeLabeled |
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable |
---|
getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.ohf.stem.core.graph.EdgeLabel |
---|
getEdge, setEdge |
Methods inherited from interface org.eclipse.ohf.stem.core.graph.Label |
---|
getCurrentValue, getIdentifiable, getURIOfIdentifiableToBeLabeled, setCurrentValue, setIdentifiable, setURIOfIdentifiableToBeLabeled |
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable |
---|
getDublinCore, getTypeURI, getURI, setDublinCore, setTypeURI, setURI |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eNotificationRequired |
Field Detail |
---|
public static final java.lang.String copyright
Method Detail |
---|
public static Edge createTransportRelationship(Node nodeA, Node nodeB, TransportMode transportMode, java.lang.String transportIdentifier, java.lang.String populationIdentifier, long rateTimePeriod, int maximumCapacity)
nodeA
- the first nodenodeB
- the second nodetransportMode
- the transportation modetransportIdentifier
- the identifier of the transportion (e.g., road name)populationIdentifier
- the population being transported
public static Edge createTransportRelationship(Node nodeA, Node nodeB, TransportMode transportMode, java.lang.String transportIdentifier, java.lang.String populationIdentifier, long rateTimePeriod, int maximumCapacity, boolean directed)
nodeA
- the first nodenodeB
- the second nodetransportMode
- the transportation modetransportIdentifier
- the identifier of the transportion (e.g., road name)populationIdentifier
- the population being transported
public static Edge createTransportRelationship(Node nodeA, Node nodeB, TransportMode transportMode, java.lang.String transportIdentifier, java.lang.String populationIdentifier, long rateTimePeriod, int maximumDepartureCapacity, int maximumCapacity, long transitTime, long startUpDelay)
nodeA
- the first nodenodeB
- the second nodetransportMode
- the transportation modetransportIdentifier
- the identifier of the transportion (e.g., road name)populationIdentifier
- the population being transportedpopulationCount
- the number of population memberstimePeriod
- the unit of time the population count is transported in
(milliseconds)
public static Edge createTransportRelationship(Node nodeA, Node nodeB, TransportMode transportMode, java.lang.String transportIdentifier, java.lang.String populationIdentifier, long rateTimePeriod, int maximumDepartureCapacity, int maximumCapacity, long transitTime, long startUpDelay, boolean directed)
nodeA
- the first nodenodeB
- the second nodetransportMode
- the transportation modetransportIdentifier
- the identifier of the transportion (e.g., road name)populationIdentifier
- the population being transportedpopulationCount
- the number of population membersrateTimePeriod
- the unit of time the population count is transported in
(milliseconds)directed
- if true then the relationship is only from nodeA to nodeB, and
not the other way around. This means things move from nodeA to
nodeB, but not in the other direction.
public TransportMode getTransportMode()
getTransportMode
in interface TransportRelationshipLabel
public void setTransportMode(TransportMode newTransportMode)
setTransportMode
in interface TransportRelationshipLabel
newTransportMode
- the new value of the 'Transport Mode' attribute.TransportMode
,
TransportRelationshipLabel.getTransportMode()
public java.lang.String getPopulationIdentifier()
getPopulationIdentifier
in interface TransportRelationshipLabel
public void setPopulationIdentifier(java.lang.String newPopulationIdentifier)
setPopulationIdentifier
in interface TransportRelationshipLabel
newPopulationIdentifier
- the new value of the 'Population Identifier' attribute.TransportRelationshipLabel.getPopulationIdentifier()
public java.lang.String getTransportIdentifier()
getTransportIdentifier
in interface TransportRelationshipLabel
public void setTransportIdentifier(java.lang.String newTransportIdentifier)
setTransportIdentifier
in interface TransportRelationshipLabel
newTransportIdentifier
- the new value of the 'Transport Identifier' attribute.TransportRelationshipLabel.getTransportIdentifier()
public TransportRelationshipLabelValue getCurrentTransportRelationshipLabelValue()
getCurrentTransportRelationshipLabelValue
in interface TransportRelationshipLabel
public long getRateTimePeriod()
getRateTimePeriod
in interface TransportRelationshipLabel
STEMTime
public void setRateTimePeriod(long newRateTimePeriod)
setRateTimePeriod
in interface TransportRelationshipLabel
newRateTimePeriod
- the new value of the 'Rate Time Period' attribute.TransportRelationshipLabel.getRateTimePeriod()
public int getDepartureCapacity()
getDepartureCapacity
in interface TransportRelationshipLabel
TransportRelationshipLabelValue.getAvailableDepartureCapacityProportion()
,
TransportRelationshipLabel.getMaximumDepartureCapacity()
public int getMaximumDepartureCapacity()
getMaximumDepartureCapacity
in interface TransportRelationshipLabel
#getTimePeriod()
,
TransportRelationshipLabel.getMaximumCapacity()
,
TransportRelationshipLabel.getStartUpDelay()
public void setMaximumDepartureCapacity(int newMaximumDepartureCapacity)
setMaximumDepartureCapacity
in interface TransportRelationshipLabel
newMaximumDepartureCapacity
- the new value of the 'Maximum Departure Capacity' attribute.TransportRelationshipLabel.getMaximumDepartureCapacity()
public int getCapacity()
getCapacity
in interface TransportRelationshipLabel
TransportRelationshipLabelValue.getAvailableDepartureCapacityProportion()
,
TransportRelationshipLabel.getMaximumCapacity()
public int getMaximumCapacity()
getMaximumCapacity
in interface TransportRelationshipLabel
#getTimePeriod()
,
TransportRelationshipLabel.getCapacity()
,
TransportRelationshipLabel.getStartUpDelay()
public void setMaximumCapacity(int newMaximumCapacity)
setMaximumCapacity
in interface TransportRelationshipLabel
newMaximumCapacity
- the new value of the 'Maximum Capacity' attribute.TransportRelationshipLabel.getMaximumCapacity()
public long getTransitTime()
getTransitTime
in interface TransportRelationshipLabel
Node
to another using the the type of
transportation represented by the relationship.public void setTransitTime(long newTransitTime)
setTransitTime
in interface TransportRelationshipLabel
newTransitTime
- the new value of the 'Transit Time' attribute.TransportRelationshipLabel.getTransitTime()
public long getStartUpDelay()
getStartUpDelay
in interface TransportRelationshipLabel
TransportRelationshipLabel.getMaximumCapacity()
,
TransportRelationshipLabel.getDepartureCapacity()
public void setStartUpDelay(long newStartUpDelay)
setStartUpDelay
in interface TransportRelationshipLabel
newStartUpDelay
- the new value of the 'Start Up Delay' attribute.TransportRelationshipLabel.getStartUpDelay()
public void send(Node here, org.eclipse.emf.ecore.EObject departees)
TransportRelationshipLabel
Node
here
to the other Node
in the relationship.
send
in interface TransportRelationshipLabel
here
- the Node
the population members depart fromdepartees
- the population member representationTransportRelationshipLabel.send(org.eclipse.ohf.stem.core.graph.Node, org.eclipse.emf.ecore.EObject)
public org.eclipse.emf.common.util.EList receive(Node here, STEMTime currentTime)
TransportRelationshipLabel
receive
in interface TransportRelationshipLabel
here
- the Node
of arrivalcurrentTime
- the current time of the simulation
Node
here
by the
currentTime
TransportRelationshipLabel.receive(org.eclipse.ohf.stem.core.graph.Node, org.eclipse.ohf.stem.core.model.STEMTime)
public static java.util.List<Edge> getTransportEdgesToNode(Node node, java.lang.String populationIdentifier)
node
- the nodepopulationIdentifier
- the population being transported
public static java.util.List<Edge> getTransportEdgesFromNode(Node node, java.lang.String populationIdentifier)
node
- the nodepopulationIdentifier
- the population being transported
public void reset()
DynamicLabelImpl
reset
in interface DynamicLabel
reset
in class DynamicLabelImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class DynamicEdgeLabelImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class DynamicEdgeLabelImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class DynamicEdgeLabelImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class DynamicEdgeLabelImpl
public java.lang.String toString()
toString
in class DynamicLabelImpl
public boolean sane()
IdentifiableImpl
sane
in interface Identifiable
sane
in interface SanityChecker
sane
in class DynamicLabelImpl
DynamicLabelImpl.sane()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |