public class EntitySchedule<E extends SimProcess> extends SimProcess
Modifier and Type | Field and Description |
---|---|
static boolean[] |
allDays |
static boolean[] |
weekend |
static boolean[] |
workingDays |
Constructor and Description |
---|
EntitySchedule(Model owner)
Erzeugt leeren EntitySchedule mit default Zeitzone
|
EntitySchedule(Model owner,
java.lang.String name,
E process)
Erzeugt leeren EntitySchedule mit default Zeitzone
Zu begin jedes ScheduleEntry wird process aktiviert
|
EntitySchedule(Model owner,
TimeSpan fromBeginOfDay,
TimeSpan untilBeginOfDay)
Default Schedule ohne Zeitbeschraenkung, werktags
mit default Zeitzone
|
Modifier and Type | Method and Description |
---|---|
void |
add(EntityScheduleEntry entry)
fuegt dem Schedule ein EntityScheduleEntry hinzu
|
void |
addProcess(E process) |
boolean |
checkAvailability(Entity e)
Wie oben, jedoch mit index = 0 als Default Wert.
|
boolean |
checkAvailability(Entity e,
int index)
Das values-array der schedule entries beschreiben Eigenschaften eines entries.
|
void |
clearProcessList() |
TimeInstant |
getBeginOfNextEntry(TimeInstant now)
compute begin of next valid scheduleEntry.
|
TimeInstant |
getEndOfActualEntry(TimeInstant now) |
java.lang.Object[] |
isInSchedule()
prueft ob currentTime in dem Schedule enthalten ist.
|
java.lang.Object[] |
isInSchedule(TimeInstant time)
prueft ob date in dem Schedule enthalten ist.
|
void |
lifeCycle()
Override this method in a subclass of SimProcess to implement the
specific behaviour of this SimProcess.
|
void |
removeProcess(E process) |
void |
setProcessManagement(boolean activate,
boolean passiviate) |
void |
setTimeZone(java.util.TimeZone timezone) |
java.lang.String |
toString()
Overrides the java.lang.Object's toString method to return the named
object's name when given as parameter to a method that expects a string
to be passed.
|
activate, activate, activate, activateAfter, activateBefore, activatePreempt, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getActivatedBy, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isRepeating, isTerminated, obtainResources, passivate, prepareTransport, reActivate, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setRepeating, setSchedulingPriority, setSlaveWaitQueue
getIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriority
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName
public static boolean[] workingDays
public static boolean[] weekend
public static boolean[] allDays
public EntitySchedule(Model owner, java.lang.String name, E process)
owner
- process
- public EntitySchedule(Model owner)
owner
- public void setProcessManagement(boolean activate, boolean passiviate)
public void setTimeZone(java.util.TimeZone timezone)
public void clearProcessList()
public void addProcess(E process)
public void removeProcess(E process)
public void add(EntityScheduleEntry entry)
entry
- public java.lang.Object[] isInSchedule(TimeInstant time)
date
- public java.lang.Object[] isInSchedule()
public TimeInstant getEndOfActualEntry(TimeInstant now)
public TimeInstant getBeginOfNextEntry(TimeInstant now)
now
- actual simulation timepublic java.lang.String toString()
NamedObject
toString
in class NamedObject
public boolean checkAvailability(Entity e, int index)
e
- index
- public boolean checkAvailability(Entity e)
e
- public void lifeCycle() throws SuspendExecution
SimProcess
lifeCycle
in class SimProcess
SuspendExecution