Package jsl.modeling.elements.spatial
Class SpatialResource
- java.lang.Object
-
- jsl.simulation.ModelElement
-
- jsl.simulation.SchedulingElement
-
- jsl.modeling.elements.entity.Resource
-
- jsl.modeling.elements.spatial.SpatialResource
-
- All Implemented Interfaces:
SeizeIfc
,PositionIfc
,SpatialElementIfc
,ObservableIfc
,GetNameIfc
,IdentityIfc
public class SpatialResource extends Resource implements SpatialElementIfc
A SpatialResource is a resource that can be placed/positioned within a SpatialModel It is not "self-moving" but can be positioned by clients at various locations (coordinates, etc) within the spatial model. A SpatialResource can be assigned a "home location" via the ResourceLocation class In all other respects a SpatialResource acts like a Resource.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsl.simulation.ModelElement
ModelElement.EventBuilderIfc<T>, ModelElement.EventScheduler<T>, ModelElement.ModelElementComparator, ModelElement.RequestBuilder, ModelElement.RequestDurationIfc, ModelElement.RequestTimeIfc, ModelElement.RequestUsingIfc, ModelElement.TimedUpdateEventAction, ModelElement.TimeUnitIfc<T>, ModelElement.WarmUpEventAction
-
-
Field Summary
Fields Modifier and Type Field Description static int
MOVED
Indicates that the transporter has changed state to its observers-
Fields inherited from class jsl.modeling.elements.entity.Resource
myAllocations, myResourceSets, myWaitingRequests
-
Fields inherited from class jsl.simulation.ModelElement
AFTER_EXPERIMENT, AFTER_REPLICATION, BEFORE_EXPERIMENT, BEFORE_REPLICATION, CONDITIONAL_ACTION_REGISTRATION, DEFAULT_TIMED_EVENT_PRIORITY, INITIALIZED, MONTE_CARLO, myAfterExperimentOption, myAfterReplicationOption, myBeforeExperimentOption, myBeforeReplicationOption, myInitializationOption, myLengthOfWarmUp, myModelElements, myMonteCarloOption, myObservableComponent, myReplicationEndedOption, myTimedUpdateActionListener, myTimedUpdateEvent, myTimedUpdateInterval, myTimedUpdateOption, myTimedUpdatePriority, myWarmUpActionListener, myWarmUpEvent, myWarmUpIndicator, myWarmUpOption, myWarmUpPriority, NONE, REMOVED_FROM_MODEL, REPLICATION_ENDED, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_SECOND, TIME_UNIT_WEEK, TIMED_UPDATE, UPDATE, WARMUP
-
-
Constructor Summary
Constructors Constructor Description SpatialResource(ModelElement parent)
Creates a SpatialResource with the default position within its spatial model.SpatialResource(ModelElement parent, double x, double y)
Creates a SpatialResource with capacity 1 at (x,y) within its spatial model.SpatialResource(ModelElement parent, int capacity)
Creates a SpatialResource with the given capacity at the default position within its spatial model.SpatialResource(ModelElement parent, int capacity, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name)
Creates a SpatialResource with the given capacity at the default position within its spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name, CoordinateIfc position)
Creates a SpatialResource with the given capacity at the given coordinate within its spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel)
Creates a SpatialResource with the given capacity at the default position within the spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel, double x, double y, double z)
Creates a SpatialResource with the given capacity at (x,y,z) within the spatial model.SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel, CoordinateIfc coordinate)
Creates a SpatialResource with the given capacity at the default position within the spatial model.SpatialResource(ModelElement parent, int capacity, CoordinateIfc position)
Creates a SpatialResource with the given capacity at the given coordinate within its spatial model.SpatialResource(ModelElement parent, int capacity, SpatialModel spatialModel)
Creates a SpatialResource with the given capacity at the default position within the spatial model.SpatialResource(ModelElement parent, java.lang.String name, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model.SpatialResource(ModelElement parent, java.lang.String name, CoordinateIfc position)
Creates a SpatialResource with capacity 1 at the given coordinate within its spatial model.SpatialResource(ModelElement parent, java.lang.String name, SpatialElementIfc position)
Creates a SpatialResource with capacity 1 at the coordinates of the supplied spatial element within its spatial model.SpatialResource(ModelElement parent, CoordinateIfc position)
Creates a SpatialResource with capacity 1 at the given coordinate within its spatial model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachPositionObserver(ObserverIfc observer)
Implementor of this interface should allow Observers to be attached.void
changeSpatialModel(SpatialModel spatialModel, CoordinateIfc coordinate)
Changes the spatial model for this element and places the element at the supplied coordinate within the new spatial model.double
distanceTo(CoordinateIfc coordinate)
This is a "convenience" method for getting the distance from this element to the supplied coordinate within the underlying spatial modeldouble
distanceTo(SpatialElementIfc element)
This is a "convenience" method for getting the distance from this element to the supplied element within the underlying spatial model Requirement: The elements must be in the same spatial model.CoordinateIfc
getInitialPosition()
ResourceLocation
getInitialResourceLocation()
Gets the initial resource location.SpatialModel
getInitialSpatialModel()
Returns the spatial model that should hold this element at the beginning of each replication of a simulationModelElement
getModelElement()
Gets the ModelElement associated with this spatial element May be nullCoordinateIfc
getPosition()
CoordinateIfc
getPreviousPosition()
ResourceLocation
getResourceLocation()
Returns the associated ResourceLocation if one exists.protected SpatialElement
getSpatialElement()
protected void
initialize()
This method should be overridden by subclasses that need actions performed to initialize prior to a replication.void
initializeSpatialElement()
This method should be called to initialize the spatial element prior to running a simulationboolean
isPositionEqualTo(CoordinateIfc coordinate)
Returns true if the position of this element is the same as supplied coordinate within the underlying spatial model.boolean
isPositionEqualTo(SpatialElementIfc element)
Returns true if the position of this element is the same as the position of the supplied element within the underlying spatial model.void
removePositionObserver(ObserverIfc observer)
Remove the observer from this PositionIfcvoid
setInitialPosition(CoordinateIfc c)
Sets the initial position of the element.protected void
setInitialResourceLocation(ResourceLocation location)
Sets the initial resource location.void
setPosition(CoordinateIfc location)
Sets the position to the coordinates of the supplied locationvoid
setPosition(SpatialElementIfc element)
Sets the position to the coordinates of the supplied locationprotected void
setResourceLocation(ResourceLocation resourceLocation)
Sets the ResourceLocation for this SpatialResource.protected void
setSpatialElement(SpatialElement spatialElement)
Sets the underlying SpatialElement-
Methods inherited from class jsl.modeling.elements.entity.Resource
addAllocation, addWaitingRequest, allocate, allocate, asString, attachResourceSet, attachStateChangeListener, decrementNumberBusy, detachResourceSet, detachStateChangeListener, getCapacity, getInitialCapacity, getMaximumCapacity, getNumberAvailable, hasAvailableUnits, incrementNumberBusy, isBusy, isFailed, isIdle, isInactive, notifyResourceSets, notifyStateChangeListeners, partiallyAllocate, peekNextRequest, processWaitingRequests, release, release, release, removeAllocation, removeNextRequest, removeWaitingRequest, seize, seize, seize, seize, seize, setInitialCapacity, setMaximumCapacity, setState
-
Methods inherited from class jsl.simulation.SchedulingElement
cancelEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent
-
Methods inherited from class jsl.simulation.ModelElement
addObserver, addObserverToModelElements, afterExperiment, afterExperiment_, afterReplication, afterReplication_, beforeExperiment, beforeExperiment_, beforeReplication, beforeReplication_, buildEventGenerator, cancelTimedUpdateEvent, cancelWarmUpEvent, changeParentModelElement, checkForAfterExperiment, checkForAfterReplication, checkForBeforeExperiment, checkForBeforeReplication, checkForConditionalActionRegistration, checkForInitialize, checkForMonteCarlo, checkForRemoveFromModel, checkForReplicationEnded, checkForTimedUpdate, checkForUpdate, checkForWarmUp, checkObserverState, checkWarmUpOption, clearModelElementObservers, contains, countObservers, createEntity, createEntity, createQObject, day, deleteObserver, deleteObserverFromModelElements, deleteObservers, findModelElementWithWarmUpEvent, getAfterExperimentOption, getAfterReplicationOption, getAllCounters, getAllModelElements, getAllRandomElements, getAllResponseVariables, getAllVariables, getBeforeExperimentOption, getBeforeReplicationOption, getChildModelElementIterator, getCurrentReplicationNumber, getDefaultEntityType, getExecutive, getExperiment, getId, getInitializationOption, getInitializationOrderAsString, getLeftPreOrderTraversalCount, getLengthOfWarmUp, getModel, getModelElementCompartor, getModelElementsAsString, getModelElementsAsString, getModelElementsAsString, getMonteCarloOption, getName, getNumberOfModelElements, getObserverState, getParentModelElement, getPreviousObserverState, getReplicationEndedOption, getRightPreOrderTraversalCount, getSimulation, getSpatialModel, getStringLabel, getThisElementsCounters, getThisElementsModelElements, getThisElementsRandomVariables, getThisElementsResponseVariables, getThisElementsVariables, getTime, getTimedUpdateInterval, getTimedUpdateOption, getUpdateNotificationFlag, getVariable, getWarmUpEventTime, getWarmUpOption, hour, indent, initialize_, isTimedUpdateEventScheduled, isWarmedUp, isWarmUpEventScheduled, isWarmUpScheduled, millisecond, minute, montecarlo, montecarlo_, notifyAfterExperimentObservers, notifyAfterReplicationObservers, notifyBeforeExperimentObservers, notifyBeforeReplicationObservers, notifyConditionalActionRegistrationObservers, notifyInitializationObservers, notifyMonteCarloObservers, notifyObservers, notifyObservers, notifyRemovingFromModelObservers, notifyReplicationEndedObservers, notifyTimedUpdateObservers, notifyUpdateObservers, notifyWarmUpObservers, registerConditionalActions, registerConditionalActions_, removedFromModel, removeFromModel, replicationEnded, replicationEnded_, schedule, second, seize, setAfterExperimentOption, setAfterExperimentOptionForModelElements, setAfterReplicationOption, setAfterReplicationOptionForModelElements, setBeforeExperimentOption, setBeforeExperimentOptionForModelElements, setBeforeReplicationOption, setBeforeReplicationOptionForModelElements, setInitializationOption, setInitializationOptionForModelElements, setLengthOfWarmUp, setModel, setMonteCarloOption, setMonteCarloOptionForModelElements, setName, setObserverState, setParentModelElement, setReplicationEndedOption, setReplicationEndedOptionForModelElements, setSpatialModel, setStringLabel, setTimedUpdateInterval, setTimedUpdateOption, setTimedUpdateOptionForModelElements, setUpdateNotificationFlag, setWarmUpOption, setWarmUpOptionForModelElements, stopExecutive, stopExecutive, timedUpdate, timedUpdate_, toString, update, useControls, warmUp, warmUp_, week
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jsl.utilities.GetNameIfc
getName
-
Methods inherited from interface jsl.utilities.IdentityIfc
getId
-
Methods inherited from interface jsl.modeling.elements.spatial.SpatialElementIfc
getObserverState, getSpatialModel
-
-
-
-
Constructor Detail
-
SpatialResource
public SpatialResource(ModelElement parent)
Creates a SpatialResource with the default position within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity)
Creates a SpatialResource with the given capacity at the default position within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name)
Creates a SpatialResource with the given capacity at the default position within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-
-
SpatialResource
public SpatialResource(ModelElement parent, java.lang.String name, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-name
-x
-y
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-x
-y
-
-
SpatialResource
public SpatialResource(ModelElement parent, java.lang.String name, CoordinateIfc position)
Creates a SpatialResource with capacity 1 at the given coordinate within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-name
-position
-
-
SpatialResource
public SpatialResource(ModelElement parent, java.lang.String name, SpatialElementIfc position)
Creates a SpatialResource with capacity 1 at the coordinates of the supplied spatial element within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-name
-position
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name, CoordinateIfc position)
Creates a SpatialResource with the given capacity at the given coordinate within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-position
-
-
SpatialResource
public SpatialResource(ModelElement parent, double x, double y)
Creates a SpatialResource with capacity 1 at (x,y) within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-x
-y
-
-
SpatialResource
public SpatialResource(ModelElement parent, CoordinateIfc position)
Creates a SpatialResource with capacity 1 at the given coordinate within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-position
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, CoordinateIfc position)
Creates a SpatialResource with the given capacity at the given coordinate within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-position
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, double x, double y)
Creates a SpatialResource with the given capacity at (x,y) within its spatial model. The spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-x
-y
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel)
Creates a SpatialResource with the given capacity at the default position within the spatial model. If the spatial model is null then the spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-spatialModel
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, SpatialModel spatialModel)
Creates a SpatialResource with the given capacity at the default position within the spatial model. If the spatial model is null then the spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-spatialModel
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel, double x, double y, double z)
Creates a SpatialResource with the given capacity at (x,y,z) within the spatial model. If the spatial model is null then the spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-spatialModel
-x
-y
-z
-
-
SpatialResource
public SpatialResource(ModelElement parent, int capacity, java.lang.String name, SpatialModel spatialModel, CoordinateIfc coordinate)
Creates a SpatialResource with the given capacity at the default position within the spatial model. If the spatial model is null then the spatial model of the parent is used as the spatial model of this object. If the parent does not have a spatial model (i.e. getSpatialModel() == null), then an IllegalArgumentException is thrown- Parameters:
parent
-capacity
-name
-spatialModel
-coordinate
-
-
-
Method Detail
-
attachPositionObserver
public final void attachPositionObserver(ObserverIfc observer)
Description copied from interface:SpatialElementIfc
Implementor of this interface should allow Observers to be attached. For example, the observers should be notified when the position changes. It is the responsibility of implementers to properly notify the observers.- Specified by:
attachPositionObserver
in interfaceSpatialElementIfc
- Parameters:
observer
- the observer
-
changeSpatialModel
public final void changeSpatialModel(SpatialModel spatialModel, CoordinateIfc coordinate)
Description copied from interface:SpatialElementIfc
Changes the spatial model for this element and places the element at the supplied coordinate within the new spatial model. Throws IllegalArgumentException if the coordinate is not valid for the supplied spatial model. This spatial element becomes a child element of the new spatial model.- Specified by:
changeSpatialModel
in interfaceSpatialElementIfc
- Parameters:
spatialModel
- the spatial modelcoordinate
- the coordinate
-
distanceTo
public final double distanceTo(CoordinateIfc coordinate)
Description copied from interface:SpatialElementIfc
This is a "convenience" method for getting the distance from this element to the supplied coordinate within the underlying spatial model- Specified by:
distanceTo
in interfaceSpatialElementIfc
- Parameters:
coordinate
- the coordinate to check- Returns:
- the distance
-
distanceTo
public final double distanceTo(SpatialElementIfc element)
Description copied from interface:SpatialElementIfc
This is a "convenience" method for getting the distance from this element to the supplied element within the underlying spatial model Requirement: The elements must be in the same spatial model. The distance should be calculated by the spatial model. If they are not in the same spatial model this method will throw and IllegalArgumentException- Specified by:
distanceTo
in interfaceSpatialElementIfc
- Parameters:
element
- the element to check- Returns:
- the distance
-
getPosition
public final CoordinateIfc getPosition()
- Specified by:
getPosition
in interfacePositionIfc
- Specified by:
getPosition
in interfaceSpatialElementIfc
- Returns:
- Returns the current Position.
-
getInitialPosition
public final CoordinateIfc getInitialPosition()
- Specified by:
getInitialPosition
in interfaceSpatialElementIfc
- Returns:
- Returns the initialPosition.
-
getInitialSpatialModel
public final SpatialModel getInitialSpatialModel()
Description copied from interface:SpatialElementIfc
Returns the spatial model that should hold this element at the beginning of each replication of a simulation- Specified by:
getInitialSpatialModel
in interfaceSpatialElementIfc
- Returns:
- the spatial model
-
getModelElement
public final ModelElement getModelElement()
Description copied from interface:SpatialElementIfc
Gets the ModelElement associated with this spatial element May be null- Specified by:
getModelElement
in interfaceSpatialElementIfc
- Returns:
- the model element
-
getPreviousPosition
public final CoordinateIfc getPreviousPosition()
- Specified by:
getPreviousPosition
in interfaceSpatialElementIfc
- Returns:
- Returns the previousPosition.
-
initializeSpatialElement
public final void initializeSpatialElement()
Description copied from interface:SpatialElementIfc
This method should be called to initialize the spatial element prior to running a simulation- Specified by:
initializeSpatialElement
in interfaceSpatialElementIfc
-
isPositionEqualTo
public final boolean isPositionEqualTo(CoordinateIfc coordinate)
Description copied from interface:SpatialElementIfc
Returns true if the position of this element is the same as supplied coordinate within the underlying spatial model. This is not necessarily object reference equality, but rather whether or not the positions within the underlying spatial model can be considered the same (equivalent).- Specified by:
isPositionEqualTo
in interfaceSpatialElementIfc
- Parameters:
coordinate
- the coordinate to check- Returns:
- true if position is equal
-
isPositionEqualTo
public final boolean isPositionEqualTo(SpatialElementIfc element)
Description copied from interface:SpatialElementIfc
Returns true if the position of this element is the same as the position of the supplied element within the underlying spatial model. This is not necessarily object reference equality, but rather whether or not the positions within the underlying spatial model can be considered the same (equivalent). Requirement: The elements must be in the same spatial model. If they are not in the same spatial model, then this method should return false.- Specified by:
isPositionEqualTo
in interfaceSpatialElementIfc
- Parameters:
element
- the element to check- Returns:
- the distance
-
removePositionObserver
public final void removePositionObserver(ObserverIfc observer)
Description copied from interface:SpatialElementIfc
Remove the observer from this PositionIfc- Specified by:
removePositionObserver
in interfaceSpatialElementIfc
- Parameters:
observer
- the observer
-
setInitialPosition
public final void setInitialPosition(CoordinateIfc c)
Description copied from interface:SpatialElementIfc
Sets the initial position of the element. This position should be used when initializeSpatialElement() is called, typically at the beginning of a replication.- Specified by:
setInitialPosition
in interfaceSpatialElementIfc
- Parameters:
c
- the coordinate
-
setPosition
public final void setPosition(CoordinateIfc location)
Sets the position to the coordinates of the supplied location- Parameters:
location
-
-
setPosition
public final void setPosition(SpatialElementIfc element)
Sets the position to the coordinates of the supplied location- Parameters:
element
-
-
getInitialResourceLocation
public final ResourceLocation getInitialResourceLocation()
Gets the initial resource location. This location is used when the element is initialized, prior to a replication.- Returns:
- Returns the myInitialResourceLocation.
-
getResourceLocation
public final ResourceLocation getResourceLocation()
Returns the associated ResourceLocation if one exists. May be null- Returns:
- Returns the ResourceLocation.
-
initialize
protected void initialize()
Description copied from class:ModelElement
This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called- Overrides:
initialize
in classResource
-
getSpatialElement
protected final SpatialElement getSpatialElement()
-
setInitialResourceLocation
protected final void setInitialResourceLocation(ResourceLocation location)
Sets the initial resource location. This location is used when the element is initialized prior to a replication. This may be null.- Parameters:
location
- The initial resource locaiton to set for the element
-
setResourceLocation
protected final void setResourceLocation(ResourceLocation resourceLocation)
Sets the ResourceLocation for this SpatialResource. It can be null- Parameters:
resourceLocation
- The resourceLocation to set.
-
setSpatialElement
protected final void setSpatialElement(SpatialElement spatialElement)
Sets the underlying SpatialElement- Parameters:
spatialElement
-
-
-