public class SpatialProcessQueue<P extends SimProcess> extends ProcessQueue<P> implements SpatialObject, VisibleObject
desmoj.core.simulator.ProcessQueue<P> with spatial functionalities.
Every SpatialProcessQueue is associated with a spatial position and orientation.QueueBased.QueueActionFIFO, LIFO, RANDOM, UNDEFINED| Constructor and Description |
|---|
SpatialProcessQueue(Model owner,
java.lang.String name,
java.lang.String visualModel,
boolean showInReport,
boolean showInTrace,
Length startPositionX,
Length startPositionY,
Length startPositionZ)
Constructs a SpatialProcessQueue at the specific position.
|
SpatialProcessQueue(Model owner,
java.lang.String name,
java.lang.String visualModel,
int sortOrder,
int qCapacity,
boolean showInReport,
boolean showInTrace,
Length startPositionX,
Length startPositionY,
Length startPositionZ)
Constructs a SpatialProcessQueue at the specific position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
Adds an entry point to this SpatialObject.
|
void |
addExitPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
Adds an exit point to this SpatialObject.
|
Length[] |
getEntryPoint(java.lang.String name)
Gets the position of the given entry point.
|
Length[] |
getEntryPointGlobal(java.lang.String name)
Gets the position of the entry point in global coordinates.
|
java.util.Set<java.lang.String> |
getEntryPointNames()
Gets a set of names of all the entry points this SpatialObject contains.
|
Length[] |
getExitPoint(java.lang.String name)
Gets the position of the given exit point.
|
Length[] |
getExitPointGlobal(java.lang.String name)
Gets the position of the exit point in global coordinates.
|
java.util.Set<java.lang.String> |
getExitPointNames()
Gets a set of names of all the exit points this SpatialObject contains.
|
Matrix4d |
getMatrix()
Gets a 4x4 double matrix object which contains the spatial data of the SpatialObejct.
|
Length |
getPosX() |
Length |
getPosY() |
Length |
getPosZ() |
java.lang.String |
getVisualModel()
Get the type of the SpatialObject.
|
boolean |
isMovable()
Check whether this Object is a MovableSpatialObject or not.
|
boolean |
isVisible()
Shows the visibility of the visual representation of this object.
|
void |
removeVisible()
Sends a RemoveEvent to signal the observers that this object isn't
needed anymore.
|
void |
resetRotation()
Resets the rotation of the object.
|
void |
rotX(double angle)
Adds a rotation about the x-axis to the current orientation.
|
void |
rotY(double angle)
Adds a rotation about the y-axis to the current orientation.
|
void |
rotZ(double angle)
Adds a rotation about the z-axis to the current orientation.
|
void |
setPosition(Length x,
Length y,
Length z)
It sets the new position for the object
|
void |
setVisible(boolean visible)
Sets the visibility of the visual representation of this object.
|
contains, createDefaultReporter, first, first, get, get, getQueueList, getQueueStrategy, getRefused, insert, insertAfter, insertBefore, isEmpty, iterator, last, last, pred, pred, remove, remove, removeAll, removeFirst, removeFirst, removeLast, removeLast, reset, setQueueCapacity, setQueueStrategy, setRefused, size, succ, succaddObserver, averageLength, averageWaitTime, deleteObserver, getQueueLimit, length, maxLength, maxLengthAt, maxWaitTime, maxWaitTimeAt, minLength, minLengthAt, notifyObservers, setQueueImpWarning, stdDevLength, stdDevWaitTime, zeroWaitsgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamepublic SpatialProcessQueue(Model owner, java.lang.String name, java.lang.String visualModel, boolean showInReport, boolean showInTrace, Length startPositionX, Length startPositionY, Length startPositionZ)
desmoj.core.simulator.ProcessQueue<P>owner - The model this process-queue is associated to.name - The process-queue's name.visualModel - The visual model attribute belongs to the SpatialObject interface.showInReport - Flag if process-queue should produce a report.showInTrace - Flag for process-queue to produce trace messages.public SpatialProcessQueue(Model owner, java.lang.String name, java.lang.String visualModel, int sortOrder, int qCapacity, boolean showInReport, boolean showInTrace, Length startPositionX, Length startPositionY, Length startPositionZ)
desmoj.core.simulator.ProcessQueue<P>owner - The model this process-queue is associated to.name - The process-queue's name.visualModel - The visual model attribute belongs to the SpatialObject interface.sortOrder - determines the sort order of the underlying queue implementation.
Choose a constant from QueueBased like QueueBased.FIFO or QueueBased.LIFO or ...qCapacity - The capacity of the ProcessQueue, that is how many processes can
be enqueued. Zero (0) means unlimited capacity.showInReport - Flag if process-queue should produce a report.showInTrace - Flag for process-queue to produce trace messages.public void addEntryPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
SpatialObjectaddEntryPoint in interface SpatialObjectname - The name of this entry point.xPos - The x-position of this entry point in local coordinates.yPos - The y-position of this entry point in local coordinates.zPos - The z-position of this entry point in local coordinates.public void addExitPoint(java.lang.String name,
Length xPos,
Length yPos,
Length zPos)
SpatialObjectaddExitPoint in interface SpatialObjectname - The name of this exit point.xPos - The x-position of this exit point in local coordinates.yPos - The y-position of this exit point in local coordinates.zPos - The z-position of this exit point in local coordinates.public java.util.Set<java.lang.String> getEntryPointNames()
SpatialObjectgetEntryPointNames in interface SpatialObjectpublic java.util.Set<java.lang.String> getExitPointNames()
SpatialObjectgetExitPointNames in interface SpatialObjectpublic Length[] getEntryPoint(java.lang.String name)
SpatialObjectgetEntryPoint in interface SpatialObjectname - The name of the entry point.public Length[] getEntryPointGlobal(java.lang.String name)
SpatialObjectgetEntryPointGlobal in interface SpatialObjectname - The name of the entry point.public Length[] getExitPoint(java.lang.String name)
SpatialObjectgetExitPoint in interface SpatialObjectname - The name of the exit point.public Length[] getExitPointGlobal(java.lang.String name)
SpatialObjectgetExitPointGlobal in interface SpatialObjectname - The name of the exit point.public Matrix4d getMatrix()
SpatialObjectgetMatrix in interface SpatialObjectpublic Length getPosX()
getPosX in interface SpatialObjectpublic Length getPosY()
getPosY in interface SpatialObjectpublic Length getPosZ()
getPosZ in interface SpatialObjectpublic java.lang.String getVisualModel()
VisibleObjectgetVisualModel in interface VisibleObjectpublic boolean isMovable()
SpatialObjectisMovable in interface SpatialObjectpublic boolean isVisible()
VisibleObjectisVisible in interface VisibleObjectpublic void removeVisible()
VisibleObjectremoveVisible in interface VisibleObjectpublic void resetRotation()
SpatialObjectresetRotation in interface SpatialObjectpublic void rotX(double angle)
SpatialObjectrotX in interface SpatialObjectangle - The rotation angle in radianspublic void rotY(double angle)
SpatialObjectrotY in interface SpatialObjectangle - The rotation angle in radianspublic void rotZ(double angle)
SpatialObjectrotZ in interface SpatialObjectangle - The rotation angle in radianspublic void setPosition(Length x, Length y, Length z)
SpatialObjectsetPosition in interface SpatialObjectx - The ExtendedLength which contains the new x-position.y - The ExtendedLength which contains the new y-position.z - The ExtendedLength which contains the new z-position.public void setVisible(boolean visible)
VisibleObjectsetVisible in interface VisibleObjectvisible - True, if visible. Else, false.