AnyLogic
Expand
Font size
All Superinterfaces:
IMarkupLibraryDescriptor
All Known Implementing Classes:
Elevator

public interface IElevatorDescriptor<A extends Agent>
extends IMarkupLibraryDescriptor

Method Summary

Modifier and TypeMethodDescription
Level[]accessibleLevels() 
voidaddAccessibleLevels(Level... levels) 
voiddeleteCallsOnLevel(Level level) 
voiddisableDoor(Level level, ElevatorDoor door) 
voiddropOffPeds(Collection<? extends Agent> peds) 
voidenableDoor(Level level, ElevatorDoor door) 
voidfail() 
doublegetCabinZ() 
List<? extends Elevator.Call<A>>getCalls() 
intgetCapacity() 
ElevatorDirectiongetCurrentDirection() 
LevelgetCurrentLevel() 
ElevatorMovementModegetMovementMode() 
LevelgetNearestLevel() 
Set<A>getPeds() 
LevelgetPedTargetLevel(Agent ped) 
List<Level>getRoute() 
doublegetSpeed() 
ElevatorStategetState() 
LevelgetTargetLevel() 
doublegetTimePerLevel() 
Set<A>getWaitingPeds() 
Set<A>getWaitingPeds(Level level) 
booleanisAllLevels() 
booleanisDoorEnabled(Level level, ElevatorDoor door) 
booleanisFailed() 
booleanisManualMode() 
doublemeanWaitingTime() 
doublemeanWaitingTime(Level level) 
doublemeanWaitingTime(Level level, TimeUnits units) 
doublemeanWaitingTime(TimeUnits units) 
doubleminStayTime() 
voidmoveTo(Level level, boolean stayInManualMode) 
intnDroppedOffPeds(Level level) 
intnPickedUpPeds(Level level) 
intnTransportedPeds() 
voidonArrival(Level level, List<A> waitingAgents) 
voidonDeparture(Level level) 
voidonFailed() 
voidonRepaired() 
voidonStateChanged(ElevatorState newState) 
voidpickUpPeds(Collection<? extends Agent> peds) 
voidrepair() 
voidresetStats() 
voidsetAllLevels(boolean allLevels) 
voidsetCapacity(int capacity) 
voidsetManualMode(boolean on) 
voidsetMarkup(Elevator<A> elevator) 
voidsetMovementMode(ElevatorMovementMode movementMode) 
voidsetOwner(Agent owner) 
voidsetSpeed(double speed) 
voidsetTimePerLevel(double timePerLevel) 
doubletimeInState(ElevatorState state) 
doubletimeInState(ElevatorState state, TimeUnits units) 
doubletotalTravelTime() 
doubletotalTravelTime(TimeUnits units) 
doubleutilization() 

Method Details

setOwner

void setOwner(Agent owner)

accessibleLevels

Level[] accessibleLevels()

addAccessibleLevels

void addAccessibleLevels(Level... levels)

setMarkup

void setMarkup(Elevator<A> elevator)

getCapacity

int getCapacity()

setCapacity

void setCapacity(int capacity)

getMovementMode

ElevatorMovementMode getMovementMode()

setMovementMode

void setMovementMode(ElevatorMovementMode movementMode)

getSpeed

double getSpeed()

setSpeed

void setSpeed(double speed)

getTimePerLevel

double getTimePerLevel()

setTimePerLevel

void setTimePerLevel(double timePerLevel)

minStayTime

double minStayTime()

isAllLevels

boolean isAllLevels()

setAllLevels

void setAllLevels(boolean allLevels)

getCabinZ

double getCabinZ()

onArrival

void onArrival(Level level,
 List<A> waitingAgents)

onDeparture

void onDeparture(Level level)

onFailed

void onFailed()

onRepaired

void onRepaired()

onStateChanged

void onStateChanged(ElevatorState newState)

disableDoor

void disableDoor(Level level,
 ElevatorDoor door)

enableDoor

void enableDoor(Level level,
 ElevatorDoor door)

isDoorEnabled

boolean isDoorEnabled(Level level,
 ElevatorDoor door)

fail

void fail()

repair

void repair()

isFailed

boolean isFailed()

getCurrentDirection

ElevatorDirection getCurrentDirection()

getPeds

Set<A> getPeds()

getState

ElevatorState getState()

getCalls

List<? extends Elevator.Call<A>> getCalls()

resetStats

void resetStats()

timeInState

double timeInState(ElevatorState state,
 TimeUnits units)

timeInState

double timeInState(ElevatorState state)

utilization

double utilization()

totalTravelTime

double totalTravelTime(TimeUnits units)

totalTravelTime

double totalTravelTime()

meanWaitingTime

double meanWaitingTime(TimeUnits units)

meanWaitingTime

double meanWaitingTime()

meanWaitingTime

double meanWaitingTime(Level level,
 TimeUnits units)

meanWaitingTime

double meanWaitingTime(Level level)

nPickedUpPeds

int nPickedUpPeds(Level level)

nDroppedOffPeds

int nDroppedOffPeds(Level level)

nTransportedPeds

int nTransportedPeds()

setManualMode

void setManualMode(boolean on)

isManualMode

boolean isManualMode()

getCurrentLevel

Level getCurrentLevel()

moveTo

void moveTo(Level level,
 boolean stayInManualMode)

pickUpPeds

void pickUpPeds(Collection<? extends Agent> peds)

dropOffPeds

void dropOffPeds(Collection<? extends Agent> peds)

getTargetLevel

Level getTargetLevel()

getWaitingPeds

Set<A> getWaitingPeds(Level level)

getWaitingPeds

Set<A> getWaitingPeds()

deleteCallsOnLevel

void deleteCallsOnLevel(Level level)

getPedTargetLevel

Level getPedTargetLevel(Agent ped)

getNearestLevel

Level getNearestLevel()

getRoute

List<Level> getRoute()