AnyLogic
Expand
Font size
All Implemented Interfaces:
AgentConstants, EnvironmentConstants, IMaintenanceable, com.anylogic.engine.internal.Child, UtilitiesMath, UtilitiesRandom, UtilitiesString, Serializable

public abstract class FlowchartBlock
extends Agent
Base class for all process flowchart blocks in new libraries since AnyLogic 7.
Provides standard functions like remove(Agent).
Since:
7.0
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Field Summary

Fields inherited from class com.anylogic.engine.Agent

_ARRIVAL_message_xjal

Fields inherited from interface com.anylogic.engine.AgentConstants

AGENT_ORIENTATION_FRONT, AGENT_ORIENTATION_LEFT, AGENT_ORIENTATION_REAR, AGENT_ORIENTATION_RIGHT, ALL, ALL_CONNECTED, ALL_NEIGHBORS, AREA_ACCESS_RESTRICTION_BY_CAPACITY, AREA_ACCESS_RESTRICTION_BY_CONDITION, AREA_ACCESS_RESTRICTION_BY_SCHEDULE, AREA_ACCESS_RESTRICTION_BY_THROUGHPUT, AREA_ACCESS_RESTRICTION_MANUAL, CENTIMETER, CONVEYOR_BACKWARD, CONVEYOR_CUSTOM_STATION_AGENT_LOCATION_CENTER, CONVEYOR_CUSTOM_STATION_AGENT_LOCATION_NEAR_CONVEYOR, CONVEYOR_CUSTOM_STATION_AGENT_LOCATION_RANDOM, CONVEYOR_FORWARD, CONVEYOR_SIMPLE_STATION_DELAY_TYPE_MANUAL, CONVEYOR_SIMPLE_STATION_DELAY_TYPE_TIMEOUT, CONVEYOR_TYPE_BELT, CONVEYOR_TYPE_CELL, CONVEYOR_TYPE_ROLLER, CUBIC_METER, CUBIC_METER_PER_SECOND, CUSTOM_COLOR_SCHEME, DAY, DEG_PER_SECOND, DEGREE, DENSITY_VALUE_MAX, DENSITY_VALUE_MEAN, EAST, ELEVATOR_DIRECTION_DOWN, ELEVATOR_DIRECTION_NONE, ELEVATOR_DIRECTION_UP, ELEVATOR_DOOR_FRONT, ELEVATOR_DOOR_REAR, ELEVATOR_DOORS_FRONT, ELEVATOR_DOORS_FRONT_REAR, ELEVATOR_DOORS_FRONT_REAR_XJAL, ELEVATOR_DOORS_FRONT_XJAL, ELEVATOR_MOVEMENT_BY_SPEED, ELEVATOR_MOVEMENT_BY_TIME_PER_LEVEL, ELEVATOR_STATE_FAILED, ELEVATOR_STATE_IDLE, ELEVATOR_STATE_LOADING, ELEVATOR_STATE_MOVING, ESCALATOR_STAY_ALL, ESCALATOR_WALK_ALL, ESCALATOR_WALK_ON_LEFT_SIDE, ESCALATOR_WALK_ON_RIGHT_SIDE, EVENT_TIMEOUT_MODE_CYCLIC, EVENT_TIMEOUT_MODE_ONCE, EVENT_TIMEOUT_MODE_USER, EXCEEDED_QUEUE_CROWD_ROUND_AT_THE_END, EXCEEDED_QUEUE_EXTEND_TO_THE_FREE_SPACE, EXT_AGENT_CONTINUOUS, EXT_AGENT_DISCRETE, EXT_AGENT_GIS, EXT_AGENT_INTERACTIVE, EXT_AGENT_NETWORK, EXT_ENTITY, EXT_ENVIRONMENT_CONTINUOUS, EXT_ENVIRONMENT_DISCRETE, EXT_ENVIRONMENT_GIS, EXT_ENVIRONMENT_INTERACTIVE, EXT_SPACE, FLOW_STATISTICS_BOTH, FLOW_STATISTICS_LEFT, FLOW_STATISTICS_RIGHT, FOOT, FPM, FPS, FPS_SQ, HOUR, INCH, JIB_CRANE_CAT_HEAD, JIB_CRANE_FLAT_TOP, JIB_CRANE_INDUSTRIAL, JIB_CRANE_MOVEMENT_CONCURRENT, JIB_CRANE_MOVEMENT_STEP_BY_STEP, KILOGRAM, KILOGRAM_PER_SECOND, KILOMETER, KN, KPH, LIFT_PLATFORM_FLAT, LIFT_PLATFORM_ROLLER, LIFT_SELECTION_MODE_COMPARISON, LIFT_SELECTION_MODE_FIFO, LIFT_SELECTION_MODE_PRIORITY, LINEAR_COLOR_SCHEME, LITER, LITER_PER_SECOND, LOGARITHMIC_COLOR_SCHEME, METER, MILE, MILLIMETER, MILLISECOND, MINUTE, MONTH, MPH, MPS, MPS_SQ, NAUTICAL_MILE, NORTH, NORTHEAST, NORTHWEST, OBJECT_3D_INTERNAL_LIGHTING_GLOBAL, OBJECT_3D_INTERNAL_LIGHTING_INSIDE, OBJECT_3D_INTERNAL_LIGHTING_OFF, OBJECT_3D_XYZ_AXIS_ORDER, OBJECT_3D_YZX_AXIS_ORDER, OBJECT_3D_ZXY_AXIS_ORDER, OIL_BARREL, OIL_BARREL_PER_SECOND, OVERHEAD_CRANE_BRIDGE, OVERHEAD_CRANE_GANTRY, OVERHEAD_CRANE_GIRDER_DOUBLE_TIE, OVERHEAD_CRANE_GIRDER_SINGLE_FLAT, OVERHEAD_CRANE_MOVEMENT_CONCURRENT, OVERHEAD_CRANE_MOVEMENT_INDEPENDENT_HOIST, OVERHEAD_CRANE_MOVEMENT_STEP_BY_STEP, PALLET_RACK_LEFT_TO_RIGHT, PALLET_RACK_NO_DIRECTION, PALLET_RACK_RIGHT_TO_LEFT, PALLET_RACK_SINGLE_AISLE_LEFT, PALLET_RACK_SINGLE_AISLE_RIGHT, PALLET_RACK_TWO_AISLES, PALLET_RACK_TWO_PALLET_RACKS, PARKING_LOT_PARALLEL, PARKING_LOT_PERPENDICULAR, PATH_CONVEYOR, PATH_DASHEDLINE, PATH_LINE, PATH_RAILROAD, PATH_ROAD, PEDESTRIAN_MAP_TYPE, PER_DAY, PER_HOUR, PER_MILLISECOND, PER_MINUTE, PER_MONTH, PER_SECOND, PER_WEEK, PER_YEAR, POSITION_CHOICE_ARRANGED, POSITION_CHOICE_BY_ATTRACTORS, POSITION_CHOICE_RANDOM, RACK_PLACEMENT_BACK_TO_BACK, RACK_PLACEMENT_STAND_ALONE, RACK_TYPE_DRIVE_IN, RACK_TYPE_FIFO_FLOW, RACK_TYPE_LIFO_FLOW, RACK_TYPE_SELECTIVE, RAD_PER_SECOND, RADIAN, RAILWAY_SWITCH_ALL_TO_ALL, RAILWAY_SWITCH_DOUBLE_SLIP, RAILWAY_SWITCH_SINGLE_SLIP, RANDOM, RANDOM_CONNECTED, RANDOM_NEIGHBOR, ROAD_LEFT_HAND, ROAD_LINE_DOUBLE, ROAD_LINE_DOUBLE_DASHED, ROAD_LINE_SINGLE, ROAD_LINE_SINGLE_DASHED, ROAD_RIGHT_HAND, RPM, SECOND, SERVICE_GROUP_BEHAVIOR_DEPENDS_ON_INCOMING_GROUP, SERVICE_GROUP_BEHAVIOR_SAME_FOR_ALL_GROUPS, SERVICE_GROUP_INDIVIDUAL_SERVING, SERVICE_GROUP_ONE_MEMBER_IS_SERVED_OTHERS_WAIT_IN_AREA, SERVICE_GROUP_ONE_MEMBER_IS_SERVED_OTHERS_WAIT_IN_QUEUE, SERVICE_QUEUE_CLOSEST_NON_EMPTY, SERVICE_QUEUE_CLOSEST_STRICT, SERVICE_QUEUE_CUSTOM, SERVICE_QUEUE_LONGEST, SERVICE_QUEUE_NEXT_ROUND_ROBIN, SERVICE_QUEUE_PRIORITY, SERVICE_TYPE_LINEAR, SERVICE_TYPE_POINT, SIGNAL_GREEN, SIGNAL_NONE, SIGNAL_RED, SIGNAL_YELLOW, SIMPLE_STATION_LOADING_MODE_AFTER_UNLOADING, SIMPLE_STATION_LOADING_MODE_SIMULTANEOUS_WITH_UNLOADING, SIMPLE_STATION_PROCESSING_WHEN_AGENT_ENTERS, SIMPLE_STATION_PROCESSING_WHEN_CAPACITY_FULL, SOUTH, SOUTHEAST, SOUTHWEST, SPACE_CONTINUOUS, SPACE_CONTINUOUS_2D, SPACE_DISCRETE, SPACE_DISCRETE_2D, SPACE_GIS, SPACE_UNDEFINED, SQ_CENTIMETER, SQ_FOOT, SQ_INCH, SQ_KILOMETER, SQ_METER, SQ_MILE, SQ_MILLIMETER, SQ_NAUTICAL_MILE, SQ_YARD, TON, TON_PER_SECOND, TRANSFER_MODE_AUTOMATIC, TRANSFER_MODE_MANUAL, TRANSPORTER_MAP_TYPE, TURN, TURN_STATION_MODE_ANGLE, TURN_STATION_MODE_ORIENTATION, WALL_FILL_HATCHING, WALL_FILL_NONE, WALL_FILL_SOLID, WEEK, WEST, WINDOW_3D_NAVIGATION_FULL, WINDOW_3D_NAVIGATION_LIMITED_TO_Z_ABOVE_ZERO, WINDOW_3D_NAVIGATION_NONE, WINDOW_3D_NAVIGATION_ROTATION_ONLY, YARD, YEAR

Fields inherited from interface com.anylogic.engine.UtilitiesMath

infinity

Fields inherited from interface com.anylogic.engine.UtilitiesRandom

RANDOM_BOUNDED_DISTRIBUTIONS_MAX_ITERATIONS

Constructor Summary

ConstructorDescription
FlowchartBlock() 
FlowchartBlock(Engine engine, Agent owner, AgentList<?> collection)
Standard Agent constructor

Method Summary

Modifier and TypeMethodDescription
FlowchartActivityTypedefaultAgentActivityType()
Returns activity type info (used in e.g.
FlowchartBlockgetFlowchartBlockRepresentative()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
FlowchartBlockgetFlowchartBlockRepresentative(Agent agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
booleanisCountersVisible()
Returns true if port / block counters are shown
booleanisInsideFlowchartBlock()
Returns true if this block is a part of some flowchart block
booleanisLoggingToDB(LoggingType loggingType)
Returns true if this agent and its internals may log their data/changes/activity to AnyLogic built-in database (logging options are configurable in the properties of Database / Log in the Projects tree inside AnyLogic)
booleanisPortStateAnimated()
Returns true if states of ports are shown (usually by colored outline).
Agentremove(Agent agent)
Removes the given agent from the block and returns it.
Agentremove(Agent agent, FlowchartBlock receiver)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Agentresume(Agent agent)
Tells the block to resume (previously suspended) processing for the given agent.
voidsetCountersVisible(boolean visible)
Shows or hides port / block counters
Agentsuspend(Agent agent)
Tells the block to suspend processing the given agent.

Methods inherited from class com.anylogic.engine.Agent

_initGetEngine_xjal, addAgentToContents, addEntityToContents, addExt_xjal, agentInfo, agents, agentsInRange, agentsInRange, agentsInRange, agentsInRange, applyLayout, applyNetwork, applyNetwork, areStepsEnabled, assignInitialConditions_xjal, connectTo, contents, create, createAndStart, createAsEmbedded, currentBlock, deleteSelf, deliver, deliver, deliverToAllAgentsInside, deliverToAllConnected, deliverToAllNeighbors, deliverToRandomAgentInside, deliverToRandomConnected, deliverToRandomNeighbor, disableSteps, disconnectFrom, disconnectFromAll, distanceByRoute, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, doAfterCreate, doCreate, doFinish, doStart, drawLinksToAgents, enableSteps, error, errorInModel, evaluateRateOf, evaluateRateOf, evaluateTimeoutOf, evaluateTimeoutOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeActionOf, executeOnReceiveActionOf, executeOnSendActionOf, ext, finishSimulation, formulasExecute_xjal, getAgentAtCell, getAgentNextToMe, getAgentSpaceType, getAgentTypeId, getAnimationSettingsOf, getAnimationSettingsOf, getBlockEnterTime, getC, getCameras3D, getColor, getConnectedAgent, getConnections, getConnectionsNumber, getContainerStateOf, getConveyorNetworks, getDefaultPopulation, getDifferentialFlatEquationsCount_xjal, getDynamicEvents, getEmbeddedObjects, getEngine, getEnvironment, getEnvironmentSpaceType, getExperimentHost, getFirstOccurrenceTime, getFlowchartEntryTime, getFullName, getGISHeading, getGISMap, getHeight, getHeight, getId, getIdOf, getIndex, getInitialAlgebraicFlatEquationsCount_xjal, getInitialFormulaFlatEquationsCount_xjal, getIntegrationManager_xjal, getLat, getLatitude, getLayoutType, getLength, getLength, getLevel, getLevels, getLinkToAgentStandard_xjal, getLon, getLongitude, getModeOf, getName, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOf, getNameOfState, getNearestAgent, getNearestAgentByRoute, getNeighbors, getNetwork, getNetworkConnectionRange, getNetworkConnectionsPerAgent, getNetworkNeighborLinkProbability, getNetworkNode, getNetworks, getNetworkScaleFreeM, getNetworkType, getOwner, getOwnerShape, getParameter, getParameterNames, getPhaseVector_xjal, getPhaseVectorForInitialConditions_xjal, getPopulation, getPosition, getPosition, getPresentationScaleOnOwnerSpace, getPresentationShape, getR, getRailwayNetworks, getRandomConnectedAgent, getReplicatedCollection, getReplicatedList, getRightPart_xjal, getRightPartForInitialConditions_xjal, getRoadNetworks, getRootAgent, getRotation, getRouteProvider, getRuntimeAlgebraicFlatEquationsCount_xjal, getRuntimeFormulaFlatEquationsCount_xjal, getScale, getSpace, getSpeed, getSpeed, getStatechartOf, getStatechartOf, getStatechartOf, getStatechartOf, getTargetLat, getTargetLon, getTargetX, getTargetY, getTargetZ, getVelocity, getVerticalRotation, getWidth, getWidth, getX, getXYZ, getXYZ, getY, getZ, goToPopulation, highlight, instantiateBaseStructure_xjal, inState, isAgent, isAutomaticHorizontalRotation, isAutomaticVerticalRotation, isConnectedTo, isEmbeddedAgentPresentationVisible, isEnvironment, isLoggingToDB, isMoving, isNextCellInsideSpace, isPublicPresentationDefined, isReplicated, isSpacePositionSet_xjal, jumpTo, jumpTo, jumpTo, jumpTo, jumpTo, jumpTo, jumpToCell, jumpToRandomEmptyCell, logToDB, logToDBEnterState, logToDBExitState, markParametersAreSet, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToNearestAgent, moveToNearestAgent, moveToNextCell, moveToStraight, moveToStraight, moveToStraight, moveToStraight, moveToStraightInTime, moveToStraightInTime, moveToStraightInTime, moveToStraightInTime, nothingChanged, onAfterStepEnvironment, onArrival, onBeforeCreate, onBeforeStep, onBeforeStepEnvironment, onChange, onCreate, onDestroy, onEngineFinished, onEnterFlowchartBlock, onExitFlowchartBlock, onOwnerChanged_xjal, onReceive, onReleaseResource, onSeizeResource, onStartup, onStep, pauseSimulation, putPhaseVector_xjal, putPhaseVectorForInitialConditions_xjal, randomAgentInside, randomAgentInside, randomEmptyCell, randomPointOfSpace, receive, removeAgentFromContents, removeEntityFromContents, removeExt_xjal, removeFromFlowchart, resourceUnitOfPool, resourceUnits, resourceUnitsOfPool, resourceUnitsOfSeize, restoreCollection_xjal, restoreConnections_xjal, restoreOwner, runSimulation, send, send, sendToAll, sendToAllConnected, sendToAllNeighbors, sendToRandom, sendToRandomConnected, sendToRandomNeighbor, setAgentSpaceType, setAutomaticHorizontalRotation, setAutomaticVerticalRotation, setCell, setColor, setDestroyed, setDimensions, setDimensions, setEngine, setEnvironment, setHeight, setHeight, setId, setLatLon, setLayoutType, setLength, setLength, setLevel, setLocation, setLocation, setLocation, setLocation, setLocationRandomInside, setNetwork, setNetworkAllInRange, setNetworkNode, setNetworkNode, setNetworkNode, setNetworkRandom, setNetworkRingLattice, setNetworkScaleFree, setNetworkSmallWorld, setNetworkUserDefined, setParameter, setParametersToDefaultValues, setPosition, setRotation, setRouteProvider, setSpace, setSpeed, setSpeed, setupExt_xjal, setupInitialConditions_xjal, setupSpace, setupSpace, setupSpace, setupSpace, setVelocity, setVerticalRotation, setWidth, setWidth, setXY, setXYZ, setXYZ, spaceCellHeight, spaceCellWidth, spaceColumns, spaceHeight, spaceRows, spaceWidth, spaceZHeight, start, startAsEmbedded, stateContainsState, stop, stopSimulation, swapWithAgent, swapWithCell, swapWithNextCell, testConditionOf, testConditionOf, testGuardOf, testGuardOf, testGuardOf, testGuardOf, testMessageOf, timeToArrival, timeToArrival, toLengthUnits, toPixels, toString, tryExt, warning, warning

Methods inherited from class com.anylogic.engine.Utilities

addToDate, addToDate, atan2fast, bernoulli, beta, beta, binomial, binomial, briefInfoOn, castNumberTypes, castTypes, castTypesBack, cauchy, chi2, convertMarkupSegmentDescriptors_xjal, copyToClipboard, copyToClipboard, copyToClipboard, createTableElementDatabaseBuilder, createTrajectoryGIS, createURL_xjal, date, dateToTime, day, deleteFrom, difference, difference, differenceInCalendarUnits, differenceInCalendarUnits, differenceInDateUnits, differenceInDateUnits, differenceInDateUnits, differenceInDateUnits, dirToAngle, dropTime, erlang, error, error, error, errorInModel, errorInModel, errorInModel, executeAction, executeExpression, executeExpression, executeStatement, exponential, exponential, findExistingFile, format, format, format, format, format, format, format, formatAmountUnits, formatDayOfWeek, formatFlowRateUnits, formatGeoHeading, formatLatitude, formatLengthUnits, formatLengthUnits, formatLongitude, formatMonth, formatSpeedUnits, formatTimeInterval, gamma, gamma, gammaLog, geometric, getAmPm, getAmPm, getCanonicalPath, getDatabaseConnection, getDateWithTimeNextTo, getDayOfMonth, getDayOfMonth, getDayOfWeek, getDayOfWeek, getDayOfYear, getDefaultRandomGenerator, getDistance, getDistance, getDistanceFromPointToLine, getDistanceFromPointToLineSq, getDistanceFromPointToSegment, getDistanceFromPointToSegment, getDistanceFromPointToSegmentSq, getDistanceFromPointToSegmentSq, getDistanceGIS, getDistanceGIS, getDistanceSq, getDistanceSq, getFullName, getHour, getHour, getHourOfDay, getHourOfDay, getLength, getLength, getLengthSq, getLengthSq, getMillisecond, getMillisecond, getMinute, getMinute, getMonth, getMonth, getName, getNearestPointOnSegment, getNearestPointOnSegment, getPerformanceParallelWorkersCount_xjal, getRandom, getRandom, getResult, getSecond, getSecond, getTime, getTimeoutToNextTime, getYear, getYear, gumbel1, gumbel2, hour, hypergeometric, insertInto, inspectOf, inspectOfLink_xjal, isFinite, isLineIntersectingLine, isLineIntersectingRectangle, isLoggingClassToDB, isPointInsideRay, isPointInsideRectangle, isPointInsideSegment, isPointOnTheSameLine, isRayIntersectingSegment, joinArrays_xjal, laplace, layoutTypeToString, limit, limit, limitMax, limitMax, limitMin, limitMin, logarithmic, logistic, lognormal, logToDB, logToDB, logToDB, logToDB, millisecond, minute, month, negativeBinomial, negativeBinomial, normal, normal, pareto, pert, poisson, poisson, prepareBeforeExperimentStart_xjal, prepareStatement, pulse, pulseTrain, quantum, ramp, randomColor, randomFalse, randomFrom, randomFrom, randomFrom, randomlyCreate, randomlyCreate, randomTrue, randomWhere, randomWhere, rayleigh, roundToDecimal, roundToInt, second, selectAndDoForEach, selectArrayOfDouble, selectArrayOfInt, selectExists, selectExists, selectFirstValue, selectFirstValue, selectFirstValue, selectFirstValue, selectFrom, selectResultSet, selectTableFunction, selectUniqueValue, selectUniqueValue, selectUniqueValue, selectUniqueValue, selectValues, selectValues, setDefaultRandomGenerator, sqlGetObject, sqlGetObject, sqlGetObject, sqlGetObject, sqlSetObject, sqr, step, time, time, timeToDate, toDate, toDate, toDate, toDateInMillis, toLatitude, toLongitude, toModelRate, toModelTime, toRateUnits, toStringAlignedNameValues, toTimeout, toTimeout, toTimeoutInCalendar, toTimeUnits, trace, trace, traceln, traceln, traceln, traceln, traceln, traceToDB, traceToDB, triangular, triangular, triangularAV, uniform, uniform, uniform_discr, uniform_pos, update, week, weibull, weibull, xidz, year, zidz

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Details

FlowchartBlock

public FlowchartBlock()

FlowchartBlock

public FlowchartBlock(Engine engine,
 Agent owner,
 AgentList<?> collection)
Standard Agent constructor

Method Details

isInsideFlowchartBlock

@AnyLogicInternalAPI
public boolean isInsideFlowchartBlock()
Returns true if this block is a part of some flowchart block
Returns:
true if this block is a part of some flowchart block

getFlowchartBlockRepresentative

@AnyLogicInternalAPI
public FlowchartBlock getFlowchartBlockRepresentative()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

getFlowchartBlockRepresentative

@AnyLogicInternalAPI
public FlowchartBlock getFlowchartBlockRepresentative(Agent agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

remove

public Agent remove(Agent agent)
Removes the given agent from the block and returns it. If the agent is not contained in the block, returns null.
Throws error if the block doesn't support this kind of operation (e.g. in case when block can't store entities).
Parameters:
agent - agent to remove
Returns:
the given agent if was contained in the block, otherwise null

remove

@AnyLogicInternalAPI
public Agent remove(Agent agent,
 FlowchartBlock receiver)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. Please use remove(Agent) instead.

Removes the given agent from the block and returns it. If the agent is not contained in the block, returns null.
Throws error if the block doesn't support this kind of operation (e.g. in case when block can't store entities)..
This method sets receiver block (may be null) - used internally, e.g. for logging flowchart block change
Parameters:
agent - agent to remove
receiver - new block which will grab and hold the given agent, may be null
Returns:
the given agent if was contained in the block, otherwise null
Since:
7.2

suspend

public Agent suspend(Agent agent)
Tells the block to suspend processing the given agent. If agent is already suspended, does nothing.
Throws error if the block doesn't support this kind of operation (e.g. in case when block can't store entities).
Parameters:
agent - agent to suspend
Returns:
the given agent if is contained in the block and was not suspended before, otherwise null

resume

public Agent resume(Agent agent)
Tells the block to resume (previously suspended) processing for the given agent. If agent isn't suspended, does nothing.
Throws error if the block doesn't support this kind of operation (e.g. in case when block can't store entities).
Parameters:
agent - agent to resume
Returns:
the given agent if is contained in the block and was suspended before, otherwise null

setCountersVisible

public void setCountersVisible(boolean visible)
Shows or hides port / block counters
Parameters:
visible - true to show, false to hide
Since:
7.1

isCountersVisible

public boolean isCountersVisible()
Returns true if port / block counters are shown
Returns:
true if counters are shown, false otherwise
Since:
7.1

isPortStateAnimated

@AnyLogicInternalLibraryAPI
public boolean isPortStateAnimated()
Returns true if states of ports are shown (usually by colored outline). Port state may be one of following: "open for receive", "busy", "ready to transmit" etc.
Returns:
true if port states are shown, false otherwise
Since:
7.1

isLoggingToDB

public boolean isLoggingToDB(LoggingType loggingType)
Description copied from class: Utilities
Returns true if this agent and its internals may log their data/changes/activity to AnyLogic built-in database (logging options are configurable in the properties of Database / Log in the Projects tree inside AnyLogic)
Overrides:
isLoggingToDB in class Agent
Parameters:
loggingType - type of logging
Returns:
true if logged, false otherwise

defaultAgentActivityType

@AnyLogicInternalAPI
public FlowchartActivityType defaultAgentActivityType()
Returns activity type info (used in e.g. logging to DB) set by default to all incoming entities.
Should be overridden in subclasses (default implementation returns FlowchartActivityType.WORK)
See Also:
FlowchartActivityType