Skip to content

Useful VacuumWorld Imports

Emanuele Uliana edited this page Nov 8, 2023 · 5 revisions

Useful VacuumWorld Imports

In order to use the types defined in VacuumWorld, they need to be imported from their modules. Below is a list of the import statements for the most useful types.

PyOptional library

from pyoptional.pyoptional import PyOptional

From pystarworldsturbo

from pystarworldsturbo.common.action_result import ActionResult
from pystarworldsturbo.common.action_outcome import ActionOutcome
from pystarworldsturbo.common.message import BccMessage

From vacuumworld

The run() method

from vacuumworld import run

Common

from vacuumworld.common.vwcolour import VWColour
from vacuumworld.common.vwcoordinates import VWCoord
from vacuumworld.common.vwdirection import VWDirection
from vacuumworld.common.vworientation import VWOrientation
from vacuumworld.common.vwobservation import VWObservation

Actions

from vacuumworld.model.actions.vwbroadcast_action import VWBroadcastAction
from vacuumworld.model.actions.vwclean_action import VWCleanAction
from vacuumworld.model.actions.vwidle_action import VWIdleAction
from vacuumworld.model.actions.vwmove_action import VWMoveAction
from vacuumworld.model.actions.vwspeak_action import VWSpeakAction
from vacuumworld.model.actions.vwturn_action import VWTurnAction

Misc.

from vacuumworld.model.actor.mind.surrogate.vwactor_mind_surrogate import VWActorMindSurrogate
from vacuumworld.model.environment.vwlocation import VWLocation