Unverified Commit 8cc41bfc authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

DBWagenreihung(3pm): add ->groups

parent b93ac311
Loading
Loading
Loading
Loading
+22 −15
Original line number Original line Diff line number Diff line
@@ -825,12 +825,22 @@ Train number. Do not include the train type: Use "8" for "EC 8" or


=back
=back


=item $wr->destinations
=item $wr->errstr


Returns a list describing the unique destinations of this train's carriage
In case of a fatal HTTP or backend error, returns a string describing it.
groups.  Each origin is a hashref that contains its B<name>, a B<groups>
Returns undef otherwise.
arrayref to the corresponding Travel::Status::DE::DBWagenreihung::Group(3pm)

objects, and a B<sections> arrayref to section identifiers (subject to change).
=item $wr->groups

Returns a list of Travel::Status::DE::DBWagenreihung::Group(3pm) objects
which describe the groups making up the carriage formation. Typically, each
group has a distinct origin, destination, or train number. Each group contains
a set of carriages.

=item $wr->carriages

Describes the individual carriages the train consists of. Returns a list of
L<Travel::Status::DE::DBWagenreihung::Wagon> objects.


=item $wr->direction
=item $wr->direction


@@ -838,11 +848,6 @@ Gives the train's direction of travel. Returns 0 if the train will depart
towards position 0 and 100 if the train will depart towards the other platform
towards position 0 and 100 if the train will depart towards the other platform
end (mnemonic: towards the 100% position).
end (mnemonic: towards the 100% position).


=item $wr->errstr

In case of a fatal HTTP or backend error, returns a string describing it.
Returns undef otherwise.

=item $wr->origins
=item $wr->origins


Returns a list describing the unique origins of this train's carriage groups.
Returns a list describing the unique origins of this train's carriage groups.
@@ -850,6 +855,13 @@ Each origin is a hashref that contains its B<name>, a B<groups> arrayref to the
corresponding Travel::Status::DE::DBWagenreihung::Group(3pm) objects, and
corresponding Travel::Status::DE::DBWagenreihung::Group(3pm) objects, and
a B<sections> arrayref to section identifiers (subject to change).
a B<sections> arrayref to section identifiers (subject to change).


=item $wr->destinations

Returns a list describing the unique destinations of this train's carriage
groups.  Each origin is a hashref that contains its B<name>, a B<groups>
arrayref to the corresponding Travel::Status::DE::DBWagenreihung::Group(3pm)
objects, and a B<sections> arrayref to section identifiers (subject to change).

=item $wr->platform
=item $wr->platform


Returns the platform name.
Returns the platform name.
@@ -883,11 +895,6 @@ arrayref to section identifiers (subject to change).


Returns a string describing the train type, e.g. "ICE" or "IC".
Returns a string describing the train type, e.g. "ICE" or "IC".


=item $wr->carriages

Describes the individual carriages the train consists of. Returns a list of
L<Travel::Status::DE::DBWagenreihung::Carriage> objects.

=back
=back


=head1 DEPENDENCIES
=head1 DEPENDENCIES