Home
last modified time | relevance | path

Searched refs:station_id (Results 1 – 25 of 154) sorted by relevance

1234567

/dports/games/openttd/openttd-12.1/src/script/api/
H A Dscript_station.cpp23 const Station *st = ::Station::GetIfValid(station_id); in IsValidStation()
44 if (!IsValidStation(station_id)) return false; in IsCargoRequestValid()
142 if (!IsValidStation(station_id)) return false; in HasCargoRating()
173 if (!IsValidStation(station_id)) return -1; in GetStationCoverageRadius()
180 if (!IsValidStation(station_id)) return -1; in GetDistanceManhattanToTile()
187 if (!IsValidStation(station_id)) return -1; in GetDistanceSquareToTile()
194 if (!IsValidStation(station_id)) return false; in IsWithinTownInfluence()
201 if (!IsValidStation(station_id)) return false; in HasStationType()
209 if (!IsValidStation(station_id)) return false; in HasRoadType()
224 if (!IsValidStation(station_id)) return INVALID_TOWN; in GetNearestTown()
[all …]
H A Dscript_station.hpp58 static bool IsValidStation(StationID station_id);
67 static ScriptCompany::CompanyID GetOwner(StationID station_id);
85 static int32 GetCargoWaiting(StationID station_id, CargoID cargo_id);
136 static int32 GetCargoPlanned(StationID station_id, CargoID cargo_id);
188 static bool HasCargoRating(StationID station_id, CargoID cargo_id);
199 static int32 GetCargoRating(StationID station_id, CargoID cargo_id);
216 static int32 GetStationCoverageRadius(StationID station_id);
246 static bool IsWithinTownInfluence(StationID station_id, TownID town_id);
276 static TownID GetNearestTown(StationID station_id);
285 static bool IsAirportClosed(StationID station_id);
[all …]
H A Dscript_stationlist.cpp124 this->ge = &(Station::Get(station_id)->goods[cargo]); in CargoCollector()
208 this->Add<CS_BY_FROM>(station_id, cargo); in ScriptStationList_CargoWaitingByFrom()
212 StationID station_id, CargoID cargo, StationID via) in ScriptStationList_CargoWaitingViaByFrom() argument
228 this->Add<CS_BY_VIA>(station_id, cargo); in ScriptStationList_CargoWaitingByVia()
232 StationID station_id, CargoID cargo, StationID from) in ScriptStationList_CargoWaitingFromByVia() argument
234 this->Add<CS_FROM_BY_VIA>(station_id, cargo, from); in ScriptStationList_CargoWaitingFromByVia()
240 this->Add<CS_BY_FROM>(station_id, cargo); in ScriptStationList_CargoPlannedByFrom()
244 StationID station_id, CargoID cargo, StationID via) in ScriptStationList_CargoPlannedViaByFrom() argument
246 this->Add<CS_VIA_BY_FROM>(station_id, cargo, via); in ScriptStationList_CargoPlannedViaByFrom()
253 this->Add<CS_BY_VIA>(station_id, cargo); in ScriptStationList_CargoPlannedByVia()
[all …]
H A Dscript_basestation.cpp20 /* static */ bool ScriptBaseStation::IsValidBaseStation(StationID station_id) in IsValidBaseStation() argument
22 const BaseStation *st = ::BaseStation::GetIfValid(station_id); in IsValidBaseStation()
26 /* static */ char *ScriptBaseStation::GetName(StationID station_id) in GetName() argument
28 if (!IsValidBaseStation(station_id)) return nullptr; in GetName()
30 ::SetDParam(0, station_id); in GetName()
39 EnforcePrecondition(false, IsValidBaseStation(station_id)); in SetName()
45 …return ScriptObject::DoCommand(0, station_id, 0, ::Station::IsValidID(station_id) ? CMD_RENAME_STA… in SetName()
50 if (!IsValidBaseStation(station_id)) return INVALID_TILE; in GetLocation()
52 return ::BaseStation::Get(station_id)->xy; in GetLocation()
57 if (!IsValidBaseStation(station_id)) return ScriptDate::DATE_INVALID; in GetConstructionDate()
[all …]
H A Dscript_stationlist.hpp96 void Add(StationID station_id, CargoID cargo, StationID other_station = INVALID_STATION);
108 …argoWaiting(ScriptStationList_Cargo::CargoSelector selector, StationID station_id, CargoID cargo, …
133 void Add(StationID station_id, CargoID cargo, StationID other_station = INVALID_STATION);
160 ScriptStationList_CargoWaitingByFrom(StationID station_id, CargoID cargo);
176 ScriptStationList_CargoWaitingViaByFrom(StationID station_id, CargoID cargo, StationID via);
191 ScriptStationList_CargoWaitingByVia(StationID station_id, CargoID cargo);
207 ScriptStationList_CargoWaitingFromByVia(StationID station_id, CargoID cargo, StationID from);
222 ScriptStationList_CargoPlannedByFrom(StationID station_id, CargoID cargo);
238 ScriptStationList_CargoPlannedViaByFrom(StationID station_id, CargoID cargo, StationID via);
254 ScriptStationList_CargoPlannedByVia(StationID station_id, CargoID cargo);
[all …]
H A Dscript_basestation.hpp38 static bool IsValidBaseStation(StationID station_id);
46 static char *GetName(StationID station_id);
58 static bool SetName(StationID station_id, Text *name);
68 static TileIndex GetLocation(StationID station_id);
75 static ScriptDate::Date GetConstructionDate(StationID station_id);
H A Dscript_airport.cpp71 … static */ bool ScriptAirport::BuildAirport(TileIndex tile, AirportType type, StationID station_id) in BuildAirport() argument
76 …false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJAC… in BuildAirport()
78 uint p2 = station_id == ScriptStation::STATION_JOIN_ADJACENT ? 0 : 1; in BuildAirport()
79 p2 |= (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; in BuildAirport()
121 StationID station_id = ::GetStationIndex(tile); in GetAirportType() local
123 if (!ScriptStation::HasStationType(station_id, ScriptStation::STATION_AIRPORT)) return AT_INVALID; in GetAirportType()
125 return (AirportType)::Station::Get(station_id)->airport.type; in GetAirportType()
H A Dscript_marine.cpp84 /* static */ bool ScriptMarine::BuildDock(TileIndex tile, StationID station_id) in BuildDock() argument
88 …false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJAC… in BuildDock()
90 uint p1 = station_id == ScriptStation::STATION_JOIN_ADJACENT ? 0 : 1; in BuildDock()
91 uint p2 = (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; in BuildDock()
H A Dscript_rail.cpp147 …ileIndex tile, RailTrack direction, uint num_platforms, uint platform_length, StationID station_id) in BuildRailStation() argument
155 …false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJAC… in BuildRailStation()
159 if (station_id != ScriptStation::STATION_JOIN_ADJACENT) p1 |= (1 << 24); in BuildRailStation()
160 …return ScriptObject::DoCommand(tile, p1, (ScriptStation::IsValidStation(station_id) ? station_id :… in BuildRailStation()
163 …ilTrack direction, uint num_platforms, uint platform_length, StationID station_id, CargoID cargo_i… in BuildNewGRFRailStation() argument
171 …false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJAC… in BuildNewGRFRailStation()
178 if (station_id != ScriptStation::STATION_JOIN_ADJACENT) p1 |= (1 << 24); in BuildNewGRFRailStation()
193 uint32 p2 = (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; in BuildNewGRFRailStation()
H A Dscript_cargolist.cpp53 ScriptCargoList_StationAccepting::ScriptCargoList_StationAccepting(StationID station_id) in ScriptCargoList_StationAccepting() argument
55 if (!ScriptStation::IsValidStation(station_id)) return; in ScriptCargoList_StationAccepting()
57 Station *st = ::Station::Get(station_id); in ScriptCargoList_StationAccepting()
H A Dscript_road.cpp534 …dex tile, TileIndex front, RoadVehicleType road_veh_type, bool drive_through, StationID station_id) in _BuildRoadStationInternal() argument
541 …false, station_id == ScriptStation::STATION_NEW || station_id == ScriptStation::STATION_JOIN_ADJAC… in _BuildRoadStationInternal()
552 uint p2 = station_id == ScriptStation::STATION_JOIN_ADJACENT ? 0 : 4; in _BuildRoadStationInternal()
557 p2 |= (ScriptStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; in _BuildRoadStationInternal()
561 …ldRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id) in BuildRoadStation() argument
563 return _BuildRoadStationInternal(tile, front, road_veh_type, false, station_id); in BuildRoadStation()
566 …ghRoadStation(TileIndex tile, TileIndex front, RoadVehicleType road_veh_type, StationID station_id) in BuildDriveThroughRoadStation() argument
568 return _BuildRoadStationInternal(tile, front, road_veh_type, true, station_id); in BuildDriveThroughRoadStation()
/dports/astro/gpsd/gpsd-3.20/test/
H A Dsample.rtcm2.chk2 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":250.8,"seqnum":2,"length":4,"s…
5 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":253.8,"seqnum":5,"length":4,"s…
8 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":256.8,"seqnum":0,"length":4,"s…
11 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":259.8,"seqnum":3,"length":4,"s…
14 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":262.8,"seqnum":6,"length":4,"s…
17 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":265.8,"seqnum":1,"length":4,"s…
20 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":268.8,"seqnum":4,"length":4,"s…
23 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":271.8,"seqnum":7,"length":4,"s…
26 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":274.8,"seqnum":2,"length":4,"s…
29 {"class":"RTCM2","device":"stdin","type":9,"station_id":268,"zcount":277.8,"seqnum":5,"length":4,"s…
[all …]
/dports/www/yt-dlp/yt-dlp-2021.12.27/yt_dlp/extractor/
H A Dvyborymos.py28 station_id = self._match_id(url)
31 'http://vybory.mos.ru/account/channels?station_id=%s' % station_id,
32 station_id, 'Downloading channels JSON')
46 % (compat_str(station_id)[:3], station_id),
47 station_id, 'Downloading station JSON', fatal=False) or {}
50 'id': station_id,
51 'title': info.get('name') or station_id,
/dports/www/youtube_dl/youtube-dl/youtube_dl/extractor/
H A Dvyborymos.py28 station_id = self._match_id(url)
31 'http://vybory.mos.ru/account/channels?station_id=%s' % station_id,
32 station_id, 'Downloading channels JSON')
46 % (compat_str(station_id)[:3], station_id),
47 station_id, 'Downloading station JSON', fatal=False)
50 'id': station_id,
51 'title': self._live_title(info['name'] if info else station_id),
/dports/multimedia/streamlink/streamlink-2.1.2/src/streamlink/plugins/
H A Dradiko.py26 station_id = match.group('station_id').upper()
28 url, token = self._live(station_id)
31 url, token = self._timefree(station_id, start_at)
38 def _live(self, station_id): argument
39 …ttp://f-radiko.smartstream.ne.jp/{}/_definst_/simul-stream.stream/playlist.m3u8'.format(station_id)
43 'station_id': station_id,
51 def _timefree(self, station_id, start_at): argument
55 end_at = self._get_xml(start_at, station_id)
57 'station_id': station_id,
93 def _get_xml(self, start_at, station_id): argument
[all …]
/dports/security/cardpeek/cardpeek-0.8.4/dot_cardpeek_dir/scripts/calypso/
H A Dc250n901.lua66 local station_id
103 station_id = bit.AND(bit.SHR(location_id_value,4),0x1F)
105 … if code_transport==5 and BANLIEUE_LIST[sector_id] and BANLIEUE_LIST[sector_id][station_id] then
106 location_string = "secteur "..sector_id.." - station "..BANLIEUE_LIST[sector_id][station_id]
110 if METRO_LIST[sector_id][station_id]==nil then
111 location_string = location_string .. station_id
113 location_string = location_string .. METRO_LIST[sector_id][station_id]
116 location_string = "secteur "..sector_id.." - station "..station_id
/dports/astro/gpsd/gpsd-3.20/test/daemon/
H A Dnaujoks-rtcm2.log.chk1 {"class":"RTCM2","type":1,"station_id":688,"zcount":1642.8,"seqnum":6,"length":15,"station_health":…
3 {"class":"RTCM2","type":1,"station_id":688,"zcount":1644.0,"seqnum":0,"length":15,"station_health":…
5 {"class":"RTCM2","type":1,"station_id":688,"zcount":1645.2,"seqnum":2,"length":15,"station_health":…
16 {"class":"RTCM2","type":3,"station_id":688,"zcount":1650.0,"seqnum":5,"length":4,"station_health":6…
29 {"class":"RTCM2","type":3,"station_id":652,"zcount":1657.2,"seqnum":2,"length":4,"station_health":6…
30 {"class":"RTCM2","type":14,"station_id":652,"zcount":1657.2,"seqnum":3,"length":1,"station_health":…
37 {"class":"RTCM2","type":3,"station_id":652,"zcount":1660.2,"seqnum":2,"length":4,"station_health":6…
40 {"class":"RTCM2","type":16,"station_id":652,"zcount":1660.8,"seqnum":5,"length":3,"station_health":…
59 {"class":"RTCM2","type":3,"station_id":652,"zcount":1669.8,"seqnum":0,"length":4,"station_health":6…
80 {"class":"RTCM2","type":3,"station_id":652,"zcount":1680.0,"seqnum":5,"length":4,"station_health":6…
[all …]
H A Drtcm2.log.chk1 {"class":"RTCM2","type":9,"station_id":268,"zcount":252.0,"seqnum":3,"length":5,"station_health":0,…
2 {"class":"RTCM2","type":9,"station_id":268,"zcount":252.6,"seqnum":4,"length":5,"station_health":0,…
3 {"class":"RTCM2","type":9,"station_id":268,"zcount":253.8,"seqnum":5,"length":4,"station_health":0,…
4 {"class":"RTCM2","type":9,"station_id":268,"zcount":255.0,"seqnum":6,"length":5,"station_health":0,…
5 {"class":"RTCM2","type":9,"station_id":268,"zcount":255.6,"seqnum":7,"length":5,"station_health":0,…
H A Dnaujoks-ntrip.log.chk1 {"class":"RTCM2","type":14,"station_id":688,"zcount":841.8,"seqnum":3,"length":1,"station_health":6…
2 {"class":"RTCM2","type":31,"station_id":688,"zcount":828.0,"seqnum":4,"length":14,"station_health":…
3 {"class":"RTCM2","type":1,"station_id":688,"zcount":843.0,"seqnum":5,"length":19,"station_health":6…
4 {"class":"RTCM2","type":31,"station_id":688,"zcount":829.2,"seqnum":6,"length":14,"station_health":…
5 {"class":"RTCM2","type":1,"station_id":688,"zcount":844.2,"seqnum":7,"length":19,"station_health":6…
6 {"class":"RTCM2","type":31,"station_id":688,"zcount":829.8,"seqnum":0,"length":14,"station_health":…
7 {"class":"RTCM2","type":1,"station_id":688,"zcount":844.8,"seqnum":1,"length":19,"station_health":6…
8 {"class":"RTCM2","type":31,"station_id":688,"zcount":831.0,"seqnum":2,"length":14,"station_health":…
9 {"class":"RTCM2","type":1,"station_id":688,"zcount":846.0,"seqnum":3,"length":19,"station_health":6…
10 {"class":"RTCM2","type":31,"station_id":688,"zcount":832.2,"seqnum":4,"length":14,"station_health":…
[all …]
/dports/audio/pianod2/pianod2-329/src/mediaunits/pandora/
H A Dpandoramessages.cpp160 assert (!station_id.empty()); in RequestRemoveStation()
178 assert (!station_id.empty()); in RequestTransformStation()
196 assert (!station_id.empty()); in RequestRenameStation()
214 : Request (src, endpoint), station_id (sta->playlistId()){}; in RequestStationSeeds()
217 : Request (src, "v1/station/getSeeds"), station_id (sta->playlistId()){}; in RequestStationSeeds()
227 Station *station = source->getStationByStationId (station_id); in extractAssortedSeed()
267 station_id, in retrieveRequestMessage()
288 station_id (station->playlistId()), in RequestAlterStationSeed()
294 station_id, in retrieveRequestMessage()
317 station_id, in retrieveRequestMessage()
[all …]
/dports/astro/gpsd/gpsd-3.20/
H A Ddriver_rtcm3.c221 R1005.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
238 R1006.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
255 rtcm->rtcmtypes.rtcm3_1007.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
266 rtcm->rtcmtypes.rtcm3_1008.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
281 rtcm->rtcmtypes.rtcm3_1009.header.station_id = in rtcm3_unpack()
303 rtcm->rtcmtypes.rtcm3_1010.header.station_id = in rtcm3_unpack()
327 rtcm->rtcmtypes.rtcm3_1011.header.station_id = in rtcm3_unpack()
358 rtcm->rtcmtypes.rtcm3_1012.header.station_id = in rtcm3_unpack()
393 rtcm->rtcmtypes.rtcm3_1013.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
521 rtcm->rtcmtypes.rtcm3_1029.station_id = (unsigned short)ugrab(12); in rtcm3_unpack()
[all …]
H A Drtcm3_json.c92 {"station_id", t_uinteger, .addr.uinteger = R1001.station_id}, in json_rtcm3_read()
106 {"station_id", t_uinteger, .addr.uinteger = R1002.station_id}, in json_rtcm3_read()
120 {"station_id", t_uinteger, .addr.uinteger = &R1007.station_id}, in json_rtcm3_read()
131 {"station_id", t_uinteger, .addr.uinteger = &R1008.station_id}, in json_rtcm3_read()
144 {"station_id", t_uinteger, .addr.uinteger = R1009.station_id}, in json_rtcm3_read()
158 {"station_id", t_uinteger, .addr.uinteger = R1010.station_id}, in json_rtcm3_read()
187 {"station_id", t_uinteger, .addr.uinteger = &R1033.station_id}, in json_rtcm3_read()
/dports/databases/p5-DBIx-Class-Helpers/DBIx-Class-Helpers-2.036000/t/lib/
H A DTestSchema-0.001-MySQL.sql138 `station_id` integer NOT NULL,
140 INDEX `Gnarly_Station_idx_station_id` (`station_id`),
141 PRIMARY KEY (`gnarly_id`, `station_id`),
143 …CONSTRAINT `Gnarly_Station_fk_station_id` FOREIGN KEY (`station_id`) REFERENCES `Station` (`id`) O…
/dports/audio/gradio/Gradio-7.3/src/
H A Dgradio-library.vala108 CREATE TABLE "library" ('station_id' INTEGER, 'collection_id' INTEGER);
304 string station_id = stmt.column_text(0);
306 RadioStation station = yield Util.get_station_by_id(int.parse(station_id));
314 warning("Station [%s] not exported: ID not found.", station_id);
452 // SELECT collection_id FROM library WHERE station_id="0" ;
484 private bool sql_insert_row_library(string station_id, string collection_id){
485 …return execute_query("INSERT INTO library (station_id,collection_id) VALUES ('"+station_id+"', '"+…
488 private bool sql_delete_row_library(string station_id){
489 return execute_query("DELETE FROM library WHERE station_id='"+station_id+"';");
492 private bool sql_update_row_library(string station_id, string collection_id){
[all …]
/dports/audio/exaile/exaile-4.1.1/plugins/icecast/
H A D__init__.py176 def _get_playlist(self, name, station_id): argument
180 if station_id in self.playlists:
181 return self.playlists[station_id]
182 url = self.icecast_url + '/listen/' + station_id + '/listen.xspf'
185 self.playlists[station_id] = playlist.import_playlist(url)
187 return self.playlists[station_id]
301 rlist.get_playlist = lambda name=item[0], station_id=item[
303 ]: self._get_playlist(name, station_id)

1234567