Atlantic islands and Halifax: real landings and shorter crossings (#120)
Halifax, Bermuda, Ponta Delgada (Azores), Tenerife, Praia (Cape Verde) and St Helena, the islands each their own landmass with outlines on the map. Exchanges only where one runs today (CVIXP in Praia, HFXIX in Halifax); none in Bermuda, the Azores, the Canaries or St Helena. Cables follow real landings: new pairs on Hibernia Express (Halifax), Nuvem (Bermuda), Columbus III (Azores), EllaLink (Cape Verde), Equiano (St Helena), SAT-3, ACE, 2Africa and WACS (Canaries, WACS also Cape Verde), existing pairs untouched so saves keep their links. New: Sol (Florida, Bermuda, Azores, Santander), Atlantis-2 (Las Toninas, Fortaleza, Praia, Dakar, Tenerife, Sesimbra) and Canalink as puns. Crossings just over the 6,000 km 1.6T reach now split at the islands: Miami-Madrid, Atlanta-Lisbon, Lisbon/London-Lagos and Fortaleza-Madrid go from 1.2T to 1.6T per wave hop by hop. Island networks with Tier 1 upstreams (One Communications, CV Telecom, Sure South Atlantic, Eastlink as puns), MEO in the Azores, Bell in Halifax, Bermuda Triangle cuts, and the Mid-Atlantic Accent scenario. Broadband in a town smaller than 8 Gbps now starts at its ceiling instead of above it.
This commit is contained in:
parent
673b5159b0
commit
ab079e70dd
6 changed files with 163 additions and 24 deletions
|
|
@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- Six Atlantic stops join the map: Halifax, Bermuda, the Azores, Tenerife, Cape Verde and St Helena (#120). The cables across the Atlantic now stop where they really land, and a POP on an island splits a crossing that is just too long for 1.6T into hops that each carry 1.6T or more: Miami to Madrid via Bermuda and the Azores, Atlanta to Lisbon via Bermuda, Lisbon and London to Lagos via Tenerife, and Fortaleza to Europe via Cape Verde. Halifax sits at the start of the shortest line to England. Three new cables, Sol Survivor, Atlantis-2: The Sequel and Canary in the Cable Mine, link the islands, and older ones gain island stops. Exchanges only where one runs today, in Praia and Halifax. New island networks from One Commotion to Pretty Sure South Atlantic, cables that go quiet in the Bermuda Triangle, and a new scenario, Mid-Atlantic Accent, asks you to cross at 1.6T hop by hop. Broadband in a very small town no longer starts above what the town can use.
|
||||
- You can zoom in much further on the map, and a short link between two close cities can now be picked (#126). Dense regions like southern Brazil spread out properly when you zoom in, and tapping right on a link next to a city opens the link instead of the city.
|
||||
## [1.31.0] — 2026-10-26
|
||||
|
||||
|
|
|
|||
|
|
@ -2631,4 +2631,24 @@
|
|||
"via a capacity broker":"via un courtier en capacité",
|
||||
"List it with a capacity broker <small>they keep 10%</small>":"La confier à un courtier en capacité <small>il garde 10 %</small>",
|
||||
"Nothing spare to sell on this fiber right now.":"Rien à vendre sur cette fibre pour l’instant.",
|
||||
"Nova Scotia’s capital, and the big North American port closest to Europe. The fastest cable to England starts here, on the shortest line across the ocean, built for traders who pay for every millisecond.":"La capitale de la Nouvelle-Écosse, et le grand port nord-américain le plus proche de l’Europe. Le câble le plus rapide vers l’Angleterre part d’ici, sur la ligne la plus courte à travers l’océan, construit pour des traders qui paient chaque milliseconde.",
|
||||
"A thousand kilometres off the Carolinas. The new cables from the US to Portugal and Spain stop here, so a POP splits the crossing and each half carries more. Ships are said to vanish nearby. Cables, occasionally, do.":"À mille kilomètres des Carolines. Les nouveaux câbles des États-Unis vers le Portugal et l’Espagne y font escale : un POP coupe la traversée en deux et chaque moitié transporte davantage. On dit que des navires disparaissent dans les parages. Des câbles aussi, parfois.",
|
||||
"The Azores, in the middle of the Atlantic. Cables from Florida to Lisbon and Spain stop here, so a POP splits the crossing and each half carries more. The cows outnumber the servers.":"Les Açores, au milieu de l’Atlantique. Les câbles de la Floride vers Lisbonne et l’Espagne y font escale : un POP coupe la traversée en deux et chaque moitié transporte davantage. Les vaches sont plus nombreuses que les serveurs.",
|
||||
"The Canary Islands, a short hop from Lisbon and Morocco. Almost every cable down the west coast of Africa stops here, which turns the long run to Lagos into two shorter ones.":"Les Canaries, à un saut de Lisbonne et du Maroc. Presque tous les câbles qui longent la côte ouest de l’Afrique y font escale, et le long trajet jusqu’à Lagos devient deux trajets plus courts.",
|
||||
"Cape Verde’s capital, off the coast of Senegal. Cables between Brazil and Europe come ashore on the way, so a POP here splits the South Atlantic in two.":"La capitale du Cap-Vert, au large du Sénégal. Les câbles entre le Brésil et l’Europe y atterrissent en chemin : un POP ici coupe l’Atlantique Sud en deux.",
|
||||
"One of the most remote islands people live on: about 4,500 of them, and once Napoleon, sent here so he could not get away. Its first cable came ashore in 2021, a branch of the one from Portugal to South Africa. The power runs on diesel and hope.":"L’une des îles habitées les plus isolées du monde : environ 4 500 habitants, et autrefois Napoléon, envoyé ici pour qu’il ne puisse pas s’échapper. Son premier câble est arrivé en 2021, une branche de celui qui relie le Portugal à l’Afrique du Sud. Le courant marche au diesel et à l’espoir.",
|
||||
"Florida to northern Spain via Bermuda and the Azores. It goes straight through the Triangle and has come out the other side every time. So far.":"De la Floride au nord de l’Espagne via les Bermudes et les Açores. Il traverse le Triangle tout droit et en est toujours ressorti. Jusqu’ici.",
|
||||
"Argentina to Portugal via Brazil, Cape Verde, Dakar and the Canaries. Laid in 2000 and slowly sinking into legend.":"De l’Argentine au Portugal via le Brésil, le Cap-Vert, Dakar et les Canaries. Posé en 2000, il s’enfonce lentement dans la légende.",
|
||||
"Tenerife to the Spanish mainland. As long as it keeps singing, everything is fine.":"De Tenerife à l’Espagne continentale. Tant qu’il chante, tout va bien.",
|
||||
"Bermuda’s phones, TV and internet from one very busy office. Half its business customers are reinsurers, and they have priced in the Triangle.":"Téléphone, télé et internet des Bermudes, tout depuis un bureau très occupé. La moitié de ses clients professionnels sont des réassureurs, et ils ont déjà intégré le Triangle dans leurs prix.",
|
||||
"Cape Verde’s incumbent and the islands’ way out. Its CV lists every cable between Europe, Africa and Brazil, and it brings it up at every meeting.":"L’opérateur historique du Cap-Vert et la porte de sortie des îles. Son CV liste chaque câble entre l’Europe, l’Afrique et le Brésil, et il le ressort à chaque réunion.",
|
||||
"The telco for St Helena, Ascension and the Falklands. Is the link up? Pretty sure.":"L’opérateur de Sainte-Hélène, de l’Ascension et des Malouines. Le lien est-il en service ? Presque sûr.",
|
||||
"Atlantic Canada’s cable company, raised on lobster and long winters. Polite on the phone, a beast at the peering table.":"Le câblo-opérateur du Canada atlantique, nourri au homard et aux longs hivers. Poli au téléphone, une bête à la table de peering.",
|
||||
"Mid-Atlantic Accent":"Accent mi-atlantique",
|
||||
"Ponta Delgada, in the Azores, halfway across the Atlantic. Florida to Spain and Lisbon to Lagos are just too long for a 1.6T wave: straight across, each carries 1.2T. Land on the islands in between, start the light fresh, and every hop runs at 1.6T or better. You start with 1.6T gear unlocked.":"Ponta Delgada, aux Açores, à mi-chemin de l’Atlantique. De la Floride à l’Espagne et de Lisbonne à Lagos, c’est juste trop long pour une onde de 1.6T : en ligne droite, chacune transporte 1.2T. Atterrissez sur les îles entre les deux, relancez la lumière, et chaque saut passe à 1.6T ou mieux. Vous commencez avec l’équipement 1.6T débloqué.",
|
||||
"1.6T on every hop from Miami to Madrid and from Lisbon to Lagos, and 100 Gbps served":"1.6T sur chaque saut de Miami à Madrid et de Lisbonne à Lagos, et 100 Gbps servis",
|
||||
"Your {a}–{b} cable went quiet somewhere inside the Bermuda Triangle. The repair ship went to look, and it has not called back yet either.":"Votre câble {a}–{b} s’est tu quelque part dans le Triangle des Bermudes. Le navire de réparation est parti le chercher, et lui non plus n’a pas encore rappelé.",
|
||||
"The repair ship’s compass spun in circles over your {a}–{b} cable. It is broken, and nobody can agree where.":"La boussole du navire de réparation a tourné en rond au-dessus de votre câble {a}–{b}. Il est coupé, et personne n’est d’accord sur l’endroit.",
|
||||
"1.6T on every hop from Miami to Madrid":"1.6T sur chaque saut de Miami à Madrid",
|
||||
"1.6T on every hop from Lisbon to Lagos":"1.6T sur chaque saut de Lisbonne à Lagos",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2631,4 +2631,24 @@
|
|||
"via a capacity broker":"tramite un broker di capacità",
|
||||
"List it with a capacity broker <small>they keep 10%</small>":"Mettila in vendita con un broker di capacità <small>trattiene il 10%</small>",
|
||||
"Nothing spare to sell on this fiber right now.":"Per ora non c’è niente da vendere su questa fibra.",
|
||||
"Nova Scotia’s capital, and the big North American port closest to Europe. The fastest cable to England starts here, on the shortest line across the ocean, built for traders who pay for every millisecond.":"La capitale della Nuova Scozia, e il grande porto nordamericano più vicino all’Europa. Da qui parte il cavo più veloce per l’Inghilterra, sulla linea più corta attraverso l’oceano, costruito per i trader che pagano ogni millisecondo.",
|
||||
"A thousand kilometres off the Carolinas. The new cables from the US to Portugal and Spain stop here, so a POP splits the crossing and each half carries more. Ships are said to vanish nearby. Cables, occasionally, do.":"Mille chilometri al largo delle Carolina. I nuovi cavi dagli Stati Uniti verso Portogallo e Spagna fanno scalo qui: un POP spezza la traversata e ogni metà porta di più. Si dice che qui vicino spariscano le navi. I cavi, ogni tanto, spariscono davvero.",
|
||||
"The Azores, in the middle of the Atlantic. Cables from Florida to Lisbon and Spain stop here, so a POP splits the crossing and each half carries more. The cows outnumber the servers.":"Le Azzorre, in mezzo all’Atlantico. I cavi dalla Florida verso Lisbona e la Spagna fanno scalo qui: un POP spezza la traversata e ogni metà porta di più. Le mucche sono più dei server.",
|
||||
"The Canary Islands, a short hop from Lisbon and Morocco. Almost every cable down the west coast of Africa stops here, which turns the long run to Lagos into two shorter ones.":"Le Canarie, a un passo da Lisbona e dal Marocco. Quasi ogni cavo lungo la costa occidentale dell’Africa fa scalo qui, e il lungo tratto fino a Lagos diventa due tratti più corti.",
|
||||
"Cape Verde’s capital, off the coast of Senegal. Cables between Brazil and Europe come ashore on the way, so a POP here splits the South Atlantic in two.":"La capitale di Capo Verde, al largo del Senegal. I cavi tra il Brasile e l’Europa approdano qui lungo la strada, così un POP divide in due l’Atlantico del Sud.",
|
||||
"One of the most remote islands people live on: about 4,500 of them, and once Napoleon, sent here so he could not get away. Its first cable came ashore in 2021, a branch of the one from Portugal to South Africa. The power runs on diesel and hope.":"Una delle isole abitate più remote del mondo: circa 4.500 abitanti, e un tempo Napoleone, mandato qui perché non potesse scappare. Il primo cavo è arrivato nel 2021, una diramazione di quello dal Portogallo al Sudafrica. La corrente va a gasolio e speranza.",
|
||||
"Florida to northern Spain via Bermuda and the Azores. It goes straight through the Triangle and has come out the other side every time. So far.":"Dalla Florida al nord della Spagna passando per le Bermuda e le Azzorre. Attraversa il Triangolo dritto per dritto e finora ne è sempre uscito. Finora.",
|
||||
"Argentina to Portugal via Brazil, Cape Verde, Dakar and the Canaries. Laid in 2000 and slowly sinking into legend.":"Dall’Argentina al Portogallo passando per il Brasile, Capo Verde, Dakar e le Canarie. Posato nel 2000, sta lentamente sprofondando nella leggenda.",
|
||||
"Tenerife to the Spanish mainland. As long as it keeps singing, everything is fine.":"Da Tenerife alla Spagna continentale. Finché continua a cantare, va tutto bene.",
|
||||
"Bermuda’s phones, TV and internet from one very busy office. Half its business customers are reinsurers, and they have priced in the Triangle.":"Telefono, TV e internet delle Bermuda, tutto da un ufficio molto indaffarato. Metà dei clienti business sono riassicuratori, e il Triangolo l’hanno già messo nel prezzo.",
|
||||
"Cape Verde’s incumbent and the islands’ way out. Its CV lists every cable between Europe, Africa and Brazil, and it brings it up at every meeting.":"L’operatore storico di Capo Verde e la via d’uscita delle isole. Nel suo CV c’è ogni cavo tra Europa, Africa e Brasile, e lo tira fuori a ogni riunione.",
|
||||
"The telco for St Helena, Ascension and the Falklands. Is the link up? Pretty sure.":"L’operatore di Sant’Elena, Ascensione e delle Falkland. Il collegamento è su? Abbastanza sicuro.",
|
||||
"Atlantic Canada’s cable company, raised on lobster and long winters. Polite on the phone, a beast at the peering table.":"La compagnia via cavo del Canada atlantico, cresciuta ad aragoste e inverni lunghi. Gentile al telefono, una belva al tavolo del peering.",
|
||||
"Mid-Atlantic Accent":"Accento medio-atlantico",
|
||||
"Ponta Delgada, in the Azores, halfway across the Atlantic. Florida to Spain and Lisbon to Lagos are just too long for a 1.6T wave: straight across, each carries 1.2T. Land on the islands in between, start the light fresh, and every hop runs at 1.6T or better. You start with 1.6T gear unlocked.":"Ponta Delgada, nelle Azzorre, a metà dell’Atlantico. Dalla Florida alla Spagna e da Lisbona a Lagos è appena troppo lungo per un’onda da 1.6T: in linea diretta ognuna porta 1.2T. Approda sulle isole in mezzo, fai ripartire la luce e ogni tratto va a 1.6T o più. Parti con l’attrezzatura da 1.6T sbloccata.",
|
||||
"1.6T on every hop from Miami to Madrid and from Lisbon to Lagos, and 100 Gbps served":"1.6T su ogni tratto da Miami a Madrid e da Lisbona a Lagos, e 100 Gbps serviti",
|
||||
"Your {a}–{b} cable went quiet somewhere inside the Bermuda Triangle. The repair ship went to look, and it has not called back yet either.":"Il tuo cavo {a}–{b} è ammutolito da qualche parte nel Triangolo delle Bermuda. La nave di riparazione è andata a cercarlo, e non ha ancora richiamato neanche lei.",
|
||||
"The repair ship’s compass spun in circles over your {a}–{b} cable. It is broken, and nobody can agree where.":"La bussola della nave di riparazione ha girato in tondo sopra il tuo cavo {a}–{b}. È rotto, e nessuno è d’accordo su dove.",
|
||||
"1.6T on every hop from Miami to Madrid":"1.6T su ogni tratto da Miami a Madrid",
|
||||
"1.6T on every hop from Lisbon to Lagos":"1.6T su ogni tratto da Lisbona a Lagos",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2631,4 +2631,24 @@
|
|||
"via a capacity broker":"por um corretor de capacidade",
|
||||
"List it with a capacity broker <small>they keep 10%</small>":"Anunciar com um corretor de capacidade <small>ele fica com 10%</small>",
|
||||
"Nothing spare to sell on this fiber right now.":"Nada sobrando para vender nesta fibra por enquanto.",
|
||||
"Nova Scotia’s capital, and the big North American port closest to Europe. The fastest cable to England starts here, on the shortest line across the ocean, built for traders who pay for every millisecond.":"A capital da Nova Escócia, e o grande porto norte-americano mais perto da Europa. Daqui sai o cabo mais rápido para a Inglaterra, na linha mais curta através do oceano, construído para traders que pagam por cada milissegundo.",
|
||||
"A thousand kilometres off the Carolinas. The new cables from the US to Portugal and Spain stop here, so a POP splits the crossing and each half carries more. Ships are said to vanish nearby. Cables, occasionally, do.":"A mil quilômetros das Carolinas. Os novos cabos dos EUA para Portugal e Espanha param aqui, então um POP divide a travessia e cada metade leva mais. Dizem que navios somem por aqui. Cabos, de vez em quando, somem mesmo.",
|
||||
"The Azores, in the middle of the Atlantic. Cables from Florida to Lisbon and Spain stop here, so a POP splits the crossing and each half carries more. The cows outnumber the servers.":"Os Açores, no meio do Atlântico. Os cabos da Flórida para Lisboa e para a Espanha param aqui, então um POP divide a travessia e cada metade leva mais. Há mais vacas do que servidores.",
|
||||
"The Canary Islands, a short hop from Lisbon and Morocco. Almost every cable down the west coast of Africa stops here, which turns the long run to Lagos into two shorter ones.":"As Canárias, a um pulo de Lisboa e do Marrocos. Quase todo cabo que desce a costa oeste da África para aqui, e o longo trecho até Lagos vira dois mais curtos.",
|
||||
"Cape Verde’s capital, off the coast of Senegal. Cables between Brazil and Europe come ashore on the way, so a POP here splits the South Atlantic in two.":"A capital de Cabo Verde, ao largo do Senegal. Os cabos entre o Brasil e a Europa chegam aqui no caminho, então um POP divide o Atlântico Sul em dois.",
|
||||
"One of the most remote islands people live on: about 4,500 of them, and once Napoleon, sent here so he could not get away. Its first cable came ashore in 2021, a branch of the one from Portugal to South Africa. The power runs on diesel and hope.":"Uma das ilhas habitadas mais remotas do mundo: cerca de 4.500 pessoas, e um dia Napoleão, mandado para cá para não conseguir fugir. O primeiro cabo chegou em 2021, um ramal do que vai de Portugal à África do Sul. A energia vem de diesel e esperança.",
|
||||
"Florida to northern Spain via Bermuda and the Azores. It goes straight through the Triangle and has come out the other side every time. So far.":"Da Flórida ao norte da Espanha pelas Bermudas e pelos Açores. Atravessa o Triângulo em linha reta e até agora sempre saiu do outro lado. Até agora.",
|
||||
"Argentina to Portugal via Brazil, Cape Verde, Dakar and the Canaries. Laid in 2000 and slowly sinking into legend.":"Da Argentina a Portugal pelo Brasil, Cabo Verde, Dakar e as Canárias. Lançado em 2000 e afundando aos poucos na lenda.",
|
||||
"Tenerife to the Spanish mainland. As long as it keeps singing, everything is fine.":"De Tenerife à Espanha continental. Enquanto ele continuar cantando, está tudo bem.",
|
||||
"Bermuda’s phones, TV and internet from one very busy office. Half its business customers are reinsurers, and they have priced in the Triangle.":"Telefone, TV e internet das Bermudas, tudo de um escritório muito ocupado. Metade dos clientes empresariais são resseguradoras, e elas já puseram o Triângulo no preço.",
|
||||
"Cape Verde’s incumbent and the islands’ way out. Its CV lists every cable between Europe, Africa and Brazil, and it brings it up at every meeting.":"A operadora histórica de Cabo Verde e a saída das ilhas. O currículo dela lista todos os cabos entre a Europa, a África e o Brasil, e ela fala disso em toda reunião.",
|
||||
"The telco for St Helena, Ascension and the Falklands. Is the link up? Pretty sure.":"A operadora de Santa Helena, Ascensão e das Malvinas. O link está no ar? Quase certeza.",
|
||||
"Atlantic Canada’s cable company, raised on lobster and long winters. Polite on the phone, a beast at the peering table.":"A operadora de cabo do Canadá atlântico, criada à base de lagosta e invernos longos. Educada ao telefone, uma fera na mesa de peering.",
|
||||
"Mid-Atlantic Accent":"Sotaque do meio do Atlântico",
|
||||
"Ponta Delgada, in the Azores, halfway across the Atlantic. Florida to Spain and Lisbon to Lagos are just too long for a 1.6T wave: straight across, each carries 1.2T. Land on the islands in between, start the light fresh, and every hop runs at 1.6T or better. You start with 1.6T gear unlocked.":"Ponta Delgada, nos Açores, no meio do Atlântico. Da Flórida à Espanha e de Lisboa a Lagos é um pouco longo demais para uma onda de 1.6T: em linha direta, cada uma leva 1.2T. Pouse nas ilhas no meio, recomece a luz, e cada trecho roda a 1.6T ou mais. Você começa com equipamento de 1.6T desbloqueado.",
|
||||
"1.6T on every hop from Miami to Madrid and from Lisbon to Lagos, and 100 Gbps served":"1.6T em cada trecho de Miami a Madri e de Lisboa a Lagos, e 100 Gbps servidos",
|
||||
"Your {a}–{b} cable went quiet somewhere inside the Bermuda Triangle. The repair ship went to look, and it has not called back yet either.":"Seu cabo {a}–{b} ficou mudo em algum lugar do Triângulo das Bermudas. O navio de reparo foi procurar, e ele também ainda não deu notícias.",
|
||||
"The repair ship’s compass spun in circles over your {a}–{b} cable. It is broken, and nobody can agree where.":"A bússola do navio de reparo girou em círculos sobre o seu cabo {a}–{b}. Ele está rompido, e ninguém concorda onde.",
|
||||
"1.6T on every hop from Miami to Madrid":"1.6T em cada trecho de Miami a Madri",
|
||||
"1.6T on every hop from Lisbon to Lagos":"1.6T em cada trecho de Lisboa a Lagos",
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -577,7 +577,8 @@ test('a Tier 1 reaches every Latin American and African network through the carr
|
|||
test('Africa: more countries, cables along both coasts, border costs and Cape to Cairo', () => {
|
||||
const { ev, errors } = load();
|
||||
start(ev);
|
||||
const af = JSON.parse(ev("JSON.stringify(CITIES.filter(c=>c.reg==='AF').map(c=>c.id))"));
|
||||
// the mainland: islands like St Helena have no exchange (#120)
|
||||
const af = JSON.parse(ev("JSON.stringify(CITIES.filter(c=>c.reg==='AF'&&c.land==='af').map(c=>c.id))"));
|
||||
assert.ok(af.length >= 26);
|
||||
for (const c of af) {
|
||||
assert.ok(ev(`!!CITY.${c}.cc&&!!CITY.${c}.ix`), `${c} has a country and an IX`);
|
||||
|
|
@ -641,6 +642,63 @@ test('Pacific islands: real landings, real exchanges only, and island hops carry
|
|||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('Atlantic islands and Halifax: real landings, real exchanges only, and island hops carry more per wave (#120)', () => {
|
||||
const { ev, errors } = load();
|
||||
start(ev);
|
||||
const isl = ['bda', 'pdl', 'tci', 'rai', 'jam'];
|
||||
for (const c of isl.concat('hfx')) {
|
||||
assert.ok(ev(`CABLE_PAIRS.some(p=>p.a==='${c}'||p.b==='${c}')`), `${c} has a cable`);
|
||||
assert.ok(ev(`NETS.some(n=>n.price&&n.pops.includes('${c}'))`), `${c} has a transit seller`);
|
||||
}
|
||||
for (const c of isl) assert.ok(ev(`isSub('${c}','lis')&&isSub('${c}','mia')&&isSub('${c}','dkr')`), `${c} is an island`);
|
||||
assert.equal(ev("isSub('hfx','mtl')"), false, 'Halifax is on the mainland');
|
||||
// exchanges only where one runs today: CVIXP in Praia and HFXIX in Halifax
|
||||
assert.deepEqual(isl.concat('hfx').filter(c => ev(`!!CITY['${c}'].ix`)), ['rai', 'hfx']);
|
||||
assert.equal(ev(`NETS.filter(n=>Array.isArray(n.ix)&&n.ix.some(c=>CITY[c]&&!CITY[c].ix&&${JSON.stringify(isl)}.includes(c))).length`), 0);
|
||||
// the real landings named in the issue
|
||||
const lands = (cid, a, b) => ev(`CABLE_PAIRS.some(p=>p.cid==='${cid}'&&[p.a,p.b].sort().join()==='${[a, b].sort().join()}')`);
|
||||
assert.ok(lands('hibx', 'hfx', 'lon') && lands('nuvem', 'bda', 'lis') && lands('sol', 'bda', 'pdl') && lands('ella', 'for', 'rai') && lands('equi', 'lag', 'jam'));
|
||||
assert.ok(lands('atl2', 'rai', 'dkr') && lands('atl2', 'dkr', 'tci') && lands('atl2', 'bue', 'for'));
|
||||
// old pairs stay where they were, so saved links keep their cable
|
||||
assert.equal(ev("CAB.hibx.pairs[0].slice(0,2).join()"), 'nyc,lon');
|
||||
assert.equal(ev("CAB.nuvem.pairs[0].slice(0,2).join()"), 'lis,atn');
|
||||
// every island network still reaches a Tier 1
|
||||
assert.equal(ev(`NETS.filter(n=>n.type!=='t1'&&n.pops.some(c=>${JSON.stringify(isl)}.includes(c))&&!(n.up||[]).some(u=>NET[u].type==='t1')&&!n.pops.some(c=>!${JSON.stringify(isl)}.includes(c))).map(n=>n.id).join()`), '');
|
||||
const hop = (path) => ev(`Math.min(...${JSON.stringify(path)}.slice(1).map((c,i)=>Math.max(...cablesFor(${JSON.stringify(path)}[i],c).map(p=>subCarrier(p.km)))))`);
|
||||
const direct = (a, b) => ev(`Math.max(...cablesFor('${a}','${b}').map(p=>subCarrier(p.km)))`);
|
||||
assert.equal(direct('mia', 'mad'), 1200);
|
||||
assert.equal(hop(['mia', 'bda', 'pdl', 'mad']), 1600, 'Florida to Spain via Bermuda and the Azores');
|
||||
assert.equal(hop(['mia', 'pdl', 'lis']), 1600, 'Florida to Lisbon via the Azores');
|
||||
assert.equal(direct('atn', 'lis'), 1200);
|
||||
assert.equal(hop(['atn', 'bda', 'lis']), 1600);
|
||||
assert.equal(direct('lis', 'lag'), 1200);
|
||||
assert.equal(hop(['lis', 'tci', 'lag']), 1600, 'Lisbon to Lagos via the Canaries');
|
||||
assert.equal(direct('for', 'mad'), 1200);
|
||||
assert.equal(hop(['for', 'rai', 'lis']), 1600, 'Brazil to Europe via Cape Verde');
|
||||
assert.equal(hop(['nyc', 'hfx']), 3200);
|
||||
// the Bermuda Triangle has its own cuts
|
||||
ev("ACT.buildPop({city:'mia'});ACT.buildPop({city:'bda'});S.pops.mia.rgen=3;S.pops.bda.rgen=3;UI.via='sol';UI.route='same';openLinkModal('mia','bda');ACT.buildLink({tier:4});closeModal()");
|
||||
const l = ev("JSON.stringify(S.links.find(l=>l.a==='bda'||l.b==='bda'))");
|
||||
assert.ok(l && JSON.parse(l).sub, 'a subsea wave to Bermuda');
|
||||
// a town of 4,500 starts broadband below its ceiling, not above it
|
||||
ev("ACT.buildPop({city:'jam'});ACT.launchBB({city:'jam'})");
|
||||
assert.ok(ev("S.pops.jam.bb.d>0&&S.pops.jam.bb.d<=eyeP('jam')"));
|
||||
// the scenario starts in the Azores with 1.6T gear
|
||||
ev("ACT.startScn({id:'atl',sure:1})");
|
||||
assert.equal(ev('S.scn.id'), 'atl');
|
||||
assert.ok(ev('!!S.pops.pdl') && ev('S.lvl') >= 4);
|
||||
assert.equal(ev('scnProg().items.length'), 3);
|
||||
assert.equal(ev("fastPath('mia','mad',1600)"), false);
|
||||
ev("S.cash=1e9;for(const c of ['mia','bda','mad','lis','tci','lag']){ACT.buildPop({city:c});S.pops[c].rgen=3;}S.pops.pdl.rgen=3;");
|
||||
const wave = (a, b, via) => ev(`UI.via='${via}';UI.route='same';openLinkModal('${a}','${b}');ACT.buildLink({tier:4});closeModal();S.links.length`);
|
||||
wave('mia', 'bda', 'sol'); wave('bda', 'pdl', 'sol'); wave('pdl', 'mad', 'sol'); wave('lis', 'tci', 'ace'); wave('tci', 'lag', 'twoaf');
|
||||
ev('compute()');
|
||||
assert.equal(ev("fastPath('mia','mad',1600)"), true);
|
||||
assert.equal(ev("fastPath('lis','lag',1600)"), true);
|
||||
ev('cam.z=0.5;draw(0);cam.z=6;cam.x=CITY.bda.x;cam.y=CITY.bda.y;draw(0)');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('subsea cable designs trade construction cost and time for previewed latency', () => {
|
||||
const { ev, dom, errors } = load();
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue