Module Trajectory Parser

Trajectory

Trajectory class

class Automata.TrajectoryParser.Trajectory(id, startState, finalState)[source]
checkConnectivityToNext(other)[source]

Checks if the connectivity condition to another trajectory is met, only the velocity constraint is checked. Returns true if the two trajectories are connected.

Parameters

other (Trajectory) – another trajectory

Return type

bool

Trajectory Set

TrajectorySet class

class Automata.TrajectoryParser.TrajectorySet[source]
readFromXML(filename)[source]

Reads all trajectories of the given file and stores them in the Trajectory array

Parameters

filename (str) – the name of the file

createConnectivityLists()[source]

Creates a connectivity list for every trajectory (let every trajectory has its corresponding successor list).

Trajectory Parser

TrajectoryParser class

class Automata.TrajectoryParser.TrajectoryParser[source]
classmethod createFromNode(xmlNode)[source]

Returns a trajectory from the element found in xml. (e.g. the element of the list returned by xmlTree.findall(‘Trajectory’))