diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..34beed15 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..87e654bb --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.csv filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index f5a44dcc..6f9b7620 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 14 + - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '14' + java-version: '17' distribution: 'adopt' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/.gitignore b/.gitignore index 849c330a..8a49cf09 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ - +javadoc +javadoc/ +/javadoc/ # Created by https://www.toptal.com/developers/gitignore/api/java,intellij,maven # Edit at https://www.toptal.com/developers/gitignore?templates=java,intellij,maven @@ -143,6 +145,4 @@ buildNumber.properties # https://github.com/takari/maven-wrapper#usage-without-binary-jar .mvn/wrapper/maven-wrapper.jar -_output/ - -# End of https://www.toptal.com/developers/gitignore/api/java,intellij,maven \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/java,intellij,maven diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 00000000..a55e7a17 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..eeb324a4 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 00000000..9bd46a26 --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,31 @@ +cff-version: 1.2.0 +message: "If you use this software, please cite it as below." +authors: +- family-names: "Yajam" + given-names: "Habib" + orcid: "https://orcid.org/0000-0003-4344-7446" +- family-names: "Ebadi" + given-names: "Elnaz" +- family-names: "Akhaee" + given-names: "Mohammad Ali" +title: "JABS: Just Another Blockchain Simulator" +version: 0.2.0 +date-released: 2023-06-08 +url: "https://github.com/hyajam/jabs" +preferred-citation: + type: article + authors: + - family-names: "Yajam" + given-names: "Habib" + orcid: "https://orcid.org/0000-0003-4344-7446" + - family-names: "Ebadi" + given-names: "Elnaz" + - family-names: "Akhaee" + given-names: "Mohammad Ali" + doi: "10.1109/TNSE.2023.3282916" + journal: "IEEE Transactions on Network Science and Engineering" + month: 6 + start: 1 # First page number + end: 12 # Last page number + title: "Yajam, Habib and Ebadi, Elnaz and Akhaee, Mohammad Ali" + year: 2023 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 80c32581..e9dbb96f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ FROM maven:3-openjdk-17 -WORKDIR /app +ARG user=appuser +ARG group=appuser +ARG uid=1000 +ARG gid=1000 -COPY pom.xml ./ -RUN mvn verify --fail-never +RUN groupadd -g ${gid} ${group} && useradd -u ${uid} -g ${gid} ${user} -COPY src ./src -RUN mvn package +WORKDIR /app -CMD java -jar target/jabs.jar \ No newline at end of file +COPY pom.xml ./ +RUN mvn verify --fail-never \ No newline at end of file diff --git a/README.md b/README.md index 4052f56a..30f887ab 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Just Another Blockchain Simulator +# Just Another Blockchain Simulator # ![GitHub](https://img.shields.io/github/license/hyajam/jabs) ![Build Status](https://travis-ci.com/hyajam/jabs.svg?branch=objectifiedNetworkAndSimulator) @@ -9,70 +9,142 @@ JABS - Just Another Blockchain Simulator. JABS is a blockchain network simulator aimed at researching consensus -algorithms for performance and security. it is designed to easily handel +algorithms for performance and security. It is designed to easily handel simulation of networks as large as normal public blockchain networks (~10000 nodes) in reasonable time. -## Installation -First, you should have ```git```, ```openjdk-17-jdk``` and ```maven``` -installed. +## Installation ## +There are two suggested installation methods Introduced here. +Installation on a Debian-based linux like Ubuntu and +installation using Dockerfile. + +### Installation on Ubuntu 20.04 and 22.04 ### + +First, you should install `git`, `openjdk-17-jdk`, and `maven`. + ```shell script -$ sudo apt install git openjdk-17-jdk maven +$ sudo apt install git openjdk-17-jdk +$ sudo apt install maven ``` + After that, clone the git repository. ```shell script $ git clone https://github.com/hyajam/jabs.git ``` -Use ```maven``` to make a jar file. + +Use maven `mvn` to make a jar file. ```shell script $ cd jabs $ mvn clean install ``` -You might need to set ```JAVA_HOME``` to java home directory (this + +You might need to set `JAVA_HOME` to java home directory (this might vary depending on your linux distribution and jdk version): + ```shell $ JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/; mvn clean install ``` + Then to run the compiled jar file. ```shell script $ java -jar target/jabs.jar ``` - -### Installation using Dockerfile -Clone the repository using git: +### Installation using Docker-Compose ### +The easiest method for running jabs is using ```docker-compose```. You need +to have ```git``` and ```docker-compose``` installed on your system. Clone +the repository using git. ```shell script $ git clone https://github.com/hyajam/jabs.git ``` -Build the docker image: -```shell script -$ docker build -t jabs . -``` -Run the docker container: + +Then, use docker compose to build an image and run the container. The output +of simulation will be automatically sent to ```output/``` folder. ```shell script -$ docker run -t jabs +$ cd jabs +$ docker-compose up ``` -The ```Dockerfile``` is designed to support caching dependencies -therefore by editing the source code you do not need to download -new dependencies unless your changes include changes to ```pom.xml``` file +If your user id and group id are not 1000 you might need to change the +values in `Dockerfile` and `compose.yaml` accordingly. You might be able to +find your user id and group id using commands `id -u` and `id -g` in linux. -## Usage +## Quick Start ## + + + +## Usage ## Currently, you can use JABS by editing Main.java file and creating new scenarios for your tests. -### Supported Consensus algorithms -Currently, JABS support the following consensus algorithms: +## Supported Consensus algorithms ## +Currently, the following consensus algorithms are implemented in JABS: 1. Nakamoto Consensus 2. Ghost protocol 3. PBFT 4. Casper FFG - 6. DAGsper + 5. IOTA Tangle + 6. Nakamoto Heaviest-Chain + 7. Robust Round Robin + +## Roadmap ## +- [x] Add new block mining process that can support adjustable difficulty. +- [x] Add multiple loggers and scenarios in main class. +- [ ] Add detailed comparison with other simulators in README.md. +- [x] Add new network latency stats that has countries instead of continents. +- [ ] Add events for network churn. +- [ ] Exploring possible multithreading options. +- [ ] Add new consensus algorithms: + - [x] IOTA + - [ ] Honey Badger BFT + - [ ] DPoS ## Other Blockchain Simulators ## - 1. Bitcoin Simulator: developed in C++ and based on NS3. Can simulate Bitcoin, Litecoin, Dogecoin and probably other blockchain networks based on Nakamoto Consensus. Although it is probably the most accurate of the blockchain simulators it is fairly slow. Does not simulate transactions. (https://github.com/arthurgervais/Bitcoin-Simulator) - 2. BlockSim: developed in Python. Supports simulating both Bitcoin and Ethereum. Accurate but slow. Simulates transactions and connection handshakes. (https://github.com/carlosfaria94/blocksim) - 3. SimBlock: developed in Java. In current version supports only Nakamoto Consensus. Plans on adding GHOST protocol. Fast. Does not simulate transactions. SimBlock partially inspired this project. (https://github.com/dsg-titech/simblock) + 1. **Bitcoin Simulator**: developed in C++ and based on NS3. Can simulate Bitcoin, Litecoin, Dogecoin and probably other blockchain networks based on Nakamoto Consensus. Although it is probably the most accurate of the blockchain simulators it is fairly slow. Does not simulate transactions. (https://github.com/arthurgervais/Bitcoin-Simulator) + 2. **BlockSim**: developed in Python. Supports simulating both Bitcoin and Ethereum. Accurate but slow. Simulates transactions and connection handshakes. (https://github.com/carlosfaria94/blocksim) + 3. **SimBlock**: developed in Java. In current version supports only Nakamoto Consensus. Plans on adding GHOST protocol. Fast. Does not simulate transactions. SimBlock partially inspired this project. (https://github.com/dsg-titech/simblock) + + +## Contributing + +Any contributions you make to JABS project are **greatly appreciated**. + +If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". +Don't forget to give the project a star. Thanks. + +Steps for code contribution to the project: + + 1. Fork the Project + 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) + 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) + 4. Push to the Branch (`git push origin feature/AmazingFeature`) + 5. Open a Pull Request + + +## License ## + +Distributed under the MIT License. See `LICENSE` for more information. + +## Publications ## + +Please use the following bibtex reference to cite our paper: + +``` +@ARTICLE{10144349, + author={Yajam, Habib and Ebadi, Elnaz and Akhaee, Mohammad Ali}, + journal={IEEE Transactions on Network Science and Engineering}, + title={JABS: A Blockchain Simulator for Researching Consensus Algorithms}, + year={2023}, + volume={}, + number={}, + pages={1-12}, + doi={10.1109/TNSE.2023.3282916} + } +``` + +## Contact ## + +Habib Yajam - [@habibyajam](https://twitter.com/HabibYajam) - habib.yajam@gmail.com \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 00000000..285e9a9c --- /dev/null +++ b/compose.yaml @@ -0,0 +1,22 @@ +version: "3.9" +services: + jabs: + build: + context: . + args: + user: appuser + group: appuser + uid: 1000 + gid: 1000 + volumes: + - type: bind + source: ./src/ + target: /app/src/ + read_only: true + - type: bind + source: ./output/ + target: /app/output/ + command: /bin/sh -c " + mvn package && + su appuser -c 'cd /app/ && java -jar ./target/jabs.jar' + " \ No newline at end of file diff --git a/data/86-regions/.~lock.bandwidth_mbps.csv# b/data/86-regions/.~lock.bandwidth_mbps.csv# new file mode 100644 index 00000000..17765d10 --- /dev/null +++ b/data/86-regions/.~lock.bandwidth_mbps.csv# @@ -0,0 +1 @@ +,habib,habib-Z590-UD-AC,16.06.2022 18:42,file:///home/habib/.config/libreoffice/4; \ No newline at end of file diff --git a/data/86-regions/README.md b/data/86-regions/README.md new file mode 100644 index 00000000..c36e26e7 --- /dev/null +++ b/data/86-regions/README.md @@ -0,0 +1,4 @@ +This directory contains information that are compiled from +other sources in other directories of this set in a unified form +that enables a global network model with 85 countries and an +average case for the rest of the world. \ No newline at end of file diff --git a/data/86-regions/bandwidth_mbps.csv b/data/86-regions/bandwidth_mbps.csv new file mode 100644 index 00000000..f016f845 --- /dev/null +++ b/data/86-regions/bandwidth_mbps.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0cb0be9c279c2127943d7663af46aad5544389eb2c31dfa928d3b8b48386e11 +size 1846 diff --git a/data/86-regions/bitcoin-mining_dist.csv b/data/86-regions/bitcoin-mining_dist.csv new file mode 100644 index 00000000..bdafa6c9 --- /dev/null +++ b/data/86-regions/bitcoin-mining_dist.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:038fc1fe622e4b4bbfede024cd489723f3f6f3acf3ae2e889427bb7e345f1d55 +size 1294 diff --git a/data/86-regions/bitcoin-nodes_dist.csv b/data/86-regions/bitcoin-nodes_dist.csv new file mode 100644 index 00000000..f25ab561 --- /dev/null +++ b/data/86-regions/bitcoin-nodes_dist.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5de36a95257c157aceb23210b7d793b510de67374b07510c2eb0b965f1e35039 +size 2218 diff --git a/data/86-regions/country_names.csv b/data/86-regions/country_names.csv new file mode 100644 index 00000000..8b9b2c18 --- /dev/null +++ b/data/86-regions/country_names.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6debdb05f4a8b43e9ed9f08701de9ca767ab689773475ff10e182261e987ca1b +size 995 diff --git a/data/86-regions/ehereum-nodes_dist.csv b/data/86-regions/ehereum-nodes_dist.csv new file mode 100644 index 00000000..b96e8a07 --- /dev/null +++ b/data/86-regions/ehereum-nodes_dist.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf33558a1c20ed47edf2d933ac1b91578f3fe82a6f88ad68ae7ab7f3b419c6fa +size 1477 diff --git a/data/86-regions/latency_ms.csv b/data/86-regions/latency_ms.csv new file mode 100644 index 00000000..25bee49f --- /dev/null +++ b/data/86-regions/latency_ms.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac5e9432c8694a9157a818f6a41b00646c9d8e906d37d9970e9ea7091b039f7d +size 53800 diff --git a/data/bitcoin/Bitcoinnodes/README.md b/data/bitcoin/Bitcoinnodes/README.md new file mode 100644 index 00000000..a7c4be32 --- /dev/null +++ b/data/bitcoin/Bitcoinnodes/README.md @@ -0,0 +1,3 @@ +Source: https://bitnodes.io/ + +Timestamp: 12 Jun 2022 \ No newline at end of file diff --git a/data/bitcoin/Bitcoinnodes/node-by-country.csv b/data/bitcoin/Bitcoinnodes/node-by-country.csv new file mode 100644 index 00000000..40aeacb4 --- /dev/null +++ b/data/bitcoin/Bitcoinnodes/node-by-country.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a06dad9cf1139990a32f5773dc16d6b7807ad1571a50be1a04e93263626fa6c +size 1394 diff --git a/data/bitcoin/README.md b/data/bitcoin/README.md new file mode 100644 index 00000000..4e9f84e6 --- /dev/null +++ b/data/bitcoin/README.md @@ -0,0 +1,2 @@ +This folder contains data gathered from various sources related +to bitcoin network alongside the source address. \ No newline at end of file diff --git a/data/bitcoin/cbeci-mining_map-bitcoin-mining/README.md b/data/bitcoin/cbeci-mining_map-bitcoin-mining/README.md new file mode 100644 index 00000000..ce0e43d8 --- /dev/null +++ b/data/bitcoin/cbeci-mining_map-bitcoin-mining/README.md @@ -0,0 +1,6 @@ +Source: https://ccaf.io/cbeci/mining_map + +Timestamp: 12 Jun 2022 + +This is a project for mapping Bitcoin mining in the world. +Data timestamp is 2021-03-01. \ No newline at end of file diff --git a/data/bitcoin/cbeci-mining_map-bitcoin-mining/cbeci-mining_map.csv b/data/bitcoin/cbeci-mining_map-bitcoin-mining/cbeci-mining_map.csv new file mode 100644 index 00000000..1ba92cde --- /dev/null +++ b/data/bitcoin/cbeci-mining_map-bitcoin-mining/cbeci-mining_map.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de8b7b2797a75723a3beda2bca24d41ce73c5ec90bf08cef7c6ff312f68a46be +size 411 diff --git a/data/ethereum/README.md b/data/ethereum/README.md new file mode 100644 index 00000000..e69de29b diff --git a/data/ethereum/ethernodes.org_nodes_distribution.csv b/data/ethereum/ethernodes.org_nodes_distribution.csv new file mode 100644 index 00000000..c81268fa --- /dev/null +++ b/data/ethereum/ethernodes.org_nodes_distribution.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:945ea6a7ab5594d7f9d1d8d622a80ecba11b146cf61ab37721e674a6c40c6108 +size 1395 diff --git a/data/network-stats/README.md b/data/network-stats/README.md new file mode 100644 index 00000000..57aa3ec8 --- /dev/null +++ b/data/network-stats/README.md @@ -0,0 +1,2 @@ +This folder contains data gathered from around the web related to +network statistics such as latency and bandwidth of nodes around the world. \ No newline at end of file diff --git a/data/network-stats/speedtest-bandwidth-data/README.md b/data/network-stats/speedtest-bandwidth-data/README.md new file mode 100644 index 00000000..9e1f91e6 --- /dev/null +++ b/data/network-stats/speedtest-bandwidth-data/README.md @@ -0,0 +1,7 @@ +Source: https://www.speedtest.net/global-index/ + +Timestamp: June 12 2022 + +The bash script ```crawl-speedtest.sh``` crawls the speedtest.net global +index site to gather information on upload and download bandwidth around the +world. \ No newline at end of file diff --git a/data/network-stats/speedtest-bandwidth-data/countries.csv b/data/network-stats/speedtest-bandwidth-data/countries.csv new file mode 100644 index 00000000..2132baad --- /dev/null +++ b/data/network-stats/speedtest-bandwidth-data/countries.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a0d6e96e413a8f6f0f9a69188114d381f4281e5c8d982f45fdafab65a2056cb +size 1716 diff --git a/data/network-stats/speedtest-bandwidth-data/crawl-speedtest.sh b/data/network-stats/speedtest-bandwidth-data/crawl-speedtest.sh new file mode 100755 index 00000000..3dab1d43 --- /dev/null +++ b/data/network-stats/speedtest-bandwidth-data/crawl-speedtest.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo -n > data.csv +while read line; do + echo $line + echo $line,$(wget -qO- "https://www.speedtest.net/global-index/$line" | grep 'class="number">' | cut -d'>' -f2 | cut -d'<' -f1 | tr '\n' ', ') >> data.csv +done < countries.csv diff --git a/data/network-stats/speedtest-bandwidth-data/data.csv b/data/network-stats/speedtest-bandwidth-data/data.csv new file mode 100644 index 00000000..1a613264 --- /dev/null +++ b/data/network-stats/speedtest-bandwidth-data/data.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8903d972324653069f3f6645034d9be6569a41aa4bd0917ba428cdd9ef7d34d6 +size 14804 diff --git a/data/network-stats/speedtest-bandwidth-data/intersection.csv b/data/network-stats/speedtest-bandwidth-data/intersection.csv new file mode 100644 index 00000000..bcc08cb0 --- /dev/null +++ b/data/network-stats/speedtest-bandwidth-data/intersection.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23fbbcb7050b2e526397245afffc4eea74c70db8df1fdbcc9bbe83ddba5084fe +size 2138 diff --git a/data/network-stats/wonderproxy-ping/README.md b/data/network-stats/wonderproxy-ping/README.md new file mode 100644 index 00000000..9b8d4e9d --- /dev/null +++ b/data/network-stats/wonderproxy-ping/README.md @@ -0,0 +1,9 @@ +source: https://wonderproxy.com/blog/a-day-in-the-life-of-the-internet/ + +Timestamp: 2020-10-28 + +This data is acquired from a set of servers around the world and contains +ping round trip time between each two of them. + +The octave file ```ping_tables_countries.m``` compiles the data to form a +matrix of latencies between any two servers. \ No newline at end of file diff --git a/data/network-stats/wonderproxy-ping/countries-vertical.csv b/data/network-stats/wonderproxy-ping/countries-vertical.csv new file mode 100644 index 00000000..18134904 --- /dev/null +++ b/data/network-stats/wonderproxy-ping/countries-vertical.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcc54211b123464d6a42b2058d03562079259512e6b2e8932272168be17701a5 +size 782 diff --git a/data/network-stats/wonderproxy-ping/countries.csv b/data/network-stats/wonderproxy-ping/countries.csv new file mode 100644 index 00000000..2a362548 --- /dev/null +++ b/data/network-stats/wonderproxy-ping/countries.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d297211fa295c0580eadb768a81922b1519c15eb7203fb99c5cec6426321ea9 +size 782 diff --git a/data/network-stats/wonderproxy-ping/latency_matrix.csv b/data/network-stats/wonderproxy-ping/latency_matrix.csv new file mode 100644 index 00000000..fac099f6 --- /dev/null +++ b/data/network-stats/wonderproxy-ping/latency_matrix.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1f36b5e9527ba142bdc7543d6307b7766adbb6a994b42c4fd7cf082b955e179 +size 140006 diff --git a/data/network-stats/wonderproxy-ping/latency_matrix_with_names.csv b/data/network-stats/wonderproxy-ping/latency_matrix_with_names.csv new file mode 100644 index 00000000..ee6b7844 --- /dev/null +++ b/data/network-stats/wonderproxy-ping/latency_matrix_with_names.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3c7ae66ddd4e38dff54a58ba1d1538d75a2ea2a208eb7d8faefd8052e917202 +size 53465 diff --git a/data/network-stats/wonderproxy-ping/ping_table_countries.m b/data/network-stats/wonderproxy-ping/ping_table_countries.m new file mode 100644 index 00000000..affbc8ae --- /dev/null +++ b/data/network-stats/wonderproxy-ping/ping_table_countries.m @@ -0,0 +1,93 @@ +% name of input files +servers_file_csv = "servers-2020-07-19.csv"; +pings_file_csv = "pings-2020-07-19-2020-07-20.csv"; + +countries_output_csv = "countries.csv"; +latency_matrix_csv = "latency_matrix.csv"; + +%% load package for csv2cell() function +pkg load io + +% load csv file for servers +servers = csv2cell(servers_file_csv); + +% select ids and countries from input file +ids = cellfun(@(x) str2num(x)+1,{servers{2:end,1}}'); +countries = {servers{2:end,6}}; + +clear servers + +% make countries unique (each country can have multiple servers) +[countries_unique, ~, index2country] = unique(countries); + +% save the unique country names +cell2csv(countries_output_csv, countries_unique) +clear countries + +% make a vector that can map any id to a unique country names index +id2index = ids(index2country); +id2cidx = zeros(1,max(ids)); +id2cidx(ids) = index2country; + +% calculate total number of unique country names +num_countries = length(countries_unique); + +%% read ping round trip time values +ping = csv2cell(pings_file_csv); + +% select important values of source server distenation server and ping rtt time +ping_len = size(ping,1); +ping_src_id = zeros(1,ping_len-1); +ping_dst_id = zeros(1,ping_len-1); +ping_rtt_avg = zeros(1,ping_len-1); +for i = 2:size(ping,1) + ping_src_id(i-1) = str2double(ping(i,1))+1; + ping_dst_id(i-1) = str2double(ping(i,2))+1; + ping_rtt_avg(i-1) = str2double(ping(i,5)); +endfor + +% clear large cell of ping data to save memory +clear ping + +% remove unknown server ids from ping data +unknown_servers = union(setdiff(ping_src_id,ids), setdiff(ping_dst_id,ids)); +unknown_servers_lines = zeros(1,length(ping_src_id)); +for i=1:length(unknown_servers) + unknown_servers_lines = or(unknown_servers_lines, ping_src_id==unknown_servers(i)); + unknown_servers_lines = or(unknown_servers_lines, ping_dst_id==unknown_servers(i)); +endfor +src_id = ping_src_id(~unknown_servers_lines); +dst_id = ping_dst_id(~unknown_servers_lines); +rtt_avg = ping_rtt_avg(~unknown_servers_lines); + +% calculate average latency time by passing over the ping rtt times one time +avg_latency = zeros(num_countries); +num_already_seen = zeros(num_countries); +for i = 1:length(rtt_avg) + if src_id(i) != dst_id(i) + src = id2cidx(src_id(i)); + dst = id2cidx(dst_id(i)); + if num_already_seen(src, dst) == 0 + avg_latency(src, dst) = rtt_avg(i)/2; + num_already_seen(src, dst) = 1; + else + num = num_already_seen(src, dst); + old_avg = avg_latency(src, dst); + new_avg = rtt_avg(i)/2; + avg_latency(src, dst) = (num*old_avg + new_avg) / (num+1); + num_already_seen(src, dst) += 1; + endif + endif +endfor + +% change the latency inside each country with only 1 server to average of others +inside_country_latencies = logical(eye(num_countries)); +one_server_countries = and(inside_country_latencies, avg_latency == 0); +many_server_countries = and(inside_country_latencies, avg_latency ~= 0); +inside_latency_avg = mean(avg_latency(many_server_countries)); +avg_latency(one_server_countries) = inside_latency_avg; + +% calculate average latency to be used for nodes from other locations not listed +avg_latency = [[avg_latency; mean(avg_latency)], [mean(avg_latency,2); mean(avg_latency(logical(eye(num_countries))))]]; + +csvwrite(latency_matrix_csv, avg_latency) diff --git a/data/network-stats/wonderproxy-ping/pings-2020-07-19-2020-07-20.7z b/data/network-stats/wonderproxy-ping/pings-2020-07-19-2020-07-20.7z new file mode 100644 index 00000000..e95cf1b6 Binary files /dev/null and b/data/network-stats/wonderproxy-ping/pings-2020-07-19-2020-07-20.7z differ diff --git a/data/network-stats/wonderproxy-ping/servers-2020-07-19.csv b/data/network-stats/wonderproxy-ping/servers-2020-07-19.csv new file mode 100644 index 00000000..a97fbd22 --- /dev/null +++ b/data/network-stats/wonderproxy-ping/servers-2020-07-19.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:626fdc4be97cdbfd4da9fae20b5a7f58abf1220e34859b5d21566be18b9b508c +size 22362 diff --git a/javadoc/allclasses-frame.html b/javadoc/allclasses-frame.html deleted file mode 100644 index c0e25e28..00000000 --- a/javadoc/allclasses-frame.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - -All Classes (jabs 0.2.0 API) - - - - - -

All Classes

-
- -
- - diff --git a/javadoc/allclasses-index.html b/javadoc/allclasses-index.html deleted file mode 100644 index fad963b3..00000000 --- a/javadoc/allclasses-index.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - -All Classes and Interfaces (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

All Classes and Interfaces

-
-
-
-
-
-
Class
-
Description
- -
 
- -
 
-
AbstractConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
-
 
- -
 
-
AbstractDAGBasedConsensus<B extends Block<B>,T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
-
An abstract class for defining a scenario.
-
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
Block<B extends Block<B>>
-
 
- -
 
- -
 
- -
 
- -
 
-
BlockWithTx<T extends Tx<T>>
-
 
-
CasperFFG<B extends SingleParentBlock<B>,T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
-
ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
-
 
-
DAGsper<B extends SingleParentBlock<B>,T extends Tx<T>>
-
 
- -
 
-
DAGsperVote<B extends Block<B>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
GhostProtocol<B extends SingleParentBlock<B>,T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
LocalBlock<B extends Block<B>>
-
-
LocalBlock is used for blocks that resides inside a nodes memory.
-
- -
-
A DAG graph of blocks received by a node.
-
- -
-
A tree graph of blocks received by a node.
-
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
NetworkStats<R extends Enum<R>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
PBFT<B extends SingleParentBlock<B>,T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
PeerDLTNode<B extends Block<B>,T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
- -
 
-
Tx<T extends Tx<T>>
-
 
- -
 
- -
 
- -
 
- -
 
-
VotingBasedConsensus<B extends Block<B>,T extends Tx<T>>
-
 
-
Xolph<B extends SingleParentBlock<B>,T extends Tx<T>>
-
 
-
-
-
-
- -
-
- - diff --git a/javadoc/allclasses-noframe.html b/javadoc/allclasses-noframe.html deleted file mode 100644 index 3d040971..00000000 --- a/javadoc/allclasses-noframe.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - -All Classes (jabs 0.2.0 API) - - - - - -

All Classes

-
- -
- - diff --git a/javadoc/allpackages-index.html b/javadoc/allpackages-index.html deleted file mode 100644 index 8aae5620..00000000 --- a/javadoc/allpackages-index.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - -All Packages (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

All Packages

-
-
Package Summary
- -
- -
-
- - diff --git a/javadoc/constant-values.html b/javadoc/constant-values.html deleted file mode 100644 index f139d974..00000000 --- a/javadoc/constant-values.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - -Constant Field Values (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Constant Field Values

-
-

Contents

- -
-
-
-

jabs.ledgerdata.*

- - - -
-
-

jabs.network.*

- - - - - - - - - -
-
- -
-
- - diff --git a/javadoc/deprecated-list.html b/javadoc/deprecated-list.html deleted file mode 100644 index ad2655a4..00000000 --- a/javadoc/deprecated-list.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Deprecated List (jabs 0.2.0 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Deprecated API

-

Contents

-
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/element-list b/javadoc/element-list deleted file mode 100644 index 24be8983..00000000 --- a/javadoc/element-list +++ /dev/null @@ -1,31 +0,0 @@ -jabs -jabs.config -jabs.consensus.algorithm -jabs.consensus.blockchain -jabs.ledgerdata -jabs.ledgerdata.bitcoin -jabs.ledgerdata.casper -jabs.ledgerdata.dagsper -jabs.ledgerdata.ethereum -jabs.ledgerdata.pbft -jabs.ledgerdata.tangle -jabs.log -jabs.network.message -jabs.network.networks -jabs.network.networks.stats -jabs.network.networks.stats.lan -jabs.network.networks.stats.sixglobalregions -jabs.network.networks.stats.sixglobalregions.bitcoin -jabs.network.networks.stats.sixglobalregions.ethereum -jabs.network.networks.stats.sixglobalregions.iota -jabs.network.node -jabs.network.node.nodes -jabs.network.node.nodes.bitcoin -jabs.network.node.nodes.ethereum -jabs.network.node.nodes.iota -jabs.network.node.nodes.pbft -jabs.network.p2p -jabs.scenario -jabs.simulator -jabs.simulator.event -jabs.simulator.randengine diff --git a/javadoc/index-all.html b/javadoc/index-all.html deleted file mode 100644 index fc72c60e..00000000 --- a/javadoc/index-all.html +++ /dev/null @@ -1,2456 +0,0 @@ - - - - -Index (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Index

-
-A B C D E F G H I J L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form -

A

-
-
AbstractBlockchainP2PConnections - Class in jabs.network.p2p
-
 
-
AbstractBlockchainP2PConnections(int, int) - Constructor for class AbstractBlockchainP2PConnections
-
 
-
AbstractChainBasedConsensus<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
AbstractChainBasedConsensus(LocalBlockTree<B>) - Constructor for class AbstractChainBasedConsensus
-
-
Creates a Abstract Blockchain Consensus Algorithm
-
-
AbstractConsensusAlgorithm<B extends Block<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
AbstractConsensusAlgorithm() - Constructor for class AbstractConsensusAlgorithm
-
 
-
AbstractCSVLogger - Class in jabs.log
-
 
-
AbstractCSVLogger(Writer) - Constructor for class AbstractCSVLogger
-
-
creates an abstract CSV logger
-
-
AbstractCSVLogger(Path) - Constructor for class AbstractCSVLogger
-
-
creates an abstract CSV logger
-
-
AbstractDAGBasedConsensus<B extends Block<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
AbstractDAGBasedConsensus(LocalBlockDAG<B>) - Constructor for class AbstractDAGBasedConsensus
-
-
Creates an Abstract DAG-based Consensus Algorithm
-
-
AbstractLogger - Class in jabs.log
-
 
-
AbstractLogger() - Constructor for class AbstractLogger
-
 
-
AbstractP2PConnections - Class in jabs.network.p2p
-
 
-
AbstractP2PConnections() - Constructor for class AbstractP2PConnections
-
 
-
AbstractPacketProcessor - Class in jabs.simulator.event
-
 
-
AbstractPacketProcessor(Simulator, Network, RandomnessEngine, Node) - Constructor for class AbstractPacketProcessor
-
 
-
AbstractPacketProcessor.TimedPacket - Record Class in jabs.simulator.event
-
 
-
AbstractPoissonProcess - Class in jabs.simulator.event
-
 
-
AbstractPoissonProcess(Simulator, RandomnessEngine, double) - Constructor for class AbstractPoissonProcess
-
 
-
AbstractScenario - Class in jabs.scenario
-
-
An abstract class for defining a scenario.
-
-
AbstractScenario(String, long, AbstractLogger) - Constructor for class AbstractScenario
-
-
creates an abstract scenario with a user defined name
-
-
AbstractTxPoissonProcess - Class in jabs.simulator.event
-
 
-
AbstractTxPoissonProcess(Simulator, RandomnessEngine, double) - Constructor for class AbstractTxPoissonProcess
-
 
-
acceptedBlocks - Variable in class AbstractConsensusAlgorithm
-
-
All accepted blocks (received and agreed) for the consensus algorithm
-
-
acceptedTxs - Variable in class AbstractConsensusAlgorithm
-
-
All accepted transactions (residing inside accepted blocks)
-
-
add(B) - Method in class LocalBlockDAG
-
-
Adds a received block from network to the local DAG block.
-
-
add(B) - Method in class LocalBlockTree
-
-
Adds a received block from network to the local tree block.
-
-
addMiner(MinerNode) - Method in class GlobalProofOfWorkNetwork
-
 
-
addNode(Node) - Method in class GlobalNetwork
-
 
-
addNode(Node) - Method in class Network
-
 
-
addNode(Node) - Method in class PBFTLocalLANNetwork
-
 
-
addNode(Node, NodeType) - Method in class Network
-
 
-
addOutbound(Node) - Method in class AbstractBlockchainP2PConnections
-
 
-
addToDownLinkQueue(Packet) - Method in class NodeNetworkInterface
-
-
Adds the packet to node's receiving process if the network interface is not down
-
-
addToLinkQueue(Packet, AbstractPacketProcessor) - Method in class NodeNetworkInterface
-
-
Adds the packet to the queue of that link (up-link / down-link)
-
-
addToQueue(Packet) - Method in class AbstractPacketProcessor
-
 
-
addToUpLinkQueue(Packet) - Method in class NodeNetworkInterface
-
-
Adds the packet to node's sending process if the network interface is not down
-
-
addVote(List<B>, Node, HashMap<Integer, HashMap<Node, B>>, HashMap<B, HashSet<Node>>, HashMap<Integer, HashSet<B>>) - Method in class DAGsper
-
 
-
alreadySeenBlocks - Variable in class PeerBlockchainNode
-
 
-
alreadySeenBlocks - Variable in class PeerDLTNode
-
 
-
alreadySeenTxs - Variable in class PeerBlockchainNode
-
 
-
alreadySeenTxs - Variable in class PeerDLTNode
-
 
-
alreadySeenVotes - Variable in class PeerBlockchainNode
-
 
-
alreadySeenVotes - Variable in class PeerDLTNode
-
 
-
alreadyUncledBlocks - Variable in class EthereumMinerNode
-
 
-
areBlocksConnected(B, B) - Method in class LocalBlockDAG
-
-
Determines if two blocks are connected to each other or not.
-
-
areBlocksConnected(B, B) - Method in class LocalBlockTree
-
-
Determines if two blocks are connected to each other or not.
-
-
ASIA_PACIFIC - Enum constant in enum class SixRegions
-
 
-
AUSTRALIA - Enum constant in enum class SixRegions
-
 
-
averageBlockInterval - Variable in class BitcoinGlobalNetworkScenario
-
 
-
averageTimeBetweenGenerations - Variable in class AbstractPoissonProcess
-
 
-
-

B

-
-
BasicData - Class in jabs.ledgerdata
-
 
-
BasicData(int) - Constructor for class BasicData
-
 
-
BITCOIN_BLOCK_HEADER_SIZE - Static variable in class BlockFactory
-
 
-
BITCOIN_BLOCK_SIZE_2020 - Static variable in class BlockFactory
-
 
-
BITCOIN_BLOCK_SIZE_2020_BINS - Static variable in class BlockFactory
-
 
-
BITCOIN_HASH_POWER_DISTRIBUTION_2022 - Static variable in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
-
Hash power probability distribution (CDF) in Bitcoin Network
-
-
BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022 - Static variable in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
-
Hash power probability distribution (Hash Power Values) in Bitcoin Network presented in ExaHash per second
-
-
BITCOIN_INV_SIZE - Static variable in class BlockFactory
-
 
-
BITCOIN_MAX_CONNECTIONS - Static variable in class BitcoinCoreP2P
-
 
-
BITCOIN_MINER_REGION_DISTRIBUTION_2020 - Static variable in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
BITCOIN_NUM_MINERS_2022 - Static variable in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
BITCOIN_NUM_OUTBOUND_CONNECTIONS - Static variable in class BitcoinCoreP2P
-
 
-
BITCOIN_REGION_DISTRIBUTION_2019 - Static variable in class BitcoinNodeGlobalNetworkStats6Regions
-
 
-
BITCOIN_TRANSACTION_GAS_DISTRIBUTION - Static variable in class TransactionFactory
-
 
-
BITCOIN_TRANSACTION_SIZE_BINS - Static variable in class TransactionFactory
-
 
-
BITCOIN_TRANSACTION_SIZE_DISTRIBUTION - Static variable in class TransactionFactory
-
 
-
BitcoinAllMessagesLogger - Class in jabs.log
-
 
-
BitcoinAllMessagesLogger(Writer) - Constructor for class BitcoinAllMessagesLogger
-
-
creates an abstract CSV logger
-
-
BitcoinAllMessagesLogger(Path) - Constructor for class BitcoinAllMessagesLogger
-
-
creates an abstract CSV logger
-
-
BitcoinBlock - Class in jabs.ledgerdata.bitcoin
-
 
-
BitcoinBlock(int, int, double, Node, BitcoinBlock, double) - Constructor for class BitcoinBlock
-
 
-
bitcoinBlockGenerationInterval - Static variable in class BitcoinGlobalProofOfWorkNetwork
-
 
-
BitcoinBlockWithTx - Class in jabs.ledgerdata.bitcoin
-
 
-
BitcoinBlockWithTx(int, double, BitcoinBlock, BitcoinMinerNode, Set<BitcoinTx>, double) - Constructor for class BitcoinBlockWithTx
-
 
-
BitcoinCoreP2P - Class in jabs.network.p2p
-
 
-
BitcoinCoreP2P() - Constructor for class BitcoinCoreP2P
-
 
-
BitcoinCoreP2P(int, int) - Constructor for class BitcoinCoreP2P
-
 
-
BitcoinGlobalNetworkScenario - Class in jabs.scenario
-
 
-
BitcoinGlobalNetworkScenario(String, long, AbstractLogger, long, double) - Constructor for class BitcoinGlobalNetworkScenario
-
-
creates an abstract scenario with a user defined name
-
-
BitcoinGlobalProofOfWorkNetwork<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
BitcoinGlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats<R>) - Constructor for class BitcoinGlobalProofOfWorkNetwork
-
 
-
BitcoinGlobalProofOfWorkNetworkWithoutTx<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
BitcoinGlobalProofOfWorkNetworkWithoutTx(RandomnessEngine, ProofOfWorkGlobalNetworkStats<R>) - Constructor for class BitcoinGlobalProofOfWorkNetworkWithoutTx
-
 
-
BitcoinMinerNode - Class in jabs.network.node.nodes.bitcoin
-
 
-
BitcoinMinerNode(Simulator, Network, int, long, long, BitcoinBlock, long) - Constructor for class BitcoinMinerNode
-
 
-
BitcoinMinerNode(Simulator, Network, int, long, long, BitcoinBlock, long, AbstractChainBasedConsensus<BitcoinBlock, BitcoinTx>) - Constructor for class BitcoinMinerNode
-
 
-
BitcoinMinerNodeWithoutTx - Class in jabs.network.node.nodes.bitcoin
-
 
-
BitcoinMinerNodeWithoutTx(Simulator, Network, int, long, long, long, BitcoinBlock, AbstractChainBasedConsensus<BitcoinBlock, BitcoinTx>) - Constructor for class BitcoinMinerNodeWithoutTx
-
 
-
BitcoinMinerNodeWithoutTx(Simulator, Network, int, long, long, BitcoinBlock, long) - Constructor for class BitcoinMinerNodeWithoutTx
-
 
-
BitcoinNode - Class in jabs.network.node.nodes.bitcoin
-
 
-
BitcoinNode(Simulator, Network, int, long, long, BitcoinBlock) - Constructor for class BitcoinNode
-
 
-
BitcoinNode(Simulator, Network, int, long, long, BitcoinBlock, AbstractChainBasedConsensus<BitcoinBlock, BitcoinTx>) - Constructor for class BitcoinNode
-
 
-
BitcoinNodeGlobalNetworkStats6Regions - Class in jabs.network.networks.stats.sixglobalregions.bitcoin
-
 
-
BitcoinNodeGlobalNetworkStats6Regions(RandomnessEngine) - Constructor for class BitcoinNodeGlobalNetworkStats6Regions
-
 
-
BitcoinProofOfWorkGlobalNetworkStats6Regions - Class in jabs.network.networks.stats.sixglobalregions.bitcoin
-
 
-
BitcoinProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine) - Constructor for class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
BitcoinTx - Class in jabs.ledgerdata.bitcoin
-
 
-
BitcoinTx(int) - Constructor for class BitcoinTx
-
 
-
block - Variable in class LocalBlock
-
-
The block that is received by node
-
-
block - Variable in class PBFTBlockVote
-
 
-
Block<B extends Block<B>> - Class in jabs.ledgerdata
-
 
-
Block(int, int, double, Node, List<B>, int) - Constructor for class Block
-
 
-
BLOCK - Enum constant in enum class Data.DataType
-
 
-
blockAccWeights - Variable in class TangleIOTA
-
 
-
BlockDeliveryLogger - Class in jabs.log
-
 
-
BlockDeliveryLogger(Writer) - Constructor for class BlockDeliveryLogger
-
-
creates an abstract CSV logger
-
-
BlockDeliveryLogger(Path) - Constructor for class BlockDeliveryLogger
-
-
creates an abstract CSV logger
-
-
BlockFactory - Class in jabs.network.networks
-
 
-
BlockFactory() - Constructor for class BlockFactory
-
 
-
blockFinalizationTimes - Variable in class CasperFFG
-
 
-
blockFinalizationTimes - Variable in class DAGsper
-
 
-
blockFinalizationTimes - Variable in class EthereumCasperNetworkScenario
-
 
-
blockFinalizationTimes - Variable in class EthereumDAGsperNetworkScenario
-
 
-
BlockGenerationLogger - Class in jabs.log
-
 
-
BlockGenerationLogger(Writer) - Constructor for class BlockGenerationLogger
-
-
creates an abstract CSV logger
-
-
BlockGenerationLogger(Path) - Constructor for class BlockGenerationLogger
-
-
creates an abstract CSV logger
-
-
blockGenerationProcess - Variable in class IOTANode
-
 
-
blockGenerationRate - Variable in class EthereumCasperNetworkScenario
-
 
-
blockGenerationRate - Variable in class EthereumDAGsperNetworkScenario
-
 
-
blockGenerationRate - Variable in class NormalEthereumNetworkScenario
-
 
-
BlockMiningProcess - Class in jabs.simulator.event
-
 
-
BlockMiningProcess(Simulator, RandomnessEngine, double, MinerNode) - Constructor for class BlockMiningProcess
-
 
-
blockTx - Variable in class TangleBlock
-
 
-
BlockWithTx<T extends Tx<T>> - Interface in jabs.ledgerdata
-
 
-
bringUp() - Method in class NodeNetworkInterface
-
-
Restores the node network interface to a working state (node can send and receive packets again)
-
-
broadcastBlockInvMessage(BitcoinBlock) - Method in class BitcoinNode
-
 
-
broadcastBlockInvMessage(TangleBlock) - Method in class IOTANode
-
 
-
broadcastMessage(Message) - Method in class Node
-
-
Forces the node to broadcast a message to all its neighbors
-
-
broadcastNewBlockAndBlockHashes(EthereumBlock) - Method in class EthereumNode
-
 
-
broadcastTransaction(EthereumTx) - Method in class EthereumNode
-
 
-
broadcastTransaction(EthereumTx, Node) - Method in class EthereumNode
-
 
-
broadcastTxInvMessage(BitcoinTx) - Method in class BitcoinNode
-
 
-
-

C

-
-
CASPER_VOTE_SIZE - Static variable in class CasperFFGLink
-
 
-
CASPER_VOTE_SIZE - Static variable in class CasperFFGVote
-
 
-
CasperFFG<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
CasperFFG(LocalBlockTree<B>, int, int) - Constructor for class CasperFFG
-
 
-
CasperFFGGlobalBlockchainNetwork<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
CasperFFGGlobalBlockchainNetwork(RandomnessEngine, int, ProofOfWorkGlobalNetworkStats<R>) - Constructor for class CasperFFGGlobalBlockchainNetwork
-
 
-
CasperFFGLink<B extends Block<B>> - Class in jabs.ledgerdata.casper
-
 
-
CasperFFGLink(B, B) - Constructor for class CasperFFGLink
-
 
-
CasperFFGVote<B extends Block<B>> - Class in jabs.ledgerdata.casper
-
 
-
CasperFFGVote(Node, CasperFFGLink<B>) - Constructor for class CasperFFGVote
-
 
-
CasperFinalLogger - Class in jabs.log
-
 
-
CasperFinalLogger() - Constructor for class CasperFinalLogger
-
 
-
checkpointSpace - Variable in class CasperFFG
-
 
-
checkpointSpace - Variable in class DAGsper
-
 
-
checkpointSpace - Variable in class CasperFFGGlobalBlockchainNetwork
-
 
-
checkpointSpace - Variable in class DAGsperGlobalBlockchainNetwork
-
 
-
checkpointSpace - Variable in class EthereumCasperNetworkScenario
-
 
-
checkpointSpace - Variable in class EthereumDAGsperNetworkScenario
-
 
-
checkVotes(PBFTBlockVote<B>, B, HashMap<B, HashMap<Node, Vote>>, HashSet<B>, PBFT.PBFTPhase) - Method in class PBFT
-
 
-
children - Variable in class LocalBlock
-
-
All children that the block has inside node local memory
-
-
COMMIT - Enum constant in enum class PBFTBlockVote.VoteType
-
 
-
committedBlocks - Variable in class PBFT
-
 
-
COMMITTING - Enum constant in enum class PBFT.PBFTPhase
-
 
-
commitVotes - Variable in class PBFT
-
 
-
compareTo(Block<B>) - Method in class Block
-
 
-
compareTo(AbstractPacketProcessor.TimedPacket) - Method in record class AbstractPacketProcessor.TimedPacket
-
 
-
compareTo(Simulator.ScheduledEvent) - Method in record class Simulator.ScheduledEvent
-
-
This function is used by the priority queue to sort the scheduled events
-
-
connectNetwork(Network, RandomnessEngine) - Method in class NodeNetworkInterface
-
-
Creates two processes (ongoing events) that handle receiving and sending packets and their respective latencies
-
-
connectToNetwork(Network) - Method in class AbstractBlockchainP2PConnections
-
 
-
connectToNetwork(Network) - Method in class AbstractP2PConnections
-
 
-
connectToNetwork(Network) - Method in class PBFTP2P
-
 
-
consensusAlgorithm - Variable in class PeerBlockchainNode
-
 
-
consensusAlgorithm - Variable in class PeerDLTNode
-
 
-
ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>> - Interface in jabs.consensus.algorithm
-
 
-
contains(B) - Method in class LocalBlockDAG
-
-
Checks if a certain network block is available in the local block DAG of the node.
-
-
crash() - Method in class Node
-
-
Simulates a crash fault.
-
-
createNetwork() - Method in class AbstractScenario
-
-
Create the network and set up the simulation environment.
-
-
createNetwork() - Method in class BitcoinGlobalNetworkScenario
-
 
-
createNetwork() - Method in class EthereumCasperNetworkScenario
-
 
-
createNetwork() - Method in class EthereumDAGsperNetworkScenario
-
 
-
createNetwork() - Method in class NormalEthereumNetworkScenario
-
 
-
createNetwork() - Method in class PBFTLANScenario
-
 
-
createNewEthereumCasperMiner(Simulator, Network<R>, int, int, int) - Method in class CasperFFGGlobalBlockchainNetwork
-
 
-
createNewEthereumCasperNode(Simulator, Network<R>, int, int, int) - Method in class CasperFFGGlobalBlockchainNetwork
-
 
-
createNewEthereumDAGsperMiner(Simulator, Network<R>, int, int, int) - Method in class DAGsperGlobalBlockchainNetwork
-
 
-
createNewEthereumDAGsperNode(Simulator, Network<R>, int, int, int) - Method in class DAGsperGlobalBlockchainNetwork
-
 
-
createNewEthereumMiner(Simulator, Network<R>, int) - Method in class EthereumGlobalProofOfWorkNetwork
-
 
-
createNewEthereumNode(Simulator, Network<R>, int) - Method in class EthereumGlobalProofOfWorkNetwork
-
 
-
createNewIOTANode(Simulator, int) - Method in class TangleGlobalNetwork
-
 
-
createNewPBFTNode(Simulator, int, int) - Method in class PBFTLocalLANNetwork
-
 
-
createSampleBitcoinMinerNode(Simulator, Network<R>, int, BitcoinBlock, long) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
createSampleBitcoinMinerNodeWithoutTx(Simulator, Network<R>, int, BitcoinBlock, long) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
createSampleBitcoinNode(Simulator, Network<R>, int, BitcoinBlock) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
creationTime - Variable in class Block
-
 
-
creator - Variable in class Block
-
 
-
csvHeaderOutput() - Method in class AbstractCSVLogger
-
-
First line of CSV file which has the header information
-
-
csvHeaderOutput() - Method in class BitcoinAllMessagesLogger
-
 
-
csvHeaderOutput() - Method in class BlockDeliveryLogger
-
 
-
csvHeaderOutput() - Method in class BlockGenerationLogger
-
 
-
csvHeaderOutput() - Method in class PBFTCSVLogger
-
 
-
csvLineOutput() - Method in class AbstractCSVLogger
-
-
If the CSV Output is true the returned value of this function will be written to csv output file
-
-
csvLineOutput() - Method in class BitcoinAllMessagesLogger
-
 
-
csvLineOutput() - Method in class BlockDeliveryLogger
-
 
-
csvLineOutput() - Method in class BlockGenerationLogger
-
 
-
csvLineOutput() - Method in class PBFTCSVLogger
-
 
-
csvOutputConditionAfterEvent() - Method in class AbstractCSVLogger
-
-
If return value is true, then one line will be written to the csv output.
-
-
csvOutputConditionAfterEvent() - Method in class BitcoinAllMessagesLogger
-
 
-
csvOutputConditionAfterEvent() - Method in class BlockDeliveryLogger
-
 
-
csvOutputConditionAfterEvent() - Method in class BlockGenerationLogger
-
 
-
csvOutputConditionAfterEvent() - Method in class PBFTCSVLogger
-
 
-
csvOutputConditionBeforeEvent() - Method in class AbstractCSVLogger
-
-
If return value is true, then one line will be written to the csv output.
-
-
csvOutputConditionBeforeEvent() - Method in class BitcoinAllMessagesLogger
-
 
-
csvOutputConditionBeforeEvent() - Method in class BlockDeliveryLogger
-
 
-
csvOutputConditionBeforeEvent() - Method in class BlockGenerationLogger
-
 
-
csvOutputConditionBeforeEvent() - Method in class PBFTCSVLogger
-
 
-
csvOutputConditionFinal() - Method in class AbstractCSVLogger
-
-
If return value is true, then one line will be written to the csv output.
-
-
csvOutputConditionFinal() - Method in class BitcoinAllMessagesLogger
-
 
-
csvOutputConditionFinal() - Method in class BlockDeliveryLogger
-
 
-
csvOutputConditionFinal() - Method in class BlockGenerationLogger
-
 
-
csvOutputConditionFinal() - Method in class PBFTCSVLogger
-
 
-
csvStartingComment() - Method in class AbstractCSVLogger
-
-
Adds the Starting Comment to the output CSV file
-
-
csvStartingComment() - Method in class BitcoinAllMessagesLogger
-
 
-
csvStartingComment() - Method in class BlockDeliveryLogger
-
 
-
csvStartingComment() - Method in class BlockGenerationLogger
-
 
-
csvStartingComment() - Method in class PBFTCSVLogger
-
 
-
currentMainChainHead - Variable in class AbstractChainBasedConsensus
-
-
The latest block agreed by consensus algorithm (Current agreed state by the Node)
-
-
currentTime - Variable in class Simulator
-
-
The simulation execution time of the most recent event
-
-
currentViewNumber - Variable in class PBFT
-
 
-
-

D

-
-
DAGsper<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
DAGsper(LocalBlockTree<B>, int, int) - Constructor for class DAGsper
-
 
-
DAGsperGlobalBlockchainNetwork<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
DAGsperGlobalBlockchainNetwork(RandomnessEngine, int, ProofOfWorkGlobalNetworkStats<R>) - Constructor for class DAGsperGlobalBlockchainNetwork
-
 
-
DAGsperVote<B extends Block<B>> - Class in jabs.ledgerdata.dagsper
-
 
-
DAGsperVote(Node, int, int, B, HashSet<Integer>) - Constructor for class DAGsperVote
-
 
-
data - Variable in class Hash
-
 
-
data - Variable in class DataMessage
-
 
-
Data - Class in jabs.ledgerdata
-
 
-
Data(int, int) - Constructor for class Data
-
 
-
Data.DataType - Enum Class in jabs.ledgerdata
-
 
-
DataMessage - Class in jabs.network.message
-
 
-
DataMessage(Data) - Constructor for class DataMessage
-
 
-
DataType() - Constructor for enum class Data.DataType
-
 
-
DEFAULT_GHOST_WEIGHT - Static variable in class GhostProtocol
-
 
-
DeterministicFinalityConsensus<B extends Block<B>,T extends Tx<T>> - Interface in jabs.consensus.algorithm
-
 
-
difficulty - Variable in class BitcoinBlock
-
 
-
difficulty - Variable in class EthereumBlock
-
 
-
DOWNLOAD_BANDWIDTH_BIN - Static variable in class GlobalNetworkStats6Region
-
 
-
DOWNLOAD_BANDWIDTH_DISTRIBUTION - Static variable in class GlobalNetworkStats6Region
-
 
-
downloadBandwidth - Variable in class NodeNetworkInterface
-
-
Node's total download bandwidth
-
-
-

E

-
-
enableFinalizationTimeRecords(DescriptiveStatistics) - Method in class CasperFFG
-
 
-
enableFinalizationTimeRecords(DescriptiveStatistics) - Method in class DAGsper
-
 
-
equals(Object) - Method in class CasperFFGLink
-
 
-
equals(Object) - Method in record class AbstractPacketProcessor.TimedPacket
-
-
Indicates whether some other object is "equal to" this one.
-
-
equals(Object) - Method in record class Simulator.ScheduledEvent
-
-
Indicates whether some other object is "equal to" this one.
-
-
ETHEREUM_BLOCK_HASH_SIZE - Static variable in class BlockFactory
-
 
-
ETHEREUM_BLOCK_HEADER_SIZE - Static variable in class BlockFactory
-
 
-
ETHEREUM_DIAL_RATIO - Static variable in class EthereumGethP2P
-
 
-
ETHEREUM_GENESIS_BLOCK - Static variable in class EthereumNode
-
 
-
ETHEREUM_HASH_POWER_DISTRIBUTION - Static variable in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
-
Hash power probability distribution (CDF) in Ethereum Network
-
-
ETHEREUM_HASH_POWER_DISTRIBUTION_BIN - Static variable in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
-
Hash power probability distribution (Hash Power Values) in Ethereum Network
-
-
ETHEREUM_HELLO_MESSAGE_SIZE - Static variable in class BlockFactory
-
 
-
ETHEREUM_MAX_PEER_COUNT - Static variable in class EthereumGethP2P
-
 
-
ETHEREUM_MIN_DIFFICULTY - Static variable in class BlockFactory
-
 
-
ETHEREUM_MIN_DIFFICULTY - Static variable in class TransactionFactory
-
 
-
ETHEREUM_MINER_REGION_DISTRIBUTION_2020 - Static variable in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
ETHEREUM_NUM_MINERS_2020 - Static variable in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
ETHEREUM_NUM_NODES_2020 - Static variable in class EthereumNodeGlobalNetworkStats6Regions
-
 
-
ETHEREUM_NUM_NODES_2022 - Static variable in class BitcoinNodeGlobalNetworkStats6Regions
-
 
-
ETHEREUM_REGION_DISTRIBUTION_2020 - Static variable in class EthereumNodeGlobalNetworkStats6Regions
-
 
-
ETHEREUM_TRANSACTION_GAS_BINS - Static variable in class TransactionFactory
-
 
-
ETHEREUM_TRANSACTION_SIZE_BINS - Static variable in class TransactionFactory
-
 
-
ETHEREUM_TRANSACTION_SIZE_DISTRIBUTION - Static variable in class TransactionFactory
-
 
-
EthereumBlock - Class in jabs.ledgerdata.ethereum
-
 
-
EthereumBlock(int, int, double, EthereumMinerNode, EthereumBlock, Set<EthereumBlock>, long) - Constructor for class EthereumBlock
-
 
-
EthereumBlockWithTx - Class in jabs.ledgerdata.ethereum
-
 
-
EthereumBlockWithTx(int, double, EthereumMinerNode, EthereumBlock, Set<EthereumBlock>, Set<EthereumTx>, long) - Constructor for class EthereumBlockWithTx
-
 
-
EthereumCasperMiner - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumCasperMiner(Simulator, Network, int, long, long, long, int, int) - Constructor for class EthereumCasperMiner
-
 
-
EthereumCasperNetworkScenario - Class in jabs.scenario
-
 
-
EthereumCasperNetworkScenario(long, AbstractLogger, int, int, int, long, double, double) - Constructor for class EthereumCasperNetworkScenario
-
 
-
EthereumCasperNode - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumCasperNode(Simulator, Network, int, long, long, int, int) - Constructor for class EthereumCasperNode
-
 
-
EthereumDAGsperMiner - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumDAGsperMiner(Simulator, Network, int, long, long, long, int, int) - Constructor for class EthereumDAGsperMiner
-
 
-
EthereumDAGsperNetworkScenario - Class in jabs.scenario
-
 
-
EthereumDAGsperNetworkScenario(long, AbstractLogger, int, int, int, double, double, double) - Constructor for class EthereumDAGsperNetworkScenario
-
 
-
EthereumDAGsperNode - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumDAGsperNode(Simulator, Network, int, long, long, int, int) - Constructor for class EthereumDAGsperNode
-
 
-
EthereumGethP2P - Class in jabs.network.p2p
-
 
-
EthereumGethP2P() - Constructor for class EthereumGethP2P
-
 
-
EthereumGethP2P(int, int) - Constructor for class EthereumGethP2P
-
 
-
EthereumGlobalProofOfWorkNetwork<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
EthereumGlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats<R>) - Constructor for class EthereumGlobalProofOfWorkNetwork
-
 
-
EthereumMinerNode - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumMinerNode(Simulator, Network, int, long, long, long) - Constructor for class EthereumMinerNode
-
 
-
EthereumMinerNode(Simulator, Network, int, long, long, long, AbstractChainBasedConsensus<EthereumBlock, EthereumTx>) - Constructor for class EthereumMinerNode
-
 
-
EthereumNode - Class in jabs.network.node.nodes.ethereum
-
 
-
EthereumNode(Simulator, Network, int, long, long) - Constructor for class EthereumNode
-
 
-
EthereumNode(Simulator, Network, int, long, long, AbstractChainBasedConsensus<EthereumBlock, EthereumTx>) - Constructor for class EthereumNode
-
 
-
EthereumNodeGlobalNetworkStats6Regions - Class in jabs.network.networks.stats.sixglobalregions.ethereum
-
 
-
EthereumNodeGlobalNetworkStats6Regions(RandomnessEngine) - Constructor for class EthereumNodeGlobalNetworkStats6Regions
-
 
-
EthereumProofOfWorkGlobalNetworkStats6Regions - Class in jabs.network.networks.stats.sixglobalregions.ethereum
-
 
-
EthereumProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine) - Constructor for class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
EthereumTx - Class in jabs.ledgerdata.ethereum
-
 
-
EthereumTx(int, long) - Constructor for class EthereumTx
-
 
-
EUROPE - Enum constant in enum class SixRegions
-
 
-
event - Variable in record class Simulator.ScheduledEvent
-
-
The field for the event record component.
-
-
event() - Method in record class Simulator.ScheduledEvent
-
-
Returns the corresponding event
-
-
Event - Interface in jabs.simulator.event
-
 
-
eventQueue - Variable in class Simulator
-
-
The queue that contains all events which are going to be executed.
-
-
execute() - Method in class AbstractPacketProcessor
-
 
-
execute() - Method in class AbstractPoissonProcess
-
 
-
execute() - Method in interface Event
-
 
-
execute() - Method in class PacketDeliveryEvent
-
 
-
executeNextEvent() - Method in class Simulator
-
-
Executes the next event in the event queue
-
-
-

F

-
-
finalizedBlocks - Variable in class CasperFFG
-
 
-
finalizedBlocks - Variable in class DAGsper
-
 
-
finalizedTxs - Variable in class CasperFFG
-
 
-
finalizedTxs - Variable in class DAGsper
-
 
-
finalLog() - Method in class AbstractCSVLogger
-
 
-
finalLog() - Method in class AbstractLogger
-
-
At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
-
-
finalLog() - Method in class CasperFinalLogger
-
 
-
from - Variable in class Packet
-
 
-
fVotedBlocksInHeight - Variable in class DAGsper
-
 
-
fVotesForBlock - Variable in class DAGsper
-
 
-
fVotesInHeight - Variable in class DAGsper
-
 
-
-

G

-
-
gas - Variable in class EthereumTx
-
 
-
generate() - Method in class AbstractPoissonProcess
-
 
-
generate() - Method in class AbstractTxPoissonProcess
-
 
-
generate() - Method in class BlockMiningProcess
-
 
-
generate() - Method in class TxGenerationProcessRandomNetworkNode
-
 
-
generate() - Method in class TxGenerationProcessSingleNode
-
 
-
generateAndSetNextEvent() - Method in class AbstractPoissonProcess
-
 
-
generateNewBlock() - Method in class BitcoinMinerNode
-
 
-
generateNewBlock() - Method in class BitcoinMinerNodeWithoutTx
-
 
-
generateNewBlock() - Method in class EthereumMinerNode
-
 
-
generateNewBlock() - Method in class IOTANode
-
 
-
generateNewBlock() - Method in interface MinerNode
-
 
-
generateNewTransaction() - Method in class BitcoinNode
-
 
-
generateNewTransaction() - Method in class EthereumNode
-
 
-
generateNewTransaction() - Method in class IOTANode
-
 
-
generateNewTransaction() - Method in class Node
-
-
This method forces the node to generate a new simulated transaction
-
-
generateNewTransaction() - Method in class PBFTNode
-
 
-
genesisBlock - Variable in class LocalBlockDAG
-
-
The genesis block in the local DAG.
-
-
GET_DATA_OVERHEAD - Static variable in class BlockFactory
-
 
-
getAllAncestors(B) - Method in class LocalBlockDAG
-
-
Returns a hashset of all ancestors of the input block that are available in the - local block DAG
-
-
getAllAncestors(B) - Method in class LocalBlockTree
-
-
Returns all ancestors of the input block in a HashSet
-
-
getAllAncestorsWithMinHeight(B, int) - Method in class LocalBlockDAG
-
-
Returns a hashset of all ancestors of the input block that are available in the - local block DAG and has a height larger than input height
-
-
getAllMiners() - Method in class GlobalProofOfWorkNetwork
-
 
-
getAllNodes() - Method in class Network
-
 
-
getAllSuccessors(B) - Method in class LocalBlockDAG
-
-
Returns a SortedSet of all available Successors of the input block inside - local block DAG
-
-
getAllSuccessors(B) - Method in class LocalBlockTree
-
-
Returns a SortedSet of all available Successors of the input block inside - local block tree
-
-
getAllSuccessorsWithMaxHeight(B, int) - Method in class LocalBlockDAG
-
-
Returns a SortedSet of all available Successors of the input block inside - local block DAG that have height below a certain height
-
-
getAncestorOfHeight(B, int) - Method in class LocalBlockTree
-
-
Returns the ancestor of the block with at certain height.
-
-
getAncestorsWithHeight(B, int) - Method in class LocalBlockDAG
-
-
Returns a hashset of all ancestors of the input block with certain height - that are available in the local block DAG
-
-
getBiconeBetweenBlocks(B, B) - Method in class LocalBlockDAG
-
-
Returns all the blocks between two provided blocks inside local block DAG if there is blocks - has this property
-
-
getBlock() - Method in class PBFTBlockVote
-
 
-
getCanonicalChainHead() - Method in class AbstractChainBasedConsensus
-
-
Returns the current head of the chain in blockchain consensus
-
-
getChildlessBlocks() - Method in class LocalBlockDAG
-
-
Returns all the childless blocks (tips, leaves) that exist of the local block - DAG of the node.
-
-
getChildren(B) - Method in class LocalBlockDAG
-
-
Returns all the children of a block in the local block DAG
-
-
getCommonAncestor(B, B) - Method in class LocalBlockTree
-
-
Returns the highest common ancestor of the provided two blocks.
-
-
getConsensusAlgorithm() - Method in class PeerBlockchainNode
-
 
-
getConsensusAlgorithm() - Method in class PeerDLTNode
-
 
-
getCreationTime() - Method in class Block
-
 
-
getCreator() - Method in class Block
-
 
-
getCurrentPrimaryNumber() - Method in class PBFT
-
 
-
getCurrentTime() - Method in class Simulator
-
-
Returns the simulation time that the latest event has executed
-
-
getCurrentViewNumber() - Method in class PBFT
-
 
-
getDanglingBlocks() - Method in class LocalBlockDAG
-
-
Returns set of all blocks in local DAG block that does not have any parents - available in the local block DAG.
-
-
getData() - Method in class Hash
-
 
-
getData() - Method in class DataMessage
-
 
-
getDifficulty() - Method in class BitcoinBlock
-
 
-
getDifficulty() - Method in class EthereumBlock
-
 
-
getFrom() - Method in class Packet
-
 
-
getGas() - Method in class EthereumTx
-
 
-
getGenesisBlock() - Method in class LocalBlockDAG
-
-
Returns the block wih no parents that was set in initialization of the node
-
-
getHash() - Method in class Data
-
 
-
getHash() - Method in class InvMessage
-
 
-
getHash() - Method in class RequestDataMessage
-
 
-
getHashPower() - Method in class BitcoinMinerNode
-
 
-
getHashPower() - Method in class BitcoinMinerNodeWithoutTx
-
 
-
getHashPower() - Method in class EthereumMinerNode
-
 
-
getHashPower() - Method in class IOTANode
-
 
-
getHashPower() - Method in interface MinerNode
-
 
-
getHeight() - Method in class Block
-
 
-
getLatency(SingleNodeType, SingleNodeType) - Method in class LAN100MNetworkStats
-
 
-
getLatency(SixRegions, SixRegions) - Method in class GlobalNetworkStats6Region
-
 
-
getLatency(Node, Node) - Method in class Network
-
 
-
getLatency(R, R) - Method in interface NetworkStats
-
 
-
getLink() - Method in class CasperFFGVote
-
 
-
getLocalBlock(B) - Method in class LocalBlockDAG
-
-
For any network block returns a local block inside the DAG.
-
-
getLocalBlockDAG() - Method in class AbstractDAGBasedConsensus
-
-
Returns the local Block Tree that consensus algorithm uses
-
-
getLocalBlockTree() - Method in class AbstractChainBasedConsensus
-
-
Returns the local Block Tree that consensus algorithm uses
-
-
getMessage() - Method in class Packet
-
 
-
getMiner() - Method in class BlockMiningProcess
-
 
-
getMiner(int) - Method in class GlobalProofOfWorkNetwork
-
 
-
getName() - Method in class AbstractScenario
-
 
-
getNeighbors() - Method in class AbstractP2PConnections
-
 
-
getNetwork() - Method in class Node
-
-
Returns node's network
-
-
getNetwork() - Method in class AbstractScenario
-
-
Returns the network of the scenario.
-
-
getNode() - Method in class AbstractP2PConnections
-
 
-
getNode(int) - Method in class Network
-
 
-
getNodeNetworkInterface() - Method in class Node
-
-
Returns node network interface
-
-
getNumAllParticipants() - Method in class PBFT
-
 
-
getNumOfAcceptedBlocks() - Method in class AbstractConsensusAlgorithm
-
-
Returns the total number of blocks agreed by the consensus algorithm - executed by the node
-
-
getNumOfAcceptedBlocks() - Method in interface ConsensusAlgorithm
-
 
-
getNumOfAcceptedTxs() - Method in class AbstractConsensusAlgorithm
-
-
Returns the yotal number of accepted transactions by the consensus algorithm
-
-
getNumOfAcceptedTxs() - Method in interface ConsensusAlgorithm
-
 
-
getNumOfFinalizedBlocks() - Method in class CasperFFG
-
 
-
getNumOfFinalizedBlocks() - Method in class DAGsper
-
 
-
getNumOfFinalizedBlocks() - Method in interface DeterministicFinalityConsensus
-
 
-
getNumOfFinalizedBlocks() - Method in class PBFT
-
 
-
getNumOfFinalizedBlocks() - Method in class Xolph
-
 
-
getNumOfFinalizedTxs() - Method in class CasperFFG
-
 
-
getNumOfFinalizedTxs() - Method in class DAGsper
-
 
-
getNumOfFinalizedTxs() - Method in interface DeterministicFinalityConsensus
-
 
-
getNumOfFinalizedTxs() - Method in class PBFT
-
 
-
getNumOfFinalizedTxs() - Method in class Xolph
-
 
-
getNumOfJustifiedBlocks() - Method in class CasperFFG
-
 
-
getP2pConnections() - Method in class Node
-
-
Returns node's P2P connection class
-
-
getParent() - Method in class SingleParentBlock
-
 
-
getParents() - Method in class Block
-
 
-
getPathBetween(B, B) - Method in class LocalBlockTree
-
-
Returns all the blocks between two provided blocks inside local block tree if there is any - such path between them.
-
-
getPbftPhase() - Method in class PBFT
-
 
-
getRandom() - Method in class Network
-
 
-
getRandomNode() - Method in class Network
-
 
-
getSimulator() - Method in class Node
-
-
Returns node's simulator
-
-
getSimulator() - Method in class AbstractScenario
-
-
Returns the simulator object that the scenario is using.
-
-
getSize() - Method in class BasicData
-
 
-
getSize() - Method in class Message
-
 
-
getSize() - Method in class Packet
-
 
-
getSuccessorsWithHeight(B, int) - Method in class LocalBlockDAG
-
-
Returns a SortedSet of all available Successors of the input block with - certain height inside local block DAG.
-
-
getTo() - Method in class Packet
-
 
-
getToBeFinalized() - Method in class CasperFFGLink
-
 
-
getToBeJustified() - Method in class CasperFFGLink
-
 
-
getTotalGas() - Method in class EthereumBlockWithTx
-
 
-
getTxs() - Method in class BitcoinBlockWithTx
-
 
-
getTxs() - Method in interface BlockWithTx
-
 
-
getTxs() - Method in class EthereumBlockWithTx
-
 
-
getUncles() - Method in class EthereumBlock
-
 
-
getValue() - Method in enum class SingleNodeType
-
 
-
getValue() - Method in enum class SixRegions
-
 
-
getVote() - Method in class VoteMessage
-
 
-
getVoter() - Method in class Vote
-
 
-
getVoteType() - Method in class PBFTBlockVote
-
 
-
getWeight() - Method in class TangleBlock
-
 
-
ghost() - Method in class GhostProtocol
-
 
-
GhostProtocol<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
GhostProtocol(LocalBlockTree<B>) - Constructor for class GhostProtocol
-
 
-
GLOBAL_LATENCY_BY_REGION - Static variable in class GlobalNetworkStats6Region
-
 
-
GlobalNetwork<Region extends Enum<Region>> - Class in jabs.network.networks
-
 
-
GlobalNetwork(RandomnessEngine, NodeGlobalNetworkStats<Region>) - Constructor for class GlobalNetwork
-
 
-
GlobalNetworkStats6Region - Class in jabs.network.networks.stats.sixglobalregions
-
 
-
GlobalNetworkStats6Region(RandomnessEngine) - Constructor for class GlobalNetworkStats6Region
-
 
-
GlobalProofOfWorkNetwork<Region extends Enum<Region>> - Class in jabs.network.networks
-
 
-
GlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats<Region>) - Constructor for class GlobalProofOfWorkNetwork
-
 
-
-

H

-
-
hash - Variable in class Data
-
 
-
hash - Variable in class InvMessage
-
 
-
Hash - Class in jabs.ledgerdata
-
 
-
Hash(int, Data) - Constructor for class Hash
-
 
-
hashCode() - Method in class CasperFFGLink
-
 
-
hashCode() - Method in record class AbstractPacketProcessor.TimedPacket
-
-
Returns a hash code value for this object.
-
-
hashCode() - Method in record class Simulator.ScheduledEvent
-
-
Returns a hash code value for this object.
-
-
hashPower - Variable in class BitcoinMinerNode
-
 
-
hashPower - Variable in class EthereumMinerNode
-
 
-
height - Variable in class Block
-
 
-
-

I

-
-
inbound - Variable in class AbstractBlockchainP2PConnections
-
 
-
indirectlyFinalizedBlocks - Variable in class CasperFFG
-
 
-
indirectlyFinalizedBlocks - Variable in class DAGsper
-
 
-
initialLog() - Method in class AbstractCSVLogger
-
 
-
initialLog() - Method in class AbstractLogger
-
-
Starting log before starting simulation.
-
-
initialLog() - Method in class CasperFinalLogger
-
 
-
insertedEvents - Variable in class Simulator
-
-
Number of events inserted in the event queue till now (whether simulated - or not)
-
-
insertInitialEvents() - Method in class AbstractScenario
-
-
Insert initial events into the event queue.
-
-
insertInitialEvents() - Method in class BitcoinGlobalNetworkScenario
-
 
-
insertInitialEvents() - Method in class EthereumCasperNetworkScenario
-
 
-
insertInitialEvents() - Method in class EthereumDAGsperNetworkScenario
-
 
-
insertInitialEvents() - Method in class NormalEthereumNetworkScenario
-
 
-
insertInitialEvents() - Method in class PBFTLANScenario
-
 
-
INV_MESSAGE_OVERHEAD - Static variable in class BlockFactory
-
 
-
InvMessage - Class in jabs.network.message
-
 
-
InvMessage(int, Hash) - Constructor for class InvMessage
-
 
-
IOTA_NUM_NODES_2020 - Static variable in class IOTANodeDistribution6Region
-
 
-
IOTA_REGION_DISTRIBUTION_2022 - Static variable in class IOTANodeDistribution6Region
-
 
-
IOTANode - Class in jabs.network.node.nodes.iota
-
 
-
IOTANode(Simulator, Network, int, long, long, AbstractP2PConnections) - Constructor for class IOTANode
-
 
-
IOTANodeDistribution6Region - Class in jabs.network.networks.stats.sixglobalregions.iota
-
 
-
IOTANodeDistribution6Region(RandomnessEngine) - Constructor for class IOTANodeDistribution6Region
-
 
-
isBlockConfirmed(B) - Method in class AbstractConsensusAlgorithm
-
-
Check if this block is agreed by the consensus algorithm executed by node.
-
-
isBlockConfirmed(B) - Method in interface ConsensusAlgorithm
-
 
-
isBlockFinalized(B) - Method in class CasperFFG
-
 
-
isBlockFinalized(B) - Method in class DAGsper
-
 
-
isBlockFinalized(B) - Method in interface DeterministicFinalityConsensus
-
 
-
isBlockFinalized(B) - Method in class PBFT
-
 
-
isBlockFinalized(B) - Method in class Xolph
-
 
-
isBlockValid(B) - Method in class AbstractConsensusAlgorithm
-
-
Check if the received block is valid according to the state of the chain.
-
-
isBlockValid(B) - Method in interface ConsensusAlgorithm
-
 
-
isConnectedToGenesis - Variable in class LocalBlock
-
-
Is the received block connected to genesis block by other - LocalBlocks available in nodes memory or not.
-
-
isNetworkInterfaceDown() - Method in class NodeNetworkInterface
-
-
return the state of network interface
-
-
isQueueEmpty() - Method in class AbstractPacketProcessor
-
 
-
isTxConfirmed(T) - Method in class AbstractConsensusAlgorithm
-
-
Check if the provided transaction is inside a block that is agreed by the - node consensus algorithm.
-
-
isTxConfirmed(T) - Method in interface ConsensusAlgorithm
-
 
-
isTxFinalized(T) - Method in class CasperFFG
-
 
-
isTxFinalized(T) - Method in class DAGsper
-
 
-
isTxFinalized(T) - Method in interface DeterministicFinalityConsensus
-
 
-
isTxFinalized(T) - Method in class PBFT
-
 
-
isTxFinalized(T) - Method in class Xolph
-
 
-
-

J

-
-
jabs - package jabs
-
 
-
jabs.config - package jabs.config
-
 
-
jabs.consensus.algorithm - package jabs.consensus.algorithm
-
 
-
jabs.consensus.blockchain - package jabs.consensus.blockchain
-
 
-
jabs.ledgerdata - package jabs.ledgerdata
-
 
-
jabs.ledgerdata.bitcoin - package jabs.ledgerdata.bitcoin
-
 
-
jabs.ledgerdata.casper - package jabs.ledgerdata.casper
-
 
-
jabs.ledgerdata.dagsper - package jabs.ledgerdata.dagsper
-
 
-
jabs.ledgerdata.ethereum - package jabs.ledgerdata.ethereum
-
 
-
jabs.ledgerdata.pbft - package jabs.ledgerdata.pbft
-
 
-
jabs.ledgerdata.tangle - package jabs.ledgerdata.tangle
-
 
-
jabs.log - package jabs.log
-
 
-
jabs.network.message - package jabs.network.message
-
 
-
jabs.network.networks - package jabs.network.networks
-
 
-
jabs.network.networks.stats - package jabs.network.networks.stats
-
 
-
jabs.network.networks.stats.lan - package jabs.network.networks.stats.lan
-
 
-
jabs.network.networks.stats.sixglobalregions - package jabs.network.networks.stats.sixglobalregions
-
 
-
jabs.network.networks.stats.sixglobalregions.bitcoin - package jabs.network.networks.stats.sixglobalregions.bitcoin
-
 
-
jabs.network.networks.stats.sixglobalregions.ethereum - package jabs.network.networks.stats.sixglobalregions.ethereum
-
 
-
jabs.network.networks.stats.sixglobalregions.iota - package jabs.network.networks.stats.sixglobalregions.iota
-
 
-
jabs.network.node - package jabs.network.node
-
 
-
jabs.network.node.nodes - package jabs.network.node.nodes
-
 
-
jabs.network.node.nodes.bitcoin - package jabs.network.node.nodes.bitcoin
-
 
-
jabs.network.node.nodes.ethereum - package jabs.network.node.nodes.ethereum
-
 
-
jabs.network.node.nodes.iota - package jabs.network.node.nodes.iota
-
 
-
jabs.network.node.nodes.pbft - package jabs.network.node.nodes.pbft
-
 
-
jabs.network.p2p - package jabs.network.p2p
-
 
-
jabs.scenario - package jabs.scenario
-
 
-
jabs.simulator - package jabs.simulator
-
 
-
jabs.simulator.event - package jabs.simulator.event
-
 
-
jabs.simulator.randengine - package jabs.simulator.randengine
-
 
-
JAPAN - Enum constant in enum class SixRegions
-
 
-
justifiedBlocks - Variable in class CasperFFG
-
 
-
justifiedBlocks - Variable in class DAGsper
-
 
-
jVotedBlocksInHeight - Variable in class DAGsper
-
 
-
jVotesForBlock - Variable in class DAGsper
-
 
-
jVotesInHeight - Variable in class DAGsper
-
 
-
-

L

-
-
LAN_AVERAGE_BANDWIDTH - Static variable in class LAN100MNetworkStats
-
 
-
LAN_AVERAGE_LATENCY - Static variable in class LAN100MNetworkStats
-
 
-
LAN_NODE - Enum constant in enum class SingleNodeType
-
 
-
LAN100MNetworkStats - Class in jabs.network.networks.stats.lan
-
 
-
LAN100MNetworkStats(RandomnessEngine) - Constructor for class LAN100MNetworkStats
-
 
-
LATENCY_PARETO_SHAPE - Static variable in class LAN100MNetworkStats
-
 
-
LATENCY_PARETO_SHAPE - Static variable in class GlobalNetworkStats6Region
-
 
-
latestCheckpoint - Variable in class CasperFFG
-
 
-
latestFinalizedHeight - Variable in class DAGsperVote
-
 
-
link - Variable in class CasperFFGVote
-
 
-
LocalBlock<B extends Block<B>> - Class in jabs.consensus.blockchain
-
-
LocalBlock is used for blocks that resides inside a nodes memory.
-
-
LocalBlock(B) - Constructor for class LocalBlock
-
-
Creates a Local block by taking a normal received block
-
-
localBlockDAG - Variable in class AbstractDAGBasedConsensus
-
-
Local Block Tree in Nodes Memory
-
-
localBlockDAG - Variable in class LocalBlockDAG
-
-
A map that receives a Block and returns corresponding LocalBlock on local - DAG of the node.
-
-
LocalBlockDAG<B extends Block<B>> - Class in jabs.consensus.blockchain
-
-
A DAG graph of blocks received by a node.
-
-
LocalBlockDAG(B) - Constructor for class LocalBlockDAG
-
-
Creates the local DAG block of a node.
-
-
localBlockTree - Variable in class AbstractChainBasedConsensus
-
-
Local Block Tree in Nodes Memory
-
-
localBlockTree - Variable in class PeerBlockchainNode
-
 
-
localBlockTree - Variable in class PeerDLTNode
-
 
-
LocalBlockTree<B extends SingleParentBlock<B>> - Class in jabs.consensus.blockchain
-
-
A tree graph of blocks received by a node.
-
-
LocalBlockTree(B) - Constructor for class LocalBlockTree
-
-
Creates the local tree block of a node.
-
-
logAfterEvent() - Method in class AbstractCSVLogger
-
 
-
logAfterEvent() - Method in class AbstractLogger
-
-
This function will be called after each event.
-
-
logAfterEvent() - Method in class CasperFinalLogger
-
 
-
logBeforeEvent() - Method in class AbstractCSVLogger
-
 
-
logBeforeEvent() - Method in class AbstractLogger
-
-
Before each event this function will be called.
-
-
logBeforeEvent() - Method in class CasperFinalLogger
-
 
-
logger - Variable in class AbstractScenario
-
 
-
loggerCSV - Variable in class AbstractCSVLogger
-
 
-
longestChainLen - Variable in class NakamotoConsensus
-
 
-
-

M

-
-
main(String[]) - Static method in class Main
-
 
-
Main - Class in jabs
-
 
-
Main() - Constructor for class Main
-
 
-
maxConnections - Variable in class AbstractBlockchainP2PConnections
-
 
-
MAXIMUM_BLOCK_GAS - Static variable in class EthereumMinerNode
-
 
-
MAXIMUM_BLOCK_SIZE - Static variable in class BitcoinMinerNode
-
 
-
memPool - Variable in class BitcoinMinerNode
-
 
-
memPool - Variable in class EthereumMinerNode
-
 
-
message - Variable in class Packet
-
 
-
Message - Class in jabs.network.message
-
 
-
Message(int) - Constructor for class Message
-
 
-
messageReceivingProcess - Variable in class NodeNetworkInterface
-
-
The process (which is a type of ongoing event) that handles receiving packets and their delays due to bandwidth
-
-
messageSendingProcess - Variable in class NodeNetworkInterface
-
-
The process (which is a type of ongoing event) that handles sending packets and their delays due to bandwidth
-
-
MIN_DAGSPER_VOTE_SIZE - Static variable in class DAGsperVote
-
 
-
miner - Variable in class BlockMiningProcess
-
 
-
minerDistribution - Variable in class GlobalProofOfWorkNetwork
-
 
-
MinerGlobalRegionDistribution<R extends Enum<R>> - Interface in jabs.network.networks.stats
-
 
-
MinerNode - Interface in jabs.network.node.nodes
-
 
-
miners - Variable in class GlobalProofOfWorkNetwork
-
 
-
miningProcess - Variable in class BitcoinMinerNode
-
 
-
miningProcess - Variable in class EthereumMinerNode
-
 
-
-

N

-
-
NakamotoConsensus<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
NakamotoConsensus(LocalBlockTree<B>) - Constructor for class NakamotoConsensus
-
 
-
name - Variable in class AbstractScenario
-
 
-
neighbors - Variable in class AbstractP2PConnections
-
 
-
network - Variable in class Node
-
-
Node's network - This object have all nodes in it.
-
-
network - Variable in class AbstractBlockchainP2PConnections
-
 
-
network - Variable in class AbstractScenario
-
-
network which is being used for simulation
-
-
network - Variable in class AbstractPacketProcessor
-
 
-
network - Variable in class TxGenerationProcessRandomNetworkNode
-
 
-
Network<NodeType extends Enum<NodeType>> - Class in jabs.network.networks
-
 
-
Network(RandomnessEngine, NetworkStats<NodeType>) - Constructor for class Network
-
 
-
NetworkBuilder - Class in jabs.network.networks
-
 
-
NetworkBuilder() - Constructor for class NetworkBuilder
-
 
-
networkInterfaceDown - Variable in class NodeNetworkInterface
-
-
State of network interface (false->Up / true->Down)
-
-
networkStats - Variable in class Network
-
 
-
NetworkStats<R extends Enum<R>> - Interface in jabs.network.networks.stats
-
 
-
NEW_VIEW - Enum constant in enum class PBFTViewVote.VoteType
-
 
-
newIncomingBlock(B) - Method in class AbstractConsensusAlgorithm
-
-
When a new block is received by the node this function should be called.
-
-
newIncomingBlock(B) - Method in interface ConsensusAlgorithm
-
 
-
newIncomingBlock(B) - Method in class GhostProtocol
-
 
-
newIncomingBlock(B) - Method in class NakamotoConsensus
-
 
-
newIncomingBlock(B) - Method in class PBFT
-
 
-
newIncomingBlock(B) - Method in class Xolph
-
 
-
newIncomingBlock(TangleBlock) - Method in class TangleIOTA
-
-
If a new block that is connected to the genesis block is received - this function will be called.
-
-
newIncomingVote(Vote) - Method in class CasperFFG
-
 
-
newIncomingVote(Vote) - Method in class DAGsper
-
 
-
newIncomingVote(Vote) - Method in class PBFT
-
 
-
newIncomingVote(Vote) - Method in interface VotingBasedConsensus
-
 
-
node - Variable in class NodeNetworkInterface
-
-
The node that have this network interface
-
-
node - Variable in class AbstractP2PConnections
-
 
-
node - Variable in class AbstractPacketProcessor
-
 
-
node - Variable in class AbstractTxPoissonProcess
-
 
-
Node - Class in jabs.network.node.nodes
-
 
-
Node(Simulator, Network, int, long, long, AbstractP2PConnections) - Constructor for class Node
-
-
Creates a node and set its network, ID, upload and download bandwidth, and its P2P connections
-
-
nodeDistribution - Variable in class GlobalNetwork
-
 
-
NodeGlobalNetworkStats<R extends Enum<R>> - Interface in jabs.network.networks.stats
-
 
-
NodeGlobalRegionDistribution<R extends Enum<R>> - Interface in jabs.network.networks.stats
-
 
-
nodeID - Variable in class Node
-
-
Node's ID (integer number which identifies node in its network)
-
-
nodeNetworkInterface - Variable in class Node
-
-
Node's network interface - This object handles all packet sending/receiving in network
-
-
NodeNetworkInterface - Class in jabs.network.node
-
 
-
NodeNetworkInterface(Simulator, Node, long, long) - Constructor for class NodeNetworkInterface
-
-
Creates a new network interface
-
-
nodes - Variable in class Network
-
 
-
nodeTypes - Variable in class Network
-
 
-
NORMAL_MODE - Enum constant in enum class PBFT.PBFTMode
-
 
-
NormalEthereumNetworkScenario - Class in jabs.scenario
-
 
-
NormalEthereumNetworkScenario(long, AbstractLogger, int, int, double, double, double) - Constructor for class NormalEthereumNetworkScenario
-
 
-
NORTH_AMERICA - Enum constant in enum class SixRegions
-
 
-
numAllParticipants - Variable in class PBFT
-
 
-
number - Variable in record class Simulator.ScheduledEvent
-
-
The field for the number record component.
-
-
number() - Method in record class Simulator.ScheduledEvent
-
-
Returns the value of the number record component.
-
-
numberOfAlreadySeenBlocks() - Method in class PeerBlockchainNode
-
 
-
numberOfAlreadySeenBlocks() - Method in class PeerDLTNode
-
 
-
numNodes - Variable in class PBFTLANScenario
-
 
-
numOfMiners - Variable in class EthereumCasperNetworkScenario
-
 
-
numOfMiners - Variable in class EthereumDAGsperNetworkScenario
-
 
-
numOfMiners - Variable in class NormalEthereumNetworkScenario
-
 
-
numOfNonMiners - Variable in class EthereumCasperNetworkScenario
-
 
-
numOfNonMiners - Variable in class EthereumDAGsperNetworkScenario
-
 
-
numOfNonMiners - Variable in class NormalEthereumNetworkScenario
-
 
-
numOfStakeholders - Variable in class CasperFFG
-
 
-
numOfStakeholders - Variable in class DAGsper
-
 
-
numOutboundConnections - Variable in class AbstractBlockchainP2PConnections
-
 
-
-

O

-
-
originOfGhost - Variable in class GhostProtocol
-
 
-
outbound - Variable in class AbstractBlockchainP2PConnections
-
 
-
-

P

-
-
p2pConnections - Variable in class Node
-
-
Node's P2P connections - This handles neighbors of the node in the network
-
-
packet - Variable in record class AbstractPacketProcessor.TimedPacket
-
-
The field for the packet record component.
-
-
packet - Variable in class PacketDeliveryEvent
-
 
-
packet() - Method in record class AbstractPacketProcessor.TimedPacket
-
-
Returns the value of the packet record component.
-
-
Packet - Class in jabs.network.message
-
 
-
Packet(Node, Node, Message) - Constructor for class Packet
-
 
-
PacketDeliveryEvent - Class in jabs.simulator.event
-
 
-
PacketDeliveryEvent(Packet) - Constructor for class PacketDeliveryEvent
-
 
-
PacketReceivingProcess - Class in jabs.simulator.event
-
 
-
PacketReceivingProcess(Simulator, Network, RandomnessEngine, Node) - Constructor for class PacketReceivingProcess
-
 
-
PacketSendingProcess - Class in jabs.simulator.event
-
 
-
PacketSendingProcess(Simulator, Network, RandomnessEngine, Node) - Constructor for class PacketSendingProcess
-
 
-
packetsQueue - Variable in class AbstractPacketProcessor
-
 
-
parents - Variable in class Block
-
 
-
payloadHash - Variable in class RequestDataMessage
-
 
-
PBFT<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
PBFT(Simulator, int, LocalBlockTree<B>) - Constructor for class PBFT
-
 
-
PBFT_BLOCK_HASH_SIZE - Static variable in class PBFTBlock
-
 
-
PBFT_GENESIS_BLOCK - Static variable in class PBFTNode
-
 
-
PBFT_VOTE_SIZE_OVERHEAD - Static variable in class PBFTBlockVote
-
 
-
PBFT.PBFTMode - Enum Class in jabs.consensus.algorithm
-
 
-
PBFT.PBFTPhase - Enum Class in jabs.consensus.algorithm
-
 
-
PBFTBlock - Class in jabs.ledgerdata.pbft
-
 
-
PBFTBlock(int, int, double, Node, PBFTBlock) - Constructor for class PBFTBlock
-
 
-
PBFTBlockVote<B extends Block<B>> - Class in jabs.ledgerdata.pbft
-
 
-
PBFTBlockVote(int, Node, B, PBFTBlockVote.VoteType) - Constructor for class PBFTBlockVote
-
 
-
PBFTBlockVote.VoteType - Enum Class in jabs.ledgerdata.pbft
-
 
-
PBFTCommitVote<B extends Block<B>> - Class in jabs.ledgerdata.pbft
-
 
-
PBFTCommitVote(Node, B) - Constructor for class PBFTCommitVote
-
 
-
PBFTCSVLogger - Class in jabs.log
-
 
-
PBFTCSVLogger(Writer) - Constructor for class PBFTCSVLogger
-
-
creates an abstract CSV logger
-
-
PBFTCSVLogger(Path) - Constructor for class PBFTCSVLogger
-
-
creates an abstract CSV logger
-
-
PBFTLANScenario - Class in jabs.scenario
-
 
-
PBFTLANScenario(String, long, AbstractLogger, int, double) - Constructor for class PBFTLANScenario
-
 
-
PBFTLocalLANNetwork - Class in jabs.network.networks
-
 
-
PBFTLocalLANNetwork(RandomnessEngine) - Constructor for class PBFTLocalLANNetwork
-
 
-
pbftMode - Variable in class PBFT
-
 
-
PBFTMode() - Constructor for enum class PBFT.PBFTMode
-
 
-
PBFTNode - Class in jabs.network.node.nodes.pbft
-
 
-
PBFTNode(Simulator, Network, int, long, long, int) - Constructor for class PBFTNode
-
 
-
PBFTP2P - Class in jabs.network.p2p
-
 
-
PBFTP2P() - Constructor for class PBFTP2P
-
 
-
pbftPhase - Variable in class PBFT
-
 
-
PBFTPhase() - Constructor for enum class PBFT.PBFTPhase
-
 
-
PBFTPrepareVote<B extends Block<B>> - Class in jabs.ledgerdata.pbft
-
 
-
PBFTPrepareVote(Node, B) - Constructor for class PBFTPrepareVote
-
 
-
PBFTPrePrepareVote<B extends Block<B>> - Class in jabs.ledgerdata.pbft
-
 
-
PBFTPrePrepareVote(Node, B) - Constructor for class PBFTPrePrepareVote
-
 
-
PBFTTx - Class in jabs.ledgerdata.pbft
-
 
-
PBFTTx(int, int) - Constructor for class PBFTTx
-
 
-
PBFTViewVote - Class in jabs.ledgerdata.pbft
-
 
-
PBFTViewVote(Node, PBFTViewVote.VoteType) - Constructor for class PBFTViewVote
-
 
-
PBFTViewVote.VoteType - Enum Class in jabs.ledgerdata.pbft
-
 
-
peekEvent() - Method in class Simulator
-
-
Returns what is the next event to be executed without executing - the event.
-
-
peerBlockchainNode - Variable in class AbstractChainBasedConsensus
-
-
The node that runs the consensus algorithm
-
-
PeerBlockchainNode<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.network.node.nodes
-
 
-
PeerBlockchainNode(Simulator, Network, int, long, long, AbstractP2PConnections, AbstractChainBasedConsensus<B, T>) - Constructor for class PeerBlockchainNode
-
 
-
peerDLTNode - Variable in class AbstractDAGBasedConsensus
-
-
The node that runs the consensus algorithm
-
-
PeerDLTNode<B extends Block<B>,T extends Tx<T>> - Class in jabs.network.node.nodes
-
 
-
PeerDLTNode(Simulator, Network, int, long, long, AbstractP2PConnections, AbstractDAGBasedConsensus<B, T>) - Constructor for class PeerDLTNode
-
 
-
populateNetwork(Simulator) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator) - Method in class EthereumGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator) - Method in class Network
-
 
-
populateNetwork(Simulator) - Method in class PBFTLocalLANNetwork
-
 
-
populateNetwork(Simulator) - Method in class TangleGlobalNetwork
-
 
-
populateNetwork(Simulator, double) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int) - Method in class BitcoinGlobalProofOfWorkNetworkWithoutTx
-
 
-
populateNetwork(Simulator, int) - Method in class EthereumGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int) - Method in class Network
-
 
-
populateNetwork(Simulator, int) - Method in class PBFTLocalLANNetwork
-
 
-
populateNetwork(Simulator, int) - Method in class TangleGlobalNetwork
-
 
-
populateNetwork(Simulator, int, int) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int, int) - Method in class BitcoinGlobalProofOfWorkNetworkWithoutTx
-
 
-
populateNetwork(Simulator, int, int) - Method in class CasperFFGGlobalBlockchainNetwork
-
 
-
populateNetwork(Simulator, int, int) - Method in class DAGsperGlobalBlockchainNetwork
-
 
-
populateNetwork(Simulator, int, int) - Method in class EthereumGlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int, int) - Method in class GlobalProofOfWorkNetwork
-
 
-
populateNetwork(Simulator, int, int, double) - Method in class BitcoinGlobalProofOfWorkNetwork
-
 
-
PRE_PREPARE - Enum constant in enum class PBFTBlockVote.VoteType
-
 
-
PRE_PREPARING - Enum constant in enum class PBFT.PBFTPhase
-
 
-
PREPARE - Enum constant in enum class PBFTBlockVote.VoteType
-
 
-
preparedBlocks - Variable in class PBFT
-
 
-
prepareVotes - Variable in class PBFT
-
 
-
PREPARING - Enum constant in enum class PBFT.PBFTPhase
-
 
-
previousFVotes - Variable in class DAGsper
-
 
-
previousJVotes - Variable in class DAGsper
-
 
-
processIncomingPacket(Packet) - Method in class Node
-
-
This method is called when a new packet is received by the network interface.
-
-
processIncomingPacket(Packet) - Method in class PeerBlockchainNode
-
 
-
processIncomingPacket(Packet) - Method in class PeerDLTNode
-
 
-
processingTime(Packet) - Method in class AbstractPacketProcessor
-
 
-
processingTime(Packet) - Method in class PacketReceivingProcess
-
 
-
processingTime(Packet) - Method in class PacketSendingProcess
-
 
-
processNewBlock(B) - Method in class PeerBlockchainNode
-
 
-
processNewBlock(B) - Method in class PeerDLTNode
-
 
-
processNewBlock(BitcoinBlock) - Method in class BitcoinNode
-
 
-
processNewBlock(EthereumBlock) - Method in class EthereumMinerNode
-
 
-
processNewBlock(EthereumBlock) - Method in class EthereumNode
-
 
-
processNewBlock(PBFTBlock) - Method in class PBFTNode
-
 
-
processNewBlock(TangleBlock) - Method in class IOTANode
-
 
-
processNewTx(BitcoinTx, Node) - Method in class BitcoinNode
-
 
-
processNewTx(EthereumTx, Node) - Method in class EthereumMinerNode
-
 
-
processNewTx(EthereumTx, Node) - Method in class EthereumNode
-
 
-
processNewTx(PBFTTx, Node) - Method in class PBFTNode
-
 
-
processNewTx(TangleTx, Node) - Method in class IOTANode
-
 
-
processNewTx(T, Node) - Method in class PeerDLTNode
-
 
-
processNewVote(Vote) - Method in class BitcoinNode
-
 
-
processNewVote(Vote) - Method in class EthereumNode
-
 
-
processNewVote(Vote) - Method in class IOTANode
-
 
-
processNewVote(Vote) - Method in class PBFTNode
-
 
-
processNewVote(Vote) - Method in class PeerBlockchainNode
-
 
-
processNewVote(Vote) - Method in class PeerDLTNode
-
 
-
progressMessageIntervals - Variable in class AbstractScenario
-
 
-
ProofOfWorkGlobalNetworkStats<R extends Enum<R>> - Interface in jabs.network.networks.stats
-
 
-
putEvent(Event, double) - Method in class Simulator
-
-
Inserts a new event in event queue.
-
-
-

R

-
-
randomnessEngine - Variable in class Network
-
 
-
randomnessEngine - Variable in class LAN100MNetworkStats
-
 
-
randomnessEngine - Variable in class GlobalNetworkStats6Region
-
 
-
randomnessEngine - Variable in class AbstractScenario
-
 
-
randomnessEngine - Variable in class AbstractPacketProcessor
-
 
-
randomnessEngine - Variable in class AbstractPoissonProcess
-
 
-
RandomnessEngine - Class in jabs.simulator.randengine
-
 
-
RandomnessEngine(long) - Constructor for class RandomnessEngine
-
 
-
removeEvent(Simulator.ScheduledEvent) - Method in class Simulator
-
-
Removes an event already available in the event queue.
-
-
removePreviouslyVotedHeights(HashSet<Integer>, List<B>, HashMap<Integer, B>) - Method in class DAGsper
-
 
-
requestConnection(Node) - Method in class AbstractBlockchainP2PConnections
-
 
-
requestConnection(Node) - Method in class AbstractP2PConnections
-
 
-
requestConnection(Node) - Method in class PBFTP2P
-
 
-
RequestDataMessage - Class in jabs.network.message
-
 
-
RequestDataMessage(Hash) - Constructor for class RequestDataMessage
-
 
-
reset() - Method in class Simulator
-
-
Clears the event queue from any more events.
-
-
restore() - Method in class Node
-
-
Restores the node from a crash fault.
-
-
run() - Method in class AbstractScenario
-
-
When called starts the simulation and runs everything to the end of simulation.
-
-
-

S

-
-
sampleBandwidthByRegion(SixRegions, Map<SixRegions, List<Double>>, long[]) - Method in class GlobalNetworkStats6Region
-
 
-
sampleBitcoinBlock(Simulator, RandomnessEngine, BitcoinMinerNode, BitcoinBlock, double) - Static method in class BlockFactory
-
 
-
sampleBitcoinBlockSize(RandomnessEngine) - Static method in class BlockFactory
-
 
-
sampleBitcoinTransaction(RandomnessEngine) - Static method in class TransactionFactory
-
 
-
sampleDistributionWithBins(double[], long[]) - Method in class RandomnessEngine
-
 
-
sampleDistributionWithBins(List<Double>, long[]) - Method in class RandomnessEngine
-
 
-
sampleDouble(double) - Method in class RandomnessEngine
-
 
-
sampleDownloadBandwidth(SingleNodeType) - Method in class LAN100MNetworkStats
-
 
-
sampleDownloadBandwidth(SixRegions) - Method in class GlobalNetworkStats6Region
-
 
-
sampleDownloadBandwidth(NodeType) - Method in class Network
-
 
-
sampleDownloadBandwidth(R) - Method in interface NetworkStats
-
 
-
sampleEthereumBlock(Simulator, RandomnessEngine, EthereumMinerNode, EthereumBlock, Set<EthereumBlock>) - Static method in class BlockFactory
-
 
-
sampleEthereumTransaction(RandomnessEngine) - Static method in class TransactionFactory
-
 
-
sampleExponentialDistribution(double) - Method in class RandomnessEngine
-
 
-
sampleFromDistribution(double[]) - Method in class RandomnessEngine
-
 
-
sampleFromList(List<E>) - Method in class RandomnessEngine
-
 
-
sampleHashPower() - Method in class GlobalProofOfWorkNetwork
-
 
-
sampleInt(int) - Method in class RandomnessEngine
-
 
-
sampleMinerHashPower() - Method in interface MinerGlobalRegionDistribution
-
 
-
sampleMinerHashPower() - Method in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
sampleMinerHashPower() - Method in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
sampleMinerRegion() - Method in class GlobalProofOfWorkNetwork
-
 
-
sampleMinerRegion() - Method in interface MinerGlobalRegionDistribution
-
 
-
sampleMinerRegion() - Method in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
sampleMinerRegion() - Method in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
sampleParetoDistribution(double, double) - Method in class RandomnessEngine
-
 
-
samplePBFTBlock(Simulator, RandomnessEngine, PBFTNode, PBFTBlock) - Static method in class BlockFactory
-
 
-
sampleRegion() - Method in class GlobalNetwork
-
 
-
sampleRegion() - Method in interface NodeGlobalRegionDistribution
-
 
-
sampleRegion() - Method in class BitcoinNodeGlobalNetworkStats6Regions
-
 
-
sampleRegion() - Method in class EthereumNodeGlobalNetworkStats6Regions
-
 
-
sampleRegion() - Method in class IOTANodeDistribution6Region
-
 
-
sampleRegion() - Method in class TangleGlobalNetwork
-
 
-
sampleSubset(List<E>, int) - Method in class RandomnessEngine
-
 
-
sampleUploadBandwidth(SingleNodeType) - Method in class LAN100MNetworkStats
-
 
-
sampleUploadBandwidth(SixRegions) - Method in class GlobalNetworkStats6Region
-
 
-
sampleUploadBandwidth(NodeType) - Method in class Network
-
 
-
sampleUploadBandwidth(R) - Method in interface NetworkStats
-
 
-
scenario - Variable in class AbstractLogger
-
-
The main scenario in which the logger is working
-
-
scenario - Variable in class CasperFinalLogger
-
 
-
ScheduledEvent(Event, double, long) - Constructor for record class Simulator.ScheduledEvent
-
-
Creates an instance of a ScheduledEvent record class.
-
-
sendPacketToNextProcess(Packet) - Method in class AbstractPacketProcessor
-
 
-
sendPacketToNextProcess(Packet) - Method in class PacketReceivingProcess
-
 
-
sendPacketToNextProcess(Packet) - Method in class PacketSendingProcess
-
 
-
setNode(Node) - Method in class AbstractP2PConnections
-
 
-
setNode(PeerBlockchainNode<B, T>) - Method in class AbstractChainBasedConsensus
-
-
Sets the node using consensus algorithm (this cannot be set in Constructor function - since the algorithm is created during creation of the node, There might be better - ways to do it.)
-
-
setNode(PeerDLTNode<B, T>) - Method in class AbstractDAGBasedConsensus
-
-
Sets the node using consensus algorithm (this cannot be set in Constructor function - since the algorithm is created during creation of the node, There might be better - ways to do it.)
-
-
setProgressMessageIntervals(long) - Method in class AbstractScenario
-
-
Sets the interval between two in progress messages
-
-
setScenario(AbstractScenario) - Method in class AbstractLogger
-
-
Sets the scenario of the logger.
-
-
setScenario(AbstractScenario) - Method in class CasperFinalLogger
-
 
-
SimulationConfig - Class in jabs.config
-
 
-
SimulationConfig() - Constructor for class SimulationConfig
-
 
-
simulationStopCondition() - Method in class AbstractScenario
-
-
runs before each event and checks if simulation should stop.
-
-
simulationStopCondition() - Method in class BitcoinGlobalNetworkScenario
-
 
-
simulationStopCondition() - Method in class EthereumCasperNetworkScenario
-
 
-
simulationStopCondition() - Method in class EthereumDAGsperNetworkScenario
-
 
-
simulationStopCondition() - Method in class NormalEthereumNetworkScenario
-
 
-
simulationStopCondition() - Method in class PBFTLANScenario
-
 
-
simulationStopTime - Variable in class BitcoinGlobalNetworkScenario
-
 
-
simulationStopTime - Variable in class EthereumCasperNetworkScenario
-
 
-
simulationStopTime - Variable in class EthereumDAGsperNetworkScenario
-
 
-
simulationStopTime - Variable in class NormalEthereumNetworkScenario
-
 
-
simulationStopTime - Variable in class PBFTLANScenario
-
 
-
simulationTime - Variable in class EthereumCasperNetworkScenario
-
 
-
simulationTime - Variable in class EthereumDAGsperNetworkScenario
-
 
-
simulationTime - Variable in class NormalEthereumNetworkScenario
-
 
-
simulator - Variable in class NodeNetworkInterface
-
-
The simulator which handles events for this network interface
-
-
simulator - Variable in class Node
-
-
Node's simulator - This handles events and their order and executes them
-
-
simulator - Variable in class AbstractScenario
-
 
-
simulator - Variable in class AbstractPacketProcessor
-
 
-
simulator - Variable in class AbstractPoissonProcess
-
 
-
Simulator - Class in jabs.simulator
-
 
-
Simulator() - Constructor for class Simulator
-
 
-
Simulator.ScheduledEvent - Record Class in jabs.simulator
-
 
-
SingleNodeType - Enum Class in jabs.network.networks.stats.lan
-
 
-
SingleNodeType(int) - Constructor for enum class SingleNodeType
-
 
-
SingleParentBlock<B extends SingleParentBlock<B>> - Class in jabs.ledgerdata
-
 
-
SingleParentBlock(int, int, double, Node, B, int) - Constructor for class SingleParentBlock
-
 
-
SixRegions - Enum Class in jabs.network.networks.stats.sixglobalregions
-
 
-
SixRegions(int) - Constructor for enum class SixRegions
-
 
-
sixRegionsValues - Static variable in enum class SingleNodeType
-
 
-
sixRegionsValues - Static variable in enum class SixRegions
-
 
-
size - Variable in class BasicData
-
 
-
size - Variable in class Message
-
 
-
size - Variable in class Packet
-
 
-
size() - Method in class LocalBlockDAG
-
-
Returns total number of blocks inside the local block DAG.
-
-
SOUTH_AMERICA - Enum constant in enum class SixRegions
-
 
-
startAllMiningProcesses() - Method in class GlobalProofOfWorkNetwork
-
 
-
startMining() - Method in class BitcoinMinerNode
-
 
-
startMining() - Method in class EthereumMinerNode
-
 
-
startMining() - Method in class IOTANode
-
 
-
startMining() - Method in interface MinerNode
-
 
-
stopMining() - Method in class BitcoinMinerNode
-
 
-
stopMining() - Method in class EthereumMinerNode
-
 
-
stopMining() - Method in class IOTANode
-
 
-
stopMining() - Method in interface MinerNode
-
 
-
-

T

-
-
takeDown() - Method in class NodeNetworkInterface
-
-
Stops the node from sending or receiving packets
-
-
TANGLE_GENESIS_BLOCK - Static variable in class IOTANode
-
 
-
TangleBlock - Class in jabs.ledgerdata.tangle
-
 
-
TangleBlock(int, int, double, Node, List<TangleBlock>, int, TangleTx, int) - Constructor for class TangleBlock
-
 
-
TangleGlobalNetwork<R extends Enum<R>> - Class in jabs.network.networks
-
 
-
TangleGlobalNetwork(RandomnessEngine, NodeGlobalNetworkStats<R>) - Constructor for class TangleGlobalNetwork
-
 
-
TangleIOTA - Class in jabs.consensus.algorithm
-
 
-
TangleIOTA(LocalBlockDAG<TangleBlock>) - Constructor for class TangleIOTA
-
-
Creates a Tangle Consensus Algorithm
-
-
TangleTx - Class in jabs.ledgerdata.tangle
-
 
-
TangleTx(int, int) - Constructor for class TangleTx
-
 
-
thereIsMoreEvents() - Method in class Simulator
-
-
Check if more events exist in the event queue to be simulated
-
-
time - Variable in record class AbstractPacketProcessor.TimedPacket
-
-
The field for the time record component.
-
-
time - Variable in record class Simulator.ScheduledEvent
-
-
The field for the time record component.
-
-
time() - Method in record class AbstractPacketProcessor.TimedPacket
-
-
Returns the value of the time record component.
-
-
time() - Method in record class Simulator.ScheduledEvent
-
-
Returns the execution time of the event.
-
-
TimedPacket(Packet, double) - Constructor for record class AbstractPacketProcessor.TimedPacket
-
-
Creates an instance of a TimedPacket record class.
-
-
timeToNextGeneration() - Method in class AbstractPoissonProcess
-
 
-
to - Variable in class Packet
-
 
-
toBeFinalized - Variable in class CasperFFGLink
-
 
-
toBeFinalizedHeight - Variable in class DAGsperVote
-
 
-
toBeJustified - Variable in class CasperFFGLink
-
 
-
toBeJustified - Variable in class DAGsperVote
-
 
-
toString() - Method in class CasperFFGLink
-
 
-
toString() - Method in record class AbstractPacketProcessor.TimedPacket
-
-
Returns a string representation of this record class.
-
-
toString() - Method in record class Simulator.ScheduledEvent
-
-
Returns a string representation of this record class.
-
-
totalGas - Variable in class EthereumBlockWithTx
-
 
-
totalNumberOfMiners() - Method in interface MinerGlobalRegionDistribution
-
 
-
totalNumberOfMiners() - Method in class BitcoinProofOfWorkGlobalNetworkStats6Regions
-
 
-
totalNumberOfMiners() - Method in class EthereumProofOfWorkGlobalNetworkStats6Regions
-
 
-
totalNumberOfNodes() - Method in interface NodeGlobalRegionDistribution
-
 
-
totalNumberOfNodes() - Method in class BitcoinNodeGlobalNetworkStats6Regions
-
 
-
totalNumberOfNodes() - Method in class EthereumNodeGlobalNetworkStats6Regions
-
 
-
totalNumberOfNodes() - Method in class IOTANodeDistribution6Region
-
 
-
totalVoteMassageTraffic - Variable in class EthereumCasperNetworkScenario
-
 
-
totalVoteMassageTraffic - Variable in class EthereumDAGsperNetworkScenario
-
 
-
totalWeights - Variable in class GhostProtocol
-
 
-
TransactionFactory - Class in jabs.network.networks
-
 
-
TransactionFactory() - Constructor for class TransactionFactory
-
 
-
Tx<T extends Tx<T>> - Class in jabs.ledgerdata
-
 
-
Tx(int, int) - Constructor for class Tx
-
 
-
TX - Enum constant in enum class Data.DataType
-
 
-
TxGenerationProcessRandomNetworkNode - Class in jabs.simulator.event
-
 
-
TxGenerationProcessRandomNetworkNode(Simulator, Network, RandomnessEngine, double) - Constructor for class TxGenerationProcessRandomNetworkNode
-
 
-
TxGenerationProcessSingleNode - Class in jabs.simulator.event
-
 
-
TxGenerationProcessSingleNode(Simulator, RandomnessEngine, Node, double) - Constructor for class TxGenerationProcessSingleNode
-
 
-
txGenerationRate - Variable in class EthereumCasperNetworkScenario
-
 
-
txGenerationRate - Variable in class EthereumDAGsperNetworkScenario
-
 
-
txGenerationRate - Variable in class NormalEthereumNetworkScenario
-
 
-
Txs - Variable in class BitcoinBlockWithTx
-
 
-
Txs - Variable in class EthereumBlockWithTx
-
 
-
-

U

-
-
unaffectedHeights - Variable in class DAGsperVote
-
 
-
uncles - Variable in class EthereumBlock
-
 
-
unfinalizableHeights - Variable in class DAGsper
-
 
-
updateChain() - Method in class AbstractChainBasedConsensus
-
 
-
updateChain() - Method in class CasperFFG
-
 
-
updateChain() - Method in class DAGsper
-
 
-
updateChain() - Method in class GhostProtocol
-
 
-
updateChain() - Method in class NakamotoConsensus
-
 
-
updateChain() - Method in class PBFT
-
 
-
updateChain() - Method in class Xolph
-
 
-
updateFinalizedBlocks(B) - Method in class CasperFFG
-
 
-
updateFinalizedBlocks(B) - Method in class DAGsper
-
 
-
UPLOAD_BANDWIDTH_BIN - Static variable in class GlobalNetworkStats6Region
-
 
-
UPLOAD_BANDWIDTH_DISTRIBUTION - Static variable in class GlobalNetworkStats6Region
-
 
-
uploadBandwidth - Variable in class NodeNetworkInterface
-
-
Node's total upload bandwidth
-
-
-

V

-
-
value - Variable in enum class SingleNodeType
-
 
-
value - Variable in enum class SixRegions
-
 
-
valueOf(String) - Static method in enum class PBFT.PBFTMode
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class PBFT.PBFTPhase
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class Data.DataType
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class PBFTBlockVote.VoteType
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class PBFTViewVote.VoteType
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class SingleNodeType
-
-
Returns the enum constant of this class with the specified name.
-
-
valueOf(String) - Static method in enum class SixRegions
-
-
Returns the enum constant of this class with the specified name.
-
-
values() - Static method in enum class PBFT.PBFTMode
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class PBFT.PBFTPhase
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class Data.DataType
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class PBFTBlockVote.VoteType
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class PBFTViewVote.VoteType
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class SingleNodeType
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
values() - Static method in enum class SixRegions
-
-
Returns an array containing the constants of this enum class, in -the order they are declared.
-
-
VIEW_CHANGE - Enum constant in enum class PBFTViewVote.VoteType
-
 
-
VIEW_CHANGE_MODE - Enum constant in enum class PBFT.PBFTMode
-
 
-
vote - Variable in class VoteMessage
-
 
-
Vote - Class in jabs.ledgerdata
-
 
-
Vote(int, Node) - Constructor for class Vote
-
 
-
VOTE_SIZE - Static variable in class PBFTViewVote
-
 
-
VoteMessage - Class in jabs.network.message
-
 
-
VoteMessage(Vote) - Constructor for class VoteMessage
-
 
-
voter - Variable in class Vote
-
 
-
votes - Variable in class CasperFFG
-
 
-
voteType - Variable in class PBFTBlockVote
-
 
-
voteType - Variable in class PBFTViewVote
-
 
-
VoteType() - Constructor for enum class PBFTBlockVote.VoteType
-
 
-
VoteType() - Constructor for enum class PBFTViewVote.VoteType
-
 
-
VotingBasedConsensus<B extends Block<B>,T extends Tx<T>> - Interface in jabs.consensus.algorithm
-
 
-
-

W

-
-
weight - Variable in class TangleBlock
-
 
-
-

X

-
-
Xolph<B extends SingleParentBlock<B>,T extends Tx<T>> - Class in jabs.consensus.algorithm
-
 
-
Xolph(LocalBlockTree<B>) - Constructor for class Xolph
-
 
-
-A B C D E F G H I J L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
- -
-
- - diff --git a/javadoc/index.html b/javadoc/index.html deleted file mode 100644 index dce3ea76..00000000 --- a/javadoc/index.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - -Overview (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

jabs 0.2.0 API

-
- -
- -
-
- - diff --git a/javadoc/jabs/Main.html b/javadoc/jabs/Main.html deleted file mode 100644 index c27935e5..00000000 --- a/javadoc/jabs/Main.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -Main (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs
-

Class Main

-
-
Object -
Main
-
-
-
-
public class Main -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Main

      -
      public Main()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/blockchain/LocalBlock.html b/javadoc/jabs/blockchain/LocalBlock.html deleted file mode 100644 index 0f492cc4..00000000 --- a/javadoc/jabs/blockchain/LocalBlock.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - -LocalBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.blockchain
-

Class LocalBlock<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/LocalBlockTree.html b/javadoc/jabs/blockchain/LocalBlockTree.html deleted file mode 100644 index b796bc21..00000000 --- a/javadoc/jabs/blockchain/LocalBlockTree.html +++ /dev/null @@ -1,678 +0,0 @@ - - - - - - -LocalBlockTree (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.blockchain
-

Class LocalBlockTree<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/class-use/LocalBlock.html b/javadoc/jabs/blockchain/class-use/LocalBlock.html deleted file mode 100644 index 3f400456..00000000 --- a/javadoc/jabs/blockchain/class-use/LocalBlock.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.blockchain.LocalBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.blockchain.LocalBlock

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/class-use/LocalBlockTree.html b/javadoc/jabs/blockchain/class-use/LocalBlockTree.html deleted file mode 100644 index 26ff976a..00000000 --- a/javadoc/jabs/blockchain/class-use/LocalBlockTree.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.blockchain.LocalBlockTree (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.blockchain.LocalBlockTree

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/package-frame.html b/javadoc/jabs/blockchain/package-frame.html deleted file mode 100644 index c95bbb6f..00000000 --- a/javadoc/jabs/blockchain/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.consensus.blockchain (jabs 0.1.1 API) - - - - - -

jabs.consensus.blockchain

-
-

Classes

- -
- - diff --git a/javadoc/jabs/blockchain/package-summary.html b/javadoc/jabs/blockchain/package-summary.html deleted file mode 100644 index 03799be2..00000000 --- a/javadoc/jabs/blockchain/package-summary.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - -jabs.consensus.blockchain (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.consensus.blockchain

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/package-tree.html b/javadoc/jabs/blockchain/package-tree.html deleted file mode 100644 index b5d01874..00000000 --- a/javadoc/jabs/blockchain/package-tree.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - -jabs.consensus.blockchain Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.consensus.blockchain

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/blockchain/package-use.html b/javadoc/jabs/blockchain/package-use.html deleted file mode 100644 index 62de6de8..00000000 --- a/javadoc/jabs/blockchain/package-use.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - -Uses of Package jabs.consensus.blockchain (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.consensus.blockchain

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/class-use/Main.html b/javadoc/jabs/class-use/Main.html deleted file mode 100644 index fcb369e7..00000000 --- a/javadoc/jabs/class-use/Main.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.Main (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.Main

-
-No usage of jabs.Main
- -
-
- - diff --git a/javadoc/jabs/config/NetworkStats.html b/javadoc/jabs/config/NetworkStats.html deleted file mode 100644 index cc776973..00000000 --- a/javadoc/jabs/config/NetworkStats.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - - -NetworkStats (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.config
-

Class NetworkStats

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/config/SimulationConfig.html b/javadoc/jabs/config/SimulationConfig.html deleted file mode 100644 index 9e131091..00000000 --- a/javadoc/jabs/config/SimulationConfig.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - -SimulationConfig (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.config
-

Class SimulationConfig

-
-
Object -
SimulationConfig
-
-
-
-
public final class SimulationConfig -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SimulationConfig

      -
      public SimulationConfig()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/config/class-use/NetworkStats.html b/javadoc/jabs/config/class-use/NetworkStats.html deleted file mode 100644 index ba67f972..00000000 --- a/javadoc/jabs/config/class-use/NetworkStats.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.config.NetworkStats (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.config.NetworkStats

-
-
No usage of jabs.config.NetworkStats
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/config/class-use/SimulationConfig.html b/javadoc/jabs/config/class-use/SimulationConfig.html deleted file mode 100644 index 0ee9c4ce..00000000 --- a/javadoc/jabs/config/class-use/SimulationConfig.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.config.SimulationConfig (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.config.SimulationConfig

-
-No usage of jabs.config.SimulationConfig
- -
-
- - diff --git a/javadoc/jabs/config/package-frame.html b/javadoc/jabs/config/package-frame.html deleted file mode 100644 index 5d465533..00000000 --- a/javadoc/jabs/config/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.config (jabs 0.2.0 API) - - - - - -

jabs.config

-
-

Classes

- -
- - diff --git a/javadoc/jabs/config/package-summary.html b/javadoc/jabs/config/package-summary.html deleted file mode 100644 index fb4d2c3d..00000000 --- a/javadoc/jabs/config/package-summary.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - -jabs.config (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.config

-
-
-
package jabs.config
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/config/package-tree.html b/javadoc/jabs/config/package-tree.html deleted file mode 100644 index 3a2710eb..00000000 --- a/javadoc/jabs/config/package-tree.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - -jabs.config Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.config

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/config/package-use.html b/javadoc/jabs/config/package-use.html deleted file mode 100644 index 139ec576..00000000 --- a/javadoc/jabs/config/package-use.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Package jabs.config (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.config

-
-No usage of jabs.config
- -
-
- - diff --git a/javadoc/jabs/consensus/AbstractBlockchainConsensus.html b/javadoc/jabs/consensus/AbstractBlockchainConsensus.html deleted file mode 100644 index 0efe10e3..00000000 --- a/javadoc/jabs/consensus/AbstractBlockchainConsensus.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - - -AbstractBlockchainConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class AbstractBlockchainConsensus<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/AbstractConsensusAlgorithm.html b/javadoc/jabs/consensus/AbstractConsensusAlgorithm.html deleted file mode 100644 index b9d02519..00000000 --- a/javadoc/jabs/consensus/AbstractConsensusAlgorithm.html +++ /dev/null @@ -1,478 +0,0 @@ - - - - - - -AbstractConsensusAlgorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class AbstractConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/CasperFFG.html b/javadoc/jabs/consensus/CasperFFG.html deleted file mode 100644 index 5f054971..00000000 --- a/javadoc/jabs/consensus/CasperFFG.html +++ /dev/null @@ -1,618 +0,0 @@ - - - - - - -CasperFFG (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class CasperFFG<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/ConsensusAlgorithm.html b/javadoc/jabs/consensus/ConsensusAlgorithm.html deleted file mode 100644 index 99edb1d4..00000000 --- a/javadoc/jabs/consensus/ConsensusAlgorithm.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - -ConsensusAlgorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/DAGsper.html b/javadoc/jabs/consensus/DAGsper.html deleted file mode 100644 index f7544efd..00000000 --- a/javadoc/jabs/consensus/DAGsper.html +++ /dev/null @@ -1,734 +0,0 @@ - - - - - - -DAGsper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class DAGsper<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/DeterministicFinalityConsensus.html b/javadoc/jabs/consensus/DeterministicFinalityConsensus.html deleted file mode 100644 index 1068a6c6..00000000 --- a/javadoc/jabs/consensus/DeterministicFinalityConsensus.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - -DeterministicFinalityConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Interface DeterministicFinalityConsensus<B extends Block<B>,T extends Tx<T>>

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/GhostProtocol.html b/javadoc/jabs/consensus/GhostProtocol.html deleted file mode 100644 index 10b47765..00000000 --- a/javadoc/jabs/consensus/GhostProtocol.html +++ /dev/null @@ -1,425 +0,0 @@ - - - - - - -GhostProtocol (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class GhostProtocol<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/NakamotoConsensus.html b/javadoc/jabs/consensus/NakamotoConsensus.html deleted file mode 100644 index f1fadb9a..00000000 --- a/javadoc/jabs/consensus/NakamotoConsensus.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - - - -NakamotoConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class NakamotoConsensus<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/PBFT.PBFTMode.html b/javadoc/jabs/consensus/PBFT.PBFTMode.html deleted file mode 100644 index a1d9c4c7..00000000 --- a/javadoc/jabs/consensus/PBFT.PBFTMode.html +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - -PBFT.PBFTMode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Enum PBFT.PBFTMode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/PBFT.PBFTPhase.html b/javadoc/jabs/consensus/PBFT.PBFTPhase.html deleted file mode 100644 index 73fe8b56..00000000 --- a/javadoc/jabs/consensus/PBFT.PBFTPhase.html +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -PBFT.PBFTPhase (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Enum PBFT.PBFTPhase

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/PBFT.html b/javadoc/jabs/consensus/PBFT.html deleted file mode 100644 index dbd3ce0c..00000000 --- a/javadoc/jabs/consensus/PBFT.html +++ /dev/null @@ -1,672 +0,0 @@ - - - - - - -PBFT (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class PBFT<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/VotingBasedConsensus.html b/javadoc/jabs/consensus/VotingBasedConsensus.html deleted file mode 100644 index 819cf828..00000000 --- a/javadoc/jabs/consensus/VotingBasedConsensus.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - -VotingBasedConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Interface VotingBasedConsensus<B extends Block<B>,T extends Tx<T>>

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/Xolph.html b/javadoc/jabs/consensus/Xolph.html deleted file mode 100644 index fd3dd59b..00000000 --- a/javadoc/jabs/consensus/Xolph.html +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - -Xolph (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.consensus.algorithm
-

Class Xolph<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/algorithm/AbstractBlockchainConsensus.html b/javadoc/jabs/consensus/algorithm/AbstractBlockchainConsensus.html deleted file mode 100644 index 93a47ce7..00000000 --- a/javadoc/jabs/consensus/algorithm/AbstractBlockchainConsensus.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - -AbstractBlockchainConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractBlockchainConsensus<B extends Block<B>,T extends Tx<T>>

-
-
Object -
AbstractConsensusAlgorithm<B,T> -
AbstractBlockchainConsensus<B,T>
-
-
-
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>
-
-
-
Direct Known Subclasses:
-
GhostProtocol, NakamotoConsensus, PBFT, Xolph
-
-
-
public abstract class AbstractBlockchainConsensus<B extends Block<B>,T extends Tx<T>> -extends AbstractConsensusAlgorithm<B,T>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      localBlockTree

      -
      protected final LocalBlockTree<B extends Block<B>> localBlockTree
      -
      Local Block Tree in Nodes Memory
      -
      -
    • -
    • -
      -

      peerDLTNode

      -
      protected BlockchainNode<B extends Block<B>,T extends Tx<T>> peerDLTNode
      -
      The node that runs the consensus algorithm
      -
      -
    • -
    • -
      -

      currentMainChainHead

      -
      protected B extends Block<B> currentMainChainHead
      -
      The latest block agreed by consensus algorithm (Current agreed state by the Node)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractBlockchainConsensus

      -
      public AbstractBlockchainConsensus(LocalBlockTree<B> localBlockTree)
      -
      Creates a Abstract Blockchain Consensus Algorithm
      -
      -
      Parameters:
      -
      localBlockTree - local block tree in the node's memory
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getLocalBlockTree

      -
      public LocalBlockTree<B> getLocalBlockTree()
      -
      Returns the local Block Tree that consensus algorithm uses
      -
      -
      Returns:
      -
      local block tree used by consensus
      -
      -
      -
    • -
    • -
      -

      getCanonicalChainHead

      -
      public B getCanonicalChainHead()
      -
      Returns the current head of the chain in blockchain consensus
      -
      -
      Returns:
      -
      block in the head of the chain
      -
      -
      -
    • -
    • -
      -

      setNode

      -
      public void setNode(BlockchainNode<B,T> peerDLTNode)
      -
      Sets the node using consensus algorithm (this cannot be set in Constructor function - since the algorithm is created during creation of the node, There might be better - ways to do it.)
      -
      -
      Parameters:
      -
      peerDLTNode - Sets the node using algorithm to input
      -
      -
      -
    • -
    • -
      -

      updateChain

      -
      protected abstract void updateChain()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/AbstractConsensusAlgorithm.html b/javadoc/jabs/consensus/algorithm/AbstractConsensusAlgorithm.html deleted file mode 100644 index 8f25829b..00000000 --- a/javadoc/jabs/consensus/algorithm/AbstractConsensusAlgorithm.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - -AbstractConsensusAlgorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>

-
-
Object -
AbstractConsensusAlgorithm<B,T>
-
-
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>
-
-
-
Direct Known Subclasses:
-
AbstractDAGBasedConsensus
-
-
-
public abstract class AbstractConsensusAlgorithm<B extends Block<B>,T extends Tx<T>> -extends Object -implements ConsensusAlgorithm<B,T>
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    protected HashSet<B>
    - -
    -
    All accepted blocks (received and agreed) for the consensus algorithm
    -
    -
    protected final HashSet<T>
    - -
    -
    All accepted transactions (residing inside accepted blocks)
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    int
    - -
    -
    Returns the total number of blocks agreed by the consensus algorithm - executed by the node
    -
    -
    int
    - -
    -
    Returns the yotal number of accepted transactions by the consensus algorithm
    -
    -
    boolean
    - -
    -
    Check if this block is agreed by the consensus algorithm executed by node.
    -
    -
    boolean
    -
    isBlockValid(B block)
    -
    -
    Check if the received block is valid according to the state of the chain.
    -
    -
    boolean
    - -
    -
    Check if the provided transaction is inside a block that is agreed by the - node consensus algorithm.
    -
    -
    abstract void
    - -
    -
    When a new block is received by the node this function should be called.
    -
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      acceptedBlocks

      -
      protected HashSet<B extends Block<B>> acceptedBlocks
      -
      All accepted blocks (received and agreed) for the consensus algorithm
      -
      -
    • -
    • -
      -

      acceptedTxs

      -
      protected final HashSet<T extends Tx<T>> acceptedTxs
      -
      All accepted transactions (residing inside accepted blocks)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractConsensusAlgorithm

      -
      public AbstractConsensusAlgorithm()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      newIncomingBlock

      -
      public abstract void newIncomingBlock(B block)
      -
      When a new block is received by the node this function should be called. - The consensus algorithm should take actions required accordingly to - update the state.
      -
      -
      Specified by:
      -
      newIncomingBlock in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Parameters:
      -
      block - Recently received block
      -
      -
      -
    • -
    • -
      -

      isBlockValid

      -
      public boolean isBlockValid(B block)
      -
      Check if the received block is valid according to the state of the chain. - This might include difficulty check or signature verification etc.
      -
      -
      Specified by:
      -
      isBlockValid in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Parameters:
      -
      block - The block to check if it is valid or not
      -
      Returns:
      -
      True if the block is valid according to the current state of the - chain
      -
      -
      -
    • -
    • -
      -

      isBlockConfirmed

      -
      public boolean isBlockConfirmed(B block)
      -
      Check if this block is agreed by the consensus algorithm executed by node.
      -
      -
      Specified by:
      -
      isBlockConfirmed in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Parameters:
      -
      block - The block to check if it is agreed by consensus algorithm.
      -
      Returns:
      -
      True if the block is accepted by the consensus algorithm.
      -
      -
      -
    • -
    • -
      -

      isTxConfirmed

      -
      public boolean isTxConfirmed(T tx)
      -
      Check if the provided transaction is inside a block that is agreed by the - node consensus algorithm.
      -
      -
      Specified by:
      -
      isTxConfirmed in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Parameters:
      -
      tx - The transaction to check if it is included in a agreed block - inside the consensus algorithm.
      -
      Returns:
      -
      True if the transaction is inside a block that is agreed by the - consensus algorithm.
      -
      -
      -
    • -
    • -
      -

      getNumOfAcceptedBlocks

      -
      public int getNumOfAcceptedBlocks()
      -
      Returns the total number of blocks agreed by the consensus algorithm - executed by the node
      -
      -
      Specified by:
      -
      getNumOfAcceptedBlocks in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Returns:
      -
      The total number of blocks agreed by consensus algorithm
      -
      -
      -
    • -
    • -
      -

      getNumOfAcceptedTxs

      -
      public int getNumOfAcceptedTxs()
      -
      Returns the yotal number of accepted transactions by the consensus algorithm
      -
      -
      Specified by:
      -
      getNumOfAcceptedTxs in interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
      -
      Returns:
      -
      Total number of accepted transactions by the consensus algorithm
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/CasperFFG.html b/javadoc/jabs/consensus/algorithm/CasperFFG.html deleted file mode 100644 index 70e11791..00000000 --- a/javadoc/jabs/consensus/algorithm/CasperFFG.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - -CasperFFG (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class CasperFFG<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>, DeterministicFinalityConsensus<B,T>, VotingBasedConsensus<B,T>
-
-
-
public class CasperFFG<B extends SingleParentBlock<B>,T extends Tx<T>> -extends GhostProtocol<B,T> -implements VotingBasedConsensus<B,T>, DeterministicFinalityConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/ConsensusAlgorithm.html b/javadoc/jabs/consensus/algorithm/ConsensusAlgorithm.html deleted file mode 100644 index 8bb3d68a..00000000 --- a/javadoc/jabs/consensus/algorithm/ConsensusAlgorithm.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - -ConsensusAlgorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>

-
-
-
-
All Known Subinterfaces:
-
VotingBasedConsensus<B,T>
-
-
-
All Known Implementing Classes:
-
AbstractChainBasedConsensus, AbstractConsensusAlgorithm, AbstractDAGBasedConsensus, CasperFFG, DAGsper, GhostProtocol, NakamotoConsensus, PBFT, TangleIOTA, Xolph
-
-
-
public interface ConsensusAlgorithm<B extends Block<B>,T extends Tx<T>>
-
-
- -
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      newIncomingBlock

      -
      void newIncomingBlock(B block)
      -
      -
    • -
    • -
      -

      isBlockConfirmed

      -
      boolean isBlockConfirmed(B block)
      -
      -
    • -
    • -
      -

      isTxConfirmed

      -
      boolean isTxConfirmed(T tx)
      -
      -
    • -
    • -
      -

      isBlockValid

      -
      boolean isBlockValid(B block)
      -
      -
    • -
    • -
      -

      getNumOfAcceptedBlocks

      -
      int getNumOfAcceptedBlocks()
      -
      -
    • -
    • -
      -

      getNumOfAcceptedTxs

      -
      int getNumOfAcceptedTxs()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/DAGsper.html b/javadoc/jabs/consensus/algorithm/DAGsper.html deleted file mode 100644 index eaed6b3c..00000000 --- a/javadoc/jabs/consensus/algorithm/DAGsper.html +++ /dev/null @@ -1,487 +0,0 @@ - - - - -DAGsper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class DAGsper<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>, DeterministicFinalityConsensus<B,T>, VotingBasedConsensus<B,T>
-
-
-
public class DAGsper<B extends SingleParentBlock<B>,T extends Tx<T>> -extends GhostProtocol<B,T> -implements VotingBasedConsensus<B,T>, DeterministicFinalityConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/DeterministicFinalityConsensus.html b/javadoc/jabs/consensus/algorithm/DeterministicFinalityConsensus.html deleted file mode 100644 index e85e2655..00000000 --- a/javadoc/jabs/consensus/algorithm/DeterministicFinalityConsensus.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - -DeterministicFinalityConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface DeterministicFinalityConsensus<B extends Block<B>,T extends Tx<T>>

-
-
-
-
All Known Implementing Classes:
-
CasperFFG, DAGsper, PBFT, Xolph
-
-
-
public interface DeterministicFinalityConsensus<B extends Block<B>,T extends Tx<T>>
-
-
- -
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      isBlockFinalized

      -
      boolean isBlockFinalized(B block)
      -
      -
    • -
    • -
      -

      isTxFinalized

      -
      boolean isTxFinalized(T tx)
      -
      -
    • -
    • -
      -

      getNumOfFinalizedBlocks

      -
      int getNumOfFinalizedBlocks()
      -
      -
    • -
    • -
      -

      getNumOfFinalizedTxs

      -
      int getNumOfFinalizedTxs()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/GhostProtocol.html b/javadoc/jabs/consensus/algorithm/GhostProtocol.html deleted file mode 100644 index dbb03d0d..00000000 --- a/javadoc/jabs/consensus/algorithm/GhostProtocol.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - -GhostProtocol (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class GhostProtocol<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>
-
-
-
Direct Known Subclasses:
-
CasperFFG, DAGsper
-
-
-
public class GhostProtocol<B extends SingleParentBlock<B>,T extends Tx<T>> -extends AbstractChainBasedConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/NakamotoConsensus.html b/javadoc/jabs/consensus/algorithm/NakamotoConsensus.html deleted file mode 100644 index 6345c35d..00000000 --- a/javadoc/jabs/consensus/algorithm/NakamotoConsensus.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - -NakamotoConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class NakamotoConsensus<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>
-
-
-
public class NakamotoConsensus<B extends SingleParentBlock<B>,T extends Tx<T>> -extends AbstractChainBasedConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/PBFT.PBFTMode.html b/javadoc/jabs/consensus/algorithm/PBFT.PBFTMode.html deleted file mode 100644 index 029f720c..00000000 --- a/javadoc/jabs/consensus/algorithm/PBFT.PBFTMode.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - -PBFT.PBFTMode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Enum Class PBFT.PBFTMode

-
-
Object -
Enum<PBFT.PBFTMode> -
PBFTMode
-
-
-
-
-
All Implemented Interfaces:
-
Serializable, Comparable<PBFT.PBFTMode>, Constable
-
-
-
Enclosing class:
-
PBFT<B extends SingleParentBlock<B>,T extends Tx<T>>
-
-
-
public static enum PBFT.PBFTMode -extends Enum<PBFT.PBFTMode>
-
-
- -
-
-
    - -
  • -
    -

    Enum Constant Details

    -
      -
    • -
      -

      NORMAL_MODE

      -
      public static final PBFT.PBFTMode NORMAL_MODE
      -
      -
    • -
    • -
      -

      VIEW_CHANGE_MODE

      -
      public static final PBFT.PBFTMode VIEW_CHANGE_MODE
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTMode

      -
      private PBFTMode()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static PBFT.PBFTMode[] values()
      -
      Returns an array containing the constants of this enum class, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum class, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static PBFT.PBFTMode valueOf(String name)
      -
      Returns the enum constant of this class with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this class. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      IllegalArgumentException - if this enum class has no constant with the specified name
      -
      NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/PBFT.PBFTPhase.html b/javadoc/jabs/consensus/algorithm/PBFT.PBFTPhase.html deleted file mode 100644 index a6d19fdd..00000000 --- a/javadoc/jabs/consensus/algorithm/PBFT.PBFTPhase.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - -PBFT.PBFTPhase (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Enum Class PBFT.PBFTPhase

-
-
Object -
Enum<PBFT.PBFTPhase> -
PBFTPhase
-
-
-
-
-
All Implemented Interfaces:
-
Serializable, Comparable<PBFT.PBFTPhase>, Constable
-
-
-
Enclosing class:
-
PBFT<B extends SingleParentBlock<B>,T extends Tx<T>>
-
-
-
public static enum PBFT.PBFTPhase -extends Enum<PBFT.PBFTPhase>
-
-
- -
-
-
    - -
  • -
    -

    Enum Constant Details

    -
      -
    • -
      -

      PRE_PREPARING

      -
      public static final PBFT.PBFTPhase PRE_PREPARING
      -
      -
    • -
    • -
      -

      PREPARING

      -
      public static final PBFT.PBFTPhase PREPARING
      -
      -
    • -
    • -
      -

      COMMITTING

      -
      public static final PBFT.PBFTPhase COMMITTING
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTPhase

      -
      private PBFTPhase()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static PBFT.PBFTPhase[] values()
      -
      Returns an array containing the constants of this enum class, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum class, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static PBFT.PBFTPhase valueOf(String name)
      -
      Returns the enum constant of this class with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this class. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      IllegalArgumentException - if this enum class has no constant with the specified name
      -
      NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/PBFT.html b/javadoc/jabs/consensus/algorithm/PBFT.html deleted file mode 100644 index 49f8e5b2..00000000 --- a/javadoc/jabs/consensus/algorithm/PBFT.html +++ /dev/null @@ -1,453 +0,0 @@ - - - - -PBFT (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFT<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>, DeterministicFinalityConsensus<B,T>, VotingBasedConsensus<B,T>
-
-
-
public class PBFT<B extends SingleParentBlock<B>,T extends Tx<T>> -extends AbstractChainBasedConsensus<B,T> -implements VotingBasedConsensus<B,T>, DeterministicFinalityConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/VotingBasedConsensus.html b/javadoc/jabs/consensus/algorithm/VotingBasedConsensus.html deleted file mode 100644 index 2f61c26a..00000000 --- a/javadoc/jabs/consensus/algorithm/VotingBasedConsensus.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - -VotingBasedConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface VotingBasedConsensus<B extends Block<B>,T extends Tx<T>>

-
-
-
-
All Superinterfaces:
-
ConsensusAlgorithm<B,T>
-
-
-
All Known Implementing Classes:
-
CasperFFG, DAGsper, PBFT
-
-
-
public interface VotingBasedConsensus<B extends Block<B>,T extends Tx<T>> -extends ConsensusAlgorithm<B,T>
-
-
- -
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      newIncomingVote

      -
      void newIncomingVote(Vote vote)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/Xolph.html b/javadoc/jabs/consensus/algorithm/Xolph.html deleted file mode 100644 index fc55bb98..00000000 --- a/javadoc/jabs/consensus/algorithm/Xolph.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - -Xolph (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Xolph<B extends SingleParentBlock<B>,T extends Tx<T>>

-
- -
-
-
All Implemented Interfaces:
-
ConsensusAlgorithm<B,T>, DeterministicFinalityConsensus<B,T>
-
-
-
public class Xolph<B extends SingleParentBlock<B>,T extends Tx<T>> -extends AbstractChainBasedConsensus<B,T> -implements DeterministicFinalityConsensus<B,T>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/AbstractBlockchainConsensus.html b/javadoc/jabs/consensus/algorithm/class-use/AbstractBlockchainConsensus.html deleted file mode 100644 index 67f3b7ba..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/AbstractBlockchainConsensus.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.AbstractChainBasedConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.AbstractChainBasedConsensus

-
-
Packages that use AbstractBlockchainConsensus
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/AbstractConsensusAlgorithm.html b/javadoc/jabs/consensus/algorithm/class-use/AbstractConsensusAlgorithm.html deleted file mode 100644 index 59872c18..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/AbstractConsensusAlgorithm.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.AbstractConsensusAlgorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.AbstractConsensusAlgorithm

-
-
Packages that use AbstractConsensusAlgorithm
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/CasperFFG.html b/javadoc/jabs/consensus/algorithm/class-use/CasperFFG.html deleted file mode 100644 index 9d873eea..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/CasperFFG.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.CasperFFG (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.CasperFFG

-
-No usage of jabs.consensus.algorithm.CasperFFG
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/ConsensusAlgorithm.html b/javadoc/jabs/consensus/algorithm/class-use/ConsensusAlgorithm.html deleted file mode 100644 index 3cd738e3..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/ConsensusAlgorithm.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - -Uses of Interface jabs.consensus.algorithm.ConsensusAlgorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.consensus.algorithm.ConsensusAlgorithm

-
-
Packages that use ConsensusAlgorithm
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/DAGsper.html b/javadoc/jabs/consensus/algorithm/class-use/DAGsper.html deleted file mode 100644 index 6e6a9a7f..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/DAGsper.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.DAGsper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.DAGsper

-
-No usage of jabs.consensus.algorithm.DAGsper
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/DeterministicFinalityConsensus.html b/javadoc/jabs/consensus/algorithm/class-use/DeterministicFinalityConsensus.html deleted file mode 100644 index e1953882..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/DeterministicFinalityConsensus.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - -Uses of Interface jabs.consensus.algorithm.DeterministicFinalityConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.consensus.algorithm.DeterministicFinalityConsensus

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/GhostProtocol.html b/javadoc/jabs/consensus/algorithm/class-use/GhostProtocol.html deleted file mode 100644 index 17a78718..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/GhostProtocol.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.GhostProtocol (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.GhostProtocol

-
-
Packages that use GhostProtocol
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/NakamotoConsensus.html b/javadoc/jabs/consensus/algorithm/class-use/NakamotoConsensus.html deleted file mode 100644 index 2e894778..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/NakamotoConsensus.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.NakamotoConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.NakamotoConsensus

-
-No usage of jabs.consensus.algorithm.NakamotoConsensus
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTMode.html b/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTMode.html deleted file mode 100644 index 78f51780..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTMode.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -Uses of Enum Class jabs.consensus.algorithm.PBFT.PBFTMode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Enum Class
jabs.consensus.algorithm.PBFT.PBFTMode

-
-
Packages that use PBFT.PBFTMode
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTPhase.html b/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTPhase.html deleted file mode 100644 index 922c43fb..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/PBFT.PBFTPhase.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - -Uses of Enum Class jabs.consensus.algorithm.PBFT.PBFTPhase (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Enum Class
jabs.consensus.algorithm.PBFT.PBFTPhase

-
-
Packages that use PBFT.PBFTPhase
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/PBFT.html b/javadoc/jabs/consensus/algorithm/class-use/PBFT.html deleted file mode 100644 index 0800a272..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/PBFT.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.PBFT (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.PBFT

-
-No usage of jabs.consensus.algorithm.PBFT
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/VotingBasedConsensus.html b/javadoc/jabs/consensus/algorithm/class-use/VotingBasedConsensus.html deleted file mode 100644 index 570cea8e..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/VotingBasedConsensus.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - -Uses of Interface jabs.consensus.algorithm.VotingBasedConsensus (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.consensus.algorithm.VotingBasedConsensus

-
-
Packages that use VotingBasedConsensus
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/class-use/Xolph.html b/javadoc/jabs/consensus/algorithm/class-use/Xolph.html deleted file mode 100644 index 34314622..00000000 --- a/javadoc/jabs/consensus/algorithm/class-use/Xolph.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.consensus.algorithm.Xolph (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.algorithm.Xolph

-
-No usage of jabs.consensus.algorithm.Xolph
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/package-frame.html b/javadoc/jabs/consensus/algorithm/package-frame.html deleted file mode 100644 index e2e2d507..00000000 --- a/javadoc/jabs/consensus/algorithm/package-frame.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -jabs.consensus.algorithm (jabs 0.2.0 API) - - - - - -

jabs.consensus.algorithm

-
-

Interfaces

- -

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/consensus/algorithm/package-summary.html b/javadoc/jabs/consensus/algorithm/package-summary.html deleted file mode 100644 index 8fcf6473..00000000 --- a/javadoc/jabs/consensus/algorithm/package-summary.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - -jabs.consensus.algorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.consensus.algorithm

-
-
-
package jabs.consensus.algorithm
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/package-tree.html b/javadoc/jabs/consensus/algorithm/package-tree.html deleted file mode 100644 index 9879c348..00000000 --- a/javadoc/jabs/consensus/algorithm/package-tree.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - -jabs.consensus.algorithm Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.consensus.algorithm

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
-

Enum Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/algorithm/package-use.html b/javadoc/jabs/consensus/algorithm/package-use.html deleted file mode 100644 index 63623108..00000000 --- a/javadoc/jabs/consensus/algorithm/package-use.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - -Uses of Package jabs.consensus.algorithm (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.consensus.algorithm

-
-
Packages that use jabs.consensus.algorithm
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/LocalBlock.html b/javadoc/jabs/consensus/blockchain/LocalBlock.html deleted file mode 100644 index 4fd440da..00000000 --- a/javadoc/jabs/consensus/blockchain/LocalBlock.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - -LocalBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class LocalBlock<B extends Block<B>>

-
-
Object -
LocalBlock<B>
-
-
-
-
Type Parameters:
-
B - any Block received by a node can be converted into a - LocalBlock
-
-
-
public class LocalBlock<B extends Block<B>> -extends Object
-
LocalBlock is used for blocks that resides inside a nodes memory. - LocalBlocks have more information attached to them. Like whether - they are connected by other avalibale local blocks to genesis - or not.
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    final B
    - -
    -
    The block that is received by node
    -
    -
    final HashSet<B>
    - -
    -
    All children that the block has inside node local memory
    -
    -
    boolean
    - -
    -
    Is the received block connected to genesis block by other - LocalBlocks available in nodes memory or not.
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    -
    LocalBlock(B block)
    -
    -
    Creates a Local block by taking a normal received block
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      block

      -
      public final B extends Block<B> block
      -
      The block that is received by node
      -
      -
    • -
    • -
      -

      children

      -
      public final HashSet<B extends Block<B>> children
      -
      All children that the block has inside node local memory
      -
      -
    • -
    • -
      -

      isConnectedToGenesis

      -
      public boolean isConnectedToGenesis
      -
      Is the received block connected to genesis block by other - LocalBlocks available in nodes memory or not.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      LocalBlock

      -
      public LocalBlock(B block)
      -
      Creates a Local block by taking a normal received block
      -
      -
      Parameters:
      -
      block - a normal block or network block that is - received by the node.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/LocalBlockTree.html b/javadoc/jabs/consensus/blockchain/LocalBlockTree.html deleted file mode 100644 index ce34ac99..00000000 --- a/javadoc/jabs/consensus/blockchain/LocalBlockTree.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - -LocalBlockTree (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class LocalBlockTree<B extends SingleParentBlock<B>>

-
-
Object -
LocalBlockDAG<B> -
LocalBlockTree<B>
-
-
-
-
-
Type Parameters:
-
B - The block type that this tree supports
-
-
-
public class LocalBlockTree<B extends SingleParentBlock<B>> -extends LocalBlockDAG<B>
-
A tree graph of blocks received by a node. Each node in the metwrok should - have a local tree of all blocks received. In a Nakamoto Consensus, for example, - there is only one main chain and the blocks outside that chain are stale blocks.
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      LocalBlockTree

      -
      public LocalBlockTree(B genesisLocalBlock)
      -
      Creates the local tree block of a node.
      -
      -
      Parameters:
      -
      genesisLocalBlock - The block with no parents in the network
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      add

      -
      public void add(B block)
      -
      Adds a received block from network to the local tree block.
      -
      -
      Overrides:
      -
      add in class LocalBlockDAG<B extends SingleParentBlock<B>>
      -
      Parameters:
      -
      block - received block from the network or generated inside - the node itself.
      -
      -
      -
    • -
    • -
      -

      areBlocksConnected

      -
      public boolean areBlocksConnected(B block1, - B block2)
      -
      Determines if two blocks are connected to each other or not. If all block between the two - input blocks are already available inside the local block tree then returns true else returns - false
      -
      -
      Overrides:
      -
      areBlocksConnected in class LocalBlockDAG<B extends SingleParentBlock<B>>
      -
      Parameters:
      -
      block1 - first block
      -
      block2 - second block
      -
      Returns:
      -
      true if there is a path between the two blocks and all block between them are - available inside the local block tree else fasle.
      -
      -
      -
    • -
    • -
      -

      getPathBetween

      -
      public List<B> getPathBetween(B block1, - B block2)
      -
      Returns all the blocks between two provided blocks inside local block tree if there is any - such path between them.
      -
      -
      Parameters:
      -
      block1 - first block
      -
      block2 - second block
      -
      Returns:
      -
      the list of all blocks between the two input block, starting from the one with higher - height block.
      -
      -
      -
    • -
    • -
      -

      getCommonAncestor

      -
      public B getCommonAncestor(B blockA, - B blockB)
      -
      Returns the highest common ancestor of the provided two blocks.
      -
      -
      Parameters:
      -
      blockA - First block
      -
      blockB - Second block
      -
      Returns:
      -
      The ancestor with largest height value.
      -
      -
      -
    • -
    • -
      -

      getAncestorOfHeight

      -
      public B getAncestorOfHeight(B block, - int height)
      -
      Returns the ancestor of the block with at certain height.
      -
      -
      Parameters:
      -
      block - the block
      -
      height - the targeted height that the returning ancestor is expected to have
      -
      Returns:
      -
      the ancestor with height equal to the input height.
      -
      -
      -
    • -
    • -
      -

      getAllAncestors

      -
      public HashSet<B> getAllAncestors(B block)
      -
      Returns all ancestors of the input block in a HashSet
      -
      -
      Overrides:
      -
      getAllAncestors in class LocalBlockDAG<B extends SingleParentBlock<B>>
      -
      Parameters:
      -
      block - the block which its ancestors are requested
      -
      Returns:
      -
      all ancestors in the local block tree
      -
      -
      -
    • -
    • -
      -

      getAllSuccessors

      -
      public HashSet<B> getAllSuccessors(B block)
      -
      Returns a SortedSet of all available Successors of the input block inside - local block tree
      -
      -
      Overrides:
      -
      getAllSuccessors in class LocalBlockDAG<B extends SingleParentBlock<B>>
      -
      Parameters:
      -
      block - the block of which the successors are requested
      -
      Returns:
      -
      SortedSet of all available Successors of the input block inside - the local block tree.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/class-use/LocalBlock.html b/javadoc/jabs/consensus/blockchain/class-use/LocalBlock.html deleted file mode 100644 index 2f791edb..00000000 --- a/javadoc/jabs/consensus/blockchain/class-use/LocalBlock.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - -Uses of Class jabs.consensus.blockchain.LocalBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.blockchain.LocalBlock

-
-
Packages that use LocalBlock
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/class-use/LocalBlockTree.html b/javadoc/jabs/consensus/blockchain/class-use/LocalBlockTree.html deleted file mode 100644 index 6bac1fc1..00000000 --- a/javadoc/jabs/consensus/blockchain/class-use/LocalBlockTree.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - -Uses of Class jabs.consensus.blockchain.LocalBlockTree (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.consensus.blockchain.LocalBlockTree

-
-
Packages that use LocalBlockTree
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/package-frame.html b/javadoc/jabs/consensus/blockchain/package-frame.html deleted file mode 100644 index 83e07614..00000000 --- a/javadoc/jabs/consensus/blockchain/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.consensus.blockchain (jabs 0.2.0 API) - - - - - -

jabs.consensus.blockchain

-
-

Classes

- -
- - diff --git a/javadoc/jabs/consensus/blockchain/package-summary.html b/javadoc/jabs/consensus/blockchain/package-summary.html deleted file mode 100644 index 5dcd6cbd..00000000 --- a/javadoc/jabs/consensus/blockchain/package-summary.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - -jabs.consensus.blockchain (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.consensus.blockchain

-
-
-
package jabs.consensus.blockchain
-
-
    -
  • -
    -
    Classes
    -
    -
    Class
    -
    Description
    -
    LocalBlock<B extends Block<B>>
    -
    -
    LocalBlock is used for blocks that resides inside a nodes memory.
    -
    -
    LocalBlockDAG<B extends Block<B>>
    -
    -
    A DAG graph of blocks received by a node.
    -
    - -
    -
    A tree graph of blocks received by a node.
    -
    -
    -
    -
  • -
-
-
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/package-tree.html b/javadoc/jabs/consensus/blockchain/package-tree.html deleted file mode 100644 index 5275250f..00000000 --- a/javadoc/jabs/consensus/blockchain/package-tree.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - -jabs.consensus.blockchain Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.consensus.blockchain

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/blockchain/package-use.html b/javadoc/jabs/consensus/blockchain/package-use.html deleted file mode 100644 index d7cdf5f4..00000000 --- a/javadoc/jabs/consensus/blockchain/package-use.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - -Uses of Package jabs.consensus.blockchain (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.consensus.blockchain

-
-
Packages that use jabs.consensus.blockchain
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/consensus/class-use/AbstractBlockchainConsensus.html b/javadoc/jabs/consensus/class-use/AbstractBlockchainConsensus.html deleted file mode 100644 index e2babd92..00000000 --- a/javadoc/jabs/consensus/class-use/AbstractBlockchainConsensus.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.AbstractChainBasedConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.AbstractChainBasedConsensus

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/AbstractConsensusAlgorithm.html b/javadoc/jabs/consensus/class-use/AbstractConsensusAlgorithm.html deleted file mode 100644 index 25aad7b4..00000000 --- a/javadoc/jabs/consensus/class-use/AbstractConsensusAlgorithm.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.AbstractConsensusAlgorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.AbstractConsensusAlgorithm

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/CasperFFG.html b/javadoc/jabs/consensus/class-use/CasperFFG.html deleted file mode 100644 index fef4ec99..00000000 --- a/javadoc/jabs/consensus/class-use/CasperFFG.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.CasperFFG (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.CasperFFG

-
-
No usage of jabs.consensus.algorithm.CasperFFG
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/ConsensusAlgorithm.html b/javadoc/jabs/consensus/class-use/ConsensusAlgorithm.html deleted file mode 100644 index 312b291e..00000000 --- a/javadoc/jabs/consensus/class-use/ConsensusAlgorithm.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - -Uses of Interface jabs.consensus.algorithm.ConsensusAlgorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.consensus.algorithm.ConsensusAlgorithm

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/DAGsper.html b/javadoc/jabs/consensus/class-use/DAGsper.html deleted file mode 100644 index 50e6f09c..00000000 --- a/javadoc/jabs/consensus/class-use/DAGsper.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.DAGsper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.DAGsper

-
-
No usage of jabs.consensus.algorithm.DAGsper
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/DeterministicFinalityConsensus.html b/javadoc/jabs/consensus/class-use/DeterministicFinalityConsensus.html deleted file mode 100644 index 91b40fd1..00000000 --- a/javadoc/jabs/consensus/class-use/DeterministicFinalityConsensus.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - -Uses of Interface jabs.consensus.algorithm.DeterministicFinalityConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.consensus.algorithm.DeterministicFinalityConsensus

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/GhostProtocol.html b/javadoc/jabs/consensus/class-use/GhostProtocol.html deleted file mode 100644 index 3836ced5..00000000 --- a/javadoc/jabs/consensus/class-use/GhostProtocol.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.GhostProtocol (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.GhostProtocol

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/NakamotoConsensus.html b/javadoc/jabs/consensus/class-use/NakamotoConsensus.html deleted file mode 100644 index 10ca561b..00000000 --- a/javadoc/jabs/consensus/class-use/NakamotoConsensus.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.NakamotoConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.NakamotoConsensus

-
-
No usage of jabs.consensus.algorithm.NakamotoConsensus
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/PBFT.PBFTMode.html b/javadoc/jabs/consensus/class-use/PBFT.PBFTMode.html deleted file mode 100644 index d8ee546d..00000000 --- a/javadoc/jabs/consensus/class-use/PBFT.PBFTMode.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.PBFT.PBFTMode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.PBFT.PBFTMode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/PBFT.PBFTPhase.html b/javadoc/jabs/consensus/class-use/PBFT.PBFTPhase.html deleted file mode 100644 index 9840e739..00000000 --- a/javadoc/jabs/consensus/class-use/PBFT.PBFTPhase.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.PBFT.PBFTPhase (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.PBFT.PBFTPhase

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/PBFT.html b/javadoc/jabs/consensus/class-use/PBFT.html deleted file mode 100644 index 165e3167..00000000 --- a/javadoc/jabs/consensus/class-use/PBFT.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.PBFT (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.PBFT

-
-
No usage of jabs.consensus.algorithm.PBFT
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/VotingBasedConsensus.html b/javadoc/jabs/consensus/class-use/VotingBasedConsensus.html deleted file mode 100644 index 5f0663ca..00000000 --- a/javadoc/jabs/consensus/class-use/VotingBasedConsensus.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - -Uses of Interface jabs.consensus.algorithm.VotingBasedConsensus (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.consensus.algorithm.VotingBasedConsensus

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/class-use/Xolph.html b/javadoc/jabs/consensus/class-use/Xolph.html deleted file mode 100644 index 94263fc1..00000000 --- a/javadoc/jabs/consensus/class-use/Xolph.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.consensus.algorithm.Xolph (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.consensus.algorithm.Xolph

-
-
No usage of jabs.consensus.algorithm.Xolph
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/package-frame.html b/javadoc/jabs/consensus/package-frame.html deleted file mode 100644 index 9fbff822..00000000 --- a/javadoc/jabs/consensus/package-frame.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -jabs.consensus.algorithm (jabs 0.1.1 API) - - - - - -

jabs.consensus.algorithm

-
-

Interfaces

- -

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/consensus/package-summary.html b/javadoc/jabs/consensus/package-summary.html deleted file mode 100644 index 11840ffa..00000000 --- a/javadoc/jabs/consensus/package-summary.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - -jabs.consensus.algorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.consensus.algorithm

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/package-tree.html b/javadoc/jabs/consensus/package-tree.html deleted file mode 100644 index f2b01ae7..00000000 --- a/javadoc/jabs/consensus/package-tree.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - -jabs.consensus.algorithm Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.consensus.algorithm

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -

Enum Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/consensus/package-use.html b/javadoc/jabs/consensus/package-use.html deleted file mode 100644 index df084443..00000000 --- a/javadoc/jabs/consensus/package-use.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - -Uses of Package jabs.consensus.algorithm (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.consensus.algorithm

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/BasicData.html b/javadoc/jabs/data/BasicData.html deleted file mode 100644 index 26d8bcc3..00000000 --- a/javadoc/jabs/data/BasicData.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - -BasicData (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class BasicData

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Block.html b/javadoc/jabs/data/Block.html deleted file mode 100644 index a82bd40f..00000000 --- a/javadoc/jabs/data/Block.html +++ /dev/null @@ -1,478 +0,0 @@ - - - - - - -Block (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class Block<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/BlockWithTx.html b/javadoc/jabs/data/BlockWithTx.html deleted file mode 100644 index d7b0d09d..00000000 --- a/javadoc/jabs/data/BlockWithTx.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -BlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Interface BlockWithTx<T extends Tx<T>>

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Data.DataType.html b/javadoc/jabs/data/Data.DataType.html deleted file mode 100644 index a405fc63..00000000 --- a/javadoc/jabs/data/Data.DataType.html +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - -Data.DataType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Enum Data.DataType

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Data.html b/javadoc/jabs/data/Data.html deleted file mode 100644 index 63117da2..00000000 --- a/javadoc/jabs/data/Data.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - -Data (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class Data

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Hash.html b/javadoc/jabs/data/Hash.html deleted file mode 100644 index b64c99b2..00000000 --- a/javadoc/jabs/data/Hash.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - -Hash (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class Hash

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Tx.html b/javadoc/jabs/data/Tx.html deleted file mode 100644 index f39d7e4c..00000000 --- a/javadoc/jabs/data/Tx.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - -Tx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class Tx<T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/Vote.html b/javadoc/jabs/data/Vote.html deleted file mode 100644 index dded0683..00000000 --- a/javadoc/jabs/data/Vote.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - - -Vote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.datalayer.data
-

Class Vote

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/BitcoinBlock.html b/javadoc/jabs/data/bitcoin/BitcoinBlock.html deleted file mode 100644 index 6b56d09c..00000000 --- a/javadoc/jabs/data/bitcoin/BitcoinBlock.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -BitcoinBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.bitcoin
-

Class BitcoinBlock

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/BitcoinBlockWithTx.html b/javadoc/jabs/data/bitcoin/BitcoinBlockWithTx.html deleted file mode 100644 index 077c4626..00000000 --- a/javadoc/jabs/data/bitcoin/BitcoinBlockWithTx.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - - - -BitcoinBlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.bitcoin
-

Class BitcoinBlockWithTx

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/BitcoinTx.html b/javadoc/jabs/data/bitcoin/BitcoinTx.html deleted file mode 100644 index 517ecdef..00000000 --- a/javadoc/jabs/data/bitcoin/BitcoinTx.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - -BitcoinTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.bitcoin
-

Class BitcoinTx

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/class-use/BitcoinBlock.html b/javadoc/jabs/data/bitcoin/class-use/BitcoinBlock.html deleted file mode 100644 index 7518713a..00000000 --- a/javadoc/jabs/data/bitcoin/class-use/BitcoinBlock.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinBlock

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/class-use/BitcoinBlockWithTx.html b/javadoc/jabs/data/bitcoin/class-use/BitcoinBlockWithTx.html deleted file mode 100644 index 1ae853cb..00000000 --- a/javadoc/jabs/data/bitcoin/class-use/BitcoinBlockWithTx.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinBlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinBlockWithTx

-
-
No usage of jabs.ledgerdata.bitcoin.BitcoinBlockWithTx
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/class-use/BitcoinTx.html b/javadoc/jabs/data/bitcoin/class-use/BitcoinTx.html deleted file mode 100644 index cbcbf266..00000000 --- a/javadoc/jabs/data/bitcoin/class-use/BitcoinTx.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinTx

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/package-frame.html b/javadoc/jabs/data/bitcoin/package-frame.html deleted file mode 100644 index a39b1d3f..00000000 --- a/javadoc/jabs/data/bitcoin/package-frame.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -jabs.ledgerdata.bitcoin (jabs 0.1.1 API) - - - - - -

jabs.ledgerdata.bitcoin

-
-

Classes

- -
- - diff --git a/javadoc/jabs/data/bitcoin/package-summary.html b/javadoc/jabs/data/bitcoin/package-summary.html deleted file mode 100644 index 85a40916..00000000 --- a/javadoc/jabs/data/bitcoin/package-summary.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - -jabs.ledgerdata.bitcoin (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.ledgerdata.bitcoin

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/package-tree.html b/javadoc/jabs/data/bitcoin/package-tree.html deleted file mode 100644 index a5eef56e..00000000 --- a/javadoc/jabs/data/bitcoin/package-tree.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -jabs.ledgerdata.bitcoin Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.ledgerdata.bitcoin

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/bitcoin/package-use.html b/javadoc/jabs/data/bitcoin/package-use.html deleted file mode 100644 index c42ba388..00000000 --- a/javadoc/jabs/data/bitcoin/package-use.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - -Uses of Package jabs.ledgerdata.bitcoin (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.ledgerdata.bitcoin

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/CasperFFGLink.html b/javadoc/jabs/data/casper/CasperFFGLink.html deleted file mode 100644 index 1e96f27b..00000000 --- a/javadoc/jabs/data/casper/CasperFFGLink.html +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - -CasperFFGLink (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.casper
-

Class CasperFFGLink<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/CasperFFGVote.html b/javadoc/jabs/data/casper/CasperFFGVote.html deleted file mode 100644 index d887dcf6..00000000 --- a/javadoc/jabs/data/casper/CasperFFGVote.html +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -CasperFFGVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.casper
-

Class CasperFFGVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/class-use/CasperFFGLink.html b/javadoc/jabs/data/casper/class-use/CasperFFGLink.html deleted file mode 100644 index c4574729..00000000 --- a/javadoc/jabs/data/casper/class-use/CasperFFGLink.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.casper.CasperFFGLink (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.casper.CasperFFGLink

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/class-use/CasperFFGVote.html b/javadoc/jabs/data/casper/class-use/CasperFFGVote.html deleted file mode 100644 index 74ae2224..00000000 --- a/javadoc/jabs/data/casper/class-use/CasperFFGVote.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.casper.CasperFFGVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.casper.CasperFFGVote

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/package-frame.html b/javadoc/jabs/data/casper/package-frame.html deleted file mode 100644 index 1d9bddd9..00000000 --- a/javadoc/jabs/data/casper/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.ledgerdata.casper (jabs 0.1.1 API) - - - - - -

jabs.ledgerdata.casper

-
-

Classes

- -
- - diff --git a/javadoc/jabs/data/casper/package-summary.html b/javadoc/jabs/data/casper/package-summary.html deleted file mode 100644 index a6020ccc..00000000 --- a/javadoc/jabs/data/casper/package-summary.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -jabs.ledgerdata.casper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.ledgerdata.casper

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/package-tree.html b/javadoc/jabs/data/casper/package-tree.html deleted file mode 100644 index 000d209b..00000000 --- a/javadoc/jabs/data/casper/package-tree.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -jabs.ledgerdata.casper Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.ledgerdata.casper

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/casper/package-use.html b/javadoc/jabs/data/casper/package-use.html deleted file mode 100644 index 916dc9fa..00000000 --- a/javadoc/jabs/data/casper/package-use.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - -Uses of Package jabs.ledgerdata.casper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.ledgerdata.casper

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/BasicData.html b/javadoc/jabs/data/class-use/BasicData.html deleted file mode 100644 index 2b6e7ffd..00000000 --- a/javadoc/jabs/data/class-use/BasicData.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.BasicData (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.BasicData

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Block.html b/javadoc/jabs/data/class-use/Block.html deleted file mode 100644 index a828f96f..00000000 --- a/javadoc/jabs/data/class-use/Block.html +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Block (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Block

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/BlockWithTx.html b/javadoc/jabs/data/class-use/BlockWithTx.html deleted file mode 100644 index 655a0e7c..00000000 --- a/javadoc/jabs/data/class-use/BlockWithTx.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - -Uses of Interface jabs.ledgerdata.BlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.ledgerdata.BlockWithTx

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Data.DataType.html b/javadoc/jabs/data/class-use/Data.DataType.html deleted file mode 100644 index 3bca60e0..00000000 --- a/javadoc/jabs/data/class-use/Data.DataType.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Data.DataType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Data.DataType

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Data.html b/javadoc/jabs/data/class-use/Data.html deleted file mode 100644 index e7161bc2..00000000 --- a/javadoc/jabs/data/class-use/Data.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Data (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Data

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Hash.html b/javadoc/jabs/data/class-use/Hash.html deleted file mode 100644 index 882e4500..00000000 --- a/javadoc/jabs/data/class-use/Hash.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Hash (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Hash

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Tx.html b/javadoc/jabs/data/class-use/Tx.html deleted file mode 100644 index f8eff1f3..00000000 --- a/javadoc/jabs/data/class-use/Tx.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Tx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Tx

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/class-use/Vote.html b/javadoc/jabs/data/class-use/Vote.html deleted file mode 100644 index a907b1ee..00000000 --- a/javadoc/jabs/data/class-use/Vote.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.Vote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.Vote

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/dagsper/DAGsperVote.html b/javadoc/jabs/data/dagsper/DAGsperVote.html deleted file mode 100644 index dba7b148..00000000 --- a/javadoc/jabs/data/dagsper/DAGsperVote.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - -DAGsperVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.dagsper
-

Class DAGsperVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/dagsper/class-use/DAGsperVote.html b/javadoc/jabs/data/dagsper/class-use/DAGsperVote.html deleted file mode 100644 index 26914426..00000000 --- a/javadoc/jabs/data/dagsper/class-use/DAGsperVote.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.dagsper.DAGsperVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.dagsper.DAGsperVote

-
-
No usage of jabs.ledgerdata.dagsper.DAGsperVote
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/dagsper/package-frame.html b/javadoc/jabs/data/dagsper/package-frame.html deleted file mode 100644 index 6db529ed..00000000 --- a/javadoc/jabs/data/dagsper/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.ledgerdata.dagsper (jabs 0.1.1 API) - - - - - -

jabs.ledgerdata.dagsper

-
-

Classes

- -
- - diff --git a/javadoc/jabs/data/dagsper/package-summary.html b/javadoc/jabs/data/dagsper/package-summary.html deleted file mode 100644 index 35f02034..00000000 --- a/javadoc/jabs/data/dagsper/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -jabs.ledgerdata.dagsper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.ledgerdata.dagsper

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/dagsper/package-tree.html b/javadoc/jabs/data/dagsper/package-tree.html deleted file mode 100644 index b45b98bd..00000000 --- a/javadoc/jabs/data/dagsper/package-tree.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -jabs.ledgerdata.dagsper Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.ledgerdata.dagsper

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/dagsper/package-use.html b/javadoc/jabs/data/dagsper/package-use.html deleted file mode 100644 index 1e120a31..00000000 --- a/javadoc/jabs/data/dagsper/package-use.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Package jabs.ledgerdata.dagsper (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.ledgerdata.dagsper

-
-
No usage of jabs.ledgerdata.dagsper
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/EthereumBlock.html b/javadoc/jabs/data/ethereum/EthereumBlock.html deleted file mode 100644 index 739bf90b..00000000 --- a/javadoc/jabs/data/ethereum/EthereumBlock.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - - -EthereumBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.ethereum
-

Class EthereumBlock

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/EthereumBlockWithTx.html b/javadoc/jabs/data/ethereum/EthereumBlockWithTx.html deleted file mode 100644 index 8b29e5b1..00000000 --- a/javadoc/jabs/data/ethereum/EthereumBlockWithTx.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - - -EthereumBlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.ethereum
-

Class EthereumBlockWithTx

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/EthereumTx.html b/javadoc/jabs/data/ethereum/EthereumTx.html deleted file mode 100644 index e2247d13..00000000 --- a/javadoc/jabs/data/ethereum/EthereumTx.html +++ /dev/null @@ -1,360 +0,0 @@ - - - - - - -EthereumTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.ethereum
-

Class EthereumTx

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/class-use/EthereumBlock.html b/javadoc/jabs/data/ethereum/class-use/EthereumBlock.html deleted file mode 100644 index aadd71cf..00000000 --- a/javadoc/jabs/data/ethereum/class-use/EthereumBlock.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumBlock

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/class-use/EthereumBlockWithTx.html b/javadoc/jabs/data/ethereum/class-use/EthereumBlockWithTx.html deleted file mode 100644 index ab27b504..00000000 --- a/javadoc/jabs/data/ethereum/class-use/EthereumBlockWithTx.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumBlockWithTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumBlockWithTx

-
-
No usage of jabs.ledgerdata.ethereum.EthereumBlockWithTx
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/class-use/EthereumTx.html b/javadoc/jabs/data/ethereum/class-use/EthereumTx.html deleted file mode 100644 index e956f98e..00000000 --- a/javadoc/jabs/data/ethereum/class-use/EthereumTx.html +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumTx

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/package-frame.html b/javadoc/jabs/data/ethereum/package-frame.html deleted file mode 100644 index 05881542..00000000 --- a/javadoc/jabs/data/ethereum/package-frame.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -jabs.ledgerdata.ethereum (jabs 0.1.1 API) - - - - - -

jabs.ledgerdata.ethereum

-
-

Classes

- -
- - diff --git a/javadoc/jabs/data/ethereum/package-summary.html b/javadoc/jabs/data/ethereum/package-summary.html deleted file mode 100644 index 19c7ff7f..00000000 --- a/javadoc/jabs/data/ethereum/package-summary.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - -jabs.ledgerdata.ethereum (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.ledgerdata.ethereum

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/package-tree.html b/javadoc/jabs/data/ethereum/package-tree.html deleted file mode 100644 index 7b4d63c8..00000000 --- a/javadoc/jabs/data/ethereum/package-tree.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -jabs.ledgerdata.ethereum Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.ledgerdata.ethereum

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/ethereum/package-use.html b/javadoc/jabs/data/ethereum/package-use.html deleted file mode 100644 index 02422e99..00000000 --- a/javadoc/jabs/data/ethereum/package-use.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - -Uses of Package jabs.ledgerdata.ethereum (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.ledgerdata.ethereum

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/package-frame.html b/javadoc/jabs/data/package-frame.html deleted file mode 100644 index 4324a613..00000000 --- a/javadoc/jabs/data/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -jabs.datalayer.data (jabs 0.1.1 API) - - - - - -

jabs.datalayer.data

-
-

Interfaces

- -

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/data/package-summary.html b/javadoc/jabs/data/package-summary.html deleted file mode 100644 index ff4df060..00000000 --- a/javadoc/jabs/data/package-summary.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -jabs.datalayer.data (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.datalayer.data

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/package-tree.html b/javadoc/jabs/data/package-tree.html deleted file mode 100644 index 57bc5837..00000000 --- a/javadoc/jabs/data/package-tree.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - -jabs.datalayer.data Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.datalayer.data

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -

Enum Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/package-use.html b/javadoc/jabs/data/package-use.html deleted file mode 100644 index b2367042..00000000 --- a/javadoc/jabs/data/package-use.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - -Uses of Package jabs.datalayer.data (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.datalayer.data

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTBlock.html b/javadoc/jabs/data/pbft/PBFTBlock.html deleted file mode 100644 index 1c268a71..00000000 --- a/javadoc/jabs/data/pbft/PBFTBlock.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - -PBFTBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTBlock

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTBlockVote.VoteType.html b/javadoc/jabs/data/pbft/PBFTBlockVote.VoteType.html deleted file mode 100644 index 9d73dd00..00000000 --- a/javadoc/jabs/data/pbft/PBFTBlockVote.VoteType.html +++ /dev/null @@ -1,357 +0,0 @@ - - - - - - -PBFTBlockVote.VoteType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Enum PBFTBlockVote.VoteType

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTBlockVote.html b/javadoc/jabs/data/pbft/PBFTBlockVote.html deleted file mode 100644 index 4ab0222e..00000000 --- a/javadoc/jabs/data/pbft/PBFTBlockVote.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - - -PBFTBlockVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTBlockVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTCommitVote.html b/javadoc/jabs/data/pbft/PBFTCommitVote.html deleted file mode 100644 index 7fb44425..00000000 --- a/javadoc/jabs/data/pbft/PBFTCommitVote.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -PBFTCommitVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTCommitVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTPrePrepareVote.html b/javadoc/jabs/data/pbft/PBFTPrePrepareVote.html deleted file mode 100644 index c9c69a48..00000000 --- a/javadoc/jabs/data/pbft/PBFTPrePrepareVote.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -PBFTPrePrepareVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTPrePrepareVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTPrepareVote.html b/javadoc/jabs/data/pbft/PBFTPrepareVote.html deleted file mode 100644 index fecfcbb2..00000000 --- a/javadoc/jabs/data/pbft/PBFTPrepareVote.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -PBFTPrepareVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTPrepareVote<B extends Block<B>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTTx.html b/javadoc/jabs/data/pbft/PBFTTx.html deleted file mode 100644 index fd697443..00000000 --- a/javadoc/jabs/data/pbft/PBFTTx.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - -PBFTTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTTx

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTViewVote.VoteType.html b/javadoc/jabs/data/pbft/PBFTViewVote.VoteType.html deleted file mode 100644 index aee20c4c..00000000 --- a/javadoc/jabs/data/pbft/PBFTViewVote.VoteType.html +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - -PBFTViewVote.VoteType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Enum PBFTViewVote.VoteType

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/PBFTViewVote.html b/javadoc/jabs/data/pbft/PBFTViewVote.html deleted file mode 100644 index 9a5e2cea..00000000 --- a/javadoc/jabs/data/pbft/PBFTViewVote.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - - -PBFTViewVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.ledgerdata.pbft
-

Class PBFTViewVote

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTBlock.html b/javadoc/jabs/data/pbft/class-use/PBFTBlock.html deleted file mode 100644 index 88e9fcbf..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTBlock.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTBlock (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTBlock

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.VoteType.html b/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.VoteType.html deleted file mode 100644 index 3122d12a..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.VoteType.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTBlockVote.VoteType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTBlockVote.VoteType

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.html b/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.html deleted file mode 100644 index ef22abbf..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTBlockVote.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTBlockVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTBlockVote

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTCommitVote.html b/javadoc/jabs/data/pbft/class-use/PBFTCommitVote.html deleted file mode 100644 index 67de329b..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTCommitVote.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTCommitVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTCommitVote

-
-
No usage of jabs.ledgerdata.pbft.PBFTCommitVote
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTPrePrepareVote.html b/javadoc/jabs/data/pbft/class-use/PBFTPrePrepareVote.html deleted file mode 100644 index b50dcde1..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTPrePrepareVote.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTPrePrepareVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTPrePrepareVote

-
-
No usage of jabs.ledgerdata.pbft.PBFTPrePrepareVote
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTPrepareVote.html b/javadoc/jabs/data/pbft/class-use/PBFTPrepareVote.html deleted file mode 100644 index 7a11c994..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTPrepareVote.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTPrepareVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTPrepareVote

-
-
No usage of jabs.ledgerdata.pbft.PBFTPrepareVote
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTTx.html b/javadoc/jabs/data/pbft/class-use/PBFTTx.html deleted file mode 100644 index ff008132..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTTx.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTTx (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTTx

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTViewVote.VoteType.html b/javadoc/jabs/data/pbft/class-use/PBFTViewVote.VoteType.html deleted file mode 100644 index 4c9e5ee9..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTViewVote.VoteType.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTViewVote.VoteType (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTViewVote.VoteType

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/class-use/PBFTViewVote.html b/javadoc/jabs/data/pbft/class-use/PBFTViewVote.html deleted file mode 100644 index b48b8a40..00000000 --- a/javadoc/jabs/data/pbft/class-use/PBFTViewVote.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTViewVote (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.ledgerdata.pbft.PBFTViewVote

-
-
No usage of jabs.ledgerdata.pbft.PBFTViewVote
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/package-frame.html b/javadoc/jabs/data/pbft/package-frame.html deleted file mode 100644 index 5ffc8a47..00000000 --- a/javadoc/jabs/data/pbft/package-frame.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -jabs.ledgerdata.pbft (jabs 0.1.1 API) - - - - - -

jabs.ledgerdata.pbft

-
-

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/data/pbft/package-summary.html b/javadoc/jabs/data/pbft/package-summary.html deleted file mode 100644 index 4331c559..00000000 --- a/javadoc/jabs/data/pbft/package-summary.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - -jabs.ledgerdata.pbft (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.ledgerdata.pbft

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/package-tree.html b/javadoc/jabs/data/pbft/package-tree.html deleted file mode 100644 index 0beb357a..00000000 --- a/javadoc/jabs/data/pbft/package-tree.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - -jabs.ledgerdata.pbft Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.ledgerdata.pbft

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Enum Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/data/pbft/package-use.html b/javadoc/jabs/data/pbft/package-use.html deleted file mode 100644 index 314428e1..00000000 --- a/javadoc/jabs/data/pbft/package-use.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - -Uses of Package jabs.ledgerdata.pbft (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.ledgerdata.pbft

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/AbstractBlockGeneratorProcess.html b/javadoc/jabs/event/AbstractBlockGeneratorProcess.html deleted file mode 100644 index 1921f389..00000000 --- a/javadoc/jabs/event/AbstractBlockGeneratorProcess.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - -AbstractBlockGeneratorProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class AbstractBlockGeneratorProcess

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/AbstractGeneratorProcess.html b/javadoc/jabs/event/AbstractGeneratorProcess.html deleted file mode 100644 index eea51504..00000000 --- a/javadoc/jabs/event/AbstractGeneratorProcess.html +++ /dev/null @@ -1,389 +0,0 @@ - - - - - - -AbstractGeneratorProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class AbstractGeneratorProcess

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/AbstractPacketProcessor.TimedPacket.html b/javadoc/jabs/event/AbstractPacketProcessor.TimedPacket.html deleted file mode 100644 index 8dfc39dd..00000000 --- a/javadoc/jabs/event/AbstractPacketProcessor.TimedPacket.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - -AbstractPacketProcessor.TimedPacket (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class AbstractPacketProcessor.TimedPacket

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/AbstractPacketProcessor.html b/javadoc/jabs/event/AbstractPacketProcessor.html deleted file mode 100644 index 6da98685..00000000 --- a/javadoc/jabs/event/AbstractPacketProcessor.html +++ /dev/null @@ -1,449 +0,0 @@ - - - - - - -AbstractPacketProcessor (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class AbstractPacketProcessor

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/AbstractTxGeneratorProcess.html b/javadoc/jabs/event/AbstractTxGeneratorProcess.html deleted file mode 100644 index 3368bda8..00000000 --- a/javadoc/jabs/event/AbstractTxGeneratorProcess.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - -AbstractTxGeneratorProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class AbstractTxGeneratorProcess

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/BlockGenerationEvent.html b/javadoc/jabs/event/BlockGenerationEvent.html deleted file mode 100644 index fefc9803..00000000 --- a/javadoc/jabs/event/BlockGenerationEvent.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - - -BlockGenerationEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class BlockGenerationEvent

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/BlockGeneratorProcessFixedNode.html b/javadoc/jabs/event/BlockGeneratorProcessFixedNode.html deleted file mode 100644 index 361436a8..00000000 --- a/javadoc/jabs/event/BlockGeneratorProcessFixedNode.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - -BlockGeneratorProcessFixedNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class BlockGeneratorProcessFixedNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/BlockGeneratorProcessRandomNode.html b/javadoc/jabs/event/BlockGeneratorProcessRandomNode.html deleted file mode 100644 index 7c80d7f7..00000000 --- a/javadoc/jabs/event/BlockGeneratorProcessRandomNode.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - -BlockGeneratorProcessRandomNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class BlockGeneratorProcessRandomNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/Event.html b/javadoc/jabs/event/Event.html deleted file mode 100644 index 89c0d790..00000000 --- a/javadoc/jabs/event/Event.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -Event (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Interface Event

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/EventFactory.html b/javadoc/jabs/event/EventFactory.html deleted file mode 100644 index a445e645..00000000 --- a/javadoc/jabs/event/EventFactory.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - -EventFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class EventFactory

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/PacketDeliveryEvent.html b/javadoc/jabs/event/PacketDeliveryEvent.html deleted file mode 100644 index cab49023..00000000 --- a/javadoc/jabs/event/PacketDeliveryEvent.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - -PacketDeliveryEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class PacketDeliveryEvent

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/PacketReceivingProcess.html b/javadoc/jabs/event/PacketReceivingProcess.html deleted file mode 100644 index 237221da..00000000 --- a/javadoc/jabs/event/PacketReceivingProcess.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - -PacketReceivingProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class PacketReceivingProcess

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/PacketSendingProcess.html b/javadoc/jabs/event/PacketSendingProcess.html deleted file mode 100644 index 131d99ac..00000000 --- a/javadoc/jabs/event/PacketSendingProcess.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - -PacketSendingProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class PacketSendingProcess

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/TxGenerationEvent.html b/javadoc/jabs/event/TxGenerationEvent.html deleted file mode 100644 index e54455f6..00000000 --- a/javadoc/jabs/event/TxGenerationEvent.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - -TxGenerationEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class TxGenerationEvent

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/TxGeneratorProcessFixedNode.html b/javadoc/jabs/event/TxGeneratorProcessFixedNode.html deleted file mode 100644 index e1470837..00000000 --- a/javadoc/jabs/event/TxGeneratorProcessFixedNode.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - -TxGeneratorProcessFixedNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class TxGeneratorProcessFixedNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/TxGeneratorProcessRandomNode.html b/javadoc/jabs/event/TxGeneratorProcessRandomNode.html deleted file mode 100644 index faa7b5d2..00000000 --- a/javadoc/jabs/event/TxGeneratorProcessRandomNode.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - -TxGeneratorProcessRandomNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.event
-

Class TxGeneratorProcessRandomNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/AbstractBlockGeneratorProcess.html b/javadoc/jabs/event/class-use/AbstractBlockGeneratorProcess.html deleted file mode 100644 index 2bfd4100..00000000 --- a/javadoc/jabs/event/class-use/AbstractBlockGeneratorProcess.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.AbstractBlockGeneratorProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.AbstractBlockGeneratorProcess

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/AbstractGeneratorProcess.html b/javadoc/jabs/event/class-use/AbstractGeneratorProcess.html deleted file mode 100644 index 7a90181e..00000000 --- a/javadoc/jabs/event/class-use/AbstractGeneratorProcess.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.AbstractPoissonProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.AbstractPoissonProcess

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/AbstractPacketProcessor.TimedPacket.html b/javadoc/jabs/event/class-use/AbstractPacketProcessor.TimedPacket.html deleted file mode 100644 index 7a5f0ccc..00000000 --- a/javadoc/jabs/event/class-use/AbstractPacketProcessor.TimedPacket.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.AbstractPacketProcessor.TimedPacket (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.AbstractPacketProcessor.TimedPacket

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/AbstractPacketProcessor.html b/javadoc/jabs/event/class-use/AbstractPacketProcessor.html deleted file mode 100644 index b2f21fb5..00000000 --- a/javadoc/jabs/event/class-use/AbstractPacketProcessor.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.AbstractPacketProcessor (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.AbstractPacketProcessor

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/AbstractTxGeneratorProcess.html b/javadoc/jabs/event/class-use/AbstractTxGeneratorProcess.html deleted file mode 100644 index 84c4ae55..00000000 --- a/javadoc/jabs/event/class-use/AbstractTxGeneratorProcess.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.AbstractTxPoissonProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.AbstractTxPoissonProcess

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/BlockGenerationEvent.html b/javadoc/jabs/event/class-use/BlockGenerationEvent.html deleted file mode 100644 index 2402ea11..00000000 --- a/javadoc/jabs/event/class-use/BlockGenerationEvent.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.BlockGenerationEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.BlockGenerationEvent

-
-
No usage of jabs.simulator.event.BlockGenerationEvent
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/BlockGeneratorProcessFixedNode.html b/javadoc/jabs/event/class-use/BlockGeneratorProcessFixedNode.html deleted file mode 100644 index e6e98102..00000000 --- a/javadoc/jabs/event/class-use/BlockGeneratorProcessFixedNode.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.BlockMiningProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.BlockMiningProcess

-
-
No usage of jabs.simulator.event.BlockMiningProcess
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/BlockGeneratorProcessRandomNode.html b/javadoc/jabs/event/class-use/BlockGeneratorProcessRandomNode.html deleted file mode 100644 index e237eb6e..00000000 --- a/javadoc/jabs/event/class-use/BlockGeneratorProcessRandomNode.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.BlockGeneratorProcessRandomNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.BlockGeneratorProcessRandomNode

-
-
No usage of jabs.simulator.event.BlockGeneratorProcessRandomNode
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/Event.html b/javadoc/jabs/event/class-use/Event.html deleted file mode 100644 index 5c125c1f..00000000 --- a/javadoc/jabs/event/class-use/Event.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - -Uses of Interface jabs.simulator.event.Event (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.simulator.event.Event

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/EventFactory.html b/javadoc/jabs/event/class-use/EventFactory.html deleted file mode 100644 index ed6f9a40..00000000 --- a/javadoc/jabs/event/class-use/EventFactory.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.EventFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.EventFactory

-
-
No usage of jabs.simulator.event.EventFactory
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/PacketDeliveryEvent.html b/javadoc/jabs/event/class-use/PacketDeliveryEvent.html deleted file mode 100644 index 3a89acd1..00000000 --- a/javadoc/jabs/event/class-use/PacketDeliveryEvent.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.PacketDeliveryEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.PacketDeliveryEvent

-
-
No usage of jabs.simulator.event.PacketDeliveryEvent
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/PacketReceivingProcess.html b/javadoc/jabs/event/class-use/PacketReceivingProcess.html deleted file mode 100644 index 2b0eae26..00000000 --- a/javadoc/jabs/event/class-use/PacketReceivingProcess.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.PacketReceivingProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.PacketReceivingProcess

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/PacketSendingProcess.html b/javadoc/jabs/event/class-use/PacketSendingProcess.html deleted file mode 100644 index 248fc29e..00000000 --- a/javadoc/jabs/event/class-use/PacketSendingProcess.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.PacketSendingProcess (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.PacketSendingProcess

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/TxGenerationEvent.html b/javadoc/jabs/event/class-use/TxGenerationEvent.html deleted file mode 100644 index 6b541b6a..00000000 --- a/javadoc/jabs/event/class-use/TxGenerationEvent.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.TxGenerationEvent (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.TxGenerationEvent

-
-
No usage of jabs.simulator.event.TxGenerationEvent
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/TxGeneratorProcessFixedNode.html b/javadoc/jabs/event/class-use/TxGeneratorProcessFixedNode.html deleted file mode 100644 index 1a9d1de6..00000000 --- a/javadoc/jabs/event/class-use/TxGeneratorProcessFixedNode.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.TxGenerationProcessSingleNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.TxGenerationProcessSingleNode

-
-
No usage of jabs.simulator.event.TxGenerationProcessSingleNode
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/class-use/TxGeneratorProcessRandomNode.html b/javadoc/jabs/event/class-use/TxGeneratorProcessRandomNode.html deleted file mode 100644 index 94934313..00000000 --- a/javadoc/jabs/event/class-use/TxGeneratorProcessRandomNode.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.event.TxGenerationProcessRandomNetworkNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.event.TxGenerationProcessRandomNetworkNode

-
-
No usage of jabs.simulator.event.TxGenerationProcessRandomNetworkNode
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/package-frame.html b/javadoc/jabs/event/package-frame.html deleted file mode 100644 index 6838f579..00000000 --- a/javadoc/jabs/event/package-frame.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -jabs.simulator.event (jabs 0.1.1 API) - - - - - -

jabs.simulator.event

-
-

Interfaces

- -

Classes

- -
- - diff --git a/javadoc/jabs/event/package-summary.html b/javadoc/jabs/event/package-summary.html deleted file mode 100644 index 3aa89a76..00000000 --- a/javadoc/jabs/event/package-summary.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - -jabs.simulator.event (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.simulator.event

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/package-tree.html b/javadoc/jabs/event/package-tree.html deleted file mode 100644 index 70f119f7..00000000 --- a/javadoc/jabs/event/package-tree.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - -jabs.simulator.event Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.simulator.event

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/event/package-use.html b/javadoc/jabs/event/package-use.html deleted file mode 100644 index 06b4c4b0..00000000 --- a/javadoc/jabs/event/package-use.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - -Uses of Package jabs.simulator.event (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.simulator.event

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/ledgerdata/BasicData.html b/javadoc/jabs/ledgerdata/BasicData.html deleted file mode 100644 index d27d3634..00000000 --- a/javadoc/jabs/ledgerdata/BasicData.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - -BasicData (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BasicData

-
-
Object -
BasicData
-
-
-
-
Direct Known Subclasses:
-
Data, Hash, Vote
-
-
-
public abstract class BasicData -extends Object
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    protected int
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Modifier
    -
    Constructor
    -
    Description
    -
    protected
    -
    BasicData(int size)
    -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    int
    - -
     
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      size

      -
      protected int size
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BasicData

      -
      protected BasicData(int size)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getSize

      -
      public int getSize()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Block.html b/javadoc/jabs/ledgerdata/Block.html deleted file mode 100644 index d0f6b9e3..00000000 --- a/javadoc/jabs/ledgerdata/Block.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - -Block (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Block<B extends Block<B>>

-
-
Object -
BasicData -
Data -
Block<B>
-
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<Block<B>>
-
-
-
Direct Known Subclasses:
-
SingleParentBlock, TangleBlock
-
-
-
public abstract class Block<B extends Block<B>> -extends Data -implements Comparable<Block<B>>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      height

      -
      private final int height
      -
      -
    • -
    • -
      -

      creationTime

      -
      private final double creationTime
      -
      -
    • -
    • -
      -

      parents

      -
      private final List<B extends Block<B>> parents
      -
      -
    • -
    • -
      -

      creator

      -
      private final Node creator
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Block

      -
      protected Block(int size, - int height, - double creationTime, - Node creator, - List<B> parents, - int hashSize)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getHeight

      -
      public int getHeight()
      -
      -
    • -
    • -
      -

      getCreationTime

      -
      public double getCreationTime()
      -
      -
    • -
    • -
      -

      getCreator

      -
      public Node getCreator()
      -
      -
    • -
    • -
      -

      getParents

      -
      public List<B> getParents()
      -
      -
    • -
    • -
      -

      compareTo

      -
      public int compareTo(Block<B> b)
      -
      -
      Specified by:
      -
      compareTo in interface Comparable<B extends Block<B>>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/BlockWithTx.html b/javadoc/jabs/ledgerdata/BlockWithTx.html deleted file mode 100644 index fe4333ac..00000000 --- a/javadoc/jabs/ledgerdata/BlockWithTx.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - -BlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface BlockWithTx<T extends Tx<T>>

-
-
-
-
All Known Implementing Classes:
-
EthereumBlockWithTx
-
-
-
public interface BlockWithTx<T extends Tx<T>>
-
-
-
    - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    - - -
     
    -
    -
    -
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getTxs

      -
      Set<T> getTxs()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Data.DataType.html b/javadoc/jabs/ledgerdata/Data.DataType.html deleted file mode 100644 index 3026832a..00000000 --- a/javadoc/jabs/ledgerdata/Data.DataType.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - -Data.DataType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Enum Class Data.DataType

-
-
Object -
Enum<Data.DataType> -
DataType
-
-
-
-
-
All Implemented Interfaces:
-
Serializable, Comparable<Data.DataType>, Constable
-
-
-
Enclosing class:
-
Data
-
-
-
public static enum Data.DataType -extends Enum<Data.DataType>
-
-
- -
-
-
    - -
  • -
    -

    Enum Constant Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DataType

      -
      private DataType()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static Data.DataType[] values()
      -
      Returns an array containing the constants of this enum class, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum class, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static Data.DataType valueOf(String name)
      -
      Returns the enum constant of this class with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this class. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      IllegalArgumentException - if this enum class has no constant with the specified name
      -
      NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Data.html b/javadoc/jabs/ledgerdata/Data.html deleted file mode 100644 index 4cff66dc..00000000 --- a/javadoc/jabs/ledgerdata/Data.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - -Data (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Data

-
-
Object -
BasicData -
Data
-
-
-
-
-
Direct Known Subclasses:
-
Block, Tx
-
-
-
public abstract class Data -extends BasicData
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    Nested Classes
    -
    -
    Modifier and Type
    -
    Class
    -
    Description
    -
    static enum 
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    (package private) final Hash
    - -
     
    -
    -
    -

    Fields inherited from class BasicData

    -size
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Modifier
    -
    Constructor
    -
    Description
    -
    protected
    -
    Data(int size, - int hashSize)
    -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    - - -
     
    -
    -
    -
    -
    -

    Methods inherited from class BasicData

    -getSize
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      hash

      -
      final Hash hash
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Data

      -
      protected Data(int size, - int hashSize)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getHash

      -
      public Hash getHash()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Hash.html b/javadoc/jabs/ledgerdata/Hash.html deleted file mode 100644 index 187c2c1c..00000000 --- a/javadoc/jabs/ledgerdata/Hash.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - -Hash (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Hash

-
-
Object -
BasicData -
Hash
-
-
-
-
-
public class Hash -extends BasicData
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      data

      -
      private final Data data
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Hash

      -
      public Hash(int size, - Data data)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getData

      -
      public Data getData()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Tx.html b/javadoc/jabs/ledgerdata/Tx.html deleted file mode 100644 index 8d67c6c8..00000000 --- a/javadoc/jabs/ledgerdata/Tx.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - -Tx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Tx<T extends Tx<T>>

-
-
Object -
BasicData -
Data -
Tx<T>
-
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinTx, EthereumTx, PBFTTx, TangleTx
-
-
-
public abstract class Tx<T extends Tx<T>> -extends Data
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Tx

      -
      protected Tx(int size, - int hashSize)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/Vote.html b/javadoc/jabs/ledgerdata/Vote.html deleted file mode 100644 index a3f777b3..00000000 --- a/javadoc/jabs/ledgerdata/Vote.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - -Vote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Vote

-
-
Object -
BasicData -
Vote
-
-
-
-
-
Direct Known Subclasses:
-
CasperFFGVote, DAGsperVote, PBFTBlockVote, PBFTViewVote
-
-
-
public abstract class Vote -extends BasicData
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      voter

      -
      private final Node voter
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Vote

      -
      protected Vote(int size, - Node voter)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getVoter

      -
      public Node getVoter()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlock.html b/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlock.html deleted file mode 100644 index ca316d50..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlock.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - -BitcoinBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinBlock

-
-
Object -
BasicData -
Data -
Block<B> - -
-
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<Block<BitcoinBlock>>
-
-
-
Direct Known Subclasses:
-
BitcoinBlockWithTx
-
-
-
public class BitcoinBlock -extends SingleParentBlock<BitcoinBlock>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      difficulty

      -
      protected final double difficulty
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinBlock

      -
      public BitcoinBlock(int size, - int height, - double creationTime, - Node creator, - BitcoinBlock parent, - double difficulty)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getDifficulty

      -
      public double getDifficulty()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.html b/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.html deleted file mode 100644 index 313a9268..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - -BitcoinBlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinBlockWithTx

-
-
Object -
BasicData -
Data -
Block<B> -
SingleParentBlock<BitcoinBlock> -
BitcoinBlock -
BitcoinBlockWithTx
-
-
-
-
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<Block<BitcoinBlock>>
-
-
-
public class BitcoinBlockWithTx -extends BitcoinBlock
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/BitcoinTx.html b/javadoc/jabs/ledgerdata/bitcoin/BitcoinTx.html deleted file mode 100644 index 45200dec..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/BitcoinTx.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - -BitcoinTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinTx

-
-
Object -
BasicData -
Data -
Tx<BitcoinTx> -
BitcoinTx
-
-
-
-
-
-
-
public class BitcoinTx -extends Tx<BitcoinTx>
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinTx

      -
      public BitcoinTx(int size)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlock.html b/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlock.html deleted file mode 100644 index e07def01..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlock.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinBlock

-
-
Packages that use BitcoinBlock
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlockWithTx.html b/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlockWithTx.html deleted file mode 100644 index e628dcf9..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinBlockWithTx.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinBlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinBlockWithTx

-
-No usage of jabs.ledgerdata.bitcoin.BitcoinBlockWithTx
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinTx.html b/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinTx.html deleted file mode 100644 index ff534a94..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/class-use/BitcoinTx.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.bitcoin.BitcoinTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.bitcoin.BitcoinTx

-
-
Packages that use BitcoinTx
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/package-frame.html b/javadoc/jabs/ledgerdata/bitcoin/package-frame.html deleted file mode 100644 index bb8fd0d4..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/package-frame.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -jabs.ledgerdata.bitcoin (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata.bitcoin

-
-

Classes

- -
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/package-summary.html b/javadoc/jabs/ledgerdata/bitcoin/package-summary.html deleted file mode 100644 index d53399f7..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/package-summary.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - -jabs.ledgerdata.bitcoin (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata.bitcoin

-
-
-
package jabs.ledgerdata.bitcoin
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/package-tree.html b/javadoc/jabs/ledgerdata/bitcoin/package-tree.html deleted file mode 100644 index aeae5226..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/package-tree.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - -jabs.ledgerdata.bitcoin Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata.bitcoin

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/bitcoin/package-use.html b/javadoc/jabs/ledgerdata/bitcoin/package-use.html deleted file mode 100644 index 4ba74745..00000000 --- a/javadoc/jabs/ledgerdata/bitcoin/package-use.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata.bitcoin (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata.bitcoin

-
-
Packages that use jabs.ledgerdata.bitcoin
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/CasperFFGLink.html b/javadoc/jabs/ledgerdata/casper/CasperFFGLink.html deleted file mode 100644 index baf2ff8c..00000000 --- a/javadoc/jabs/ledgerdata/casper/CasperFFGLink.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - -CasperFFGLink (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class CasperFFGLink<B extends Block<B>>

-
-
Object -
CasperFFGLink<B>
-
-
-
-
public class CasperFFGLink<B extends Block<B>> -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      toBeJustified

      -
      private final B extends Block<B> toBeJustified
      -
      -
    • -
    • -
      -

      toBeFinalized

      -
      private final B extends Block<B> toBeFinalized
      -
      -
    • -
    • -
      -

      CASPER_VOTE_SIZE

      -
      public static final int CASPER_VOTE_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      CasperFFGLink

      -
      public CasperFFGLink(B toBeFinalized, - B toBeJustified)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getToBeJustified

      -
      public final B getToBeJustified()
      -
      -
    • -
    • -
      -

      getToBeFinalized

      -
      public final B getToBeFinalized()
      -
      -
    • -
    • -
      -

      toString

      -
      public final String toString()
      -
      -
      Overrides:
      -
      toString in class Object
      -
      -
      -
    • -
    • -
      -

      hashCode

      -
      public final int hashCode()
      -
      -
      Overrides:
      -
      hashCode in class Object
      -
      -
      -
    • -
    • -
      -

      equals

      -
      public final boolean equals(Object o)
      -
      -
      Overrides:
      -
      equals in class Object
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/CasperFFGVote.html b/javadoc/jabs/ledgerdata/casper/CasperFFGVote.html deleted file mode 100644 index 697b923a..00000000 --- a/javadoc/jabs/ledgerdata/casper/CasperFFGVote.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - -CasperFFGVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class CasperFFGVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
CasperFFGVote<B>
-
-
-
-
-
-
public class CasperFFGVote<B extends Block<B>> -extends Vote
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      CasperFFGVote

      -
      public CasperFFGVote(Node voter, - CasperFFGLink<B> casperFFGLink)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGLink.html b/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGLink.html deleted file mode 100644 index fe98abe4..00000000 --- a/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGLink.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.casper.CasperFFGLink (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.casper.CasperFFGLink

-
-
Packages that use CasperFFGLink
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGVote.html b/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGVote.html deleted file mode 100644 index e49f4c78..00000000 --- a/javadoc/jabs/ledgerdata/casper/class-use/CasperFFGVote.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.casper.CasperFFGVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.casper.CasperFFGVote

-
-
Packages that use CasperFFGVote
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/package-frame.html b/javadoc/jabs/ledgerdata/casper/package-frame.html deleted file mode 100644 index 33843cbe..00000000 --- a/javadoc/jabs/ledgerdata/casper/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.ledgerdata.casper (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata.casper

-
-

Classes

- -
- - diff --git a/javadoc/jabs/ledgerdata/casper/package-summary.html b/javadoc/jabs/ledgerdata/casper/package-summary.html deleted file mode 100644 index 48d9532f..00000000 --- a/javadoc/jabs/ledgerdata/casper/package-summary.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - -jabs.ledgerdata.casper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata.casper

-
-
-
package jabs.ledgerdata.casper
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/package-tree.html b/javadoc/jabs/ledgerdata/casper/package-tree.html deleted file mode 100644 index a40705bc..00000000 --- a/javadoc/jabs/ledgerdata/casper/package-tree.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - -jabs.ledgerdata.casper Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata.casper

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/casper/package-use.html b/javadoc/jabs/ledgerdata/casper/package-use.html deleted file mode 100644 index ef84ed3c..00000000 --- a/javadoc/jabs/ledgerdata/casper/package-use.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata.casper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata.casper

-
-
Packages that use jabs.ledgerdata.casper
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/BasicData.html b/javadoc/jabs/ledgerdata/class-use/BasicData.html deleted file mode 100644 index 832ea4ee..00000000 --- a/javadoc/jabs/ledgerdata/class-use/BasicData.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.BasicData (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.BasicData

-
-
Packages that use BasicData
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Block.html b/javadoc/jabs/ledgerdata/class-use/Block.html deleted file mode 100644 index 20053780..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Block.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.Block (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.Block

-
-
Packages that use Block
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/BlockWithTx.html b/javadoc/jabs/ledgerdata/class-use/BlockWithTx.html deleted file mode 100644 index 8ad496e6..00000000 --- a/javadoc/jabs/ledgerdata/class-use/BlockWithTx.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Uses of Interface jabs.ledgerdata.BlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.ledgerdata.BlockWithTx

-
-
Packages that use BlockWithTx
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Data.DataType.html b/javadoc/jabs/ledgerdata/class-use/Data.DataType.html deleted file mode 100644 index 9867e78f..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Data.DataType.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - -Uses of Enum Class jabs.ledgerdata.Data.DataType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Enum Class
jabs.ledgerdata.Data.DataType

-
-
Packages that use Data.DataType
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Data.html b/javadoc/jabs/ledgerdata/class-use/Data.html deleted file mode 100644 index 4f248dec..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Data.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.Data (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.Data

-
-
Packages that use Data
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Hash.html b/javadoc/jabs/ledgerdata/class-use/Hash.html deleted file mode 100644 index a57521bc..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Hash.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.Hash (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.Hash

-
-
Packages that use Hash
-
-
Package
-
Description
- -
 
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Tx.html b/javadoc/jabs/ledgerdata/class-use/Tx.html deleted file mode 100644 index e02ccea1..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Tx.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.Tx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.Tx

-
-
Packages that use Tx
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/class-use/Vote.html b/javadoc/jabs/ledgerdata/class-use/Vote.html deleted file mode 100644 index 133537f0..00000000 --- a/javadoc/jabs/ledgerdata/class-use/Vote.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.Vote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.Vote

-
-
Packages that use Vote
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/DAGsperVote.html b/javadoc/jabs/ledgerdata/dagsper/DAGsperVote.html deleted file mode 100644 index 647891d1..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/DAGsperVote.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - -DAGsperVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class DAGsperVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
DAGsperVote<B>
-
-
-
-
-
-
public class DAGsperVote<B extends Block<B>> -extends Vote
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      MIN_DAGSPER_VOTE_SIZE

      -
      public static final int MIN_DAGSPER_VOTE_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      latestFinalizedHeight

      -
      public final int latestFinalizedHeight
      -
      -
    • -
    • -
      -

      toBeFinalizedHeight

      -
      public final int toBeFinalizedHeight
      -
      -
    • -
    • -
      -

      toBeJustified

      -
      public final B extends Block<B> toBeJustified
      -
      -
    • -
    • -
      -

      unaffectedHeights

      -
      public final HashSet<Integer> unaffectedHeights
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DAGsperVote

      -
      public DAGsperVote(Node voter, - int latestFinalizedHeight, - int toBeFinalizedHeight, - B toBeJustified, - HashSet<Integer> unaffectedHeights)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/class-use/DAGsperVote.html b/javadoc/jabs/ledgerdata/dagsper/class-use/DAGsperVote.html deleted file mode 100644 index 82e68887..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/class-use/DAGsperVote.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.dagsper.DAGsperVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.dagsper.DAGsperVote

-
-No usage of jabs.ledgerdata.dagsper.DAGsperVote
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/package-frame.html b/javadoc/jabs/ledgerdata/dagsper/package-frame.html deleted file mode 100644 index dce0869d..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.ledgerdata.dagsper (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata.dagsper

-
-

Classes

- -
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/package-summary.html b/javadoc/jabs/ledgerdata/dagsper/package-summary.html deleted file mode 100644 index b320c3d5..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/package-summary.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - -jabs.ledgerdata.dagsper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata.dagsper

-
-
-
package jabs.ledgerdata.dagsper
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/package-tree.html b/javadoc/jabs/ledgerdata/dagsper/package-tree.html deleted file mode 100644 index 5a239107..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/package-tree.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -jabs.ledgerdata.dagsper Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata.dagsper

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/dagsper/package-use.html b/javadoc/jabs/ledgerdata/dagsper/package-use.html deleted file mode 100644 index cd9c2ee5..00000000 --- a/javadoc/jabs/ledgerdata/dagsper/package-use.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata.dagsper (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata.dagsper

-
-No usage of jabs.ledgerdata.dagsper
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/EthereumBlock.html b/javadoc/jabs/ledgerdata/ethereum/EthereumBlock.html deleted file mode 100644 index b0c01899..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/EthereumBlock.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - -EthereumBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumBlock

-
-
Object -
BasicData -
Data -
Block<B> - -
-
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<Block<EthereumBlock>>
-
-
-
Direct Known Subclasses:
-
EthereumBlockWithTx
-
-
-
public class EthereumBlock -extends SingleParentBlock<EthereumBlock>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      uncles

      -
      private final Set<EthereumBlock> uncles
      -
      -
    • -
    • -
      -

      difficulty

      -
      private final long difficulty
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getUncles

      -
      public Set<EthereumBlock> getUncles()
      -
      -
    • -
    • -
      -

      getDifficulty

      -
      public long getDifficulty()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/EthereumBlockWithTx.html b/javadoc/jabs/ledgerdata/ethereum/EthereumBlockWithTx.html deleted file mode 100644 index 31390a89..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/EthereumBlockWithTx.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - -EthereumBlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumBlockWithTx

-
-
Object -
BasicData -
Data -
Block<B> -
SingleParentBlock<EthereumBlock> -
EthereumBlock -
EthereumBlockWithTx
-
-
-
-
-
-
-
-
-
All Implemented Interfaces:
-
BlockWithTx<EthereumTx>, Comparable<Block<EthereumBlock>>
-
-
-
public class EthereumBlockWithTx -extends EthereumBlock -implements BlockWithTx<EthereumTx>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      Txs

      -
      private final Set<EthereumTx> Txs
      -
      -
    • -
    • -
      -

      totalGas

      -
      private final long totalGas
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/EthereumTx.html b/javadoc/jabs/ledgerdata/ethereum/EthereumTx.html deleted file mode 100644 index d1ba3bfa..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/EthereumTx.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - -EthereumTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumTx

-
-
Object -
BasicData -
Data -
Tx<EthereumTx> -
EthereumTx
-
-
-
-
-
-
-
public class EthereumTx -extends Tx<EthereumTx>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      gas

      -
      final long gas
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumTx

      -
      public EthereumTx(int size, - long gas)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getGas

      -
      public long getGas()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlock.html b/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlock.html deleted file mode 100644 index 6bbb70c2..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlock.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumBlock

-
-
Packages that use EthereumBlock
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlockWithTx.html b/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlockWithTx.html deleted file mode 100644 index 64a0ecc0..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumBlockWithTx.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumBlockWithTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumBlockWithTx

-
-No usage of jabs.ledgerdata.ethereum.EthereumBlockWithTx
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumTx.html b/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumTx.html deleted file mode 100644 index 3bd78805..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/class-use/EthereumTx.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.ethereum.EthereumTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.ethereum.EthereumTx

-
-
Packages that use EthereumTx
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/package-frame.html b/javadoc/jabs/ledgerdata/ethereum/package-frame.html deleted file mode 100644 index d0f87683..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/package-frame.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -jabs.ledgerdata.ethereum (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata.ethereum

-
-

Classes

- -
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/package-summary.html b/javadoc/jabs/ledgerdata/ethereum/package-summary.html deleted file mode 100644 index 24a2cc88..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/package-summary.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - -jabs.ledgerdata.ethereum (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata.ethereum

-
-
-
package jabs.ledgerdata.ethereum
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/package-tree.html b/javadoc/jabs/ledgerdata/ethereum/package-tree.html deleted file mode 100644 index 7bc2c8f5..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/package-tree.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - -jabs.ledgerdata.ethereum Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata.ethereum

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/ethereum/package-use.html b/javadoc/jabs/ledgerdata/ethereum/package-use.html deleted file mode 100644 index 6e6b0cc4..00000000 --- a/javadoc/jabs/ledgerdata/ethereum/package-use.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata.ethereum (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata.ethereum

-
-
Packages that use jabs.ledgerdata.ethereum
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/package-frame.html b/javadoc/jabs/ledgerdata/package-frame.html deleted file mode 100644 index 537b23de..00000000 --- a/javadoc/jabs/ledgerdata/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -jabs.ledgerdata (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata

-
-

Interfaces

- -

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/ledgerdata/package-summary.html b/javadoc/jabs/ledgerdata/package-summary.html deleted file mode 100644 index b2e90df3..00000000 --- a/javadoc/jabs/ledgerdata/package-summary.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - -jabs.ledgerdata (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata

-
-
-
package jabs.ledgerdata
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/package-tree.html b/javadoc/jabs/ledgerdata/package-tree.html deleted file mode 100644 index a54bdfee..00000000 --- a/javadoc/jabs/ledgerdata/package-tree.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - -jabs.ledgerdata Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
-

Enum Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/package-use.html b/javadoc/jabs/ledgerdata/package-use.html deleted file mode 100644 index 61c71abb..00000000 --- a/javadoc/jabs/ledgerdata/package-use.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata

-
-
Packages that use jabs.ledgerdata
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTBlock.html b/javadoc/jabs/ledgerdata/pbft/PBFTBlock.html deleted file mode 100644 index 8cb6de1c..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTBlock.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - -PBFTBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTBlock

-
-
Object -
BasicData -
Data -
Block<B> - -
-
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<Block<PBFTBlock>>
-
-
-
public class PBFTBlock -extends SingleParentBlock<PBFTBlock>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      PBFT_BLOCK_HASH_SIZE

      -
      public static final int PBFT_BLOCK_HASH_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTBlock

      -
      public PBFTBlock(int size, - int height, - double creationTime, - Node creator, - PBFTBlock parent)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.VoteType.html b/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.VoteType.html deleted file mode 100644 index 8a76e7d3..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.VoteType.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - -PBFTBlockVote.VoteType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Enum Class PBFTBlockVote.VoteType

-
- -
-
-
All Implemented Interfaces:
-
Serializable, Comparable<PBFTBlockVote.VoteType>, Constable
-
-
-
Enclosing class:
-
PBFTBlockVote<B extends Block<B>>
-
-
-
public static enum PBFTBlockVote.VoteType -extends Enum<PBFTBlockVote.VoteType>
-
-
- -
-
-
    - -
  • -
    -

    Enum Constant Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      VoteType

      -
      private VoteType()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static PBFTBlockVote.VoteType[] values()
      -
      Returns an array containing the constants of this enum class, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum class, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static PBFTBlockVote.VoteType valueOf(String name)
      -
      Returns the enum constant of this class with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this class. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      IllegalArgumentException - if this enum class has no constant with the specified name
      -
      NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.html b/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.html deleted file mode 100644 index 55511855..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTBlockVote.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - -PBFTBlockVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTBlockVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
PBFTBlockVote<B>
-
-
-
-
-
-
Direct Known Subclasses:
-
PBFTCommitVote, PBFTPrepareVote, PBFTPrePrepareVote
-
-
-
public abstract class PBFTBlockVote<B extends Block<B>> -extends Vote
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      block

      -
      private final B extends Block<B> block
      -
      -
    • -
    • -
      -

      voteType

      -
      private final PBFTBlockVote.VoteType voteType
      -
      -
    • -
    • -
      -

      PBFT_VOTE_SIZE_OVERHEAD

      -
      public static final int PBFT_VOTE_SIZE_OVERHEAD
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTCommitVote.html b/javadoc/jabs/ledgerdata/pbft/PBFTCommitVote.html deleted file mode 100644 index c9a6ca99..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTCommitVote.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - -PBFTCommitVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTCommitVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
PBFTBlockVote<B> -
PBFTCommitVote<B>
-
-
-
-
-
-
-
public class PBFTCommitVote<B extends Block<B>> -extends PBFTBlockVote<B>
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTCommitVote

      -
      public PBFTCommitVote(Node voter, - B block)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTPrePrepareVote.html b/javadoc/jabs/ledgerdata/pbft/PBFTPrePrepareVote.html deleted file mode 100644 index 56163f18..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTPrePrepareVote.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - -PBFTPrePrepareVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTPrePrepareVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
PBFTBlockVote<B> -
PBFTPrePrepareVote<B>
-
-
-
-
-
-
-
public class PBFTPrePrepareVote<B extends Block<B>> -extends PBFTBlockVote<B>
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTPrePrepareVote

      -
      public PBFTPrePrepareVote(Node voter, - B block)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTPrepareVote.html b/javadoc/jabs/ledgerdata/pbft/PBFTPrepareVote.html deleted file mode 100644 index fb56da1b..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTPrepareVote.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - -PBFTPrepareVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTPrepareVote<B extends Block<B>>

-
-
Object -
BasicData -
Vote -
PBFTBlockVote<B> -
PBFTPrepareVote<B>
-
-
-
-
-
-
-
public class PBFTPrepareVote<B extends Block<B>> -extends PBFTBlockVote<B>
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTPrepareVote

      -
      public PBFTPrepareVote(Node voter, - B block)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTTx.html b/javadoc/jabs/ledgerdata/pbft/PBFTTx.html deleted file mode 100644 index db52d7e1..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTTx.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - -PBFTTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTTx

-
-
Object -
BasicData -
Data -
Tx<PBFTTx> -
PBFTTx
-
-
-
-
-
-
-
public class PBFTTx -extends Tx<PBFTTx>
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTTx

      -
      protected PBFTTx(int size, - int hashSize)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.VoteType.html b/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.VoteType.html deleted file mode 100644 index ad14eee5..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.VoteType.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - -PBFTViewVote.VoteType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Enum Class PBFTViewVote.VoteType

-
- -
-
-
All Implemented Interfaces:
-
Serializable, Comparable<PBFTViewVote.VoteType>, Constable
-
-
-
Enclosing class:
-
PBFTViewVote
-
-
-
public static enum PBFTViewVote.VoteType -extends Enum<PBFTViewVote.VoteType>
-
-
- -
-
-
    - -
  • -
    -

    Enum Constant Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      VoteType

      -
      private VoteType()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static PBFTViewVote.VoteType[] values()
      -
      Returns an array containing the constants of this enum class, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum class, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static PBFTViewVote.VoteType valueOf(String name)
      -
      Returns the enum constant of this class with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this class. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      IllegalArgumentException - if this enum class has no constant with the specified name
      -
      NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.html b/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.html deleted file mode 100644 index acffdf16..00000000 --- a/javadoc/jabs/ledgerdata/pbft/PBFTViewVote.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - -PBFTViewVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTViewVote

-
-
Object -
BasicData -
Vote -
PBFTViewVote
-
-
-
-
-
-
public abstract class PBFTViewVote -extends Vote
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlock.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlock.html deleted file mode 100644 index f399ecea..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlock.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTBlock (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTBlock

-
-
Packages that use PBFTBlock
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.VoteType.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.VoteType.html deleted file mode 100644 index 35e1325f..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.VoteType.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - -Uses of Enum Class jabs.ledgerdata.pbft.PBFTBlockVote.VoteType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Enum Class
jabs.ledgerdata.pbft.PBFTBlockVote.VoteType

-
-
Packages that use PBFTBlockVote.VoteType
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.html deleted file mode 100644 index 19870c71..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTBlockVote.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTBlockVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTBlockVote

-
-
Packages that use PBFTBlockVote
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTCommitVote.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTCommitVote.html deleted file mode 100644 index a2820507..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTCommitVote.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTCommitVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTCommitVote

-
-No usage of jabs.ledgerdata.pbft.PBFTCommitVote
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrePrepareVote.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrePrepareVote.html deleted file mode 100644 index 545d6f0f..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrePrepareVote.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTPrePrepareVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTPrePrepareVote

-
-No usage of jabs.ledgerdata.pbft.PBFTPrePrepareVote
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrepareVote.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrepareVote.html deleted file mode 100644 index 534e6c91..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTPrepareVote.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTPrepareVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTPrepareVote

-
-No usage of jabs.ledgerdata.pbft.PBFTPrepareVote
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTTx.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTTx.html deleted file mode 100644 index 753671e3..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTTx.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTTx

-
-
Packages that use PBFTTx
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.VoteType.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.VoteType.html deleted file mode 100644 index 96c7a93c..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.VoteType.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -Uses of Enum Class jabs.ledgerdata.pbft.PBFTViewVote.VoteType (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Enum Class
jabs.ledgerdata.pbft.PBFTViewVote.VoteType

-
-
Packages that use PBFTViewVote.VoteType
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.html b/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.html deleted file mode 100644 index 3628dc3a..00000000 --- a/javadoc/jabs/ledgerdata/pbft/class-use/PBFTViewVote.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.ledgerdata.pbft.PBFTViewVote (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.ledgerdata.pbft.PBFTViewVote

-
-No usage of jabs.ledgerdata.pbft.PBFTViewVote
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/package-frame.html b/javadoc/jabs/ledgerdata/pbft/package-frame.html deleted file mode 100644 index 735aeefc..00000000 --- a/javadoc/jabs/ledgerdata/pbft/package-frame.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -jabs.ledgerdata.pbft (jabs 0.2.0 API) - - - - - -

jabs.ledgerdata.pbft

-
-

Classes

- -

Enums

- -
- - diff --git a/javadoc/jabs/ledgerdata/pbft/package-summary.html b/javadoc/jabs/ledgerdata/pbft/package-summary.html deleted file mode 100644 index 4df9d4dc..00000000 --- a/javadoc/jabs/ledgerdata/pbft/package-summary.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - -jabs.ledgerdata.pbft (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.ledgerdata.pbft

-
-
-
package jabs.ledgerdata.pbft
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/package-tree.html b/javadoc/jabs/ledgerdata/pbft/package-tree.html deleted file mode 100644 index 7fe7c9ac..00000000 --- a/javadoc/jabs/ledgerdata/pbft/package-tree.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - -jabs.ledgerdata.pbft Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.ledgerdata.pbft

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
-

Enum Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/ledgerdata/pbft/package-use.html b/javadoc/jabs/ledgerdata/pbft/package-use.html deleted file mode 100644 index f00b6bba..00000000 --- a/javadoc/jabs/ledgerdata/pbft/package-use.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - -Uses of Package jabs.ledgerdata.pbft (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.ledgerdata.pbft

-
-
Packages that use jabs.ledgerdata.pbft
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/log/AbstractCSVLogger.html b/javadoc/jabs/log/AbstractCSVLogger.html deleted file mode 100644 index c846a186..00000000 --- a/javadoc/jabs/log/AbstractCSVLogger.html +++ /dev/null @@ -1,394 +0,0 @@ - - - - -AbstractCSVLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class AbstractCSVLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinAllMessagesLogger, BlockDeliveryLogger, BlockGenerationLogger, PBFTCSVLogger
-
-
-
public abstract class AbstractCSVLogger -extends AbstractLogger
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    protected CsvWriter
    - -
     
    -
    -
    -

    Fields inherited from class AbstractLogger

    -scenario
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    - -
    -
    creates an abstract CSV logger
    -
    - -
    -
    creates an abstract CSV logger
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    protected abstract String[]
    - -
    -
    First line of CSV file which has the header information
    -
    -
    protected abstract String[]
    - -
    -
    If the CSV Output is true the returned value of this function will be written to csv output file
    -
    -
    protected abstract boolean
    - -
    -
    If return value is true, then one line will be written to the csv output.
    -
    -
    protected abstract boolean
    - -
    -
    If return value is true, then one line will be written to the csv output.
    -
    -
    protected abstract boolean
    - -
    -
    If return value is true, then one line will be written to the csv output.
    -
    -
    protected abstract String
    - -
    -
    Adds the Starting Comment to the output CSV file
    -
    -
    void
    - -
    -
    At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
    -
    -
    void
    - -
    -
    Starting log before starting simulation.
    -
    -
    void
    - -
    -
    This function will be called after each event.
    -
    -
    void
    - -
    -
    Before each event this function will be called.
    -
    -
    -
    -
    -
    -

    Methods inherited from class AbstractLogger

    -setScenario
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      loggerCSV

      -
      protected CsvWriter loggerCSV
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractCSVLogger

      -
      public AbstractCSVLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      AbstractCSVLogger

      -
      public AbstractCSVLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      initialLog

      -
      public void initialLog()
      -
      Description copied from class: AbstractLogger
      -
      Starting log before starting simulation. Can be used for writing general - information about the simulation parameters
      -
      -
      Specified by:
      -
      initialLog in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logBeforeEvent

      -
      public void logBeforeEvent()
      -
      Description copied from class: AbstractLogger
      -
      Before each event this function will be called. This can be used to log - information that emphasis on the changes each event causes.
      -
      -
      Specified by:
      -
      logBeforeEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logAfterEvent

      -
      public void logAfterEvent()
      -
      Description copied from class: AbstractLogger
      -
      This function will be called after each event. Most information should - be logged using this function.
      -
      -
      Specified by:
      -
      logAfterEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      finalLog

      -
      public void finalLog() - throws IOException
      -
      Description copied from class: AbstractLogger
      -
      At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
      -
      -
      Specified by:
      -
      finalLog in class AbstractLogger
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    • -
      -

      csvStartingComment

      -
      protected abstract String csvStartingComment()
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected abstract boolean csvOutputConditionBeforeEvent()
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected abstract boolean csvOutputConditionAfterEvent()
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected abstract boolean csvOutputConditionFinal()
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected abstract String[] csvHeaderOutput()
      -
      First line of CSV file which has the header information
      -
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected abstract String[] csvLineOutput()
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/AbstractLogger.html b/javadoc/jabs/log/AbstractLogger.html deleted file mode 100644 index bc27a509..00000000 --- a/javadoc/jabs/log/AbstractLogger.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - -AbstractLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class AbstractLogger

-
-
Object -
AbstractLogger
-
-
-
-
Direct Known Subclasses:
-
AbstractCSVLogger, CasperFinalLogger
-
-
-
public abstract class AbstractLogger -extends Object
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    - - -
    -
    The main scenario in which the logger is working
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    abstract void
    - -
    -
    At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
    -
    -
    abstract void
    - -
    -
    Starting log before starting simulation.
    -
    -
    abstract void
    - -
    -
    This function will be called after each event.
    -
    -
    abstract void
    - -
    -
    Before each event this function will be called.
    -
    -
    void
    - -
    -
    Sets the scenario of the logger.
    -
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      scenario

      -
      protected AbstractScenario scenario
      -
      The main scenario in which the logger is working
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractLogger

      -
      public AbstractLogger()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      setScenario

      -
      public void setScenario(AbstractScenario scenario)
      -
      Sets the scenario of the logger. Since logger is created in constructor of the - scenario this should be set later.
      -
      -
      Parameters:
      -
      scenario -
      -
      -
      -
    • -
    • -
      -

      initialLog

      -
      public abstract void initialLog()
      -
      Starting log before starting simulation. Can be used for writing general - information about the simulation parameters
      -
      -
    • -
    • -
      -

      logBeforeEvent

      -
      public abstract void logBeforeEvent()
      -
      Before each event this function will be called. This can be used to log - information that emphasis on the changes each event causes.
      -
      -
    • -
    • -
      -

      logAfterEvent

      -
      public abstract void logAfterEvent()
      -
      This function will be called after each event. Most information should - be logged using this function.
      -
      -
    • -
    • -
      -

      finalLog

      -
      public abstract void finalLog() - throws IOException
      -
      At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
      -
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/BitcoinAllMessagesLogger.html b/javadoc/jabs/log/BitcoinAllMessagesLogger.html deleted file mode 100644 index 56ed43be..00000000 --- a/javadoc/jabs/log/BitcoinAllMessagesLogger.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - -BitcoinAllMessagesLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class BitcoinAllMessagesLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger -
BitcoinAllMessagesLogger
-
-
-
-
-
-
public class BitcoinAllMessagesLogger -extends AbstractCSVLogger
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinAllMessagesLogger

      -
      public BitcoinAllMessagesLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      BitcoinAllMessagesLogger

      -
      public BitcoinAllMessagesLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      csvStartingComment

      -
      protected String csvStartingComment()
      -
      Description copied from class: AbstractCSVLogger
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Specified by:
      -
      csvStartingComment in class AbstractCSVLogger
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected boolean csvOutputConditionBeforeEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionBeforeEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected boolean csvOutputConditionAfterEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionAfterEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected boolean csvOutputConditionFinal()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionFinal in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected String[] csvHeaderOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      First line of CSV file which has the header information
      -
      -
      Specified by:
      -
      csvHeaderOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected String[] csvLineOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Specified by:
      -
      csvLineOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/BitcoinBlockLogger.html b/javadoc/jabs/log/BitcoinBlockLogger.html deleted file mode 100644 index d8a9ecad..00000000 --- a/javadoc/jabs/log/BitcoinBlockLogger.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - -BitcoinBlockLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class BitcoinBlockLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger -
BitcoinBlockLogger
-
-
-
-
-
-
public class BitcoinBlockLogger -extends AbstractCSVLogger
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinBlockLogger

      -
      public BitcoinBlockLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      BitcoinBlockLogger

      -
      public BitcoinBlockLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      csvStartingComment

      -
      protected String csvStartingComment()
      -
      Description copied from class: AbstractCSVLogger
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Specified by:
      -
      csvStartingComment in class AbstractCSVLogger
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected boolean csvOutputConditionBeforeEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionBeforeEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected boolean csvOutputConditionAfterEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionAfterEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected boolean csvOutputConditionFinal()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionFinal in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected String[] csvHeaderOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      First line of CSV file which has the header information
      -
      -
      Specified by:
      -
      csvHeaderOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected String[] csvLineOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Specified by:
      -
      csvLineOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/CasperFinalLogger.html b/javadoc/jabs/log/CasperFinalLogger.html deleted file mode 100644 index fc9f182d..00000000 --- a/javadoc/jabs/log/CasperFinalLogger.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - -CasperFinalLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class CasperFinalLogger

-
-
Object -
AbstractLogger -
CasperFinalLogger
-
-
-
-
-
public class CasperFinalLogger -extends AbstractLogger
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      CasperFinalLogger

      -
      public CasperFinalLogger()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      setScenario

      -
      public void setScenario(AbstractScenario scenario)
      -
      Description copied from class: AbstractLogger
      -
      Sets the scenario of the logger. Since logger is created in constructor of the - scenario this should be set later.
      -
      -
      Overrides:
      -
      setScenario in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      initialLog

      -
      public void initialLog()
      -
      Description copied from class: AbstractLogger
      -
      Starting log before starting simulation. Can be used for writing general - information about the simulation parameters
      -
      -
      Specified by:
      -
      initialLog in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logBeforeEvent

      -
      public void logBeforeEvent()
      -
      Description copied from class: AbstractLogger
      -
      Before each event this function will be called. This can be used to log - information that emphasis on the changes each event causes.
      -
      -
      Specified by:
      -
      logBeforeEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logAfterEvent

      -
      public void logAfterEvent()
      -
      Description copied from class: AbstractLogger
      -
      This function will be called after each event. Most information should - be logged using this function.
      -
      -
      Specified by:
      -
      logAfterEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      finalLog

      -
      public void finalLog()
      -
      Description copied from class: AbstractLogger
      -
      At the end of the scenario this function will be called and can be used for - logging info that concludes and show results.
      -
      -
      Specified by:
      -
      finalLog in class AbstractLogger
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/PBFTCSVLogger.html b/javadoc/jabs/log/PBFTCSVLogger.html deleted file mode 100644 index 2851890b..00000000 --- a/javadoc/jabs/log/PBFTCSVLogger.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - -PBFTCSVLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class PBFTCSVLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger -
PBFTCSVLogger
-
-
-
-
-
-
public class PBFTCSVLogger -extends AbstractCSVLogger
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTCSVLogger

      -
      public PBFTCSVLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      PBFTCSVLogger

      -
      public PBFTCSVLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      csvStartingComment

      -
      protected String csvStartingComment()
      -
      Description copied from class: AbstractCSVLogger
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Specified by:
      -
      csvStartingComment in class AbstractCSVLogger
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected boolean csvOutputConditionBeforeEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionBeforeEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected boolean csvOutputConditionAfterEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionAfterEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected boolean csvOutputConditionFinal()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionFinal in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected String[] csvHeaderOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      First line of CSV file which has the header information
      -
      -
      Specified by:
      -
      csvHeaderOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected String[] csvLineOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Specified by:
      -
      csvLineOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/log/class-use/AbstractCSVLogger.html b/javadoc/jabs/log/class-use/AbstractCSVLogger.html deleted file mode 100644 index 3c8c7652..00000000 --- a/javadoc/jabs/log/class-use/AbstractCSVLogger.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - -Uses of Class jabs.log.AbstractCSVLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.AbstractCSVLogger

-
-
Packages that use AbstractCSVLogger
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/log/class-use/AbstractLogger.html b/javadoc/jabs/log/class-use/AbstractLogger.html deleted file mode 100644 index 21263dcf..00000000 --- a/javadoc/jabs/log/class-use/AbstractLogger.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - -Uses of Class jabs.log.AbstractLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.AbstractLogger

-
-
Packages that use AbstractLogger
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/log/class-use/BitcoinAllMessagesLogger.html b/javadoc/jabs/log/class-use/BitcoinAllMessagesLogger.html deleted file mode 100644 index 4b8f550a..00000000 --- a/javadoc/jabs/log/class-use/BitcoinAllMessagesLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.BitcoinAllMessagesLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.BitcoinAllMessagesLogger

-
-No usage of jabs.log.BitcoinAllMessagesLogger
- -
-
- - diff --git a/javadoc/jabs/log/class-use/BitcoinBlockLogger.html b/javadoc/jabs/log/class-use/BitcoinBlockLogger.html deleted file mode 100644 index 95718c5d..00000000 --- a/javadoc/jabs/log/class-use/BitcoinBlockLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.BlockDeliveryLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.BlockDeliveryLogger

-
-No usage of jabs.log.BlockDeliveryLogger
- -
-
- - diff --git a/javadoc/jabs/log/class-use/CasperFinalLogger.html b/javadoc/jabs/log/class-use/CasperFinalLogger.html deleted file mode 100644 index 1e52b428..00000000 --- a/javadoc/jabs/log/class-use/CasperFinalLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.CasperFinalLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.CasperFinalLogger

-
-No usage of jabs.log.CasperFinalLogger
- -
-
- - diff --git a/javadoc/jabs/log/class-use/PBFTCSVLogger.html b/javadoc/jabs/log/class-use/PBFTCSVLogger.html deleted file mode 100644 index 351908fb..00000000 --- a/javadoc/jabs/log/class-use/PBFTCSVLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.PBFTCSVLogger (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.PBFTCSVLogger

-
-No usage of jabs.log.PBFTCSVLogger
- -
-
- - diff --git a/javadoc/jabs/log/package-frame.html b/javadoc/jabs/log/package-frame.html deleted file mode 100644 index ac7865f5..00000000 --- a/javadoc/jabs/log/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.log (jabs 0.2.0 API) - - - - - -

jabs.log

-
-

Classes

- -
- - diff --git a/javadoc/jabs/log/package-summary.html b/javadoc/jabs/log/package-summary.html deleted file mode 100644 index c7ae8182..00000000 --- a/javadoc/jabs/log/package-summary.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - -jabs.log (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.log

-
-
-
package jabs.log
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/log/package-tree.html b/javadoc/jabs/log/package-tree.html deleted file mode 100644 index 514c70b0..00000000 --- a/javadoc/jabs/log/package-tree.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - -jabs.log Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.log

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/log/package-use.html b/javadoc/jabs/log/package-use.html deleted file mode 100644 index 26e584f4..00000000 --- a/javadoc/jabs/log/package-use.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -Uses of Package jabs.log (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.log

-
-
Packages that use jabs.log
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/logger/AbstractCSVLogger.html b/javadoc/jabs/logger/AbstractCSVLogger.html deleted file mode 100644 index c40defcb..00000000 --- a/javadoc/jabs/logger/AbstractCSVLogger.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - -AbstractCSVLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class AbstractCSVLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger
-
-
-
-
-
Direct Known Subclasses:
-
PBFTCSVLogger
-
-
-
public abstract class AbstractCSVLogger -extends AbstractLogger
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      loggerCSV

      -
      protected CsvWriter loggerCSV
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractCSVLogger

      -
      public AbstractCSVLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      AbstractCSVLogger

      -
      public AbstractCSVLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      initialLog

      -
      public void initialLog()
      -
      -
      Specified by:
      -
      initialLog in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logBeforeEvent

      -
      public void logBeforeEvent()
      -
      -
      Specified by:
      -
      logBeforeEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      logAfterEvent

      -
      public void logAfterEvent()
      -
      -
      Specified by:
      -
      logAfterEvent in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      finalLog

      -
      public void finalLog()
      -
      -
      Specified by:
      -
      finalLog in class AbstractLogger
      -
      -
      -
    • -
    • -
      -

      csvStartingComment

      -
      protected abstract String csvStartingComment()
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected abstract boolean csvOutputConditionBeforeEvent()
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected abstract boolean csvOutputConditionAfterEvent()
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected abstract boolean csvOutputConditionFinal()
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected abstract String[] csvHeaderOutput()
      -
      First line of CSV file which has the header information
      -
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected abstract String[] csvLineOutput()
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/logger/AbstractLogger.html b/javadoc/jabs/logger/AbstractLogger.html deleted file mode 100644 index cabcc775..00000000 --- a/javadoc/jabs/logger/AbstractLogger.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - -AbstractLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class AbstractLogger

-
-
Object -
AbstractLogger
-
-
-
-
Direct Known Subclasses:
-
AbstractCSVLogger, CasperFinalLogger
-
-
-
public abstract class AbstractLogger -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractLogger

      -
      public AbstractLogger()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      setScenario

      -
      public abstract void setScenario(AbstractScenario scenario)
      -
      -
    • -
    • -
      -

      initialLog

      -
      public abstract void initialLog()
      -
      -
    • -
    • -
      -

      logBeforeEvent

      -
      public abstract void logBeforeEvent()
      -
      -
    • -
    • -
      -

      logAfterEvent

      -
      public abstract void logAfterEvent()
      -
      -
    • -
    • -
      -

      finalLog

      -
      public abstract void finalLog()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/logger/CasperFinalLogger.html b/javadoc/jabs/logger/CasperFinalLogger.html deleted file mode 100644 index ce823659..00000000 --- a/javadoc/jabs/logger/CasperFinalLogger.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - -CasperFinalLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class CasperFinalLogger

-
-
Object -
AbstractLogger -
CasperFinalLogger
-
-
-
-
-
public class CasperFinalLogger -extends AbstractLogger
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/logger/PBFTCSVLogger.html b/javadoc/jabs/logger/PBFTCSVLogger.html deleted file mode 100644 index 272b9ca0..00000000 --- a/javadoc/jabs/logger/PBFTCSVLogger.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - -PBFTCSVLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.log
-

Class PBFTCSVLogger

-
-
Object -
AbstractLogger -
AbstractCSVLogger -
PBFTCSVLogger
-
-
-
-
-
-
public class PBFTCSVLogger -extends AbstractCSVLogger
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTCSVLogger

      -
      public PBFTCSVLogger(Writer writer)
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      writer - this is output CSV of the logger
      -
      -
      -
    • -
    • -
      -

      PBFTCSVLogger

      -
      public PBFTCSVLogger(Path path) - throws IOException
      -
      creates an abstract CSV logger
      -
      -
      Parameters:
      -
      path - this is output path of CSV file
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      csvStartingComment

      -
      protected String csvStartingComment()
      -
      Description copied from class: AbstractCSVLogger
      -
      Adds the Starting Comment to the output CSV file
      -
      -
      Specified by:
      -
      csvStartingComment in class AbstractCSVLogger
      -
      Returns:
      -
      the string to be written at the start of csv file
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionBeforeEvent

      -
      protected boolean csvOutputConditionBeforeEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run before event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionBeforeEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionAfterEvent

      -
      protected boolean csvOutputConditionAfterEvent()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionAfterEvent in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvOutputConditionFinal

      -
      protected boolean csvOutputConditionFinal()
      -
      Description copied from class: AbstractCSVLogger
      -
      If return value is true, then one line will be written to the csv output. - this run after event execution.
      -
      -
      Specified by:
      -
      csvOutputConditionFinal in class AbstractCSVLogger
      -
      Returns:
      -
      true if one line should be written to the output CSV file.
      -
      -
      -
    • -
    • -
      -

      csvHeaderOutput

      -
      protected String[] csvHeaderOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      First line of CSV file which has the header information
      -
      -
      Specified by:
      -
      csvHeaderOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of header names to output
      -
      -
      -
    • -
    • -
      -

      csvLineOutput

      -
      protected String[] csvLineOutput()
      -
      Description copied from class: AbstractCSVLogger
      -
      If the CSV Output is true the returned value of this function will be written to csv output file
      -
      -
      Specified by:
      -
      csvLineOutput in class AbstractCSVLogger
      -
      Returns:
      -
      list of strings to output
      -
      -
      -
    • -
    • -
      -

      setScenario

      -
      public void setScenario(AbstractScenario scenario)
      -
      -
      Specified by:
      -
      setScenario in class AbstractLogger
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/logger/class-use/AbstractCSVLogger.html b/javadoc/jabs/logger/class-use/AbstractCSVLogger.html deleted file mode 100644 index 9b0feed4..00000000 --- a/javadoc/jabs/logger/class-use/AbstractCSVLogger.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Uses of Class jabs.log.AbstractCSVLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.AbstractCSVLogger

-
-
Packages that use AbstractCSVLogger
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/logger/class-use/AbstractLogger.html b/javadoc/jabs/logger/class-use/AbstractLogger.html deleted file mode 100644 index 61e58e67..00000000 --- a/javadoc/jabs/logger/class-use/AbstractLogger.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - -Uses of Class jabs.log.AbstractLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.AbstractLogger

-
-
Packages that use AbstractLogger
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/logger/class-use/CasperFinalLogger.html b/javadoc/jabs/logger/class-use/CasperFinalLogger.html deleted file mode 100644 index b15c89e4..00000000 --- a/javadoc/jabs/logger/class-use/CasperFinalLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.CasperFinalLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.CasperFinalLogger

-
-No usage of jabs.log.CasperFinalLogger
- -
-
- - diff --git a/javadoc/jabs/logger/class-use/PBFTCSVLogger.html b/javadoc/jabs/logger/class-use/PBFTCSVLogger.html deleted file mode 100644 index 50f2b43b..00000000 --- a/javadoc/jabs/logger/class-use/PBFTCSVLogger.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.log.PBFTCSVLogger (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.log.PBFTCSVLogger

-
-No usage of jabs.log.PBFTCSVLogger
- -
-
- - diff --git a/javadoc/jabs/logger/package-summary.html b/javadoc/jabs/logger/package-summary.html deleted file mode 100644 index a973c896..00000000 --- a/javadoc/jabs/logger/package-summary.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -jabs.log (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.log

-
-
-
package jabs.log
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/logger/package-tree.html b/javadoc/jabs/logger/package-tree.html deleted file mode 100644 index e5bad424..00000000 --- a/javadoc/jabs/logger/package-tree.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - -jabs.log Class Hierarchy (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.log

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/logger/package-use.html b/javadoc/jabs/logger/package-use.html deleted file mode 100644 index b4b0d811..00000000 --- a/javadoc/jabs/logger/package-use.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -Uses of Package jabs.log (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.log

-
-
Packages that use jabs.log
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/message/DataMessage.html b/javadoc/jabs/message/DataMessage.html deleted file mode 100644 index 15f6606e..00000000 --- a/javadoc/jabs/message/DataMessage.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -DataMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class DataMessage

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/InvMessage.html b/javadoc/jabs/message/InvMessage.html deleted file mode 100644 index 3ef855e3..00000000 --- a/javadoc/jabs/message/InvMessage.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - - - -InvMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class InvMessage

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/Message.html b/javadoc/jabs/message/Message.html deleted file mode 100644 index 0df367d2..00000000 --- a/javadoc/jabs/message/Message.html +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - -Message (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class Message

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/Packet.html b/javadoc/jabs/message/Packet.html deleted file mode 100644 index c758c7c2..00000000 --- a/javadoc/jabs/message/Packet.html +++ /dev/null @@ -1,389 +0,0 @@ - - - - - - -Packet (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class Packet

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/RequestDataMessage.html b/javadoc/jabs/message/RequestDataMessage.html deleted file mode 100644 index 657a7c25..00000000 --- a/javadoc/jabs/message/RequestDataMessage.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -RequestDataMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class RequestDataMessage

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/VoteMessage.html b/javadoc/jabs/message/VoteMessage.html deleted file mode 100644 index 408ce2fc..00000000 --- a/javadoc/jabs/message/VoteMessage.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -VoteMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.message
-

Class VoteMessage

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/DataMessage.html b/javadoc/jabs/message/class-use/DataMessage.html deleted file mode 100644 index ff6fba44..00000000 --- a/javadoc/jabs/message/class-use/DataMessage.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.DataMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.DataMessage

-
-
No usage of jabs.network.message.DataMessage
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/InvMessage.html b/javadoc/jabs/message/class-use/InvMessage.html deleted file mode 100644 index 0a00b173..00000000 --- a/javadoc/jabs/message/class-use/InvMessage.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.InvMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.InvMessage

-
-
No usage of jabs.network.message.InvMessage
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/Message.html b/javadoc/jabs/message/class-use/Message.html deleted file mode 100644 index 17095579..00000000 --- a/javadoc/jabs/message/class-use/Message.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.Message (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.Message

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/Packet.html b/javadoc/jabs/message/class-use/Packet.html deleted file mode 100644 index 95f5851d..00000000 --- a/javadoc/jabs/message/class-use/Packet.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.Packet (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.Packet

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/RequestDataMessage.html b/javadoc/jabs/message/class-use/RequestDataMessage.html deleted file mode 100644 index 86f80196..00000000 --- a/javadoc/jabs/message/class-use/RequestDataMessage.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.RequestDataMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.RequestDataMessage

-
-
No usage of jabs.network.message.RequestDataMessage
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/class-use/VoteMessage.html b/javadoc/jabs/message/class-use/VoteMessage.html deleted file mode 100644 index b7c129a4..00000000 --- a/javadoc/jabs/message/class-use/VoteMessage.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.message.VoteMessage (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.message.VoteMessage

-
-
No usage of jabs.network.message.VoteMessage
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/package-frame.html b/javadoc/jabs/message/package-frame.html deleted file mode 100644 index 09991fbf..00000000 --- a/javadoc/jabs/message/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.message (jabs 0.1.1 API) - - - - - -

jabs.network.message

-
-

Classes

- -
- - diff --git a/javadoc/jabs/message/package-summary.html b/javadoc/jabs/message/package-summary.html deleted file mode 100644 index e2b3891d..00000000 --- a/javadoc/jabs/message/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - -jabs.network.message (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.message

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/package-tree.html b/javadoc/jabs/message/package-tree.html deleted file mode 100644 index e9dbe434..00000000 --- a/javadoc/jabs/message/package-tree.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -jabs.network.message Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.message

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/message/package-use.html b/javadoc/jabs/message/package-use.html deleted file mode 100644 index 30be8899..00000000 --- a/javadoc/jabs/message/package-use.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - -Uses of Package jabs.network.message (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.message

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/BitcoinGlobalBlockchainNetwork.html b/javadoc/jabs/network/BitcoinGlobalBlockchainNetwork.html deleted file mode 100644 index d5093335..00000000 --- a/javadoc/jabs/network/BitcoinGlobalBlockchainNetwork.html +++ /dev/null @@ -1,489 +0,0 @@ - - - - - - -BitcoinGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class BitcoinGlobalBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/BlockFactory.html b/javadoc/jabs/network/BlockFactory.html deleted file mode 100644 index d0e67c35..00000000 --- a/javadoc/jabs/network/BlockFactory.html +++ /dev/null @@ -1,515 +0,0 @@ - - - - - - -BlockFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class BlockFactory

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/BlockchainNetwork.html b/javadoc/jabs/network/BlockchainNetwork.html deleted file mode 100644 index 73e310e9..00000000 --- a/javadoc/jabs/network/BlockchainNetwork.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - -BlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class BlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/CasperFFGGlobalBlockchainNetwork.html b/javadoc/jabs/network/CasperFFGGlobalBlockchainNetwork.html deleted file mode 100644 index 28bd753f..00000000 --- a/javadoc/jabs/network/CasperFFGGlobalBlockchainNetwork.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - - -CasperFFGGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class CasperFFGGlobalBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/DAGsperGlobalBlockchainNetwork.html b/javadoc/jabs/network/DAGsperGlobalBlockchainNetwork.html deleted file mode 100644 index e8d5fe55..00000000 --- a/javadoc/jabs/network/DAGsperGlobalBlockchainNetwork.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - - -DAGsperGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class DAGsperGlobalBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/EthereumGlobalBlockchainNetwork.html b/javadoc/jabs/network/EthereumGlobalBlockchainNetwork.html deleted file mode 100644 index f032a2df..00000000 --- a/javadoc/jabs/network/EthereumGlobalBlockchainNetwork.html +++ /dev/null @@ -1,544 +0,0 @@ - - - - - - -EthereumGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class EthereumGlobalBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/GlobalBlockchainNetwork.html b/javadoc/jabs/network/GlobalBlockchainNetwork.html deleted file mode 100644 index 86717ae8..00000000 --- a/javadoc/jabs/network/GlobalBlockchainNetwork.html +++ /dev/null @@ -1,578 +0,0 @@ - - - - - - -GlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class GlobalBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/LANBlockchainNetwork.html b/javadoc/jabs/network/LANBlockchainNetwork.html deleted file mode 100644 index 79317686..00000000 --- a/javadoc/jabs/network/LANBlockchainNetwork.html +++ /dev/null @@ -1,410 +0,0 @@ - - - - - - -LANBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class LANBlockchainNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/Network.html b/javadoc/jabs/network/Network.html deleted file mode 100644 index 2cf77034..00000000 --- a/javadoc/jabs/network/Network.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - -Network (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class Network

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/NetworkBuilder.html b/javadoc/jabs/network/NetworkBuilder.html deleted file mode 100644 index 5d033d23..00000000 --- a/javadoc/jabs/network/NetworkBuilder.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - -NetworkBuilder (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class NetworkBuilder

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/PBFTLocalLANNetwork.html b/javadoc/jabs/network/PBFTLocalLANNetwork.html deleted file mode 100644 index f16da11c..00000000 --- a/javadoc/jabs/network/PBFTLocalLANNetwork.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - -PBFTLocalLANNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class PBFTLocalLANNetwork

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/TransactionFactory.html b/javadoc/jabs/network/TransactionFactory.html deleted file mode 100644 index d79971f9..00000000 --- a/javadoc/jabs/network/TransactionFactory.html +++ /dev/null @@ -1,402 +0,0 @@ - - - - - - -TransactionFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.networks
-

Class TransactionFactory

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/BitcoinGlobalBlockchainNetwork.html b/javadoc/jabs/network/class-use/BitcoinGlobalBlockchainNetwork.html deleted file mode 100644 index b2909252..00000000 --- a/javadoc/jabs/network/class-use/BitcoinGlobalBlockchainNetwork.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.BitcoinGlobalProofOfWorkNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.BitcoinGlobalProofOfWorkNetwork

-
-
No usage of jabs.network.networks.BitcoinGlobalProofOfWorkNetwork
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/BlockFactory.html b/javadoc/jabs/network/class-use/BlockFactory.html deleted file mode 100644 index 37992db6..00000000 --- a/javadoc/jabs/network/class-use/BlockFactory.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.BlockFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.BlockFactory

-
-
No usage of jabs.network.networks.BlockFactory
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/BlockchainNetwork.html b/javadoc/jabs/network/class-use/BlockchainNetwork.html deleted file mode 100644 index da036fec..00000000 --- a/javadoc/jabs/network/class-use/BlockchainNetwork.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.GlobalProofOfWorkNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.GlobalProofOfWorkNetwork

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/CasperFFGGlobalBlockchainNetwork.html b/javadoc/jabs/network/class-use/CasperFFGGlobalBlockchainNetwork.html deleted file mode 100644 index 579ddd95..00000000 --- a/javadoc/jabs/network/class-use/CasperFFGGlobalBlockchainNetwork.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.CasperFFGGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.CasperFFGGlobalBlockchainNetwork

-
-
No usage of jabs.network.networks.CasperFFGGlobalBlockchainNetwork
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/DAGsperGlobalBlockchainNetwork.html b/javadoc/jabs/network/class-use/DAGsperGlobalBlockchainNetwork.html deleted file mode 100644 index 2f6a9c9f..00000000 --- a/javadoc/jabs/network/class-use/DAGsperGlobalBlockchainNetwork.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.DAGsperGlobalBlockchainNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.DAGsperGlobalBlockchainNetwork

-
-
No usage of jabs.network.networks.DAGsperGlobalBlockchainNetwork
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/EthereumGlobalBlockchainNetwork.html b/javadoc/jabs/network/class-use/EthereumGlobalBlockchainNetwork.html deleted file mode 100644 index 5f2a7c56..00000000 --- a/javadoc/jabs/network/class-use/EthereumGlobalBlockchainNetwork.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.EthereumGlobalProofOfWorkNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.EthereumGlobalProofOfWorkNetwork

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/GlobalBlockchainNetwork.html b/javadoc/jabs/network/class-use/GlobalBlockchainNetwork.html deleted file mode 100644 index 84a335c4..00000000 --- a/javadoc/jabs/network/class-use/GlobalBlockchainNetwork.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.GlobalNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.GlobalNetwork

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/LANBlockchainNetwork.html b/javadoc/jabs/network/class-use/LANBlockchainNetwork.html deleted file mode 100644 index 3b8fe860..00000000 --- a/javadoc/jabs/network/class-use/LANBlockchainNetwork.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.LANNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.LANNetwork

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/Network.html b/javadoc/jabs/network/class-use/Network.html deleted file mode 100644 index 6abfe529..00000000 --- a/javadoc/jabs/network/class-use/Network.html +++ /dev/null @@ -1,643 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.Network (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.Network

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/NetworkBuilder.html b/javadoc/jabs/network/class-use/NetworkBuilder.html deleted file mode 100644 index bd86827d..00000000 --- a/javadoc/jabs/network/class-use/NetworkBuilder.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.NetworkBuilder (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.NetworkBuilder

-
-
No usage of jabs.network.networks.NetworkBuilder
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/PBFTLocalLANNetwork.html b/javadoc/jabs/network/class-use/PBFTLocalLANNetwork.html deleted file mode 100644 index da20549d..00000000 --- a/javadoc/jabs/network/class-use/PBFTLocalLANNetwork.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.PBFTLocalLANNetwork (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.PBFTLocalLANNetwork

-
-
No usage of jabs.network.networks.PBFTLocalLANNetwork
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/class-use/TransactionFactory.html b/javadoc/jabs/network/class-use/TransactionFactory.html deleted file mode 100644 index 77b88310..00000000 --- a/javadoc/jabs/network/class-use/TransactionFactory.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.networks.TransactionFactory (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.networks.TransactionFactory

-
-
No usage of jabs.network.networks.TransactionFactory
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/message/DataMessage.html b/javadoc/jabs/network/message/DataMessage.html deleted file mode 100644 index ce06b4f7..00000000 --- a/javadoc/jabs/network/message/DataMessage.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - -DataMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class DataMessage

-
-
Object -
Message -
DataMessage
-
-
-
-
-
public class DataMessage -extends Message
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      data

      -
      private final Data data
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DataMessage

      -
      public DataMessage(Data data)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getData

      -
      public Data getData()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/InvMessage.html b/javadoc/jabs/network/message/InvMessage.html deleted file mode 100644 index 101399cf..00000000 --- a/javadoc/jabs/network/message/InvMessage.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - -InvMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class InvMessage

-
-
Object -
Message -
InvMessage
-
-
-
-
-
public class InvMessage -extends Message
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      hash

      -
      private final Hash hash
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      InvMessage

      -
      public InvMessage(int hashSize, - Hash hash)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getHash

      -
      public Hash getHash()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/Message.html b/javadoc/jabs/network/message/Message.html deleted file mode 100644 index 9d01dc02..00000000 --- a/javadoc/jabs/network/message/Message.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - -Message (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Message

-
-
Object -
Message
-
-
-
-
Direct Known Subclasses:
-
DataMessage, InvMessage, RequestDataMessage, VoteMessage
-
-
-
public abstract class Message -extends Object
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    private final int
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    -
    Message(int size)
    -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    int
    - -
     
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      size

      -
      private final int size
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Message

      -
      public Message(int size)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getSize

      -
      public int getSize()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/Packet.html b/javadoc/jabs/network/message/Packet.html deleted file mode 100644 index 896ce29f..00000000 --- a/javadoc/jabs/network/message/Packet.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - -Packet (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Packet

-
-
Object -
Packet
-
-
-
-
public class Packet -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      size

      -
      private final int size
      -
      -
    • -
    • -
      -

      from

      -
      private final Node from
      -
      -
    • -
    • -
      -

      to

      -
      private final Node to
      -
      -
    • -
    • -
      -

      message

      -
      private final Message message
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Packet

      -
      public Packet(Node from, - Node to, - Message message)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getSize

      -
      public int getSize()
      -
      -
    • -
    • -
      -

      getFrom

      -
      public Node getFrom()
      -
      -
    • -
    • -
      -

      getTo

      -
      public Node getTo()
      -
      -
    • -
    • -
      -

      getMessage

      -
      public Message getMessage()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/RequestDataMessage.html b/javadoc/jabs/network/message/RequestDataMessage.html deleted file mode 100644 index 60247b92..00000000 --- a/javadoc/jabs/network/message/RequestDataMessage.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - -RequestDataMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class RequestDataMessage

-
-
Object -
Message -
RequestDataMessage
-
-
-
-
-
public class RequestDataMessage -extends Message
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      payloadHash

      -
      private final Hash payloadHash
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      RequestDataMessage

      -
      public RequestDataMessage(Hash hash)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getHash

      -
      public Hash getHash()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/VoteMessage.html b/javadoc/jabs/network/message/VoteMessage.html deleted file mode 100644 index d23970d5..00000000 --- a/javadoc/jabs/network/message/VoteMessage.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - -VoteMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class VoteMessage

-
-
Object -
Message -
VoteMessage
-
-
-
-
-
public class VoteMessage -extends Message
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      vote

      -
      private final Vote vote
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      VoteMessage

      -
      public VoteMessage(Vote vote)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getVote

      -
      public Vote getVote()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/DataMessage.html b/javadoc/jabs/network/message/class-use/DataMessage.html deleted file mode 100644 index 8e935b13..00000000 --- a/javadoc/jabs/network/message/class-use/DataMessage.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.message.DataMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.DataMessage

-
-No usage of jabs.network.message.DataMessage
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/InvMessage.html b/javadoc/jabs/network/message/class-use/InvMessage.html deleted file mode 100644 index fa257936..00000000 --- a/javadoc/jabs/network/message/class-use/InvMessage.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.message.InvMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.InvMessage

-
-No usage of jabs.network.message.InvMessage
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/Message.html b/javadoc/jabs/network/message/class-use/Message.html deleted file mode 100644 index ae986c92..00000000 --- a/javadoc/jabs/network/message/class-use/Message.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - -Uses of Class jabs.network.message.Message (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.Message

-
-
Packages that use Message
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/Packet.html b/javadoc/jabs/network/message/class-use/Packet.html deleted file mode 100644 index 39cc28a0..00000000 --- a/javadoc/jabs/network/message/class-use/Packet.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - -Uses of Class jabs.network.message.Packet (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.Packet

-
-
Packages that use Packet
-
-
Package
-
Description
- -
 
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/RequestDataMessage.html b/javadoc/jabs/network/message/class-use/RequestDataMessage.html deleted file mode 100644 index 8df49711..00000000 --- a/javadoc/jabs/network/message/class-use/RequestDataMessage.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.message.RequestDataMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.RequestDataMessage

-
-No usage of jabs.network.message.RequestDataMessage
- -
-
- - diff --git a/javadoc/jabs/network/message/class-use/VoteMessage.html b/javadoc/jabs/network/message/class-use/VoteMessage.html deleted file mode 100644 index 0af0e98f..00000000 --- a/javadoc/jabs/network/message/class-use/VoteMessage.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.message.VoteMessage (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.message.VoteMessage

-
-No usage of jabs.network.message.VoteMessage
- -
-
- - diff --git a/javadoc/jabs/network/message/package-frame.html b/javadoc/jabs/network/message/package-frame.html deleted file mode 100644 index ecb6fa21..00000000 --- a/javadoc/jabs/network/message/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.message (jabs 0.2.0 API) - - - - - -

jabs.network.message

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/message/package-summary.html b/javadoc/jabs/network/message/package-summary.html deleted file mode 100644 index 8c74204a..00000000 --- a/javadoc/jabs/network/message/package-summary.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - -jabs.network.message (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.message

-
-
-
package jabs.network.message
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/message/package-tree.html b/javadoc/jabs/network/message/package-tree.html deleted file mode 100644 index 0f8751df..00000000 --- a/javadoc/jabs/network/message/package-tree.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -jabs.network.message Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.message

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/message/package-use.html b/javadoc/jabs/network/message/package-use.html deleted file mode 100644 index 73cbe28e..00000000 --- a/javadoc/jabs/network/message/package-use.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - -Uses of Package jabs.network.message (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.message

-
-
Packages that use jabs.network.message
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetwork.html deleted file mode 100644 index 02cec7f0..00000000 --- a/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetwork.html +++ /dev/null @@ -1,390 +0,0 @@ - - - - -BitcoinGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinGlobalBlockchainNetwork

-
-
Object -
Network -
BlockchainNetwork -
GlobalBlockchainNetwork -
BitcoinGlobalBlockchainNetwork
-
-
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinGlobalBlockchainNetworkWithoutTx
-
-
-
public class BitcoinGlobalBlockchainNetwork -extends GlobalBlockchainNetwork
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      BITCOIN_REGION_DISTRIBUTION_2019

      -
      private static final double[] BITCOIN_REGION_DISTRIBUTION_2019
      -
      -
    • -
    • -
      -

      BITCOIN_MINER_REGION_DISTRIBUTION_2020

      -
      public static final double[] BITCOIN_MINER_REGION_DISTRIBUTION_2020
      -
      -
    • -
    • -
      -

      BITCOIN_HASH_POWER_DISTRIBUTION

      -
      public static final double[] BITCOIN_HASH_POWER_DISTRIBUTION
      -
      Hash power probability distribution (CDF) in Bitcoin Network
      -
      -
    • -
    • -
      -

      BITCOIN_HASH_POWER_DISTRIBUTION_BIN

      -
      public static final long[] BITCOIN_HASH_POWER_DISTRIBUTION_BIN
      -
      Hash power probability distribution (Hash Power Values) in Bitcoin Network
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinGlobalBlockchainNetwork

      -
      public BitcoinGlobalBlockchainNetwork(RandomnessEngine randomnessEngine)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetworkWithoutTx.html b/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetworkWithoutTx.html deleted file mode 100644 index ed85f12d..00000000 --- a/javadoc/jabs/network/networks/BitcoinGlobalBlockchainNetworkWithoutTx.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - -BitcoinGlobalBlockchainNetworkWithoutTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinGlobalBlockchainNetworkWithoutTx

-
-
Object -
Network -
BlockchainNetwork -
GlobalBlockchainNetwork -
BitcoinGlobalBlockchainNetwork -
BitcoinGlobalBlockchainNetworkWithoutTx
-
-
-
-
-
-
-
-
public class BitcoinGlobalBlockchainNetworkWithoutTx -extends BitcoinGlobalBlockchainNetwork
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/BlockFactory.html b/javadoc/jabs/network/networks/BlockFactory.html deleted file mode 100644 index 2936f913..00000000 --- a/javadoc/jabs/network/networks/BlockFactory.html +++ /dev/null @@ -1,385 +0,0 @@ - - - - -BlockFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockFactory

-
-
Object -
BlockFactory
-
-
-
-
public final class BlockFactory -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      ETHEREUM_BLOCK_HEADER_SIZE

      -
      public static final int ETHEREUM_BLOCK_HEADER_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      ETHEREUM_BLOCK_HASH_SIZE

      -
      public static final int ETHEREUM_BLOCK_HASH_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      ETHEREUM_MIN_DIFFICULTY

      -
      public static final long ETHEREUM_MIN_DIFFICULTY
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      BITCOIN_BLOCK_HEADER_SIZE

      -
      public static final int BITCOIN_BLOCK_HEADER_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      BITCOIN_INV_SIZE

      -
      public static final int BITCOIN_INV_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      GET_DATA_OVERHEAD

      -
      public static final int GET_DATA_OVERHEAD
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      INV_MESSAGE_OVERHEAD

      -
      public static final int INV_MESSAGE_OVERHEAD
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      ETHEREUM_HELLO_MESSAGE_SIZE

      -
      public static final int ETHEREUM_HELLO_MESSAGE_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      BITCOIN_BLOCK_SIZE_2020_BINS

      -
      private static final long[] BITCOIN_BLOCK_SIZE_2020_BINS
      -
      -
    • -
    • -
      -

      BITCOIN_BLOCK_SIZE_2020

      -
      private static final double[] BITCOIN_BLOCK_SIZE_2020
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BlockFactory

      -
      public BlockFactory()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/BlockchainNetwork.html b/javadoc/jabs/network/networks/BlockchainNetwork.html deleted file mode 100644 index 7857f988..00000000 --- a/javadoc/jabs/network/networks/BlockchainNetwork.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - -BlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockchainNetwork

-
-
Object -
Network -
BlockchainNetwork
-
-
-
-
-
Direct Known Subclasses:
-
GlobalBlockchainNetwork, LANBlockchainNetwork
-
-
-
public abstract class BlockchainNetwork -extends Network
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      miners

      -
      protected final List<MinerNode> miners
      -
      -
    • -
    • -
      -

      totalHashPower

      -
      protected long totalHashPower
      -
      -
    • -
    • -
      -

      minersHashPower

      -
      protected final List<Long> minersHashPower
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BlockchainNetwork

      -
      protected BlockchainNetwork(RandomnessEngine randomnessEngine)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getAllMiners

      -
      public List<MinerNode> getAllMiners()
      -
      -
    • -
    • -
      -

      getMiner

      -
      public MinerNode getMiner(int i)
      -
      -
    • -
    • -
      -

      getTotalHashPower

      -
      public long getTotalHashPower()
      -
      -
    • -
    • -
      -

      getRandomMinerByHashPower

      -
      public MinerNode getRandomMinerByHashPower()
      -
      -
    • -
    • -
      -

      addMiner

      -
      public void addMiner(MinerNode node)
      -
      -
    • -
    • -
      -

      sampleHashPower

      -
      protected abstract long sampleHashPower()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.html deleted file mode 100644 index 2acb51e7..00000000 --- a/javadoc/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - -CasperFFGGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class CasperFFGGlobalBlockchainNetwork<R extends Enum<R>>

-
-
Object -
Network<Region> -
GlobalNetwork<Region> -
GlobalProofOfWorkNetwork<R> -
EthereumGlobalProofOfWorkNetwork<R> -
CasperFFGGlobalBlockchainNetwork<R>
-
-
-
-
-
-
-
-
public class CasperFFGGlobalBlockchainNetwork<R extends Enum<R>> -extends EthereumGlobalProofOfWorkNetwork<R>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      checkpointSpace

      -
      protected final int checkpointSpace
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/DAGsperGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/DAGsperGlobalBlockchainNetwork.html deleted file mode 100644 index 0100749c..00000000 --- a/javadoc/jabs/network/networks/DAGsperGlobalBlockchainNetwork.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - -DAGsperGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class DAGsperGlobalBlockchainNetwork<R extends Enum<R>>

-
-
Object -
Network<Region> -
GlobalNetwork<Region> -
GlobalProofOfWorkNetwork<R> -
EthereumGlobalProofOfWorkNetwork<R> -
DAGsperGlobalBlockchainNetwork<R>
-
-
-
-
-
-
-
-
public class DAGsperGlobalBlockchainNetwork<R extends Enum<R>> -extends EthereumGlobalProofOfWorkNetwork<R>
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      checkpointSpace

      -
      private final int checkpointSpace
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/EthereumGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/EthereumGlobalBlockchainNetwork.html deleted file mode 100644 index 98fceb9f..00000000 --- a/javadoc/jabs/network/networks/EthereumGlobalBlockchainNetwork.html +++ /dev/null @@ -1,387 +0,0 @@ - - - - -EthereumGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumGlobalBlockchainNetwork

-
-
Object -
Network -
BlockchainNetwork -
GlobalBlockchainNetwork -
EthereumGlobalBlockchainNetwork
-
-
-
-
-
-
-
Direct Known Subclasses:
-
CasperFFGGlobalBlockchainNetwork, DAGsperGlobalBlockchainNetwork
-
-
-
public class EthereumGlobalBlockchainNetwork -extends GlobalBlockchainNetwork
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      ETHEREUM_REGION_DISTRIBUTION_2020

      -
      private static final double[] ETHEREUM_REGION_DISTRIBUTION_2020
      -
      -
    • -
    • -
      -

      ETHEREUM_MINER_REGION_DISTRIBUTION_2020

      -
      public static final double[] ETHEREUM_MINER_REGION_DISTRIBUTION_2020
      -
      -
    • -
    • -
      -

      ETHEREUM_HASH_POWER_DISTRIBUTION

      -
      public static final double[] ETHEREUM_HASH_POWER_DISTRIBUTION
      -
      Hash power probability distribution (CDF) in Ethereum Network
      -
      -
    • -
    • -
      -

      ETHEREUM_HASH_POWER_DISTRIBUTION_BIN

      -
      public static final long[] ETHEREUM_HASH_POWER_DISTRIBUTION_BIN
      -
      Hash power probability distribution (Hash Power Values) in Ethereum Network
      -
      -
    • -
    • -
      -

      ETHEREUM_NUM_NODES_2020

      -
      public static final int ETHEREUM_NUM_NODES_2020
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      ETHEREUM_NUM_MINERS_2020

      -
      public static final int ETHEREUM_NUM_MINERS_2020
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumGlobalBlockchainNetwork

      -
      public EthereumGlobalBlockchainNetwork(RandomnessEngine randomnessEngine)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/GlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/GlobalBlockchainNetwork.html deleted file mode 100644 index 8f0d439f..00000000 --- a/javadoc/jabs/network/networks/GlobalBlockchainNetwork.html +++ /dev/null @@ -1,384 +0,0 @@ - - - - -GlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class GlobalBlockchainNetwork

-
-
Object -
Network -
BlockchainNetwork -
GlobalBlockchainNetwork
-
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinGlobalBlockchainNetwork, EthereumGlobalBlockchainNetwork
-
-
-
public abstract class GlobalBlockchainNetwork -extends BlockchainNetwork
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      nodeRegion

      -
      public final HashMap<Node,Integer> nodeRegion
      -
      -
    • -
    • -
      -

      REGION_LIST

      -
      public static final List<String> REGION_LIST
      -
      -
    • -
    • -
      -

      DOWNLOAD_BANDWIDTH_DISTRIBUTION

      -
      public static final double[][] DOWNLOAD_BANDWIDTH_DISTRIBUTION
      -
      -
    • -
    • -
      -

      UPLOAD_BANDWIDTH_DISTRIBUTION

      -
      public static final double[][] UPLOAD_BANDWIDTH_DISTRIBUTION
      -
      -
    • -
    • -
      -

      DOWNLOAD_BANDWIDTH_BIN

      -
      public static final long[] DOWNLOAD_BANDWIDTH_BIN
      -
      -
    • -
    • -
      -

      UPLOAD_BANDWIDTH_BIN

      -
      public static final long[] UPLOAD_BANDWIDTH_BIN
      -
      -
    • -
    • -
      -

      GLOBAL_LATENCY_BY_REGION

      -
      public static final double[][] GLOBAL_LATENCY_BY_REGION
      -
      -
    • -
    • -
      -

      LATENCY_PARETO_SHAPE

      -
      public static final double LATENCY_PARETO_SHAPE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      GlobalBlockchainNetwork

      -
      public GlobalBlockchainNetwork(RandomnessEngine randomnessEngine)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      sampleBandwidthByRegion

      -
      private long sampleBandwidthByRegion(int region, - double[][] dist, - long[] bins)
      -
      -
    • -
    • -
      -

      getLatency

      -
      public double getLatency(Node from, - Node to)
      -
      -
      Specified by:
      -
      getLatency in class Network
      -
      -
      -
    • -
    • -
      -

      sampleDownloadBandwidth

      -
      public long sampleDownloadBandwidth(int region)
      -
      -
      Specified by:
      -
      sampleDownloadBandwidth in class Network
      -
      -
      -
    • -
    • -
      -

      sampleUploadBandwidth

      -
      public long sampleUploadBandwidth(int region)
      -
      -
      Specified by:
      -
      sampleUploadBandwidth in class Network
      -
      -
      -
    • -
    • -
      -

      addNode

      -
      public void addNode(Node node)
      -
      -
      Overrides:
      -
      addNode in class Network
      -
      -
      -
    • -
    • -
      -

      addMiner

      -
      public void addMiner(MinerNode node)
      -
      -
      Overrides:
      -
      addMiner in class BlockchainNetwork
      -
      -
      -
    • -
    • -
      -

      sampleRegion

      -
      public abstract int sampleRegion()
      -
      -
    • -
    • -
      -

      sampleMinerRegion

      -
      public abstract int sampleMinerRegion()
      -
      -
    • -
    • -
      -

      populateNetwork

      -
      public abstract void populateNetwork(Simulator simulator, - int numMiners, - int numNonMiners)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/LANBlockchainNetwork.html b/javadoc/jabs/network/networks/LANBlockchainNetwork.html deleted file mode 100644 index 2d750fe8..00000000 --- a/javadoc/jabs/network/networks/LANBlockchainNetwork.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - -LANBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class LANBlockchainNetwork

-
-
Object -
Network -
BlockchainNetwork -
LANBlockchainNetwork
-
-
-
-
-
-
Direct Known Subclasses:
-
PBFTLocalLANNetwork
-
-
-
public abstract class LANBlockchainNetwork -extends BlockchainNetwork
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      GLOBAL_LATENCY_BY_REGION

      -
      public static final double GLOBAL_LATENCY_BY_REGION
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      LATENCY_PARETO_SHAPE

      -
      public static final double LATENCY_PARETO_SHAPE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      LANBlockchainNetwork

      -
      public LANBlockchainNetwork(RandomnessEngine randomnessEngine)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/Network.html b/javadoc/jabs/network/networks/Network.html deleted file mode 100644 index f605d7e7..00000000 --- a/javadoc/jabs/network/networks/Network.html +++ /dev/null @@ -1,322 +0,0 @@ - - - - -Network (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Network<NodeType extends Enum<NodeType>>

-
-
Object -
Network<NodeType>
-
-
-
-
Direct Known Subclasses:
-
GlobalNetwork, PBFTLocalLANNetwork
-
-
-
public abstract class Network<NodeType extends Enum<NodeType>> -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getRandomNode

      -
      public Node getRandomNode()
      -
      -
    • -
    • -
      -

      getAllNodes

      -
      public List<Node> getAllNodes()
      -
      -
    • -
    • -
      -

      getNode

      -
      public Node getNode(int i)
      -
      -
    • -
    • -
      -

      getLatency

      -
      public double getLatency(Node from, - Node to)
      -
      -
    • -
    • -
      -

      sampleDownloadBandwidth

      -
      public long sampleDownloadBandwidth(NodeType type)
      -
      -
    • -
    • -
      -

      sampleUploadBandwidth

      -
      public long sampleUploadBandwidth(NodeType type)
      -
      -
    • -
    • -
      -

      populateNetwork

      -
      public abstract void populateNetwork(Simulator simulator)
      -
      -
    • -
    • -
      -

      populateNetwork

      -
      public abstract void populateNetwork(Simulator simulator, - int numNodes)
      -
      -
    • -
    • -
      -

      addNode

      -
      public abstract void addNode(Node node)
      -
      -
    • -
    • -
      -

      addNode

      -
      public void addNode(Node node, - NodeType nodeType)
      -
      -
    • -
    • -
      -

      getRandom

      -
      public RandomnessEngine getRandom()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/NetworkBuilder.html b/javadoc/jabs/network/networks/NetworkBuilder.html deleted file mode 100644 index 29c15bf6..00000000 --- a/javadoc/jabs/network/networks/NetworkBuilder.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - -NetworkBuilder (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class NetworkBuilder

-
-
Object -
NetworkBuilder
-
-
-
-
public class NetworkBuilder -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      NetworkBuilder

      -
      public NetworkBuilder()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/PBFTLocalLANNetwork.html b/javadoc/jabs/network/networks/PBFTLocalLANNetwork.html deleted file mode 100644 index dc91e570..00000000 --- a/javadoc/jabs/network/networks/PBFTLocalLANNetwork.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - -PBFTLocalLANNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTLocalLANNetwork

-
-
Object -
Network<SingleNodeType> -
PBFTLocalLANNetwork
-
-
-
-
-
public class PBFTLocalLANNetwork -extends Network<SingleNodeType>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/TransactionFactory.html b/javadoc/jabs/network/networks/TransactionFactory.html deleted file mode 100644 index f4f7bd0b..00000000 --- a/javadoc/jabs/network/networks/TransactionFactory.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - -TransactionFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class TransactionFactory

-
-
Object -
TransactionFactory
-
-
-
-
public final class TransactionFactory -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      BITCOIN_TRANSACTION_SIZE_DISTRIBUTION

      -
      private static final double[] BITCOIN_TRANSACTION_SIZE_DISTRIBUTION
      -
      -
    • -
    • -
      -

      BITCOIN_TRANSACTION_SIZE_BINS

      -
      private static final long[] BITCOIN_TRANSACTION_SIZE_BINS
      -
      -
    • -
    • -
      -

      ETHEREUM_TRANSACTION_SIZE_DISTRIBUTION

      -
      private static final double[] ETHEREUM_TRANSACTION_SIZE_DISTRIBUTION
      -
      -
    • -
    • -
      -

      ETHEREUM_TRANSACTION_GAS_BINS

      -
      private static final long[] ETHEREUM_TRANSACTION_GAS_BINS
      -
      -
    • -
    • -
      -

      BITCOIN_TRANSACTION_GAS_DISTRIBUTION

      -
      private static final double[] BITCOIN_TRANSACTION_GAS_DISTRIBUTION
      -
      -
    • -
    • -
      -

      ETHEREUM_TRANSACTION_SIZE_BINS

      -
      private static final long[] ETHEREUM_TRANSACTION_SIZE_BINS
      -
      -
    • -
    • -
      -

      ETHEREUM_MIN_DIFFICULTY

      -
      public static final long ETHEREUM_MIN_DIFFICULTY
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TransactionFactory

      -
      public TransactionFactory()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetwork.html deleted file mode 100644 index 4e91d0bb..00000000 --- a/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetwork.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Uses of Class jabs.network.networks.BitcoinGlobalProofOfWorkNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.BitcoinGlobalProofOfWorkNetwork

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetworkWithoutTx.html b/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetworkWithoutTx.html deleted file mode 100644 index fd2c8a1b..00000000 --- a/javadoc/jabs/network/networks/class-use/BitcoinGlobalBlockchainNetworkWithoutTx.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.BitcoinGlobalProofOfWorkNetworkWithoutTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.BitcoinGlobalProofOfWorkNetworkWithoutTx

-
-No usage of jabs.network.networks.BitcoinGlobalProofOfWorkNetworkWithoutTx
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/BlockFactory.html b/javadoc/jabs/network/networks/class-use/BlockFactory.html deleted file mode 100644 index 0b67515e..00000000 --- a/javadoc/jabs/network/networks/class-use/BlockFactory.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.BlockFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.BlockFactory

-
-No usage of jabs.network.networks.BlockFactory
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/BlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/BlockchainNetwork.html deleted file mode 100644 index ee996842..00000000 --- a/javadoc/jabs/network/networks/class-use/BlockchainNetwork.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - -Uses of Class jabs.network.networks.GlobalProofOfWorkNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.GlobalProofOfWorkNetwork

-
-
Packages that use BlockchainNetwork
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/CasperFFGGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/CasperFFGGlobalBlockchainNetwork.html deleted file mode 100644 index 46705b0f..00000000 --- a/javadoc/jabs/network/networks/class-use/CasperFFGGlobalBlockchainNetwork.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.CasperFFGGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.CasperFFGGlobalBlockchainNetwork

-
-No usage of jabs.network.networks.CasperFFGGlobalBlockchainNetwork
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/DAGsperGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/DAGsperGlobalBlockchainNetwork.html deleted file mode 100644 index 8685e89e..00000000 --- a/javadoc/jabs/network/networks/class-use/DAGsperGlobalBlockchainNetwork.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.DAGsperGlobalBlockchainNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.DAGsperGlobalBlockchainNetwork

-
-No usage of jabs.network.networks.DAGsperGlobalBlockchainNetwork
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/EthereumGlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/EthereumGlobalBlockchainNetwork.html deleted file mode 100644 index 221bbd8d..00000000 --- a/javadoc/jabs/network/networks/class-use/EthereumGlobalBlockchainNetwork.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -Uses of Class jabs.network.networks.EthereumGlobalProofOfWorkNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.EthereumGlobalProofOfWorkNetwork

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/GlobalBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/GlobalBlockchainNetwork.html deleted file mode 100644 index d12e9d61..00000000 --- a/javadoc/jabs/network/networks/class-use/GlobalBlockchainNetwork.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -Uses of Class jabs.network.networks.GlobalNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.GlobalNetwork

-
-
Packages that use GlobalBlockchainNetwork
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/LANBlockchainNetwork.html b/javadoc/jabs/network/networks/class-use/LANBlockchainNetwork.html deleted file mode 100644 index 3043bd0a..00000000 --- a/javadoc/jabs/network/networks/class-use/LANBlockchainNetwork.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Uses of Class jabs.network.networks.LANNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.LANNetwork

-
-
Packages that use LANBlockchainNetwork
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/Network.html b/javadoc/jabs/network/networks/class-use/Network.html deleted file mode 100644 index c8c19848..00000000 --- a/javadoc/jabs/network/networks/class-use/Network.html +++ /dev/null @@ -1,559 +0,0 @@ - - - - -Uses of Class jabs.network.networks.Network (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.Network

-
-
Packages that use Network
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/NetworkBuilder.html b/javadoc/jabs/network/networks/class-use/NetworkBuilder.html deleted file mode 100644 index 20ec9789..00000000 --- a/javadoc/jabs/network/networks/class-use/NetworkBuilder.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.NetworkBuilder (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.NetworkBuilder

-
-No usage of jabs.network.networks.NetworkBuilder
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/PBFTLocalLANNetwork.html b/javadoc/jabs/network/networks/class-use/PBFTLocalLANNetwork.html deleted file mode 100644 index 23f29f03..00000000 --- a/javadoc/jabs/network/networks/class-use/PBFTLocalLANNetwork.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.PBFTLocalLANNetwork (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.PBFTLocalLANNetwork

-
-No usage of jabs.network.networks.PBFTLocalLANNetwork
- -
-
- - diff --git a/javadoc/jabs/network/networks/class-use/TransactionFactory.html b/javadoc/jabs/network/networks/class-use/TransactionFactory.html deleted file mode 100644 index 06069e09..00000000 --- a/javadoc/jabs/network/networks/class-use/TransactionFactory.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.networks.TransactionFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.networks.TransactionFactory

-
-No usage of jabs.network.networks.TransactionFactory
- -
-
- - diff --git a/javadoc/jabs/network/networks/package-frame.html b/javadoc/jabs/network/networks/package-frame.html deleted file mode 100644 index 341a848b..00000000 --- a/javadoc/jabs/network/networks/package-frame.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -jabs.network.networks (jabs 0.2.0 API) - - - - - -

jabs.network.networks

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/networks/package-summary.html b/javadoc/jabs/network/networks/package-summary.html deleted file mode 100644 index 0f4c77a1..00000000 --- a/javadoc/jabs/network/networks/package-summary.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -jabs.network.networks (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.networks

-
-
-
package jabs.network.networks
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/package-tree.html b/javadoc/jabs/network/networks/package-tree.html deleted file mode 100644 index d0ea1c03..00000000 --- a/javadoc/jabs/network/networks/package-tree.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - -jabs.network.networks Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.networks

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/networks/package-use.html b/javadoc/jabs/network/networks/package-use.html deleted file mode 100644 index 1a42fe5c..00000000 --- a/javadoc/jabs/network/networks/package-use.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - -Uses of Package jabs.network.networks (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.networks

-
-
Packages that use jabs.network.networks
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/NodeNetworkInterface.html b/javadoc/jabs/network/node/NodeNetworkInterface.html deleted file mode 100644 index 15b24e22..00000000 --- a/javadoc/jabs/network/node/NodeNetworkInterface.html +++ /dev/null @@ -1,383 +0,0 @@ - - - - -NodeNetworkInterface (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class NodeNetworkInterface

-
-
Object -
NodeNetworkInterface
-
-
-
-
public class NodeNetworkInterface -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      downloadBandwidth

      -
      public final long downloadBandwidth
      -
      Node's total download bandwidth
      -
      -
    • -
    • -
      -

      uploadBandwidth

      -
      public final long uploadBandwidth
      -
      Node's total upload bandwidth
      -
      -
    • -
    • -
      -

      node

      -
      public final Node node
      -
      The node that have this network interface
      -
      -
    • -
    • -
      -

      simulator

      -
      public final Simulator simulator
      -
      The simulator which handles events for this network interface
      -
      -
    • -
    • -
      -

      messageReceivingProcess

      -
      public PacketReceivingProcess messageReceivingProcess
      -
      The process (which is a type of ongoing event) that handles receiving packets and their delays due to bandwidth
      -
      -
    • -
    • -
      -

      messageSendingProcess

      -
      public PacketSendingProcess messageSendingProcess
      -
      The process (which is a type of ongoing event) that handles sending packets and their delays due to bandwidth
      -
      -
    • -
    • -
      -

      networkInterfaceDown

      -
      public boolean networkInterfaceDown
      -
      State of network interface (false->Up / true->Down)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      NodeNetworkInterface

      -
      public NodeNetworkInterface(Simulator simulator, - Node node, - long downloadBandwidth, - long uploadBandwidth)
      -
      Creates a new network interface
      -
      -
      Parameters:
      -
      simulator - The simulator which simulates the events of this network interface
      -
      node - The node that possesses this network interface
      -
      downloadBandwidth - The total down-link bandwidth of this node
      -
      uploadBandwidth - The total up-link bandwidth of this node
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      takeDown

      -
      public void takeDown()
      -
      Stops the node from sending or receiving packets
      -
      -
    • -
    • -
      -

      bringUp

      -
      public void bringUp()
      -
      Restores the node network interface to a working state (node can send and receive packets again)
      -
      -
    • -
    • -
      -

      isNetworkInterfaceDown

      -
      public boolean isNetworkInterfaceDown()
      -
      return the state of network interface
      -
      -
      Returns:
      -
      true if the network interface is down and not working
      -
      -
      -
    • -
    • -
      -

      connectNetwork

      -
      public void connectNetwork(Network network, - RandomnessEngine randomnessEngine)
      -
      Creates two processes (ongoing events) that handle receiving and sending packets and their respective latencies
      -
      -
      Parameters:
      -
      network - Network in which this network interface operates
      -
      randomnessEngine - Randomness source for simulating randomness in delays
      -
      -
      -
    • -
    • -
      -

      addToDownLinkQueue

      -
      public void addToDownLinkQueue(Packet packet)
      -
      Adds the packet to node's receiving process if the network interface is not down
      -
      -
      Parameters:
      -
      packet - the packet to be received
      -
      -
      -
    • -
    • -
      -

      addToUpLinkQueue

      -
      public void addToUpLinkQueue(Packet packet)
      -
      Adds the packet to node's sending process if the network interface is not down
      -
      -
      Parameters:
      -
      packet - the packet to be sent
      -
      -
      -
    • -
    • -
      -

      addToLinkQueue

      -
      private void addToLinkQueue(Packet packet, - AbstractPacketProcessor processor)
      -
      Adds the packet to the queue of that link (up-link / down-link)
      -
      -
      Parameters:
      -
      packet - the packet
      -
      processor - the up-link/down-link process
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/class-use/NodeNetworkInterface.html b/javadoc/jabs/network/node/class-use/NodeNetworkInterface.html deleted file mode 100644 index dbbdf1d7..00000000 --- a/javadoc/jabs/network/node/class-use/NodeNetworkInterface.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - -Uses of Class jabs.network.node.NodeNetworkInterface (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.NodeNetworkInterface

-
-
Packages that use NodeNetworkInterface
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/BlockchainNode.html b/javadoc/jabs/network/node/nodes/BlockchainNode.html deleted file mode 100644 index 600cda1b..00000000 --- a/javadoc/jabs/network/node/nodes/BlockchainNode.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - -BlockchainNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockchainNode<B extends Block<B>,T extends Tx<T>>

-
-
Object -
Node -
BlockchainNode<B,T>
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinNode, EthereumNode, PBFTNode
-
-
-
public abstract class BlockchainNode<B extends Block<B>,T extends Tx<T>> -extends Node
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      processIncomingPacket

      -
      public void processIncomingPacket(Packet packet)
      -
      Description copied from class: Node
      -
      This method is called when a new packet is received by the network interface. - This should run the protocol and execute the required reaction according to the protocol for the incoming data - For example this might process a new incoming transaction or block.
      -
      -
      Specified by:
      -
      processIncomingPacket in class Node
      -
      Parameters:
      -
      packet - incoming packet
      -
      -
      -
    • -
    • -
      -

      processNewTx

      -
      protected abstract void processNewTx(T tx, - Node from)
      -
      -
    • -
    • -
      -

      processNewBlock

      -
      protected abstract void processNewBlock(B block)
      -
      -
    • -
    • -
      -

      processNewVote

      -
      protected abstract void processNewVote(Vote vote)
      -
      -
    • -
    • -
      -

      getConsensusAlgorithm

      -
      public AbstractBlockchainConsensus<B,T> getConsensusAlgorithm()
      -
      -
    • -
    • -
      -

      numberOfAlreadySeenBlocks

      -
      public int numberOfAlreadySeenBlocks()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/MinerNode.html b/javadoc/jabs/network/node/nodes/MinerNode.html deleted file mode 100644 index 3cdfb7f3..00000000 --- a/javadoc/jabs/network/node/nodes/MinerNode.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - -MinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface MinerNode

-
-
-
-
All Known Implementing Classes:
-
BitcoinMinerNode, BitcoinMinerNodeWithoutTx, EthereumCasperMiner, EthereumDAGsperMiner, EthereumMinerNode, IOTANode
-
-
-
public interface MinerNode
-
-
- -
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      generateNewBlock

      -
      void generateNewBlock()
      -
      -
    • -
    • -
      -

      startMining

      -
      void startMining()
      -
      -
    • -
    • -
      -

      stopMining

      -
      void stopMining()
      -
      -
    • -
    • -
      -

      getHashPower

      -
      long getHashPower()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/Node.html b/javadoc/jabs/network/node/nodes/Node.html deleted file mode 100644 index d500f67a..00000000 --- a/javadoc/jabs/network/node/nodes/Node.html +++ /dev/null @@ -1,401 +0,0 @@ - - - - -Node (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Node

-
-
Object -
Node
-
-
-
-
Direct Known Subclasses:
-
PeerDLTNode
-
-
-
public abstract class Node -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      nodeID

      -
      public final int nodeID
      -
      Node's ID (integer number which identifies node in its network)
      -
      -
    • -
    • -
      -

      nodeNetworkInterface

      -
      protected final NodeNetworkInterface nodeNetworkInterface
      -
      Node's network interface - This object handles all packet sending/receiving in network
      -
      -
    • -
    • -
      -

      p2pConnections

      -
      protected final AbstractP2PConnections p2pConnections
      -
      Node's P2P connections - This handles neighbors of the node in the network
      -
      -
    • -
    • -
      -

      simulator

      -
      protected final Simulator simulator
      -
      Node's simulator - This handles events and their order and executes them
      -
      -
    • -
    • -
      -

      network

      -
      protected final Network network
      -
      Node's network - This object have all nodes in it. Delays and latencies are configured here.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Node

      -
      public Node(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - AbstractP2PConnections p2pConnections)
      -
      Creates a node and set its network, ID, upload and download bandwidth, and its P2P connections
      -
      -
      Parameters:
      -
      simulator - simulator which will simulate this node's actions
      -
      network - Network in which the node operates
      -
      nodeID - Node's ID in the network which is an integer number
      -
      downloadBandwidth - Node's total download bandwidth
      -
      uploadBandwidth - Node's total upload bandwidth
      -
      p2pConnections - A P2P abstract class which handles neighbors and connections to them
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      processIncomingPacket

      -
      public abstract void processIncomingPacket(Packet packet)
      -
      This method is called when a new packet is received by the network interface. - This should run the protocol and execute the required reaction according to the protocol for the incoming data - For example this might process a new incoming transaction or block.
      -
      -
      Parameters:
      -
      packet - incoming packet
      -
      -
      -
    • -
    • -
      -

      generateNewTransaction

      -
      public abstract void generateNewTransaction()
      -
      This method forces the node to generate a new simulated transaction
      -
      -
    • -
    • -
      -

      crash

      -
      public void crash()
      -
      Simulates a crash fault. It stops packet delivery to and from the node.
      -
      -
    • -
    • -
      -

      restore

      -
      public void restore()
      -
      Restores the node from a crash fault. New packets can be delivered to and from the node.
      -
      -
    • -
    • -
      -

      getNodeNetworkInterface

      -
      public NodeNetworkInterface getNodeNetworkInterface()
      -
      Returns node network interface
      -
      -
      Returns:
      -
      nodes network interface
      -
      -
      -
    • -
    • -
      -

      getP2pConnections

      -
      public AbstractP2PConnections getP2pConnections()
      -
      Returns node's P2P connection class
      -
      -
      Returns:
      -
      Node's P2P connection class
      -
      -
      -
    • -
    • -
      -

      broadcastMessage

      -
      public void broadcastMessage(Message message)
      -
      Forces the node to broadcast a message to all its neighbors
      -
      -
      Parameters:
      -
      message - The message to be broadcasted to all neighbors
      -
      -
      -
    • -
    • -
      -

      getSimulator

      -
      public Simulator getSimulator()
      -
      Returns node's simulator
      -
      -
      Returns:
      -
      node's simulator
      -
      -
      -
    • -
    • -
      -

      getNetwork

      -
      public Network getNetwork()
      -
      Returns node's network
      -
      -
      Returns:
      -
      node's network
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.html b/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.html deleted file mode 100644 index 4c71676d..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.html +++ /dev/null @@ -1,335 +0,0 @@ - - - - -BitcoinMinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinMinerNode

-
- -
-
-
All Implemented Interfaces:
-
MinerNode
-
-
-
Direct Known Subclasses:
-
BitcoinMinerNodeWithoutTx
-
-
-
public class BitcoinMinerNode -extends BitcoinNode -implements MinerNode
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      memPool

      -
      protected Set<BitcoinTx> memPool
      -
      -
    • -
    • -
      -

      hashPower

      -
      protected final long hashPower
      -
      -
    • -
    • -
      -

      miningProcess

      -
      protected Simulator.ScheduledEvent miningProcess
      -
      -
    • -
    • -
      -

      MAXIMUM_BLOCK_SIZE

      -
      static final long MAXIMUM_BLOCK_SIZE
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      generateNewBlock

      -
      public void generateNewBlock()
      -
      -
      Specified by:
      -
      generateNewBlock in interface MinerNode
      -
      -
      -
    • -
    • -
      -

      startMining

      -
      public void startMining()
      -
      -
      Specified by:
      -
      startMining in interface MinerNode
      -
      -
      -
    • -
    • -
      -

      stopMining

      -
      public void stopMining()
      -
      -
      Specified by:
      -
      stopMining in interface MinerNode
      -
      -
      -
    • -
    • -
      -

      getHashPower

      -
      public long getHashPower()
      -
      -
      Specified by:
      -
      getHashPower in interface MinerNode
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.html b/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.html deleted file mode 100644 index 9a212cc1..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - -BitcoinMinerNodeWithoutTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinMinerNodeWithoutTx

-
- -
-
-
All Implemented Interfaces:
-
MinerNode
-
-
-
public class BitcoinMinerNodeWithoutTx -extends BitcoinMinerNode -implements MinerNode
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinNode.html b/javadoc/jabs/network/node/nodes/bitcoin/BitcoinNode.html deleted file mode 100644 index 42c3bbc7..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/BitcoinNode.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - -BitcoinNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinNode

-
- -
-
-
Direct Known Subclasses:
-
BitcoinMinerNode
-
-
-
public class BitcoinNode -extends PeerBlockchainNode<BitcoinBlock,BitcoinTx>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNode.html b/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNode.html deleted file mode 100644 index a0b711a5..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNode.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.bitcoin.BitcoinMinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.bitcoin.BitcoinMinerNode

-
-
Packages that use BitcoinMinerNode
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNodeWithoutTx.html b/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNodeWithoutTx.html deleted file mode 100644 index 25a32213..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinMinerNodeWithoutTx.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.bitcoin.BitcoinMinerNodeWithoutTx (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.bitcoin.BitcoinMinerNodeWithoutTx

-
-No usage of jabs.network.node.nodes.bitcoin.BitcoinMinerNodeWithoutTx
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinNode.html b/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinNode.html deleted file mode 100644 index 568465fc..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/class-use/BitcoinNode.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.bitcoin.BitcoinNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.bitcoin.BitcoinNode

-
-
Packages that use BitcoinNode
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/package-frame.html b/javadoc/jabs/network/node/nodes/bitcoin/package-frame.html deleted file mode 100644 index 64e6eb3c..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/package-frame.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -jabs.network.node.nodes.bitcoin (jabs 0.2.0 API) - - - - - -

jabs.network.node.nodes.bitcoin

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/package-summary.html b/javadoc/jabs/network/node/nodes/bitcoin/package-summary.html deleted file mode 100644 index d8fcd7e3..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/package-summary.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - -jabs.network.node.nodes.bitcoin (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.node.nodes.bitcoin

-
-
-
package jabs.network.node.nodes.bitcoin
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/package-tree.html b/javadoc/jabs/network/node/nodes/bitcoin/package-tree.html deleted file mode 100644 index 5e8e66f9..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/package-tree.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - -jabs.network.node.nodes.bitcoin Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.node.nodes.bitcoin

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/bitcoin/package-use.html b/javadoc/jabs/network/node/nodes/bitcoin/package-use.html deleted file mode 100644 index bdc74efa..00000000 --- a/javadoc/jabs/network/node/nodes/bitcoin/package-use.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -Uses of Package jabs.network.node.nodes.bitcoin (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.node.nodes.bitcoin

-
- - -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/class-use/BlockchainNode.html b/javadoc/jabs/network/node/nodes/class-use/BlockchainNode.html deleted file mode 100644 index 4529c9f6..00000000 --- a/javadoc/jabs/network/node/nodes/class-use/BlockchainNode.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.PeerDLTNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.PeerDLTNode

-
-
Packages that use BlockchainNode
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/class-use/MinerNode.html b/javadoc/jabs/network/node/nodes/class-use/MinerNode.html deleted file mode 100644 index e1119504..00000000 --- a/javadoc/jabs/network/node/nodes/class-use/MinerNode.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - -Uses of Interface jabs.network.node.nodes.MinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.network.node.nodes.MinerNode

-
-
Packages that use MinerNode
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/class-use/Node.html b/javadoc/jabs/network/node/nodes/class-use/Node.html deleted file mode 100644 index 341e48ca..00000000 --- a/javadoc/jabs/network/node/nodes/class-use/Node.html +++ /dev/null @@ -1,735 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.Node (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.Node

-
-
Packages that use Node
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperMiner.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperMiner.html deleted file mode 100644 index 93353914..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperMiner.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -EthereumCasperMiner (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumCasperMiner

-
- -
-
-
All Implemented Interfaces:
-
MinerNode
-
-
-
public class EthereumCasperMiner -extends EthereumMinerNode
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumCasperMiner

      -
      public EthereumCasperMiner(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - long hashPower, - int checkpointSpace, - int numOfStakeholders)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperNode.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperNode.html deleted file mode 100644 index 2f2f083a..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumCasperNode.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - -EthereumCasperNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumCasperNode

-
- -
-
-
public class EthereumCasperNode -extends EthereumNode
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumCasperNode

      -
      public EthereumCasperNode(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - int checkpointSpace, - int numOfStakeholders)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.html deleted file mode 100644 index 113dc526..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -EthereumDAGsperMiner (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumDAGsperMiner

-
- -
-
-
All Implemented Interfaces:
-
MinerNode
-
-
-
public class EthereumDAGsperMiner -extends EthereumMinerNode
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumDAGsperMiner

      -
      public EthereumDAGsperMiner(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - long hashPower, - int checkpointSpace, - int numOfStakeholders)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.html deleted file mode 100644 index 9fb393f6..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - -EthereumDAGsperNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumDAGsperNode

-
- -
-
-
public class EthereumDAGsperNode -extends EthereumNode
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumDAGsperNode

      -
      public EthereumDAGsperNode(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - int checkpointSpace, - int numOfStakeholders)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumMinerNode.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumMinerNode.html deleted file mode 100644 index 704a8f02..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumMinerNode.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - -EthereumMinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumMinerNode

-
- -
-
-
All Implemented Interfaces:
-
MinerNode
-
-
-
Direct Known Subclasses:
-
EthereumCasperMiner, EthereumDAGsperMiner
-
-
-
public class EthereumMinerNode -extends EthereumNode -implements MinerNode
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      memPool

      -
      protected Set<EthereumTx> memPool
      -
      -
    • -
    • -
      -

      alreadyUncledBlocks

      -
      protected Set<EthereumBlock> alreadyUncledBlocks
      -
      -
    • -
    • -
      -

      hashPower

      -
      protected final long hashPower
      -
      -
    • -
    • -
      -

      miningProcess

      -
      protected Simulator.ScheduledEvent miningProcess
      -
      -
    • -
    • -
      -

      MAXIMUM_BLOCK_GAS

      -
      static final long MAXIMUM_BLOCK_GAS
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumMinerNode

      -
      public EthereumMinerNode(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - long hashPower)
      -
      -
    • -
    • -
      -

      EthereumMinerNode

      -
      public EthereumMinerNode(Simulator simulator, - Network network, - int nodeID, - long downloadBandwidth, - long uploadBandwidth, - long hashPower, - AbstractChainBasedConsensus<EthereumBlock,EthereumTx> consensusAlgorithm)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/EthereumNode.html b/javadoc/jabs/network/node/nodes/ethereum/EthereumNode.html deleted file mode 100644 index 3d4e3621..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/EthereumNode.html +++ /dev/null @@ -1,317 +0,0 @@ - - - - -EthereumNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumNode

-
- -
-
-
Direct Known Subclasses:
-
EthereumCasperNode, EthereumDAGsperNode, EthereumMinerNode
-
-
-
public class EthereumNode -extends PeerBlockchainNode<EthereumBlock,EthereumTx>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperMiner.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperMiner.html deleted file mode 100644 index 744f37a9..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperMiner.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumCasperMiner (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumCasperMiner

-
-
Packages that use EthereumCasperMiner
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperNode.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperNode.html deleted file mode 100644 index 2bb5f9a1..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumCasperNode.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumCasperNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumCasperNode

-
-
Packages that use EthereumCasperNode
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html deleted file mode 100644 index 64c5224e..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumDAGsperMiner (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumDAGsperMiner

-
-
Packages that use EthereumDAGsperMiner
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperNode.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperNode.html deleted file mode 100644 index 3c9e7727..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumDAGsperNode.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumDAGsperNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumDAGsperNode

-
-
Packages that use EthereumDAGsperNode
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumMinerNode.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumMinerNode.html deleted file mode 100644 index e5b69a2e..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumMinerNode.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumMinerNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumMinerNode

-
-
Packages that use EthereumMinerNode
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumNode.html b/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumNode.html deleted file mode 100644 index 4d73ecd5..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/class-use/EthereumNode.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumNode

-
-
Packages that use EthereumNode
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/package-frame.html b/javadoc/jabs/network/node/nodes/ethereum/package-frame.html deleted file mode 100644 index 53bc2d4e..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.node.nodes.ethereum (jabs 0.2.0 API) - - - - - -

jabs.network.node.nodes.ethereum

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/package-summary.html b/javadoc/jabs/network/node/nodes/ethereum/package-summary.html deleted file mode 100644 index fb57b056..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/package-summary.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -jabs.network.node.nodes.ethereum (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.node.nodes.ethereum

-
-
-
package jabs.network.node.nodes.ethereum
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/package-tree.html b/javadoc/jabs/network/node/nodes/ethereum/package-tree.html deleted file mode 100644 index 0f0a3399..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/package-tree.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -jabs.network.node.nodes.ethereum Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.node.nodes.ethereum

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/ethereum/package-use.html b/javadoc/jabs/network/node/nodes/ethereum/package-use.html deleted file mode 100644 index 5159a33c..00000000 --- a/javadoc/jabs/network/node/nodes/ethereum/package-use.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -Uses of Package jabs.network.node.nodes.ethereum (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.node.nodes.ethereum

-
- - -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/package-frame.html b/javadoc/jabs/network/node/nodes/package-frame.html deleted file mode 100644 index 538c9d01..00000000 --- a/javadoc/jabs/network/node/nodes/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.node.nodes (jabs 0.2.0 API) - - - - - -

jabs.network.node.nodes

-
-

Interfaces

- -

Classes

- -
- - diff --git a/javadoc/jabs/network/node/nodes/package-summary.html b/javadoc/jabs/network/node/nodes/package-summary.html deleted file mode 100644 index 12ec5367..00000000 --- a/javadoc/jabs/network/node/nodes/package-summary.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - -jabs.network.node.nodes (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.node.nodes

-
-
-
package jabs.network.node.nodes
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/package-tree.html b/javadoc/jabs/network/node/nodes/package-tree.html deleted file mode 100644 index 2e39c9f3..00000000 --- a/javadoc/jabs/network/node/nodes/package-tree.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -jabs.network.node.nodes Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.node.nodes

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/package-use.html b/javadoc/jabs/network/node/nodes/package-use.html deleted file mode 100644 index f69e83bc..00000000 --- a/javadoc/jabs/network/node/nodes/package-use.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - -Uses of Package jabs.network.node.nodes (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.node.nodes

-
-
Packages that use jabs.network.node.nodes
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/PBFTNode.html b/javadoc/jabs/network/node/nodes/pbft/PBFTNode.html deleted file mode 100644 index b345c0b6..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/PBFTNode.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - -PBFTNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTNode

-
- -
-
-
public class PBFTNode -extends PeerBlockchainNode<PBFTBlock,PBFTTx>
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/class-use/PBFTNode.html b/javadoc/jabs/network/node/nodes/pbft/class-use/PBFTNode.html deleted file mode 100644 index 2681ea9b..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/class-use/PBFTNode.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - -Uses of Class jabs.network.node.nodes.pbft.PBFTNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.node.nodes.pbft.PBFTNode

-
-
Packages that use PBFTNode
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/package-frame.html b/javadoc/jabs/network/node/nodes/pbft/package-frame.html deleted file mode 100644 index 9d38fdcd..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.network.node.nodes.pbft (jabs 0.2.0 API) - - - - - -

jabs.network.node.nodes.pbft

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/package-summary.html b/javadoc/jabs/network/node/nodes/pbft/package-summary.html deleted file mode 100644 index ab8d68c6..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/package-summary.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -jabs.network.node.nodes.pbft (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.node.nodes.pbft

-
-
-
package jabs.network.node.nodes.pbft
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/package-tree.html b/javadoc/jabs/network/node/nodes/pbft/package-tree.html deleted file mode 100644 index 30a87421..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/package-tree.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - -jabs.network.node.nodes.pbft Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.node.nodes.pbft

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/nodes/pbft/package-use.html b/javadoc/jabs/network/node/nodes/pbft/package-use.html deleted file mode 100644 index 7c8572b0..00000000 --- a/javadoc/jabs/network/node/nodes/pbft/package-use.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -Uses of Package jabs.network.node.nodes.pbft (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.node.nodes.pbft

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/package-frame.html b/javadoc/jabs/network/node/package-frame.html deleted file mode 100644 index 7392f532..00000000 --- a/javadoc/jabs/network/node/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.network.node (jabs 0.2.0 API) - - - - - -

jabs.network.node

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/node/package-summary.html b/javadoc/jabs/network/node/package-summary.html deleted file mode 100644 index e32d27ba..00000000 --- a/javadoc/jabs/network/node/package-summary.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - -jabs.network.node (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.node

-
-
-
package jabs.network.node
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/package-tree.html b/javadoc/jabs/network/node/package-tree.html deleted file mode 100644 index 08685753..00000000 --- a/javadoc/jabs/network/node/package-tree.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - -jabs.network.node Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.node

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/node/package-use.html b/javadoc/jabs/network/node/package-use.html deleted file mode 100644 index 3d3d2515..00000000 --- a/javadoc/jabs/network/node/package-use.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -Uses of Package jabs.network.node (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.node

-
-
Packages that use jabs.network.node
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/p2p/AbstractBlockchainP2PConnections.html b/javadoc/jabs/network/p2p/AbstractBlockchainP2PConnections.html deleted file mode 100644 index 597ca2cc..00000000 --- a/javadoc/jabs/network/p2p/AbstractBlockchainP2PConnections.html +++ /dev/null @@ -1,271 +0,0 @@ - - - - -AbstractBlockchainP2PConnections (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractBlockchainP2PConnections

-
-
Object -
AbstractP2PConnections -
AbstractBlockchainP2PConnections
-
-
-
-
-
Direct Known Subclasses:
-
BitcoinCoreP2P, EthereumGethP2P
-
-
-
public abstract class AbstractBlockchainP2PConnections -extends AbstractP2PConnections
-
-
Author:
-
habib yajam
-
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      numOutboundConnections

      -
      protected final int numOutboundConnections
      -
      -
    • -
    • -
      -

      maxConnections

      -
      private final int maxConnections
      -
      -
    • -
    • -
      -

      outbound

      -
      private final List<Node> outbound
      -
      -
    • -
    • -
      -

      inbound

      -
      private final List<Node> inbound
      -
      -
    • -
    • -
      -

      network

      -
      protected Network network
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractBlockchainP2PConnections

      -
      public AbstractBlockchainP2PConnections(int numOutboundConnections, - int maxConnections)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/p2p/AbstractP2PConnections.html b/javadoc/jabs/network/p2p/AbstractP2PConnections.html deleted file mode 100644 index 8fbaf321..00000000 --- a/javadoc/jabs/network/p2p/AbstractP2PConnections.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - -AbstractP2PConnections (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractP2PConnections

-
-
Object -
AbstractP2PConnections
-
-
-
-
Direct Known Subclasses:
-
AbstractBlockchainP2PConnections, PBFTP2P
-
-
-
public abstract class AbstractP2PConnections -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      node

      -
      protected Node node
      -
      -
    • -
    • -
      -

      neighbors

      -
      protected final List<Node> neighbors
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractP2PConnections

      -
      public AbstractP2PConnections()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getNode

      -
      protected Node getNode()
      -
      -
    • -
    • -
      -

      setNode

      -
      public void setNode(Node node)
      -
      -
    • -
    • -
      -

      getNeighbors

      -
      public List<Node> getNeighbors()
      -
      -
    • -
    • -
      -

      connectToNetwork

      -
      public abstract void connectToNetwork(Network network)
      -
      -
    • -
    • -
      -

      requestConnection

      -
      public abstract boolean requestConnection(Node node)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/p2p/BitcoinCoreP2P.html b/javadoc/jabs/network/p2p/BitcoinCoreP2P.html deleted file mode 100644 index 8d2cbd34..00000000 --- a/javadoc/jabs/network/p2p/BitcoinCoreP2P.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - -BitcoinCoreP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BitcoinCoreP2P

-
- -
-
-
public class BitcoinCoreP2P -extends AbstractBlockchainP2PConnections
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      BITCOIN_MAX_CONNECTIONS

      -
      private static final int BITCOIN_MAX_CONNECTIONS
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      BITCOIN_NUM_OUTBOUND_CONNECTIONS

      -
      private static final int BITCOIN_NUM_OUTBOUND_CONNECTIONS
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinCoreP2P

      -
      public BitcoinCoreP2P()
      -
      -
    • -
    • -
      -

      BitcoinCoreP2P

      -
      public BitcoinCoreP2P(int numOutboundConnections, - int maxConnections)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/p2p/EthereumGethP2P.html b/javadoc/jabs/network/p2p/EthereumGethP2P.html deleted file mode 100644 index 6b47fcad..00000000 --- a/javadoc/jabs/network/p2p/EthereumGethP2P.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - -EthereumGethP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EthereumGethP2P

-
- -
-
-
public class EthereumGethP2P -extends AbstractBlockchainP2PConnections
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      ETHEREUM_MAX_PEER_COUNT

      -
      private static final int ETHEREUM_MAX_PEER_COUNT
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    • -
      -

      ETHEREUM_DIAL_RATIO

      -
      private static final int ETHEREUM_DIAL_RATIO
      -
      -
      See Also:
      -
      - -
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumGethP2P

      -
      public EthereumGethP2P()
      -
      -
    • -
    • -
      -

      EthereumGethP2P

      -
      public EthereumGethP2P(int maxPeerCount, - int dialRatio)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/network/p2p/PBFTP2P.html b/javadoc/jabs/network/p2p/PBFTP2P.html deleted file mode 100644 index 7d38d77f..00000000 --- a/javadoc/jabs/network/p2p/PBFTP2P.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - -PBFTP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PBFTP2P

-
- -
-
-
public class PBFTP2P -extends AbstractP2PConnections
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/network/p2p/class-use/AbstractBlockchainP2PConnections.html b/javadoc/jabs/network/p2p/class-use/AbstractBlockchainP2PConnections.html deleted file mode 100644 index aa743460..00000000 --- a/javadoc/jabs/network/p2p/class-use/AbstractBlockchainP2PConnections.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -Uses of Class jabs.network.p2p.AbstractBlockchainP2PConnections (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.p2p.AbstractBlockchainP2PConnections

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/p2p/class-use/AbstractP2PConnections.html b/javadoc/jabs/network/p2p/class-use/AbstractP2PConnections.html deleted file mode 100644 index 8ae32781..00000000 --- a/javadoc/jabs/network/p2p/class-use/AbstractP2PConnections.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - -Uses of Class jabs.network.p2p.AbstractP2PConnections (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.p2p.AbstractP2PConnections

-
-
Packages that use AbstractP2PConnections
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/p2p/class-use/BitcoinCoreP2P.html b/javadoc/jabs/network/p2p/class-use/BitcoinCoreP2P.html deleted file mode 100644 index f478da43..00000000 --- a/javadoc/jabs/network/p2p/class-use/BitcoinCoreP2P.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.p2p.BitcoinCoreP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.p2p.BitcoinCoreP2P

-
-No usage of jabs.network.p2p.BitcoinCoreP2P
- -
-
- - diff --git a/javadoc/jabs/network/p2p/class-use/EthereumGethP2P.html b/javadoc/jabs/network/p2p/class-use/EthereumGethP2P.html deleted file mode 100644 index a218b24f..00000000 --- a/javadoc/jabs/network/p2p/class-use/EthereumGethP2P.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.p2p.EthereumGethP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.p2p.EthereumGethP2P

-
-No usage of jabs.network.p2p.EthereumGethP2P
- -
-
- - diff --git a/javadoc/jabs/network/p2p/class-use/PBFTP2P.html b/javadoc/jabs/network/p2p/class-use/PBFTP2P.html deleted file mode 100644 index 7c8ea9ad..00000000 --- a/javadoc/jabs/network/p2p/class-use/PBFTP2P.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.network.p2p.PBFTP2P (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.network.p2p.PBFTP2P

-
-No usage of jabs.network.p2p.PBFTP2P
- -
-
- - diff --git a/javadoc/jabs/network/p2p/package-frame.html b/javadoc/jabs/network/p2p/package-frame.html deleted file mode 100644 index 3792edbd..00000000 --- a/javadoc/jabs/network/p2p/package-frame.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - -jabs.network.p2p (jabs 0.2.0 API) - - - - - -

jabs.network.p2p

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/p2p/package-summary.html b/javadoc/jabs/network/p2p/package-summary.html deleted file mode 100644 index 5895b73d..00000000 --- a/javadoc/jabs/network/p2p/package-summary.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - -jabs.network.p2p (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.network.p2p

-
-
-
package jabs.network.p2p
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/p2p/package-tree.html b/javadoc/jabs/network/p2p/package-tree.html deleted file mode 100644 index 6c4722aa..00000000 --- a/javadoc/jabs/network/p2p/package-tree.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - -jabs.network.p2p Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.network.p2p

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/network/p2p/package-use.html b/javadoc/jabs/network/p2p/package-use.html deleted file mode 100644 index dbecf6cd..00000000 --- a/javadoc/jabs/network/p2p/package-use.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - -Uses of Package jabs.network.p2p (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.network.p2p

-
-
Packages that use jabs.network.p2p
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/network/package-frame.html b/javadoc/jabs/network/package-frame.html deleted file mode 100644 index d3e955c3..00000000 --- a/javadoc/jabs/network/package-frame.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -jabs.network.networks (jabs 0.1.1 API) - - - - - -

jabs.network.networks

-
-

Classes

- -
- - diff --git a/javadoc/jabs/network/package-summary.html b/javadoc/jabs/network/package-summary.html deleted file mode 100644 index 3cfe74fe..00000000 --- a/javadoc/jabs/network/package-summary.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - -jabs.network.networks (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.networks

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/package-tree.html b/javadoc/jabs/network/package-tree.html deleted file mode 100644 index 45dc7010..00000000 --- a/javadoc/jabs/network/package-tree.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - -jabs.network.networks Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.networks

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/network/package-use.html b/javadoc/jabs/network/package-use.html deleted file mode 100644 index 02b32afa..00000000 --- a/javadoc/jabs/network/package-use.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - -Uses of Package jabs.network.networks (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.networks

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/NodeNetworkInterface.html b/javadoc/jabs/node/NodeNetworkInterface.html deleted file mode 100644 index c0c9227f..00000000 --- a/javadoc/jabs/node/NodeNetworkInterface.html +++ /dev/null @@ -1,547 +0,0 @@ - - - - - - -NodeNetworkInterface (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node
-

Class NodeNetworkInterface

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/class-use/NodeNetworkInterface.html b/javadoc/jabs/node/class-use/NodeNetworkInterface.html deleted file mode 100644 index c87561c8..00000000 --- a/javadoc/jabs/node/class-use/NodeNetworkInterface.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.NodeNetworkInterface (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.NodeNetworkInterface

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/BlockchainNode.html b/javadoc/jabs/node/nodes/BlockchainNode.html deleted file mode 100644 index c38de1de..00000000 --- a/javadoc/jabs/node/nodes/BlockchainNode.html +++ /dev/null @@ -1,477 +0,0 @@ - - - - - - -BlockchainNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes
-

Class BlockchainNode<B extends Block<B>,T extends Tx<T>>

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/MinerNode.html b/javadoc/jabs/node/nodes/MinerNode.html deleted file mode 100644 index 668d2bc8..00000000 --- a/javadoc/jabs/node/nodes/MinerNode.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - -MinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes
-

Interface MinerNode

-
-
-
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/Node.html b/javadoc/jabs/node/nodes/Node.html deleted file mode 100644 index ffa8e735..00000000 --- a/javadoc/jabs/node/nodes/Node.html +++ /dev/null @@ -1,565 +0,0 @@ - - - - - - -Node (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes
-

Class Node

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/BitcoinMinerNode.html b/javadoc/jabs/node/nodes/bitcoin/BitcoinMinerNode.html deleted file mode 100644 index 654ca5a0..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/BitcoinMinerNode.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - -BitcoinMinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.bitcoin
-

Class BitcoinMinerNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/BitcoinNode.html b/javadoc/jabs/node/nodes/bitcoin/BitcoinNode.html deleted file mode 100644 index c649b772..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/BitcoinNode.html +++ /dev/null @@ -1,444 +0,0 @@ - - - - - - -BitcoinNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.bitcoin
-

Class BitcoinNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinMinerNode.html b/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinMinerNode.html deleted file mode 100644 index b3ac9766..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinMinerNode.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.bitcoin.BitcoinMinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.bitcoin.BitcoinMinerNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinNode.html b/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinNode.html deleted file mode 100644 index 2fddbe53..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/class-use/BitcoinNode.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.bitcoin.BitcoinNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.bitcoin.BitcoinNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/package-frame.html b/javadoc/jabs/node/nodes/bitcoin/package-frame.html deleted file mode 100644 index 282ec305..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.network.node.nodes.bitcoin (jabs 0.1.1 API) - - - - - -

jabs.network.node.nodes.bitcoin

-
-

Classes

- -
- - diff --git a/javadoc/jabs/node/nodes/bitcoin/package-summary.html b/javadoc/jabs/node/nodes/bitcoin/package-summary.html deleted file mode 100644 index 8d0637cd..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/package-summary.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -jabs.network.node.nodes.bitcoin (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.node.nodes.bitcoin

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/package-tree.html b/javadoc/jabs/node/nodes/bitcoin/package-tree.html deleted file mode 100644 index 9ad923e8..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/package-tree.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -jabs.network.node.nodes.bitcoin Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.node.nodes.bitcoin

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/bitcoin/package-use.html b/javadoc/jabs/node/nodes/bitcoin/package-use.html deleted file mode 100644 index f6c5e604..00000000 --- a/javadoc/jabs/node/nodes/bitcoin/package-use.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - -Uses of Package jabs.network.node.nodes.bitcoin (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.node.nodes.bitcoin

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/class-use/BlockchainNode.html b/javadoc/jabs/node/nodes/class-use/BlockchainNode.html deleted file mode 100644 index 3d9c2ed1..00000000 --- a/javadoc/jabs/node/nodes/class-use/BlockchainNode.html +++ /dev/null @@ -1,273 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.PeerDLTNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.PeerDLTNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/class-use/MinerNode.html b/javadoc/jabs/node/nodes/class-use/MinerNode.html deleted file mode 100644 index 7be88460..00000000 --- a/javadoc/jabs/node/nodes/class-use/MinerNode.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - -Uses of Interface jabs.network.node.nodes.MinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Interface
jabs.network.node.nodes.MinerNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/class-use/Node.html b/javadoc/jabs/node/nodes/class-use/Node.html deleted file mode 100644 index 127b29f4..00000000 --- a/javadoc/jabs/node/nodes/class-use/Node.html +++ /dev/null @@ -1,941 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.Node (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.Node

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumCasperMiner.html b/javadoc/jabs/node/nodes/ethereum/EthereumCasperMiner.html deleted file mode 100644 index e41f8057..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumCasperMiner.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - -EthereumCasperMiner (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumCasperMiner

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumCasperNode.html b/javadoc/jabs/node/nodes/ethereum/EthereumCasperNode.html deleted file mode 100644 index 67c9d934..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumCasperNode.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -EthereumCasperNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumCasperNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperMiner.html b/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperMiner.html deleted file mode 100644 index 660d9ee8..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperMiner.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - -EthereumDAGsperMiner (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumDAGsperMiner

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperNode.html b/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperNode.html deleted file mode 100644 index 6299884e..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumDAGsperNode.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - -EthereumDAGsperNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumDAGsperNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumMinerNode.html b/javadoc/jabs/node/nodes/ethereum/EthereumMinerNode.html deleted file mode 100644 index 743aafa9..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumMinerNode.html +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - -EthereumMinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumMinerNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/EthereumNode.html b/javadoc/jabs/node/nodes/ethereum/EthereumNode.html deleted file mode 100644 index 634f1b7a..00000000 --- a/javadoc/jabs/node/nodes/ethereum/EthereumNode.html +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - -EthereumNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.ethereum
-

Class EthereumNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperMiner.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperMiner.html deleted file mode 100644 index bb0fce5d..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperMiner.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumCasperMiner (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumCasperMiner

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperNode.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperNode.html deleted file mode 100644 index 29407377..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumCasperNode.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumCasperNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumCasperNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html deleted file mode 100644 index c514b677..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperMiner.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumDAGsperMiner (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumDAGsperMiner

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperNode.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperNode.html deleted file mode 100644 index 2097ce12..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumDAGsperNode.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumDAGsperNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumDAGsperNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumMinerNode.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumMinerNode.html deleted file mode 100644 index 1ee037d9..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumMinerNode.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumMinerNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumMinerNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumNode.html b/javadoc/jabs/node/nodes/ethereum/class-use/EthereumNode.html deleted file mode 100644 index cbf9953e..00000000 --- a/javadoc/jabs/node/nodes/ethereum/class-use/EthereumNode.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.ethereum.EthereumNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.ethereum.EthereumNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/package-frame.html b/javadoc/jabs/node/nodes/ethereum/package-frame.html deleted file mode 100644 index f7621a9e..00000000 --- a/javadoc/jabs/node/nodes/ethereum/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.node.nodes.ethereum (jabs 0.1.1 API) - - - - - -

jabs.network.node.nodes.ethereum

-
-

Classes

- -
- - diff --git a/javadoc/jabs/node/nodes/ethereum/package-summary.html b/javadoc/jabs/node/nodes/ethereum/package-summary.html deleted file mode 100644 index 49dda5e2..00000000 --- a/javadoc/jabs/node/nodes/ethereum/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - -jabs.network.node.nodes.ethereum (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.node.nodes.ethereum

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/package-tree.html b/javadoc/jabs/node/nodes/ethereum/package-tree.html deleted file mode 100644 index 5b6e135e..00000000 --- a/javadoc/jabs/node/nodes/ethereum/package-tree.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - -jabs.network.node.nodes.ethereum Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.node.nodes.ethereum

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/ethereum/package-use.html b/javadoc/jabs/node/nodes/ethereum/package-use.html deleted file mode 100644 index b19f1a30..00000000 --- a/javadoc/jabs/node/nodes/ethereum/package-use.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - -Uses of Package jabs.network.node.nodes.ethereum (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.node.nodes.ethereum

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/package-frame.html b/javadoc/jabs/node/nodes/package-frame.html deleted file mode 100644 index 0a4add6c..00000000 --- a/javadoc/jabs/node/nodes/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.network.node.nodes (jabs 0.1.1 API) - - - - - -

jabs.network.node.nodes

-
-

Interfaces

- -

Classes

- -
- - diff --git a/javadoc/jabs/node/nodes/package-summary.html b/javadoc/jabs/node/nodes/package-summary.html deleted file mode 100644 index bd98794a..00000000 --- a/javadoc/jabs/node/nodes/package-summary.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - -jabs.network.node.nodes (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.node.nodes

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/package-tree.html b/javadoc/jabs/node/nodes/package-tree.html deleted file mode 100644 index 631a12e6..00000000 --- a/javadoc/jabs/node/nodes/package-tree.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -jabs.network.node.nodes Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.node.nodes

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/package-use.html b/javadoc/jabs/node/nodes/package-use.html deleted file mode 100644 index ff65c8ee..00000000 --- a/javadoc/jabs/node/nodes/package-use.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - -Uses of Package jabs.network.node.nodes (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.node.nodes

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/pbft/PBFTNode.html b/javadoc/jabs/node/nodes/pbft/PBFTNode.html deleted file mode 100644 index 670f6d9e..00000000 --- a/javadoc/jabs/node/nodes/pbft/PBFTNode.html +++ /dev/null @@ -1,416 +0,0 @@ - - - - - - -PBFTNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.node.nodes.pbft
-

Class PBFTNode

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/pbft/class-use/PBFTNode.html b/javadoc/jabs/node/nodes/pbft/class-use/PBFTNode.html deleted file mode 100644 index 1c4e9db5..00000000 --- a/javadoc/jabs/node/nodes/pbft/class-use/PBFTNode.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - -Uses of Class jabs.network.node.nodes.pbft.PBFTNode (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.node.nodes.pbft.PBFTNode

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/pbft/package-frame.html b/javadoc/jabs/node/nodes/pbft/package-frame.html deleted file mode 100644 index 4b0749be..00000000 --- a/javadoc/jabs/node/nodes/pbft/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.network.node.nodes.pbft (jabs 0.1.1 API) - - - - - -

jabs.network.node.nodes.pbft

-
-

Classes

- -
- - diff --git a/javadoc/jabs/node/nodes/pbft/package-summary.html b/javadoc/jabs/node/nodes/pbft/package-summary.html deleted file mode 100644 index 8a78f798..00000000 --- a/javadoc/jabs/node/nodes/pbft/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -jabs.network.node.nodes.pbft (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.node.nodes.pbft

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/pbft/package-tree.html b/javadoc/jabs/node/nodes/pbft/package-tree.html deleted file mode 100644 index bb9092b2..00000000 --- a/javadoc/jabs/node/nodes/pbft/package-tree.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -jabs.network.node.nodes.pbft Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.node.nodes.pbft

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/nodes/pbft/package-use.html b/javadoc/jabs/node/nodes/pbft/package-use.html deleted file mode 100644 index 6d143fa4..00000000 --- a/javadoc/jabs/node/nodes/pbft/package-use.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - -Uses of Package jabs.network.node.nodes.pbft (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.node.nodes.pbft

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/package-frame.html b/javadoc/jabs/node/package-frame.html deleted file mode 100644 index 72eea52b..00000000 --- a/javadoc/jabs/node/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.network.node (jabs 0.1.1 API) - - - - - -

jabs.network.node

-
-

Classes

- -
- - diff --git a/javadoc/jabs/node/package-summary.html b/javadoc/jabs/node/package-summary.html deleted file mode 100644 index 5c435cb2..00000000 --- a/javadoc/jabs/node/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -jabs.network.node (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.node

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/package-tree.html b/javadoc/jabs/node/package-tree.html deleted file mode 100644 index 6f4a37ed..00000000 --- a/javadoc/jabs/node/package-tree.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - -jabs.network.node Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.node

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/node/package-use.html b/javadoc/jabs/node/package-use.html deleted file mode 100644 index e1626625..00000000 --- a/javadoc/jabs/node/package-use.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - -Uses of Package jabs.network.node (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.node

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/AbstractBlockchainP2PConnections.html b/javadoc/jabs/p2p/AbstractBlockchainP2PConnections.html deleted file mode 100644 index d2d4c2e0..00000000 --- a/javadoc/jabs/p2p/AbstractBlockchainP2PConnections.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - -AbstractBlockchainP2PConnections (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.p2p
-

Class AbstractBlockchainP2PConnections

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/AbstractP2PConnections.html b/javadoc/jabs/p2p/AbstractP2PConnections.html deleted file mode 100644 index 33cc3ccd..00000000 --- a/javadoc/jabs/p2p/AbstractP2PConnections.html +++ /dev/null @@ -1,376 +0,0 @@ - - - - - - -AbstractP2PConnections (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.p2p
-

Class AbstractP2PConnections

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/BitcoinCoreP2P.html b/javadoc/jabs/p2p/BitcoinCoreP2P.html deleted file mode 100644 index a96000f2..00000000 --- a/javadoc/jabs/p2p/BitcoinCoreP2P.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - - -BitcoinCoreP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.p2p
-

Class BitcoinCoreP2P

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/EthereumGethP2P.html b/javadoc/jabs/p2p/EthereumGethP2P.html deleted file mode 100644 index b289cdf8..00000000 --- a/javadoc/jabs/p2p/EthereumGethP2P.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - - -EthereumGethP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.p2p
-

Class EthereumGethP2P

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/PBFTP2P.html b/javadoc/jabs/p2p/PBFTP2P.html deleted file mode 100644 index 223db240..00000000 --- a/javadoc/jabs/p2p/PBFTP2P.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -PBFTP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.network.p2p
-

Class PBFTP2P

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/class-use/AbstractBlockchainP2PConnections.html b/javadoc/jabs/p2p/class-use/AbstractBlockchainP2PConnections.html deleted file mode 100644 index 3617adc2..00000000 --- a/javadoc/jabs/p2p/class-use/AbstractBlockchainP2PConnections.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class jabs.network.p2p.AbstractBlockchainP2PConnections (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.p2p.AbstractBlockchainP2PConnections

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/class-use/AbstractP2PConnections.html b/javadoc/jabs/p2p/class-use/AbstractP2PConnections.html deleted file mode 100644 index 402d7dbe..00000000 --- a/javadoc/jabs/p2p/class-use/AbstractP2PConnections.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - -Uses of Class jabs.network.p2p.AbstractP2PConnections (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.p2p.AbstractP2PConnections

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/class-use/BitcoinCoreP2P.html b/javadoc/jabs/p2p/class-use/BitcoinCoreP2P.html deleted file mode 100644 index b392d406..00000000 --- a/javadoc/jabs/p2p/class-use/BitcoinCoreP2P.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.p2p.BitcoinCoreP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.p2p.BitcoinCoreP2P

-
-
No usage of jabs.network.p2p.BitcoinCoreP2P
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/class-use/EthereumGethP2P.html b/javadoc/jabs/p2p/class-use/EthereumGethP2P.html deleted file mode 100644 index e4983bbf..00000000 --- a/javadoc/jabs/p2p/class-use/EthereumGethP2P.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.p2p.EthereumGethP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.p2p.EthereumGethP2P

-
-
No usage of jabs.network.p2p.EthereumGethP2P
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/class-use/PBFTP2P.html b/javadoc/jabs/p2p/class-use/PBFTP2P.html deleted file mode 100644 index e0f0f6a0..00000000 --- a/javadoc/jabs/p2p/class-use/PBFTP2P.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.network.p2p.PBFTP2P (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.network.p2p.PBFTP2P

-
-
No usage of jabs.network.p2p.PBFTP2P
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/package-frame.html b/javadoc/jabs/p2p/package-frame.html deleted file mode 100644 index 88829e79..00000000 --- a/javadoc/jabs/p2p/package-frame.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - -jabs.network.p2p (jabs 0.1.1 API) - - - - - -

jabs.network.p2p

-
-

Classes

- -
- - diff --git a/javadoc/jabs/p2p/package-summary.html b/javadoc/jabs/p2p/package-summary.html deleted file mode 100644 index 5188fc8b..00000000 --- a/javadoc/jabs/p2p/package-summary.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - -jabs.network.p2p (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.network.p2p

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/package-tree.html b/javadoc/jabs/p2p/package-tree.html deleted file mode 100644 index 6056b63a..00000000 --- a/javadoc/jabs/p2p/package-tree.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - -jabs.network.p2p Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.network.p2p

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/p2p/package-use.html b/javadoc/jabs/p2p/package-use.html deleted file mode 100644 index 1666035b..00000000 --- a/javadoc/jabs/p2p/package-use.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - -Uses of Package jabs.network.p2p (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.network.p2p

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/package-frame.html b/javadoc/jabs/package-frame.html deleted file mode 100644 index 9a02fd89..00000000 --- a/javadoc/jabs/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs (jabs 0.2.0 API) - - - - - -

jabs

-
-

Classes

- -
- - diff --git a/javadoc/jabs/package-summary.html b/javadoc/jabs/package-summary.html deleted file mode 100644 index 6a79828d..00000000 --- a/javadoc/jabs/package-summary.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - -jabs (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs

-
-
-
package jabs
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/package-tree.html b/javadoc/jabs/package-tree.html deleted file mode 100644 index 9e9c6ca0..00000000 --- a/javadoc/jabs/package-tree.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - -jabs Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/package-use.html b/javadoc/jabs/package-use.html deleted file mode 100644 index a5c135da..00000000 --- a/javadoc/jabs/package-use.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Package jabs (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs

-
-No usage of jabs
- -
-
- - diff --git a/javadoc/jabs/randengine/RandomnessEngine.html b/javadoc/jabs/randengine/RandomnessEngine.html deleted file mode 100644 index c74347c4..00000000 --- a/javadoc/jabs/randengine/RandomnessEngine.html +++ /dev/null @@ -1,400 +0,0 @@ - - - - - - -RandomnessEngine (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.simulator.randengine
-

Class RandomnessEngine

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/randengine/class-use/RandomnessEngine.html b/javadoc/jabs/randengine/class-use/RandomnessEngine.html deleted file mode 100644 index 63ca9957..00000000 --- a/javadoc/jabs/randengine/class-use/RandomnessEngine.html +++ /dev/null @@ -1,420 +0,0 @@ - - - - - - -Uses of Class jabs.simulator.randengine.RandomnessEngine (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.simulator.randengine.RandomnessEngine

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/randengine/package-frame.html b/javadoc/jabs/randengine/package-frame.html deleted file mode 100644 index edcf4c89..00000000 --- a/javadoc/jabs/randengine/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.simulator.randengine (jabs 0.1.1 API) - - - - - -

jabs.simulator.randengine

-
-

Classes

- -
- - diff --git a/javadoc/jabs/randengine/package-summary.html b/javadoc/jabs/randengine/package-summary.html deleted file mode 100644 index dcc112e9..00000000 --- a/javadoc/jabs/randengine/package-summary.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - -jabs.simulator.randengine (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Package jabs.simulator.randengine

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/randengine/package-tree.html b/javadoc/jabs/randengine/package-tree.html deleted file mode 100644 index b03131d4..00000000 --- a/javadoc/jabs/randengine/package-tree.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - -jabs.simulator.randengine Class Hierarchy (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Hierarchy For Package jabs.simulator.randengine

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/randengine/package-use.html b/javadoc/jabs/randengine/package-use.html deleted file mode 100644 index dd96733d..00000000 --- a/javadoc/jabs/randengine/package-use.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - -Uses of Package jabs.simulator.randengine (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Package
jabs.simulator.randengine

-
-
- -
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/random/Random.html b/javadoc/jabs/random/Random.html deleted file mode 100644 index 0a37f906..00000000 --- a/javadoc/jabs/random/Random.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - -Random (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Random

-
-
Object -
BitsStreamGenerator -
MersenneTwister -
Random
-
-
-
-
-
-
All Implemented Interfaces:
-
Serializable, RandomGenerator
-
-
-
public class Random -extends MersenneTwister
-
-
See Also:
-
- -
-
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Random

      -
      public Random(long seed)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      sampleSubset

      -
      public <E> List<E> sampleSubset(List<E> list, - int n)
      -
      -
    • -
    • -
      -

      sampleFromList

      -
      public <E> E sampleFromList(List<E> list)
      -
      -
    • -
    • -
      -

      sampleDistributionWithBins

      -
      public long sampleDistributionWithBins(double[] dist, - long[] bins)
      -
      -
    • -
    • -
      -

      sampleFromDistribution

      -
      public int sampleFromDistribution(double[] dist)
      -
      -
    • -
    • -
      -

      sampleInt

      -
      public int sampleInt(int max)
      -
      -
    • -
    • -
      -

      sampleDouble

      -
      public double sampleDouble(double max)
      -
      -
    • -
    • -
      -

      sampleExponentialDistribution

      -
      public long sampleExponentialDistribution(double averageTimeBetweenGenerations)
      -
      -
    • -
    • -
      -

      sampleParetoDistribution

      -
      public long sampleParetoDistribution(double scale, - double shape)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/random/class-use/Random.html b/javadoc/jabs/random/class-use/Random.html deleted file mode 100644 index 8a78a332..00000000 --- a/javadoc/jabs/random/class-use/Random.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - -Uses of Class jabs.simulator.randengine.RandomnessEngine (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.randengine.RandomnessEngine

-
-
Packages that use Random
-
-
Package
-
Description
- -
 
- -
 
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/random/package-summary.html b/javadoc/jabs/random/package-summary.html deleted file mode 100644 index bc32d4a7..00000000 --- a/javadoc/jabs/random/package-summary.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - -jabs.simulator.randengine (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.simulator.randengine

-
-
-
package jabs.simulator.randengine
-
-
    -
  • - -
  • -
  • -
    -
    Classes
    -
    -
    Class
    -
    Description
    - -
     
    -
    -
    -
  • -
-
-
- -
-
- - diff --git a/javadoc/jabs/random/package-tree.html b/javadoc/jabs/random/package-tree.html deleted file mode 100644 index ff111b94..00000000 --- a/javadoc/jabs/random/package-tree.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -jabs.simulator.randengine Class Hierarchy (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.simulator.randengine

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/random/package-use.html b/javadoc/jabs/random/package-use.html deleted file mode 100644 index 7ff10fa0..00000000 --- a/javadoc/jabs/random/package-use.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - -Uses of Package jabs.simulator.randengine (jabs 0.1.1 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.simulator.randengine

-
-
Packages that use jabs.simulator.randengine
-
-
Package
-
Description
- -
 
- -
 
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/scenario/AbstractScenario.html b/javadoc/jabs/scenario/AbstractScenario.html deleted file mode 100644 index 72f1247e..00000000 --- a/javadoc/jabs/scenario/AbstractScenario.html +++ /dev/null @@ -1,366 +0,0 @@ - - - - -AbstractScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class AbstractScenario

-
-
Object -
AbstractScenario
-
-
-
-
Direct Known Subclasses:
-
BitcoinGlobalNetworkScenario, EthereumCasperNetworkScenario, EthereumDAGsperNetworkScenario, NormalEthereumNetworkScenario, PBFTLANScenario
-
-
-
public abstract class AbstractScenario -extends Object
-
An abstract class for defining a scenario.
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      network

      -
      protected Network network
      -
      network which is being used for simulation
      -
      -
    • -
    • -
      -

      simulator

      -
      protected Simulator simulator
      -
      -
    • -
    • -
      -

      randomnessEngine

      -
      protected RandomnessEngine randomnessEngine
      -
      -
    • -
    • -
      -

      logger

      -
      protected AbstractLogger logger
      -
      -
    • -
    • -
      -

      progressMessageIntervals

      -
      long progressMessageIntervals
      -
      -
    • -
    • -
      -

      name

      -
      final String name
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractScenario

      -
      public AbstractScenario(String name, - long seed, - AbstractLogger logger)
      -
      creates an abstract scenario with a user defined name
      -
      -
      Parameters:
      -
      seed - this value gives the simulation a randomnessEngine seed
      -
      logger - this is output log of the scenario
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getNetwork

      -
      public Network getNetwork()
      -
      Returns the network of the scenario. This can be used for accessing nodes inside the network.
      -
      -
      Returns:
      -
      network of this scenario
      -
      -
      -
    • -
    • -
      -

      getSimulator

      -
      public Simulator getSimulator()
      -
      Returns the simulator object that the scenario is using. This can be used to access the events in simulator.
      -
      -
      Returns:
      -
      simulator object of the scenario
      -
      -
      -
    • -
    • -
      -

      getName

      -
      public String getName()
      -
      -
      Returns:
      -
      simulator the name of this simulation.
      -
      -
      -
    • -
    • -
      -

      createNetwork

      -
      protected abstract void createNetwork()
      -
      Create the network and set up the simulation environment.
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected abstract void insertInitialEvents()
      -
      Insert initial events into the event queue.
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      protected abstract boolean simulationStopCondition()
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    • -
      -

      setProgressMessageIntervals

      -
      public void setProgressMessageIntervals(long progressMessageIntervals)
      -
      Sets the interval between two in progress messages
      -
      -
      Parameters:
      -
      progressMessageIntervals - the progress message interval described in nanoseconds
      -
      -
      -
    • -
    • -
      -

      run

      -
      public void run() - throws IOException
      -
      When called starts the simulation and runs everything to the end of simulation. This also - logs events using the logger object.
      -
      -
      Throws:
      -
      IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/BitcoinGlobalNetworkScenario.html b/javadoc/jabs/scenario/BitcoinGlobalNetworkScenario.html deleted file mode 100644 index 03d8c1b7..00000000 --- a/javadoc/jabs/scenario/BitcoinGlobalNetworkScenario.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - -BitcoinGlobalNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class BitcoinGlobalNetworkScenario

-
-
Object -
AbstractScenario -
BitcoinGlobalNetworkScenario
-
-
-
-
-
public class BitcoinGlobalNetworkScenario -extends AbstractScenario
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      simulationStopTime

      -
      public final double simulationStopTime
      -
      -
    • -
    • -
      -

      averageBlockInterval

      -
      public final double averageBlockInterval
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BitcoinGlobalNetworkScenario

      -
      public BitcoinGlobalNetworkScenario(String name, - long seed, - AbstractLogger logger, - long simulationStopTime, - double averageBlockInterval)
      -
      creates an abstract scenario with a user defined name
      -
      -
      Parameters:
      -
      name - determines the name of simulation scenario
      -
      seed - this value gives the simulation seed value for randomness engine
      -
      logger - this is output log of the scenario
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createNetwork

      -
      protected void createNetwork()
      -
      Description copied from class: AbstractScenario
      -
      Create the network and set up the simulation environment.
      -
      -
      Specified by:
      -
      createNetwork in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected void insertInitialEvents()
      -
      Description copied from class: AbstractScenario
      -
      Insert initial events into the event queue.
      -
      -
      Specified by:
      -
      insertInitialEvents in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      protected boolean simulationStopCondition()
      -
      Description copied from class: AbstractScenario
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Specified by:
      -
      simulationStopCondition in class AbstractScenario
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/BitcoinNetworkScenario.html b/javadoc/jabs/scenario/BitcoinNetworkScenario.html deleted file mode 100644 index 1060fc9c..00000000 --- a/javadoc/jabs/scenario/BitcoinNetworkScenario.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - -BitcoinNetworkScenario (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - - -
-
jabs.scenario
-

Class BitcoinNetworkScenario

-
-
- -
- -
-
- -
-
- -
-
- - -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/scenario/EthereumCasperNetworkScenario.html b/javadoc/jabs/scenario/EthereumCasperNetworkScenario.html deleted file mode 100644 index 8a1b8015..00000000 --- a/javadoc/jabs/scenario/EthereumCasperNetworkScenario.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - -EthereumCasperNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class EthereumCasperNetworkScenario

-
-
Object -
AbstractScenario -
EthereumCasperNetworkScenario
-
-
-
-
-
public class EthereumCasperNetworkScenario -extends AbstractScenario
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      numOfMiners

      -
      public final int numOfMiners
      -
      -
    • -
    • -
      -

      numOfNonMiners

      -
      public final int numOfNonMiners
      -
      -
    • -
    • -
      -

      checkpointSpace

      -
      public final int checkpointSpace
      -
      -
    • -
    • -
      -

      simulationStopTime

      -
      public final double simulationStopTime
      -
      -
    • -
    • -
      -

      txGenerationRate

      -
      public final double txGenerationRate
      -
      -
    • -
    • -
      -

      blockGenerationRate

      -
      public final double blockGenerationRate
      -
      -
    • -
    • -
      -

      simulationTime

      -
      public double simulationTime
      -
      -
    • -
    • -
      -

      totalVoteMassageTraffic

      -
      public long totalVoteMassageTraffic
      -
      -
    • -
    • -
      -

      blockFinalizationTimes

      -
      public DescriptiveStatistics blockFinalizationTimes
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumCasperNetworkScenario

      -
      public EthereumCasperNetworkScenario(long seed, - AbstractLogger logger, - int numOfMiners, - int numOfNonMiners, - int checkpointSpace, - long simulationStopTime, - double txGenerationRate, - double blockGenerationRate)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createNetwork

      -
      public void createNetwork()
      -
      Description copied from class: AbstractScenario
      -
      Create the network and set up the simulation environment.
      -
      -
      Specified by:
      -
      createNetwork in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected void insertInitialEvents()
      -
      Description copied from class: AbstractScenario
      -
      Insert initial events into the event queue.
      -
      -
      Specified by:
      -
      insertInitialEvents in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      public boolean simulationStopCondition()
      -
      Description copied from class: AbstractScenario
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Specified by:
      -
      simulationStopCondition in class AbstractScenario
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/EthereumDAGsperNetworkScenario.html b/javadoc/jabs/scenario/EthereumDAGsperNetworkScenario.html deleted file mode 100644 index 5bb9d8ec..00000000 --- a/javadoc/jabs/scenario/EthereumDAGsperNetworkScenario.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - -EthereumDAGsperNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class EthereumDAGsperNetworkScenario

-
-
Object -
AbstractScenario -
EthereumDAGsperNetworkScenario
-
-
-
-
-
public class EthereumDAGsperNetworkScenario -extends AbstractScenario
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      simulationTime

      -
      double simulationTime
      -
      -
    • -
    • -
      -

      totalVoteMassageTraffic

      -
      long totalVoteMassageTraffic
      -
      -
    • -
    • -
      -

      blockFinalizationTimes

      -
      public DescriptiveStatistics blockFinalizationTimes
      -
      -
    • -
    • -
      -

      numOfMiners

      -
      public final int numOfMiners
      -
      -
    • -
    • -
      -

      numOfNonMiners

      -
      public final int numOfNonMiners
      -
      -
    • -
    • -
      -

      checkpointSpace

      -
      public final int checkpointSpace
      -
      -
    • -
    • -
      -

      simulationStopTime

      -
      public final double simulationStopTime
      -
      -
    • -
    • -
      -

      txGenerationRate

      -
      public final double txGenerationRate
      -
      -
    • -
    • -
      -

      blockGenerationRate

      -
      public final double blockGenerationRate
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EthereumDAGsperNetworkScenario

      -
      public EthereumDAGsperNetworkScenario(long seed, - AbstractLogger logger, - int numOfMiners, - int numOfNonMiners, - int checkpointSpace, - double simulationStopTime, - double txGenerationRate, - double blockGenerationRate)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createNetwork

      -
      public void createNetwork()
      -
      Description copied from class: AbstractScenario
      -
      Create the network and set up the simulation environment.
      -
      -
      Specified by:
      -
      createNetwork in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected void insertInitialEvents()
      -
      Description copied from class: AbstractScenario
      -
      Insert initial events into the event queue.
      -
      -
      Specified by:
      -
      insertInitialEvents in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      public boolean simulationStopCondition()
      -
      Description copied from class: AbstractScenario
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Specified by:
      -
      simulationStopCondition in class AbstractScenario
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/NormalEthereumNetworkScenario.html b/javadoc/jabs/scenario/NormalEthereumNetworkScenario.html deleted file mode 100644 index 0283309a..00000000 --- a/javadoc/jabs/scenario/NormalEthereumNetworkScenario.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - -NormalEthereumNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class NormalEthereumNetworkScenario

-
-
Object -
AbstractScenario -
NormalEthereumNetworkScenario
-
-
-
-
-
public class NormalEthereumNetworkScenario -extends AbstractScenario
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      simulationTime

      -
      double simulationTime
      -
      -
    • -
    • -
      -

      numOfMiners

      -
      private final int numOfMiners
      -
      -
    • -
    • -
      -

      numOfNonMiners

      -
      private final int numOfNonMiners
      -
      -
    • -
    • -
      -

      simulationStopTime

      -
      private final double simulationStopTime
      -
      -
    • -
    • -
      -

      txGenerationRate

      -
      private final double txGenerationRate
      -
      -
    • -
    • -
      -

      blockGenerationRate

      -
      private final double blockGenerationRate
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      NormalEthereumNetworkScenario

      -
      public NormalEthereumNetworkScenario(long seed, - AbstractLogger logger, - int numOfMiners, - int numOfNonMiners, - double simulationStopTime, - double txGenerationRate, - double blockGenerationRate)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createNetwork

      -
      public void createNetwork()
      -
      Description copied from class: AbstractScenario
      -
      Create the network and set up the simulation environment.
      -
      -
      Specified by:
      -
      createNetwork in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected void insertInitialEvents()
      -
      Description copied from class: AbstractScenario
      -
      Insert initial events into the event queue.
      -
      -
      Specified by:
      -
      insertInitialEvents in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      public boolean simulationStopCondition()
      -
      Description copied from class: AbstractScenario
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Specified by:
      -
      simulationStopCondition in class AbstractScenario
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/PBFTLANScenario.html b/javadoc/jabs/scenario/PBFTLANScenario.html deleted file mode 100644 index c5a46b9c..00000000 --- a/javadoc/jabs/scenario/PBFTLANScenario.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - -PBFTLANScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-
Package jabs.scenario
-

Class PBFTLANScenario

-
-
Object -
AbstractScenario -
PBFTLANScenario
-
-
-
-
-
public class PBFTLANScenario -extends AbstractScenario
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      numNodes

      -
      protected int numNodes
      -
      -
    • -
    • -
      -

      simulationStopTime

      -
      protected double simulationStopTime
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PBFTLANScenario

      -
      public PBFTLANScenario(String name, - long seed, - AbstractLogger logger, - int numNodes, - double simulationStopTime)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createNetwork

      -
      public void createNetwork()
      -
      Description copied from class: AbstractScenario
      -
      Create the network and set up the simulation environment.
      -
      -
      Specified by:
      -
      createNetwork in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      insertInitialEvents

      -
      protected void insertInitialEvents()
      -
      Description copied from class: AbstractScenario
      -
      Insert initial events into the event queue.
      -
      -
      Specified by:
      -
      insertInitialEvents in class AbstractScenario
      -
      -
      -
    • -
    • -
      -

      simulationStopCondition

      -
      public boolean simulationStopCondition()
      -
      Description copied from class: AbstractScenario
      -
      runs before each event and checks if simulation should stop.
      -
      -
      Specified by:
      -
      simulationStopCondition in class AbstractScenario
      -
      Returns:
      -
      true if simulation should not continue to execution of next event.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/AbstractScenario.html b/javadoc/jabs/scenario/class-use/AbstractScenario.html deleted file mode 100644 index c9e670bb..00000000 --- a/javadoc/jabs/scenario/class-use/AbstractScenario.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - -Uses of Class jabs.scenario.AbstractScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.AbstractScenario

-
-
Packages that use AbstractScenario
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/BitcoinGlobalNetworkScenario.html b/javadoc/jabs/scenario/class-use/BitcoinGlobalNetworkScenario.html deleted file mode 100644 index 5dd94021..00000000 --- a/javadoc/jabs/scenario/class-use/BitcoinGlobalNetworkScenario.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.scenario.BitcoinGlobalNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.BitcoinGlobalNetworkScenario

-
-No usage of jabs.scenario.BitcoinGlobalNetworkScenario
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/BitcoinNetworkScenario.html b/javadoc/jabs/scenario/class-use/BitcoinNetworkScenario.html deleted file mode 100644 index 9b35c9e9..00000000 --- a/javadoc/jabs/scenario/class-use/BitcoinNetworkScenario.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - -Uses of Class jabs.scenario.BitcoinGlobalNetworkScenario (jabs 0.1.1 API) - - - - - - - - -
- - -
Skip navigation links
- - - - -
- - -
-

Uses of Class
jabs.scenario.BitcoinGlobalNetworkScenario

-
-
No usage of jabs.scenario.BitcoinGlobalNetworkScenario
- -
- - -
Skip navigation links
- - - - -
- - -

Copyright © 2022. All rights reserved.

- - diff --git a/javadoc/jabs/scenario/class-use/EthereumCasperNetworkScenario.html b/javadoc/jabs/scenario/class-use/EthereumCasperNetworkScenario.html deleted file mode 100644 index 8e648221..00000000 --- a/javadoc/jabs/scenario/class-use/EthereumCasperNetworkScenario.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.scenario.EthereumCasperNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.EthereumCasperNetworkScenario

-
-No usage of jabs.scenario.EthereumCasperNetworkScenario
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/EthereumDAGsperNetworkScenario.html b/javadoc/jabs/scenario/class-use/EthereumDAGsperNetworkScenario.html deleted file mode 100644 index 2ac23540..00000000 --- a/javadoc/jabs/scenario/class-use/EthereumDAGsperNetworkScenario.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.scenario.EthereumDAGsperNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.EthereumDAGsperNetworkScenario

-
-No usage of jabs.scenario.EthereumDAGsperNetworkScenario
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/NormalEthereumNetworkScenario.html b/javadoc/jabs/scenario/class-use/NormalEthereumNetworkScenario.html deleted file mode 100644 index 6d8fb6b3..00000000 --- a/javadoc/jabs/scenario/class-use/NormalEthereumNetworkScenario.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.scenario.NormalEthereumNetworkScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.NormalEthereumNetworkScenario

-
-No usage of jabs.scenario.NormalEthereumNetworkScenario
- -
-
- - diff --git a/javadoc/jabs/scenario/class-use/PBFTLANScenario.html b/javadoc/jabs/scenario/class-use/PBFTLANScenario.html deleted file mode 100644 index a50b7980..00000000 --- a/javadoc/jabs/scenario/class-use/PBFTLANScenario.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.scenario.PBFTLANScenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.scenario.PBFTLANScenario

-
-No usage of jabs.scenario.PBFTLANScenario
- -
-
- - diff --git a/javadoc/jabs/scenario/package-frame.html b/javadoc/jabs/scenario/package-frame.html deleted file mode 100644 index c3507c8b..00000000 --- a/javadoc/jabs/scenario/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -jabs.scenario (jabs 0.2.0 API) - - - - - -

jabs.scenario

-
-

Classes

- -
- - diff --git a/javadoc/jabs/scenario/package-summary.html b/javadoc/jabs/scenario/package-summary.html deleted file mode 100644 index 9555290b..00000000 --- a/javadoc/jabs/scenario/package-summary.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - -jabs.scenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.scenario

-
-
-
package jabs.scenario
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/scenario/package-tree.html b/javadoc/jabs/scenario/package-tree.html deleted file mode 100644 index 8d39e908..00000000 --- a/javadoc/jabs/scenario/package-tree.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -jabs.scenario Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.scenario

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/scenario/package-use.html b/javadoc/jabs/scenario/package-use.html deleted file mode 100644 index 68925086..00000000 --- a/javadoc/jabs/scenario/package-use.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - -Uses of Package jabs.scenario (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.scenario

-
-
Packages that use jabs.scenario
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/Simulator.ScheduledEvent.html b/javadoc/jabs/simulator/Simulator.ScheduledEvent.html deleted file mode 100644 index 0d2bd281..00000000 --- a/javadoc/jabs/simulator/Simulator.ScheduledEvent.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - -Simulator.ScheduledEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Record Class Simulator.ScheduledEvent

-
-
Object -
Record -
ScheduledEvent
-
-
-
-
-
Record Components:
-
event - The event
-
time - Simulation execution time of the event
-
number - Event ID (insertion number in event queue)
-
-
-
All Implemented Interfaces:
-
Comparable<Simulator.ScheduledEvent>
-
-
-
Enclosing class:
-
Simulator
-
-
-
public static record Simulator.ScheduledEvent(Event event, double time, long number) -extends Record -implements Comparable<Simulator.ScheduledEvent>
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    private final Event
    - -
    -
    The field for the event record component.
    -
    -
    private final long
    - -
    -
    The field for the number record component.
    -
    -
    private final double
    - -
    -
    The field for the time record component.
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    -
    ScheduledEvent(Event event, - double time, - long number)
    -
    -
    Creates an instance of a ScheduledEvent record class.
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    int
    - -
    -
    This function is used by the priority queue to sort the scheduled events
    -
    -
    final boolean
    - -
    -
    Indicates whether some other object is "equal to" this one.
    -
    - - -
    -
    Returns the corresponding event
    -
    -
    final int
    - -
    -
    Returns a hash code value for this object.
    -
    -
    long
    - -
    -
    Returns the value of the number record component.
    -
    -
    double
    - -
    -
    Returns the execution time of the event.
    -
    -
    final String
    - -
    -
    Returns a string representation of this record class.
    -
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      event

      -
      private final Event event
      -
      The field for the event record component.
      -
      -
    • -
    • -
      -

      time

      -
      private final double time
      -
      The field for the time record component.
      -
      -
    • -
    • -
      -

      number

      -
      private final long number
      -
      The field for the number record component.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      ScheduledEvent

      -
      public ScheduledEvent(Event event, - double time, - long number)
      -
      Creates an instance of a ScheduledEvent record class.
      -
      -
      Parameters:
      -
      event - the value for the event record component
      -
      time - the value for the time record component
      -
      number - the value for the number record component
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      event

      -
      public Event event()
      -
      Returns the corresponding event
      -
      -
      Returns:
      -
      the corresponding event
      -
      -
      -
    • -
    • -
      -

      time

      -
      public double time()
      -
      Returns the execution time of the event.
      -
      -
      Returns:
      -
      the execution time of the event
      -
      -
      -
    • -
    • -
      -

      compareTo

      -
      public int compareTo(Simulator.ScheduledEvent o)
      -
      This function is used by the priority queue to sort the scheduled events
      -
      -
      Specified by:
      -
      compareTo in interface Comparable<Simulator.ScheduledEvent>
      -
      Parameters:
      -
      o - The scheduled event
      -
      Returns:
      -
      -1 if the execution time of the object is earlier than the provided - input. - 0 if the execution time of the object is exactly equal to the - execution time of the provided input event. - 1 if the execution time of the object is after the execution of - the provided input.
      -
      -
      -
    • -
    • -
      -

      toString

      -
      public final String toString()
      -
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      -
      -
      Specified by:
      -
      toString in class Record
      -
      Returns:
      -
      a string representation of this object
      -
      -
      -
    • -
    • -
      -

      hashCode

      -
      public final int hashCode()
      -
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      -
      -
      Specified by:
      -
      hashCode in class Record
      -
      Returns:
      -
      a hash code value for this object
      -
      -
      -
    • -
    • -
      -

      equals

      -
      public final boolean equals(Object o)
      -
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      -
      -
      Specified by:
      -
      equals in class Record
      -
      Parameters:
      -
      o - the object with which to compare
      -
      Returns:
      -
      true if this object is the same as the o argument; false otherwise.
      -
      -
      -
    • -
    • -
      -

      number

      -
      public long number()
      -
      Returns the value of the number record component.
      -
      -
      Returns:
      -
      the value of the number record component
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/Simulator.html b/javadoc/jabs/simulator/Simulator.html deleted file mode 100644 index ee6e665f..00000000 --- a/javadoc/jabs/simulator/Simulator.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - -Simulator (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class Simulator

-
-
Object -
Simulator
-
-
-
-
public class Simulator -extends Object
-
-
Author:
-
habib - A discrete time event-based simulator with event queue
-
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    Nested Classes
    -
    -
    Modifier and Type
    -
    Class
    -
    Description
    -
    static final record 
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    private double
    - -
    -
    The simulation execution time of the most recent event
    -
    - - -
    -
    The queue that contains all events which are going to be executed.
    -
    -
    private long
    - -
    -
    Number of events inserted in the event queue till now (whether simulated - or not)
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Constructor
    -
    Description
    - -
     
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    void
    - -
    -
    Executes the next event in the event queue
    -
    -
    double
    - -
    -
    Returns the simulation time that the latest event has executed
    -
    - - -
    -
    Returns what is the next event to be executed without executing - the event.
    -
    - -
    putEvent(Event event, - double remainingTimeToExecution)
    -
    -
    Inserts a new event in event queue.
    -
    -
    void
    - -
    -
    Removes an event already available in the event queue.
    -
    -
    void
    - -
    -
    Clears the event queue from any more events.
    -
    -
    boolean
    - -
    -
    Check if more events exist in the event queue to be simulated
    -
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      eventQueue

      -
      private final PriorityQueue<Simulator.ScheduledEvent> eventQueue
      -
      The queue that contains all events which are going to be executed. This - queue is a priority queue sorted by the time in which the event should - be executed.
      -
      -
    • -
    • -
      -

      currentTime

      -
      private double currentTime
      -
      The simulation execution time of the most recent event
      -
      -
    • -
    • -
      -

      insertedEvents

      -
      private long insertedEvents
      -
      Number of events inserted in the event queue till now (whether simulated - or not)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Simulator

      -
      public Simulator()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      executeNextEvent

      -
      public void executeNextEvent()
      -
      Executes the next event in the event queue
      -
      -
    • -
    • -
      -

      peekEvent

      -
      public Event peekEvent()
      -
      Returns what is the next event to be executed without executing - the event.
      -
      -
      Returns:
      -
      The next event to be executed in the simulator
      -
      -
      -
    • -
    • -
      -

      thereIsMoreEvents

      -
      public boolean thereIsMoreEvents()
      -
      Check if more events exist in the event queue to be simulated
      -
      -
      Returns:
      -
      True if there is any event in the queue
      -
      -
      -
    • -
    • -
      -

      putEvent

      -
      public Simulator.ScheduledEvent putEvent(Event event, - double remainingTimeToExecution)
      -
      Inserts a new event in event queue. The event execution time will be the - summation of current time and remaining time to execution.
      -
      -
      Parameters:
      -
      event - The event to be executed
      -
      remainingTimeToExecution - The time remaining to execution time of - the event.
      -
      Returns:
      -
      the scheduled event
      -
      -
      -
    • -
    • -
      -

      removeEvent

      -
      public void removeEvent(Simulator.ScheduledEvent scheduledEvent)
      -
      Removes an event already available in the event queue. It is specially useful - for processes that are ongoing such as packet receiving process or block mining - process.
      -
      -
      Parameters:
      -
      scheduledEvent - The event to be executed
      -
      -
      -
    • -
    • -
      -

      getCurrentTime

      -
      public double getCurrentTime()
      -
      Returns the simulation time that the latest event has executed
      -
      -
      Returns:
      -
      Simulation time of the latest simulated event
      -
      -
      -
    • -
    • -
      -

      reset

      -
      public void reset()
      -
      Clears the event queue from any more events. Restarts the current time of - simulation to zero.
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/class-use/Simulator.ScheduledEvent.html b/javadoc/jabs/simulator/class-use/Simulator.ScheduledEvent.html deleted file mode 100644 index 71f87792..00000000 --- a/javadoc/jabs/simulator/class-use/Simulator.ScheduledEvent.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - -Uses of Record Class jabs.simulator.Simulator.ScheduledEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Record Class
jabs.simulator.Simulator.ScheduledEvent

-
-
Packages that use Simulator.ScheduledEvent
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/class-use/Simulator.html b/javadoc/jabs/simulator/class-use/Simulator.html deleted file mode 100644 index 10d19e39..00000000 --- a/javadoc/jabs/simulator/class-use/Simulator.html +++ /dev/null @@ -1,654 +0,0 @@ - - - - -Uses of Class jabs.simulator.Simulator (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.Simulator

-
-
Packages that use Simulator
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/AbstractBlockGeneratorProcess.html b/javadoc/jabs/simulator/event/AbstractBlockGeneratorProcess.html deleted file mode 100644 index 3f8877cd..00000000 --- a/javadoc/jabs/simulator/event/AbstractBlockGeneratorProcess.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - -AbstractBlockGeneratorProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractBlockGeneratorProcess

-
-
Object -
AbstractGeneratorProcess -
AbstractBlockGeneratorProcess
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
Direct Known Subclasses:
-
BlockGeneratorProcessFixedNode, BlockGeneratorProcessRandomNode
-
-
-
public abstract class AbstractBlockGeneratorProcess -extends AbstractGeneratorProcess
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      miner

      -
      protected MinerNode miner
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractBlockGeneratorProcess

      -
      public AbstractBlockGeneratorProcess(Simulator simulator, - RandomnessEngine randomnessEngine, - double averageTimeBetweenBlocks)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/AbstractGeneratorProcess.html b/javadoc/jabs/simulator/event/AbstractGeneratorProcess.html deleted file mode 100644 index b499528a..00000000 --- a/javadoc/jabs/simulator/event/AbstractGeneratorProcess.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - -AbstractGeneratorProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractGeneratorProcess

-
-
Object -
AbstractGeneratorProcess
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
Direct Known Subclasses:
-
AbstractBlockGeneratorProcess, AbstractTxGeneratorProcess
-
-
-
public abstract class AbstractGeneratorProcess -extends Object -implements Event
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      averageTimeBetweenGenerations

      -
      private final double averageTimeBetweenGenerations
      -
      -
    • -
    • -
      -

      simulator

      -
      protected final Simulator simulator
      -
      -
    • -
    • -
      -

      randomnessEngine

      -
      protected final RandomnessEngine randomnessEngine
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractGeneratorProcess

      -
      public AbstractGeneratorProcess(Simulator simulator, - RandomnessEngine randomnessEngine, - double averageTimeBetweenGenerations)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      execute

      -
      public void execute()
      -
      -
      Specified by:
      -
      execute in interface Event
      -
      -
      -
    • -
    • -
      -

      generateAndSetNextEvent

      -
      protected void generateAndSetNextEvent()
      -
      -
    • -
    • -
      -

      timeToNextGeneration

      -
      protected double timeToNextGeneration()
      -
      -
    • -
    • -
      -

      generate

      -
      protected abstract void generate()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/AbstractPacketProcessor.TimedPacket.html b/javadoc/jabs/simulator/event/AbstractPacketProcessor.TimedPacket.html deleted file mode 100644 index 938a1e87..00000000 --- a/javadoc/jabs/simulator/event/AbstractPacketProcessor.TimedPacket.html +++ /dev/null @@ -1,321 +0,0 @@ - - - - -AbstractPacketProcessor.TimedPacket (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Record Class AbstractPacketProcessor.TimedPacket

-
-
Object -
Record -
TimedPacket
-
-
-
-
-
All Implemented Interfaces:
-
Comparable<AbstractPacketProcessor.TimedPacket>
-
-
-
Enclosing class:
-
AbstractPacketProcessor
-
-
-
private static record AbstractPacketProcessor.TimedPacket(Packet packet, double time) -extends Record -implements Comparable<AbstractPacketProcessor.TimedPacket>
-
-
-
    - -
  • -
    -

    Field Summary

    -
    Fields
    -
    -
    Modifier and Type
    -
    Field
    -
    Description
    -
    private final Packet
    - -
    -
    The field for the packet record component.
    -
    -
    private final double
    - -
    -
    The field for the time record component.
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    Constructors
    -
    -
    Modifier
    -
    Constructor
    -
    Description
    -
    private
    -
    TimedPacket(Packet packet, - double time)
    -
    -
    Creates an instance of a TimedPacket record class.
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    int
    - -
     
    -
    final boolean
    - -
    -
    Indicates whether some other object is "equal to" this one.
    -
    -
    final int
    - -
    -
    Returns a hash code value for this object.
    -
    - - -
    -
    Returns the value of the packet record component.
    -
    -
    double
    - -
    -
    Returns the value of the time record component.
    -
    -
    final String
    - -
    -
    Returns a string representation of this record class.
    -
    -
    -
    -
    -
    -

    Methods inherited from class Object

    -clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      packet

      -
      private final Packet packet
      -
      The field for the packet record component.
      -
      -
    • -
    • -
      -

      time

      -
      private final double time
      -
      The field for the time record component.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TimedPacket

      -
      private TimedPacket(Packet packet, - double time)
      -
      Creates an instance of a TimedPacket record class.
      -
      -
      Parameters:
      -
      packet - the value for the packet record component
      -
      time - the value for the time record component
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      compareTo

      -
      public int compareTo(AbstractPacketProcessor.TimedPacket o)
      -
      -
      Specified by:
      -
      compareTo in interface Comparable<AbstractPacketProcessor.TimedPacket>
      -
      -
      -
    • -
    • -
      -

      toString

      -
      public final String toString()
      -
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      -
      -
      Specified by:
      -
      toString in class Record
      -
      Returns:
      -
      a string representation of this object
      -
      -
      -
    • -
    • -
      -

      hashCode

      -
      public final int hashCode()
      -
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      -
      -
      Specified by:
      -
      hashCode in class Record
      -
      Returns:
      -
      a hash code value for this object
      -
      -
      -
    • -
    • -
      -

      equals

      -
      public final boolean equals(Object o)
      -
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      -
      -
      Specified by:
      -
      equals in class Record
      -
      Parameters:
      -
      o - the object with which to compare
      -
      Returns:
      -
      true if this object is the same as the o argument; false otherwise.
      -
      -
      -
    • -
    • -
      -

      packet

      -
      public Packet packet()
      -
      Returns the value of the packet record component.
      -
      -
      Returns:
      -
      the value of the packet record component
      -
      -
      -
    • -
    • -
      -

      time

      -
      public double time()
      -
      Returns the value of the time record component.
      -
      -
      Returns:
      -
      the value of the time record component
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/AbstractPacketProcessor.html b/javadoc/jabs/simulator/event/AbstractPacketProcessor.html deleted file mode 100644 index 6e6b15c0..00000000 --- a/javadoc/jabs/simulator/event/AbstractPacketProcessor.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - -AbstractPacketProcessor (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractPacketProcessor

-
-
Object -
AbstractPacketProcessor
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
Direct Known Subclasses:
-
PacketReceivingProcess, PacketSendingProcess
-
-
-
public abstract class AbstractPacketProcessor -extends Object -implements Event
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    - -
    -
  • - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      isQueueEmpty

      -
      public boolean isQueueEmpty()
      -
      -
    • -
    • -
      -

      addToQueue

      -
      public void addToQueue(Packet packet)
      -
      -
    • -
    • -
      -

      execute

      -
      public void execute()
      -
      -
      Specified by:
      -
      execute in interface Event
      -
      -
      -
    • -
    • -
      -

      processingTime

      -
      public abstract double processingTime(Packet packet)
      -
      -
    • -
    • -
      -

      sendPacketToNextProcess

      -
      protected abstract void sendPacketToNextProcess(Packet packet)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/AbstractTxGeneratorProcess.html b/javadoc/jabs/simulator/event/AbstractTxGeneratorProcess.html deleted file mode 100644 index d526301a..00000000 --- a/javadoc/jabs/simulator/event/AbstractTxGeneratorProcess.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - -AbstractTxGeneratorProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class AbstractTxGeneratorProcess

-
-
Object -
AbstractGeneratorProcess -
AbstractTxGeneratorProcess
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
Direct Known Subclasses:
-
TxGeneratorProcessFixedNode, TxGeneratorProcessRandomNode
-
-
-
public abstract class AbstractTxGeneratorProcess -extends AbstractGeneratorProcess
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      node

      -
      protected Node node
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbstractTxGeneratorProcess

      -
      public AbstractTxGeneratorProcess(Simulator simulator, - RandomnessEngine randomnessEngine, - double averageTimeBetweenTxs)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/BlockGenerationEvent.html b/javadoc/jabs/simulator/event/BlockGenerationEvent.html deleted file mode 100644 index 2408a99b..00000000 --- a/javadoc/jabs/simulator/event/BlockGenerationEvent.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - -BlockGenerationEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockGenerationEvent

-
-
Object -
BlockGenerationEvent
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class BlockGenerationEvent -extends Object -implements Event
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      miner

      -
      private final MinerNode miner
      -
      -
    • -
    • -
      -

      simulator

      -
      private final Simulator simulator
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BlockGenerationEvent

      -
      public BlockGenerationEvent(MinerNode miner, - Simulator simulator)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      execute

      -
      public void execute()
      -
      -
      Specified by:
      -
      execute in interface Event
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/BlockGeneratorProcessFixedNode.html b/javadoc/jabs/simulator/event/BlockGeneratorProcessFixedNode.html deleted file mode 100644 index 87a6f96f..00000000 --- a/javadoc/jabs/simulator/event/BlockGeneratorProcessFixedNode.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - -BlockGeneratorProcessFixedNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockGeneratorProcessFixedNode

-
-
Object -
AbstractGeneratorProcess -
AbstractBlockGeneratorProcess -
BlockGeneratorProcessFixedNode
-
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class BlockGeneratorProcessFixedNode -extends AbstractBlockGeneratorProcess
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      BlockGeneratorProcessFixedNode

      -
      public BlockGeneratorProcessFixedNode(Simulator simulator, - RandomnessEngine randomnessEngine, - MinerNode miner, - double averageTimeBetweenBlocks)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/BlockGeneratorProcessRandomNode.html b/javadoc/jabs/simulator/event/BlockGeneratorProcessRandomNode.html deleted file mode 100644 index 2fa2941d..00000000 --- a/javadoc/jabs/simulator/event/BlockGeneratorProcessRandomNode.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - -BlockGeneratorProcessRandomNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class BlockGeneratorProcessRandomNode

-
-
Object -
AbstractGeneratorProcess -
AbstractBlockGeneratorProcess -
BlockGeneratorProcessRandomNode
-
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class BlockGeneratorProcessRandomNode -extends AbstractBlockGeneratorProcess
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/Event.html b/javadoc/jabs/simulator/event/Event.html deleted file mode 100644 index 3ad4682d..00000000 --- a/javadoc/jabs/simulator/event/Event.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - -Event (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Interface Event

-
-
-
-
All Known Implementing Classes:
-
AbstractPacketProcessor, AbstractPoissonProcess, AbstractTxPoissonProcess, BlockMiningProcess, PacketDeliveryEvent, PacketReceivingProcess, PacketSendingProcess, TxGenerationProcessRandomNetworkNode, TxGenerationProcessSingleNode
-
-
-
public interface Event
-
-
-
    - -
  • -
    -

    Method Summary

    -
    -
    -
    -
    -
    Modifier and Type
    -
    Method
    -
    Description
    -
    void
    - -
     
    -
    -
    -
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      execute

      -
      void execute()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/EventFactory.html b/javadoc/jabs/simulator/event/EventFactory.html deleted file mode 100644 index 3bc71479..00000000 --- a/javadoc/jabs/simulator/event/EventFactory.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - -EventFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class EventFactory

-
-
Object -
EventFactory
-
-
-
-
public class EventFactory -extends Object
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EventFactory

      -
      public EventFactory()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      createBlockGenerationEvents

      -
      public static void createBlockGenerationEvents(Simulator simulator, - RandomnessEngine randomnessEngine, - BlockchainNetwork network, - int num, - double timeBetweenGenerations)
      -
      -
    • -
    • -
      -

      createTxGenerationEvents

      -
      public static void createTxGenerationEvents(Simulator simulator, - RandomnessEngine randomnessEngine, - Network network, - int num, - double timeBetweenGenerations)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/PacketDeliveryEvent.html b/javadoc/jabs/simulator/event/PacketDeliveryEvent.html deleted file mode 100644 index 8d3d0e59..00000000 --- a/javadoc/jabs/simulator/event/PacketDeliveryEvent.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - -PacketDeliveryEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PacketDeliveryEvent

-
-
Object -
PacketDeliveryEvent
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class PacketDeliveryEvent -extends Object -implements Event
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      packet

      -
      public final Packet packet
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PacketDeliveryEvent

      -
      public PacketDeliveryEvent(Packet packet)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      execute

      -
      public void execute()
      -
      -
      Specified by:
      -
      execute in interface Event
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/PacketReceivingProcess.html b/javadoc/jabs/simulator/event/PacketReceivingProcess.html deleted file mode 100644 index 5245386e..00000000 --- a/javadoc/jabs/simulator/event/PacketReceivingProcess.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - -PacketReceivingProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PacketReceivingProcess

-
-
Object -
AbstractPacketProcessor -
PacketReceivingProcess
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class PacketReceivingProcess -extends AbstractPacketProcessor
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/PacketSendingProcess.html b/javadoc/jabs/simulator/event/PacketSendingProcess.html deleted file mode 100644 index f9ef0388..00000000 --- a/javadoc/jabs/simulator/event/PacketSendingProcess.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - -PacketSendingProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PacketSendingProcess

-
-
Object -
AbstractPacketProcessor -
PacketSendingProcess
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class PacketSendingProcess -extends AbstractPacketProcessor
-
-
- -
-
- -
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/TxGenerationEvent.html b/javadoc/jabs/simulator/event/TxGenerationEvent.html deleted file mode 100644 index b716849b..00000000 --- a/javadoc/jabs/simulator/event/TxGenerationEvent.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - -TxGenerationEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class TxGenerationEvent

-
-
Object -
TxGenerationEvent
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class TxGenerationEvent -extends Object -implements Event
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      node

      -
      private final Node node
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TxGenerationEvent

      -
      public TxGenerationEvent(Node node)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      execute

      -
      public void execute()
      -
      -
      Specified by:
      -
      execute in interface Event
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/TxGeneratorProcessFixedNode.html b/javadoc/jabs/simulator/event/TxGeneratorProcessFixedNode.html deleted file mode 100644 index 52b126ae..00000000 --- a/javadoc/jabs/simulator/event/TxGeneratorProcessFixedNode.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - -TxGeneratorProcessFixedNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class TxGeneratorProcessFixedNode

-
-
Object -
AbstractGeneratorProcess -
AbstractTxGeneratorProcess -
TxGeneratorProcessFixedNode
-
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class TxGeneratorProcessFixedNode -extends AbstractTxGeneratorProcess
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TxGeneratorProcessFixedNode

      -
      public TxGeneratorProcessFixedNode(Simulator simulator, - RandomnessEngine randomnessEngine, - Node node, - double averageTimeBetweenTxs)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/TxGeneratorProcessRandomNode.html b/javadoc/jabs/simulator/event/TxGeneratorProcessRandomNode.html deleted file mode 100644 index f460b946..00000000 --- a/javadoc/jabs/simulator/event/TxGeneratorProcessRandomNode.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - -TxGeneratorProcessRandomNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class TxGeneratorProcessRandomNode

-
-
Object -
AbstractGeneratorProcess -
AbstractTxGeneratorProcess -
TxGeneratorProcessRandomNode
-
-
-
-
-
-
All Implemented Interfaces:
-
Event
-
-
-
public class TxGeneratorProcessRandomNode -extends AbstractTxGeneratorProcess
-
-
- -
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      network

      -
      protected final Network network
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TxGeneratorProcessRandomNode

      -
      public TxGeneratorProcessRandomNode(Simulator simulator, - Network network, - RandomnessEngine randomnessEngine, - double averageTimeBetweenTxs)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/AbstractBlockGeneratorProcess.html b/javadoc/jabs/simulator/event/class-use/AbstractBlockGeneratorProcess.html deleted file mode 100644 index e7279864..00000000 --- a/javadoc/jabs/simulator/event/class-use/AbstractBlockGeneratorProcess.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.AbstractBlockGeneratorProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.AbstractBlockGeneratorProcess

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/AbstractGeneratorProcess.html b/javadoc/jabs/simulator/event/class-use/AbstractGeneratorProcess.html deleted file mode 100644 index 815d6f4c..00000000 --- a/javadoc/jabs/simulator/event/class-use/AbstractGeneratorProcess.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.AbstractPoissonProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.AbstractPoissonProcess

-
-
Packages that use AbstractGeneratorProcess
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.TimedPacket.html b/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.TimedPacket.html deleted file mode 100644 index 22260e08..00000000 --- a/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.TimedPacket.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - -Uses of Record Class jabs.simulator.event.AbstractPacketProcessor.TimedPacket (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Record Class
jabs.simulator.event.AbstractPacketProcessor.TimedPacket

-
- -
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.html b/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.html deleted file mode 100644 index a6b0efb4..00000000 --- a/javadoc/jabs/simulator/event/class-use/AbstractPacketProcessor.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.AbstractPacketProcessor (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.AbstractPacketProcessor

-
-
Packages that use AbstractPacketProcessor
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/AbstractTxGeneratorProcess.html b/javadoc/jabs/simulator/event/class-use/AbstractTxGeneratorProcess.html deleted file mode 100644 index 4c0e1e48..00000000 --- a/javadoc/jabs/simulator/event/class-use/AbstractTxGeneratorProcess.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.AbstractTxPoissonProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.AbstractTxPoissonProcess

-
-
Packages that use AbstractTxGeneratorProcess
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/BlockGenerationEvent.html b/javadoc/jabs/simulator/event/class-use/BlockGenerationEvent.html deleted file mode 100644 index 90117a14..00000000 --- a/javadoc/jabs/simulator/event/class-use/BlockGenerationEvent.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.BlockGenerationEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.BlockGenerationEvent

-
-No usage of jabs.simulator.event.BlockGenerationEvent
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessFixedNode.html b/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessFixedNode.html deleted file mode 100644 index 8b840d51..00000000 --- a/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessFixedNode.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.BlockMiningProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.BlockMiningProcess

-
-No usage of jabs.simulator.event.BlockMiningProcess
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessRandomNode.html b/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessRandomNode.html deleted file mode 100644 index 15e7fe0a..00000000 --- a/javadoc/jabs/simulator/event/class-use/BlockGeneratorProcessRandomNode.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.BlockGeneratorProcessRandomNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.BlockGeneratorProcessRandomNode

-
-No usage of jabs.simulator.event.BlockGeneratorProcessRandomNode
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/Event.html b/javadoc/jabs/simulator/event/class-use/Event.html deleted file mode 100644 index 2ce4ed9e..00000000 --- a/javadoc/jabs/simulator/event/class-use/Event.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - -Uses of Interface jabs.simulator.event.Event (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Interface
jabs.simulator.event.Event

-
-
Packages that use Event
-
-
Package
-
Description
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/EventFactory.html b/javadoc/jabs/simulator/event/class-use/EventFactory.html deleted file mode 100644 index 86f87368..00000000 --- a/javadoc/jabs/simulator/event/class-use/EventFactory.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.EventFactory (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.EventFactory

-
-No usage of jabs.simulator.event.EventFactory
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/PacketDeliveryEvent.html b/javadoc/jabs/simulator/event/class-use/PacketDeliveryEvent.html deleted file mode 100644 index 69fe9da9..00000000 --- a/javadoc/jabs/simulator/event/class-use/PacketDeliveryEvent.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.PacketDeliveryEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.PacketDeliveryEvent

-
-No usage of jabs.simulator.event.PacketDeliveryEvent
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/PacketReceivingProcess.html b/javadoc/jabs/simulator/event/class-use/PacketReceivingProcess.html deleted file mode 100644 index 79f8e393..00000000 --- a/javadoc/jabs/simulator/event/class-use/PacketReceivingProcess.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.PacketReceivingProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.PacketReceivingProcess

-
-
Packages that use PacketReceivingProcess
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/PacketSendingProcess.html b/javadoc/jabs/simulator/event/class-use/PacketSendingProcess.html deleted file mode 100644 index 6b3b3900..00000000 --- a/javadoc/jabs/simulator/event/class-use/PacketSendingProcess.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.PacketSendingProcess (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.PacketSendingProcess

-
-
Packages that use PacketSendingProcess
-
-
Package
-
Description
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/TxGenerationEvent.html b/javadoc/jabs/simulator/event/class-use/TxGenerationEvent.html deleted file mode 100644 index 446495f6..00000000 --- a/javadoc/jabs/simulator/event/class-use/TxGenerationEvent.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.TxGenerationEvent (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.TxGenerationEvent

-
-No usage of jabs.simulator.event.TxGenerationEvent
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessFixedNode.html b/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessFixedNode.html deleted file mode 100644 index 308c3cba..00000000 --- a/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessFixedNode.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.TxGenerationProcessSingleNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.TxGenerationProcessSingleNode

-
-No usage of jabs.simulator.event.TxGenerationProcessSingleNode
- -
-
- - diff --git a/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessRandomNode.html b/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessRandomNode.html deleted file mode 100644 index 87cdcf29..00000000 --- a/javadoc/jabs/simulator/event/class-use/TxGeneratorProcessRandomNode.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - -Uses of Class jabs.simulator.event.TxGenerationProcessRandomNetworkNode (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.event.TxGenerationProcessRandomNetworkNode

-
-No usage of jabs.simulator.event.TxGenerationProcessRandomNetworkNode
- -
-
- - diff --git a/javadoc/jabs/simulator/event/package-frame.html b/javadoc/jabs/simulator/event/package-frame.html deleted file mode 100644 index 9d7e8c2c..00000000 --- a/javadoc/jabs/simulator/event/package-frame.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -jabs.simulator.event (jabs 0.2.0 API) - - - - - -

jabs.simulator.event

-
-

Interfaces

- -

Classes

- -
- - diff --git a/javadoc/jabs/simulator/event/package-summary.html b/javadoc/jabs/simulator/event/package-summary.html deleted file mode 100644 index ff7f3f7c..00000000 --- a/javadoc/jabs/simulator/event/package-summary.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - -jabs.simulator.event (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.simulator.event

-
-
-
package jabs.simulator.event
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/package-tree.html b/javadoc/jabs/simulator/event/package-tree.html deleted file mode 100644 index a8d453e3..00000000 --- a/javadoc/jabs/simulator/event/package-tree.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -jabs.simulator.event Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.simulator.event

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/event/package-use.html b/javadoc/jabs/simulator/event/package-use.html deleted file mode 100644 index 4423ed9a..00000000 --- a/javadoc/jabs/simulator/event/package-use.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -Uses of Package jabs.simulator.event (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.simulator.event

-
-
Packages that use jabs.simulator.event
-
-
Package
-
Description
- -
 
- -
 
- -
 
-
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/package-frame.html b/javadoc/jabs/simulator/package-frame.html deleted file mode 100644 index d861b3df..00000000 --- a/javadoc/jabs/simulator/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -jabs.simulator (jabs 0.2.0 API) - - - - - -

jabs.simulator

-
-

Classes

- -
- - diff --git a/javadoc/jabs/simulator/package-summary.html b/javadoc/jabs/simulator/package-summary.html deleted file mode 100644 index 6081e8a2..00000000 --- a/javadoc/jabs/simulator/package-summary.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - -jabs.simulator (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.simulator

-
-
-
package jabs.simulator
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/package-tree.html b/javadoc/jabs/simulator/package-tree.html deleted file mode 100644 index fde4b051..00000000 --- a/javadoc/jabs/simulator/package-tree.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - -jabs.simulator Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.simulator

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/package-use.html b/javadoc/jabs/simulator/package-use.html deleted file mode 100644 index 6b383d3c..00000000 --- a/javadoc/jabs/simulator/package-use.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - -Uses of Package jabs.simulator (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.simulator

-
-
Packages that use jabs.simulator
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/randengine/RandomnessEngine.html b/javadoc/jabs/simulator/randengine/RandomnessEngine.html deleted file mode 100644 index 7306cb44..00000000 --- a/javadoc/jabs/simulator/randengine/RandomnessEngine.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - -RandomnessEngine (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class RandomnessEngine

-
-
Object -
BitsStreamGenerator -
MersenneTwister -
RandomnessEngine
-
-
-
-
-
-
All Implemented Interfaces:
-
Serializable, RandomGenerator
-
-
-
public class RandomnessEngine -extends MersenneTwister
-
-
See Also:
-
- -
-
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      RandomnessEngine

      -
      public RandomnessEngine(long seed)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      sampleSubset

      -
      public <E> List<E> sampleSubset(List<E> list, - int n)
      -
      -
    • -
    • -
      -

      sampleFromList

      -
      public <E> E sampleFromList(List<E> list)
      -
      -
    • -
    • -
      -

      sampleDistributionWithBins

      -
      public long sampleDistributionWithBins(double[] dist, - long[] bins)
      -
      -
    • -
    • -
      -

      sampleDistributionWithBins

      -
      public long sampleDistributionWithBins(List<Double> dist, - long[] bins)
      -
      -
    • -
    • -
      -

      sampleFromDistribution

      -
      public int sampleFromDistribution(double[] dist)
      -
      -
    • -
    • -
      -

      sampleInt

      -
      public int sampleInt(int max)
      -
      -
    • -
    • -
      -

      sampleDouble

      -
      public double sampleDouble(double max)
      -
      -
    • -
    • -
      -

      sampleExponentialDistribution

      -
      public double sampleExponentialDistribution(double averageTimeBetweenGenerations)
      -
      -
    • -
    • -
      -

      sampleParetoDistribution

      -
      public double sampleParetoDistribution(double scale, - double shape)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/javadoc/jabs/simulator/randengine/class-use/RandomnessEngine.html b/javadoc/jabs/simulator/randengine/class-use/RandomnessEngine.html deleted file mode 100644 index 9381bce8..00000000 --- a/javadoc/jabs/simulator/randengine/class-use/RandomnessEngine.html +++ /dev/null @@ -1,387 +0,0 @@ - - - - -Uses of Class jabs.simulator.randengine.RandomnessEngine (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
jabs.simulator.randengine.RandomnessEngine

-
-
Packages that use RandomnessEngine
- -
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/randengine/package-frame.html b/javadoc/jabs/simulator/randengine/package-frame.html deleted file mode 100644 index d23d29bf..00000000 --- a/javadoc/jabs/simulator/randengine/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -jabs.simulator.randengine (jabs 0.2.0 API) - - - - - -

jabs.simulator.randengine

-
-

Classes

- -
- - diff --git a/javadoc/jabs/simulator/randengine/package-summary.html b/javadoc/jabs/simulator/randengine/package-summary.html deleted file mode 100644 index b4106774..00000000 --- a/javadoc/jabs/simulator/randengine/package-summary.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - -jabs.simulator.randengine (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Package jabs.simulator.randengine

-
-
-
package jabs.simulator.randengine
-
- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/randengine/package-tree.html b/javadoc/jabs/simulator/randengine/package-tree.html deleted file mode 100644 index f05afb20..00000000 --- a/javadoc/jabs/simulator/randengine/package-tree.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - -jabs.simulator.randengine Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package jabs.simulator.randengine

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/javadoc/jabs/simulator/randengine/package-use.html b/javadoc/jabs/simulator/randengine/package-use.html deleted file mode 100644 index c545721d..00000000 --- a/javadoc/jabs/simulator/randengine/package-use.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - -Uses of Package jabs.simulator.randengine (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
jabs.simulator.randengine

-
-
Packages that use jabs.simulator.randengine
- -
- -
-
- -
-
- - diff --git a/javadoc/jquery-ui.overrides.css b/javadoc/jquery-ui.overrides.css deleted file mode 100644 index f89acb63..00000000 --- a/javadoc/jquery-ui.overrides.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -.ui-state-active, -.ui-widget-content .ui-state-active, -.ui-widget-header .ui-state-active, -a.ui-button:active, -.ui-button:active, -.ui-button.ui-state-active:hover { - /* Overrides the color of selection used in jQuery UI */ - background: #F8981D; -} diff --git a/javadoc/legal/ASSEMBLY_EXCEPTION b/javadoc/legal/ASSEMBLY_EXCEPTION deleted file mode 100644 index 065b8d90..00000000 --- a/javadoc/legal/ASSEMBLY_EXCEPTION +++ /dev/null @@ -1,27 +0,0 @@ - -OPENJDK ASSEMBLY EXCEPTION - -The OpenJDK source code made available by Oracle America, Inc. (Oracle) at -openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU -General Public License version 2 -only ("GPL2"), with the following clarification and special exception. - - Linking this OpenJDK Code statically or dynamically with other code - is making a combined work based on this library. Thus, the terms - and conditions of GPL2 cover the whole combination. - - As a special exception, Oracle gives you permission to link this - OpenJDK Code with certain code licensed by Oracle as indicated at - http://openjdk.java.net/legal/exception-modules-2007-05-08.html - ("Designated Exception Modules") to produce an executable, - regardless of the license terms of the Designated Exception Modules, - and to copy and distribute the resulting executable under GPL2, - provided that the Designated Exception Modules continue to be - governed by the licenses under which they were offered by Oracle. - -As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code -to build an executable that includes those portions of necessary code that -Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 -with the Classpath exception). If you modify or add to the OpenJDK code, -that new GPL2 code may still be combined with Designated Exception Modules -if the new code is made subject to this exception by its copyright holder. diff --git a/javadoc/legal/jquery.md b/javadoc/legal/jquery.md deleted file mode 100644 index 8054a34c..00000000 --- a/javadoc/legal/jquery.md +++ /dev/null @@ -1,72 +0,0 @@ -## jQuery v3.5.1 - -### jQuery License -``` -jQuery v 3.5.1 -Copyright JS Foundation and other contributors, https://js.foundation/ - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -****************************************** - -The jQuery JavaScript Library v3.5.1 also includes Sizzle.js - -Sizzle.js includes the following license: - -Copyright JS Foundation and other contributors, https://js.foundation/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/sizzle - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -All files located in the node_modules and external directories are -externally maintained libraries used by this software which have their -own licenses; we recommend you read them, as their terms may differ from -the terms above. - -********************* - -``` diff --git a/javadoc/legal/jqueryUI.md b/javadoc/legal/jqueryUI.md deleted file mode 100644 index 8031bdb5..00000000 --- a/javadoc/legal/jqueryUI.md +++ /dev/null @@ -1,49 +0,0 @@ -## jQuery UI v1.12.1 - -### jQuery UI License -``` -Copyright jQuery Foundation and other contributors, https://jquery.org/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/jquery-ui - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code contained within the demos directory. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -All files located in the node_modules and external directories are -externally maintained libraries used by this software which have their -own licenses; we recommend you read them, as their terms may differ from -the terms above. - -``` diff --git a/javadoc/member-search-index.js b/javadoc/member-search-index.js deleted file mode 100644 index 5f957f88..00000000 --- a/javadoc/member-search-index.js +++ /dev/null @@ -1 +0,0 @@ -memberSearchIndex = [{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"AbstractBlockchainP2PConnections(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"AbstractChainBasedConsensus(LocalBlockTree)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree)"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"AbstractConsensusAlgorithm()","u":"%3Cinit%3E()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"AbstractCSVLogger(Path)","u":"%3Cinit%3E(java.nio.file.Path)"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"AbstractCSVLogger(Writer)","u":"%3Cinit%3E(java.io.Writer)"},{"p":"jabs.consensus.algorithm","c":"AbstractDAGBasedConsensus","l":"AbstractDAGBasedConsensus(LocalBlockDAG)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockDAG)"},{"p":"jabs.log","c":"AbstractLogger","l":"AbstractLogger()","u":"%3Cinit%3E()"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"AbstractP2PConnections()","u":"%3Cinit%3E()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"AbstractPacketProcessor(Simulator, Network, RandomnessEngine, Node)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.Node)"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"AbstractPoissonProcess(Simulator, RandomnessEngine, double)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,double)"},{"p":"jabs.scenario","c":"AbstractScenario","l":"AbstractScenario(String, long, AbstractLogger)","u":"%3Cinit%3E(java.lang.String,long,jabs.log.AbstractLogger)"},{"p":"jabs.simulator.event","c":"AbstractTxPoissonProcess","l":"AbstractTxPoissonProcess(Simulator, RandomnessEngine, double)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,double)"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"acceptedBlocks"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"acceptedTxs"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"add(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"add(B)"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"addMiner(MinerNode)","u":"addMiner(jabs.network.node.nodes.MinerNode)"},{"p":"jabs.network.networks","c":"GlobalNetwork","l":"addNode(Node)","u":"addNode(jabs.network.node.nodes.Node)"},{"p":"jabs.network.networks","c":"Network","l":"addNode(Node)","u":"addNode(jabs.network.node.nodes.Node)"},{"p":"jabs.network.networks","c":"PBFTLocalLANNetwork","l":"addNode(Node)","u":"addNode(jabs.network.node.nodes.Node)"},{"p":"jabs.network.networks","c":"Network","l":"addNode(Node, NodeType)","u":"addNode(jabs.network.node.nodes.Node,NodeType)"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"addOutbound(Node)","u":"addOutbound(jabs.network.node.nodes.Node)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"addToDownLinkQueue(Packet)","u":"addToDownLinkQueue(jabs.network.message.Packet)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"addToLinkQueue(Packet, AbstractPacketProcessor)","u":"addToLinkQueue(jabs.network.message.Packet,jabs.simulator.event.AbstractPacketProcessor)"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"addToQueue(Packet)","u":"addToQueue(jabs.network.message.Packet)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"addToUpLinkQueue(Packet)","u":"addToUpLinkQueue(jabs.network.message.Packet)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"addVote(List, Node, HashMap>, HashMap>, HashMap>)","u":"addVote(java.util.List,jabs.network.node.nodes.Node,java.util.HashMap,java.util.HashMap,java.util.HashMap)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"alreadySeenBlocks"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"alreadySeenBlocks"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"alreadySeenTxs"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"alreadySeenTxs"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"alreadySeenVotes"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"alreadySeenVotes"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"alreadyUncledBlocks"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"areBlocksConnected(B, B)","u":"areBlocksConnected(B,B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"areBlocksConnected(B, B)","u":"areBlocksConnected(B,B)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"ASIA_PACIFIC"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"AUSTRALIA"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"averageBlockInterval"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"averageTimeBetweenGenerations"},{"p":"jabs.ledgerdata","c":"BasicData","l":"BasicData(int)","u":"%3Cinit%3E(int)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"BITCOIN_BLOCK_HEADER_SIZE"},{"p":"jabs.network.networks","c":"BlockFactory","l":"BITCOIN_BLOCK_SIZE_2020"},{"p":"jabs.network.networks","c":"BlockFactory","l":"BITCOIN_BLOCK_SIZE_2020_BINS"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"BITCOIN_HASH_POWER_DISTRIBUTION_2022"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022"},{"p":"jabs.network.networks","c":"BlockFactory","l":"BITCOIN_INV_SIZE"},{"p":"jabs.network.p2p","c":"BitcoinCoreP2P","l":"BITCOIN_MAX_CONNECTIONS"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"BITCOIN_MINER_REGION_DISTRIBUTION_2020"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"BITCOIN_NUM_MINERS_2022"},{"p":"jabs.network.p2p","c":"BitcoinCoreP2P","l":"BITCOIN_NUM_OUTBOUND_CONNECTIONS"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinNodeGlobalNetworkStats6Regions","l":"BITCOIN_REGION_DISTRIBUTION_2019"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"BITCOIN_TRANSACTION_GAS_DISTRIBUTION"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"BITCOIN_TRANSACTION_SIZE_BINS"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"BITCOIN_TRANSACTION_SIZE_DISTRIBUTION"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"BitcoinAllMessagesLogger(Path)","u":"%3Cinit%3E(java.nio.file.Path)"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"BitcoinAllMessagesLogger(Writer)","u":"%3Cinit%3E(java.io.Writer)"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlock","l":"BitcoinBlock(int, int, double, Node, BitcoinBlock, double)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.Node,jabs.ledgerdata.bitcoin.BitcoinBlock,double)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"bitcoinBlockGenerationInterval"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlockWithTx","l":"BitcoinBlockWithTx(int, double, BitcoinBlock, BitcoinMinerNode, Set, double)","u":"%3Cinit%3E(int,double,jabs.ledgerdata.bitcoin.BitcoinBlock,jabs.network.node.nodes.bitcoin.BitcoinMinerNode,java.util.Set,double)"},{"p":"jabs.network.p2p","c":"BitcoinCoreP2P","l":"BitcoinCoreP2P()","u":"%3Cinit%3E()"},{"p":"jabs.network.p2p","c":"BitcoinCoreP2P","l":"BitcoinCoreP2P(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"BitcoinGlobalNetworkScenario(String, long, AbstractLogger, long, double)","u":"%3Cinit%3E(java.lang.String,long,jabs.log.AbstractLogger,long,double)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"BitcoinGlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetworkWithoutTx","l":"BitcoinGlobalProofOfWorkNetworkWithoutTx(RandomnessEngine, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"BitcoinMinerNode(Simulator, Network, int, long, long, BitcoinBlock, long)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock,long)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"BitcoinMinerNode(Simulator, Network, int, long, long, BitcoinBlock, long, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock,long,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNodeWithoutTx","l":"BitcoinMinerNodeWithoutTx(Simulator, Network, int, long, long, BitcoinBlock, long)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock,long)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNodeWithoutTx","l":"BitcoinMinerNodeWithoutTx(Simulator, Network, int, long, long, long, BitcoinBlock, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"BitcoinNode(Simulator, Network, int, long, long, BitcoinBlock)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"BitcoinNode(Simulator, Network, int, long, long, BitcoinBlock, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.ledgerdata.bitcoin.BitcoinBlock,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinNodeGlobalNetworkStats6Regions","l":"BitcoinNodeGlobalNetworkStats6Regions(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"BitcoinProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinTx","l":"BitcoinTx(int)","u":"%3Cinit%3E(int)"},{"p":"jabs.consensus.blockchain","c":"LocalBlock","l":"block"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"block"},{"p":"jabs.ledgerdata","c":"Data.DataType","l":"BLOCK"},{"p":"jabs.ledgerdata","c":"Block","l":"Block(int, int, double, Node, List, int)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.Node,java.util.List,int)"},{"p":"jabs.consensus.algorithm","c":"TangleIOTA","l":"blockAccWeights"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"BlockDeliveryLogger(Path)","u":"%3Cinit%3E(java.nio.file.Path)"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"BlockDeliveryLogger(Writer)","u":"%3Cinit%3E(java.io.Writer)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"BlockFactory()","u":"%3Cinit%3E()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"blockFinalizationTimes"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"blockFinalizationTimes"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"blockFinalizationTimes"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"blockFinalizationTimes"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"BlockGenerationLogger(Path)","u":"%3Cinit%3E(java.nio.file.Path)"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"BlockGenerationLogger(Writer)","u":"%3Cinit%3E(java.io.Writer)"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"blockGenerationProcess"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"blockGenerationRate"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"blockGenerationRate"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"blockGenerationRate"},{"p":"jabs.simulator.event","c":"BlockMiningProcess","l":"BlockMiningProcess(Simulator, RandomnessEngine, double, MinerNode)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,double,jabs.network.node.nodes.MinerNode)"},{"p":"jabs.ledgerdata.tangle","c":"TangleBlock","l":"blockTx"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"bringUp()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"broadcastBlockInvMessage(BitcoinBlock)","u":"broadcastBlockInvMessage(jabs.ledgerdata.bitcoin.BitcoinBlock)"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"broadcastBlockInvMessage(TangleBlock)","u":"broadcastBlockInvMessage(jabs.ledgerdata.tangle.TangleBlock)"},{"p":"jabs.network.node.nodes","c":"Node","l":"broadcastMessage(Message)","u":"broadcastMessage(jabs.network.message.Message)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"broadcastNewBlockAndBlockHashes(EthereumBlock)","u":"broadcastNewBlockAndBlockHashes(jabs.ledgerdata.ethereum.EthereumBlock)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"broadcastTransaction(EthereumTx)","u":"broadcastTransaction(jabs.ledgerdata.ethereum.EthereumTx)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"broadcastTransaction(EthereumTx, Node)","u":"broadcastTransaction(jabs.ledgerdata.ethereum.EthereumTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"broadcastTxInvMessage(BitcoinTx)","u":"broadcastTxInvMessage(jabs.ledgerdata.bitcoin.BitcoinTx)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"CASPER_VOTE_SIZE"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGVote","l":"CASPER_VOTE_SIZE"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"CasperFFG(LocalBlockTree, int, int)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree,int,int)"},{"p":"jabs.network.networks","c":"CasperFFGGlobalBlockchainNetwork","l":"CasperFFGGlobalBlockchainNetwork(RandomnessEngine, int, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,int,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"CasperFFGLink(B, B)","u":"%3Cinit%3E(B,B)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGVote","l":"CasperFFGVote(Node, CasperFFGLink)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,jabs.ledgerdata.casper.CasperFFGLink)"},{"p":"jabs.log","c":"CasperFinalLogger","l":"CasperFinalLogger()","u":"%3Cinit%3E()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"checkpointSpace"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"checkpointSpace"},{"p":"jabs.network.networks","c":"CasperFFGGlobalBlockchainNetwork","l":"checkpointSpace"},{"p":"jabs.network.networks","c":"DAGsperGlobalBlockchainNetwork","l":"checkpointSpace"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"checkpointSpace"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"checkpointSpace"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"checkVotes(PBFTBlockVote, B, HashMap>, HashSet, PBFT.PBFTPhase)","u":"checkVotes(jabs.ledgerdata.pbft.PBFTBlockVote,B,java.util.HashMap,java.util.HashSet,jabs.consensus.algorithm.PBFT.PBFTPhase)"},{"p":"jabs.consensus.blockchain","c":"LocalBlock","l":"children"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"COMMIT"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"committedBlocks"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"COMMITTING"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"commitVotes"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"compareTo(AbstractPacketProcessor.TimedPacket)","u":"compareTo(jabs.simulator.event.AbstractPacketProcessor.TimedPacket)"},{"p":"jabs.ledgerdata","c":"Block","l":"compareTo(Block)","u":"compareTo(jabs.ledgerdata.Block)"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"compareTo(Simulator.ScheduledEvent)","u":"compareTo(jabs.simulator.Simulator.ScheduledEvent)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"connectNetwork(Network, RandomnessEngine)","u":"connectNetwork(jabs.network.networks.Network,jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"connectToNetwork(Network)","u":"connectToNetwork(jabs.network.networks.Network)"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"connectToNetwork(Network)","u":"connectToNetwork(jabs.network.networks.Network)"},{"p":"jabs.network.p2p","c":"PBFTP2P","l":"connectToNetwork(Network)","u":"connectToNetwork(jabs.network.networks.Network)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"consensusAlgorithm"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"consensusAlgorithm"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"contains(B)"},{"p":"jabs.network.node.nodes","c":"Node","l":"crash()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"createNetwork()"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"createNetwork()"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"createNetwork()"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"createNetwork()"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"createNetwork()"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"createNetwork()"},{"p":"jabs.network.networks","c":"CasperFFGGlobalBlockchainNetwork","l":"createNewEthereumCasperMiner(Simulator, Network, int, int, int)","u":"createNewEthereumCasperMiner(jabs.simulator.Simulator,jabs.network.networks.Network,int,int,int)"},{"p":"jabs.network.networks","c":"CasperFFGGlobalBlockchainNetwork","l":"createNewEthereumCasperNode(Simulator, Network, int, int, int)","u":"createNewEthereumCasperNode(jabs.simulator.Simulator,jabs.network.networks.Network,int,int,int)"},{"p":"jabs.network.networks","c":"DAGsperGlobalBlockchainNetwork","l":"createNewEthereumDAGsperMiner(Simulator, Network, int, int, int)","u":"createNewEthereumDAGsperMiner(jabs.simulator.Simulator,jabs.network.networks.Network,int,int,int)"},{"p":"jabs.network.networks","c":"DAGsperGlobalBlockchainNetwork","l":"createNewEthereumDAGsperNode(Simulator, Network, int, int, int)","u":"createNewEthereumDAGsperNode(jabs.simulator.Simulator,jabs.network.networks.Network,int,int,int)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"createNewEthereumMiner(Simulator, Network, int)","u":"createNewEthereumMiner(jabs.simulator.Simulator,jabs.network.networks.Network,int)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"createNewEthereumNode(Simulator, Network, int)","u":"createNewEthereumNode(jabs.simulator.Simulator,jabs.network.networks.Network,int)"},{"p":"jabs.network.networks","c":"TangleGlobalNetwork","l":"createNewIOTANode(Simulator, int)","u":"createNewIOTANode(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"PBFTLocalLANNetwork","l":"createNewPBFTNode(Simulator, int, int)","u":"createNewPBFTNode(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"createSampleBitcoinMinerNode(Simulator, Network, int, BitcoinBlock, long)","u":"createSampleBitcoinMinerNode(jabs.simulator.Simulator,jabs.network.networks.Network,int,jabs.ledgerdata.bitcoin.BitcoinBlock,long)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"createSampleBitcoinMinerNodeWithoutTx(Simulator, Network, int, BitcoinBlock, long)","u":"createSampleBitcoinMinerNodeWithoutTx(jabs.simulator.Simulator,jabs.network.networks.Network,int,jabs.ledgerdata.bitcoin.BitcoinBlock,long)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"createSampleBitcoinNode(Simulator, Network, int, BitcoinBlock)","u":"createSampleBitcoinNode(jabs.simulator.Simulator,jabs.network.networks.Network,int,jabs.ledgerdata.bitcoin.BitcoinBlock)"},{"p":"jabs.ledgerdata","c":"Block","l":"creationTime"},{"p":"jabs.ledgerdata","c":"Block","l":"creator"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvHeaderOutput()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvHeaderOutput()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvHeaderOutput()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvHeaderOutput()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvHeaderOutput()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvLineOutput()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvLineOutput()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvLineOutput()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvLineOutput()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvLineOutput()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvOutputConditionAfterEvent()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvOutputConditionAfterEvent()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvOutputConditionAfterEvent()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvOutputConditionAfterEvent()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvOutputConditionAfterEvent()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvOutputConditionBeforeEvent()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvOutputConditionBeforeEvent()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvOutputConditionBeforeEvent()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvOutputConditionBeforeEvent()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvOutputConditionBeforeEvent()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvOutputConditionFinal()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvOutputConditionFinal()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvOutputConditionFinal()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvOutputConditionFinal()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvOutputConditionFinal()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"csvStartingComment()"},{"p":"jabs.log","c":"BitcoinAllMessagesLogger","l":"csvStartingComment()"},{"p":"jabs.log","c":"BlockDeliveryLogger","l":"csvStartingComment()"},{"p":"jabs.log","c":"BlockGenerationLogger","l":"csvStartingComment()"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"csvStartingComment()"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"currentMainChainHead"},{"p":"jabs.simulator","c":"Simulator","l":"currentTime"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"currentViewNumber"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"DAGsper(LocalBlockTree, int, int)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree,int,int)"},{"p":"jabs.network.networks","c":"DAGsperGlobalBlockchainNetwork","l":"DAGsperGlobalBlockchainNetwork(RandomnessEngine, int, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,int,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"DAGsperVote(Node, int, int, B, HashSet)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,int,int,B,java.util.HashSet)"},{"p":"jabs.ledgerdata","c":"Hash","l":"data"},{"p":"jabs.network.message","c":"DataMessage","l":"data"},{"p":"jabs.ledgerdata","c":"Data","l":"Data(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.network.message","c":"DataMessage","l":"DataMessage(Data)","u":"%3Cinit%3E(jabs.ledgerdata.Data)"},{"p":"jabs.ledgerdata","c":"Data.DataType","l":"DataType()","u":"%3Cinit%3E()"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"DEFAULT_GHOST_WEIGHT"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlock","l":"difficulty"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlock","l":"difficulty"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"DOWNLOAD_BANDWIDTH_BIN"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"DOWNLOAD_BANDWIDTH_DISTRIBUTION"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"downloadBandwidth"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"enableFinalizationTimeRecords(DescriptiveStatistics)","u":"enableFinalizationTimeRecords(org.apache.commons.math3.stat.descriptive.DescriptiveStatistics)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"enableFinalizationTimeRecords(DescriptiveStatistics)","u":"enableFinalizationTimeRecords(org.apache.commons.math3.stat.descriptive.DescriptiveStatistics)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"ETHEREUM_BLOCK_HASH_SIZE"},{"p":"jabs.network.networks","c":"BlockFactory","l":"ETHEREUM_BLOCK_HEADER_SIZE"},{"p":"jabs.network.p2p","c":"EthereumGethP2P","l":"ETHEREUM_DIAL_RATIO"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"ETHEREUM_GENESIS_BLOCK"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"ETHEREUM_HASH_POWER_DISTRIBUTION"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"ETHEREUM_HASH_POWER_DISTRIBUTION_BIN"},{"p":"jabs.network.networks","c":"BlockFactory","l":"ETHEREUM_HELLO_MESSAGE_SIZE"},{"p":"jabs.network.p2p","c":"EthereumGethP2P","l":"ETHEREUM_MAX_PEER_COUNT"},{"p":"jabs.network.networks","c":"BlockFactory","l":"ETHEREUM_MIN_DIFFICULTY"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"ETHEREUM_MIN_DIFFICULTY"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"ETHEREUM_MINER_REGION_DISTRIBUTION_2020"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"ETHEREUM_NUM_MINERS_2020"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumNodeGlobalNetworkStats6Regions","l":"ETHEREUM_NUM_NODES_2020"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinNodeGlobalNetworkStats6Regions","l":"ETHEREUM_NUM_NODES_2022"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumNodeGlobalNetworkStats6Regions","l":"ETHEREUM_REGION_DISTRIBUTION_2020"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"ETHEREUM_TRANSACTION_GAS_BINS"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"ETHEREUM_TRANSACTION_SIZE_BINS"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"ETHEREUM_TRANSACTION_SIZE_DISTRIBUTION"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlock","l":"EthereumBlock(int, int, double, EthereumMinerNode, EthereumBlock, Set, long)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.ethereum.EthereumMinerNode,jabs.ledgerdata.ethereum.EthereumBlock,java.util.Set,long)"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlockWithTx","l":"EthereumBlockWithTx(int, double, EthereumMinerNode, EthereumBlock, Set, Set, long)","u":"%3Cinit%3E(int,double,jabs.network.node.nodes.ethereum.EthereumMinerNode,jabs.ledgerdata.ethereum.EthereumBlock,java.util.Set,java.util.Set,long)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumCasperMiner","l":"EthereumCasperMiner(Simulator, Network, int, long, long, long, int, int)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,long,int,int)"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"EthereumCasperNetworkScenario(long, AbstractLogger, int, int, int, long, double, double)","u":"%3Cinit%3E(long,jabs.log.AbstractLogger,int,int,int,long,double,double)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumCasperNode","l":"EthereumCasperNode(Simulator, Network, int, long, long, int, int)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,int,int)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumDAGsperMiner","l":"EthereumDAGsperMiner(Simulator, Network, int, long, long, long, int, int)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,long,int,int)"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"EthereumDAGsperNetworkScenario(long, AbstractLogger, int, int, int, double, double, double)","u":"%3Cinit%3E(long,jabs.log.AbstractLogger,int,int,int,double,double,double)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumDAGsperNode","l":"EthereumDAGsperNode(Simulator, Network, int, long, long, int, int)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,int,int)"},{"p":"jabs.network.p2p","c":"EthereumGethP2P","l":"EthereumGethP2P()","u":"%3Cinit%3E()"},{"p":"jabs.network.p2p","c":"EthereumGethP2P","l":"EthereumGethP2P(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"EthereumGlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"EthereumMinerNode(Simulator, Network, int, long, long, long)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,long)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"EthereumMinerNode(Simulator, Network, int, long, long, long, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,long,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"EthereumNode(Simulator, Network, int, long, long)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"EthereumNode(Simulator, Network, int, long, long, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumNodeGlobalNetworkStats6Regions","l":"EthereumNodeGlobalNetworkStats6Regions(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"EthereumProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumTx","l":"EthereumTx(int, long)","u":"%3Cinit%3E(int,long)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"EUROPE"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"event"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"event()"},{"p":"jabs.simulator","c":"Simulator","l":"eventQueue"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"execute()"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"execute()"},{"p":"jabs.simulator.event","c":"Event","l":"execute()"},{"p":"jabs.simulator.event","c":"PacketDeliveryEvent","l":"execute()"},{"p":"jabs.simulator","c":"Simulator","l":"executeNextEvent()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"finalizedBlocks"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"finalizedBlocks"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"finalizedTxs"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"finalizedTxs"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"finalLog()"},{"p":"jabs.log","c":"AbstractLogger","l":"finalLog()"},{"p":"jabs.log","c":"CasperFinalLogger","l":"finalLog()"},{"p":"jabs.network.message","c":"Packet","l":"from"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"fVotedBlocksInHeight"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"fVotesForBlock"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"fVotesInHeight"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumTx","l":"gas"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"generate()"},{"p":"jabs.simulator.event","c":"AbstractTxPoissonProcess","l":"generate()"},{"p":"jabs.simulator.event","c":"BlockMiningProcess","l":"generate()"},{"p":"jabs.simulator.event","c":"TxGenerationProcessRandomNetworkNode","l":"generate()"},{"p":"jabs.simulator.event","c":"TxGenerationProcessSingleNode","l":"generate()"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"generateAndSetNextEvent()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"generateNewBlock()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNodeWithoutTx","l":"generateNewBlock()"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"generateNewBlock()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"generateNewBlock()"},{"p":"jabs.network.node.nodes","c":"MinerNode","l":"generateNewBlock()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"generateNewTransaction()"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"generateNewTransaction()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"generateNewTransaction()"},{"p":"jabs.network.node.nodes","c":"Node","l":"generateNewTransaction()"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"generateNewTransaction()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"genesisBlock"},{"p":"jabs.network.networks","c":"BlockFactory","l":"GET_DATA_OVERHEAD"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getAllAncestors(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"getAllAncestors(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getAllAncestorsWithMinHeight(B, int)","u":"getAllAncestorsWithMinHeight(B,int)"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"getAllMiners()"},{"p":"jabs.network.networks","c":"Network","l":"getAllNodes()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getAllSuccessors(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"getAllSuccessors(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getAllSuccessorsWithMaxHeight(B, int)","u":"getAllSuccessorsWithMaxHeight(B,int)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"getAncestorOfHeight(B, int)","u":"getAncestorOfHeight(B,int)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getAncestorsWithHeight(B, int)","u":"getAncestorsWithHeight(B,int)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getBiconeBetweenBlocks(B, B)","u":"getBiconeBetweenBlocks(B,B)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"getBlock()"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"getCanonicalChainHead()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getChildlessBlocks()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getChildren(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"getCommonAncestor(B, B)","u":"getCommonAncestor(B,B)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"getConsensusAlgorithm()"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"getConsensusAlgorithm()"},{"p":"jabs.ledgerdata","c":"Block","l":"getCreationTime()"},{"p":"jabs.ledgerdata","c":"Block","l":"getCreator()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getCurrentPrimaryNumber()"},{"p":"jabs.simulator","c":"Simulator","l":"getCurrentTime()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getCurrentViewNumber()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getDanglingBlocks()"},{"p":"jabs.ledgerdata","c":"Hash","l":"getData()"},{"p":"jabs.network.message","c":"DataMessage","l":"getData()"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlock","l":"getDifficulty()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlock","l":"getDifficulty()"},{"p":"jabs.network.message","c":"Packet","l":"getFrom()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumTx","l":"getGas()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getGenesisBlock()"},{"p":"jabs.ledgerdata","c":"Data","l":"getHash()"},{"p":"jabs.network.message","c":"InvMessage","l":"getHash()"},{"p":"jabs.network.message","c":"RequestDataMessage","l":"getHash()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"getHashPower()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNodeWithoutTx","l":"getHashPower()"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"getHashPower()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"getHashPower()"},{"p":"jabs.network.node.nodes","c":"MinerNode","l":"getHashPower()"},{"p":"jabs.ledgerdata","c":"Block","l":"getHeight()"},{"p":"jabs.network.networks","c":"Network","l":"getLatency(Node, Node)","u":"getLatency(jabs.network.node.nodes.Node,jabs.network.node.nodes.Node)"},{"p":"jabs.network.networks.stats","c":"NetworkStats","l":"getLatency(R, R)","u":"getLatency(R,R)"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"getLatency(SingleNodeType, SingleNodeType)","u":"getLatency(jabs.network.networks.stats.lan.SingleNodeType,jabs.network.networks.stats.lan.SingleNodeType)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"getLatency(SixRegions, SixRegions)","u":"getLatency(jabs.network.networks.stats.sixglobalregions.SixRegions,jabs.network.networks.stats.sixglobalregions.SixRegions)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGVote","l":"getLink()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getLocalBlock(B)"},{"p":"jabs.consensus.algorithm","c":"AbstractDAGBasedConsensus","l":"getLocalBlockDAG()"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"getLocalBlockTree()"},{"p":"jabs.network.message","c":"Packet","l":"getMessage()"},{"p":"jabs.simulator.event","c":"BlockMiningProcess","l":"getMiner()"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"getMiner(int)"},{"p":"jabs.scenario","c":"AbstractScenario","l":"getName()"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"getNeighbors()"},{"p":"jabs.network.node.nodes","c":"Node","l":"getNetwork()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"getNetwork()"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"getNode()"},{"p":"jabs.network.networks","c":"Network","l":"getNode(int)"},{"p":"jabs.network.node.nodes","c":"Node","l":"getNodeNetworkInterface()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getNumAllParticipants()"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"getNumOfAcceptedBlocks()"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"getNumOfAcceptedBlocks()"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"getNumOfAcceptedTxs()"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"getNumOfAcceptedTxs()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"getNumOfFinalizedBlocks()"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"getNumOfFinalizedBlocks()"},{"p":"jabs.consensus.algorithm","c":"DeterministicFinalityConsensus","l":"getNumOfFinalizedBlocks()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getNumOfFinalizedBlocks()"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"getNumOfFinalizedBlocks()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"getNumOfFinalizedTxs()"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"getNumOfFinalizedTxs()"},{"p":"jabs.consensus.algorithm","c":"DeterministicFinalityConsensus","l":"getNumOfFinalizedTxs()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getNumOfFinalizedTxs()"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"getNumOfFinalizedTxs()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"getNumOfJustifiedBlocks()"},{"p":"jabs.network.node.nodes","c":"Node","l":"getP2pConnections()"},{"p":"jabs.ledgerdata","c":"SingleParentBlock","l":"getParent()"},{"p":"jabs.ledgerdata","c":"Block","l":"getParents()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"getPathBetween(B, B)","u":"getPathBetween(B,B)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"getPbftPhase()"},{"p":"jabs.network.networks","c":"Network","l":"getRandom()"},{"p":"jabs.network.networks","c":"Network","l":"getRandomNode()"},{"p":"jabs.network.node.nodes","c":"Node","l":"getSimulator()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"getSimulator()"},{"p":"jabs.ledgerdata","c":"BasicData","l":"getSize()"},{"p":"jabs.network.message","c":"Message","l":"getSize()"},{"p":"jabs.network.message","c":"Packet","l":"getSize()"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"getSuccessorsWithHeight(B, int)","u":"getSuccessorsWithHeight(B,int)"},{"p":"jabs.network.message","c":"Packet","l":"getTo()"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"getToBeFinalized()"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"getToBeJustified()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlockWithTx","l":"getTotalGas()"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlockWithTx","l":"getTxs()"},{"p":"jabs.ledgerdata","c":"BlockWithTx","l":"getTxs()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlockWithTx","l":"getTxs()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlock","l":"getUncles()"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"getValue()"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"getValue()"},{"p":"jabs.network.message","c":"VoteMessage","l":"getVote()"},{"p":"jabs.ledgerdata","c":"Vote","l":"getVoter()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"getVoteType()"},{"p":"jabs.ledgerdata.tangle","c":"TangleBlock","l":"getWeight()"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"ghost()"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"GhostProtocol(LocalBlockTree)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"GLOBAL_LATENCY_BY_REGION"},{"p":"jabs.network.networks","c":"GlobalNetwork","l":"GlobalNetwork(RandomnessEngine, NodeGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.NodeGlobalNetworkStats)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"GlobalNetworkStats6Region(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"GlobalProofOfWorkNetwork(RandomnessEngine, ProofOfWorkGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats)"},{"p":"jabs.ledgerdata","c":"Data","l":"hash"},{"p":"jabs.network.message","c":"InvMessage","l":"hash"},{"p":"jabs.ledgerdata","c":"Hash","l":"Hash(int, Data)","u":"%3Cinit%3E(int,jabs.ledgerdata.Data)"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"hashCode()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"hashCode()"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"hashCode()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"hashPower"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"hashPower"},{"p":"jabs.ledgerdata","c":"Block","l":"height"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"inbound"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"indirectlyFinalizedBlocks"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"indirectlyFinalizedBlocks"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"initialLog()"},{"p":"jabs.log","c":"AbstractLogger","l":"initialLog()"},{"p":"jabs.log","c":"CasperFinalLogger","l":"initialLog()"},{"p":"jabs.simulator","c":"Simulator","l":"insertedEvents"},{"p":"jabs.scenario","c":"AbstractScenario","l":"insertInitialEvents()"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"insertInitialEvents()"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"insertInitialEvents()"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"insertInitialEvents()"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"insertInitialEvents()"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"insertInitialEvents()"},{"p":"jabs.network.networks","c":"BlockFactory","l":"INV_MESSAGE_OVERHEAD"},{"p":"jabs.network.message","c":"InvMessage","l":"InvMessage(int, Hash)","u":"%3Cinit%3E(int,jabs.ledgerdata.Hash)"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","c":"IOTANodeDistribution6Region","l":"IOTA_NUM_NODES_2020"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","c":"IOTANodeDistribution6Region","l":"IOTA_REGION_DISTRIBUTION_2022"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"IOTANode(Simulator, Network, int, long, long, AbstractP2PConnections)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.network.p2p.AbstractP2PConnections)"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","c":"IOTANodeDistribution6Region","l":"IOTANodeDistribution6Region(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"isBlockConfirmed(B)"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"isBlockConfirmed(B)"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"isBlockFinalized(B)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"isBlockFinalized(B)"},{"p":"jabs.consensus.algorithm","c":"DeterministicFinalityConsensus","l":"isBlockFinalized(B)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"isBlockFinalized(B)"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"isBlockFinalized(B)"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"isBlockValid(B)"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"isBlockValid(B)"},{"p":"jabs.consensus.blockchain","c":"LocalBlock","l":"isConnectedToGenesis"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"isNetworkInterfaceDown()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"isQueueEmpty()"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"isTxConfirmed(T)"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"isTxConfirmed(T)"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"isTxFinalized(T)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"isTxFinalized(T)"},{"p":"jabs.consensus.algorithm","c":"DeterministicFinalityConsensus","l":"isTxFinalized(T)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"isTxFinalized(T)"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"isTxFinalized(T)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"JAPAN"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"justifiedBlocks"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"justifiedBlocks"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"jVotedBlocksInHeight"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"jVotesForBlock"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"jVotesInHeight"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"LAN_AVERAGE_BANDWIDTH"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"LAN_AVERAGE_LATENCY"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"LAN_NODE"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"LAN100MNetworkStats(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"LATENCY_PARETO_SHAPE"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"LATENCY_PARETO_SHAPE"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"latestCheckpoint"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"latestFinalizedHeight"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGVote","l":"link"},{"p":"jabs.consensus.blockchain","c":"LocalBlock","l":"LocalBlock(B)","u":"%3Cinit%3E(B)"},{"p":"jabs.consensus.algorithm","c":"AbstractDAGBasedConsensus","l":"localBlockDAG"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"localBlockDAG"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"LocalBlockDAG(B)","u":"%3Cinit%3E(B)"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"localBlockTree"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"localBlockTree"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"localBlockTree"},{"p":"jabs.consensus.blockchain","c":"LocalBlockTree","l":"LocalBlockTree(B)","u":"%3Cinit%3E(B)"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"logAfterEvent()"},{"p":"jabs.log","c":"AbstractLogger","l":"logAfterEvent()"},{"p":"jabs.log","c":"CasperFinalLogger","l":"logAfterEvent()"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"logBeforeEvent()"},{"p":"jabs.log","c":"AbstractLogger","l":"logBeforeEvent()"},{"p":"jabs.log","c":"CasperFinalLogger","l":"logBeforeEvent()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"logger"},{"p":"jabs.log","c":"AbstractCSVLogger","l":"loggerCSV"},{"p":"jabs.consensus.algorithm","c":"NakamotoConsensus","l":"longestChainLen"},{"p":"jabs","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"jabs","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"maxConnections"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"MAXIMUM_BLOCK_GAS"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"MAXIMUM_BLOCK_SIZE"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"memPool"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"memPool"},{"p":"jabs.network.message","c":"Packet","l":"message"},{"p":"jabs.network.message","c":"Message","l":"Message(int)","u":"%3Cinit%3E(int)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"messageReceivingProcess"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"messageSendingProcess"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"MIN_DAGSPER_VOTE_SIZE"},{"p":"jabs.simulator.event","c":"BlockMiningProcess","l":"miner"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"minerDistribution"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"miners"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"miningProcess"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"miningProcess"},{"p":"jabs.consensus.algorithm","c":"NakamotoConsensus","l":"NakamotoConsensus(LocalBlockTree)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree)"},{"p":"jabs.scenario","c":"AbstractScenario","l":"name"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"neighbors"},{"p":"jabs.network.node.nodes","c":"Node","l":"network"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"network"},{"p":"jabs.scenario","c":"AbstractScenario","l":"network"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"network"},{"p":"jabs.simulator.event","c":"TxGenerationProcessRandomNetworkNode","l":"network"},{"p":"jabs.network.networks","c":"Network","l":"Network(RandomnessEngine, NetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.NetworkStats)"},{"p":"jabs.network.networks","c":"NetworkBuilder","l":"NetworkBuilder()","u":"%3Cinit%3E()"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"networkInterfaceDown"},{"p":"jabs.network.networks","c":"Network","l":"networkStats"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote.VoteType","l":"NEW_VIEW"},{"p":"jabs.consensus.algorithm","c":"AbstractConsensusAlgorithm","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"ConsensusAlgorithm","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"NakamotoConsensus","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"newIncomingBlock(B)"},{"p":"jabs.consensus.algorithm","c":"TangleIOTA","l":"newIncomingBlock(TangleBlock)","u":"newIncomingBlock(jabs.ledgerdata.tangle.TangleBlock)"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"newIncomingVote(Vote)","u":"newIncomingVote(jabs.ledgerdata.Vote)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"newIncomingVote(Vote)","u":"newIncomingVote(jabs.ledgerdata.Vote)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"newIncomingVote(Vote)","u":"newIncomingVote(jabs.ledgerdata.Vote)"},{"p":"jabs.consensus.algorithm","c":"VotingBasedConsensus","l":"newIncomingVote(Vote)","u":"newIncomingVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"node"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"node"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"node"},{"p":"jabs.simulator.event","c":"AbstractTxPoissonProcess","l":"node"},{"p":"jabs.network.node.nodes","c":"Node","l":"Node(Simulator, Network, int, long, long, AbstractP2PConnections)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.network.p2p.AbstractP2PConnections)"},{"p":"jabs.network.networks","c":"GlobalNetwork","l":"nodeDistribution"},{"p":"jabs.network.node.nodes","c":"Node","l":"nodeID"},{"p":"jabs.network.node.nodes","c":"Node","l":"nodeNetworkInterface"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"NodeNetworkInterface(Simulator, Node, long, long)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.node.nodes.Node,long,long)"},{"p":"jabs.network.networks","c":"Network","l":"nodes"},{"p":"jabs.network.networks","c":"Network","l":"nodeTypes"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTMode","l":"NORMAL_MODE"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"NormalEthereumNetworkScenario(long, AbstractLogger, int, int, double, double, double)","u":"%3Cinit%3E(long,jabs.log.AbstractLogger,int,int,double,double,double)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"NORTH_AMERICA"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"numAllParticipants"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"number"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"number()"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"numberOfAlreadySeenBlocks()"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"numberOfAlreadySeenBlocks()"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"numNodes"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"numOfMiners"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"numOfMiners"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"numOfMiners"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"numOfNonMiners"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"numOfNonMiners"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"numOfNonMiners"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"numOfStakeholders"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"numOfStakeholders"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"numOutboundConnections"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"originOfGhost"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"outbound"},{"p":"jabs.network.node.nodes","c":"Node","l":"p2pConnections"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"packet"},{"p":"jabs.simulator.event","c":"PacketDeliveryEvent","l":"packet"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"packet()"},{"p":"jabs.network.message","c":"Packet","l":"Packet(Node, Node, Message)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,jabs.network.node.nodes.Node,jabs.network.message.Message)"},{"p":"jabs.simulator.event","c":"PacketDeliveryEvent","l":"PacketDeliveryEvent(Packet)","u":"%3Cinit%3E(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"PacketReceivingProcess","l":"PacketReceivingProcess(Simulator, Network, RandomnessEngine, Node)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.Node)"},{"p":"jabs.simulator.event","c":"PacketSendingProcess","l":"PacketSendingProcess(Simulator, Network, RandomnessEngine, Node)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.Node)"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"packetsQueue"},{"p":"jabs.ledgerdata","c":"Block","l":"parents"},{"p":"jabs.network.message","c":"RequestDataMessage","l":"payloadHash"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlock","l":"PBFT_BLOCK_HASH_SIZE"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"PBFT_GENESIS_BLOCK"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"PBFT_VOTE_SIZE_OVERHEAD"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"PBFT(Simulator, int, LocalBlockTree)","u":"%3Cinit%3E(jabs.simulator.Simulator,int,jabs.consensus.blockchain.LocalBlockTree)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlock","l":"PBFTBlock(int, int, double, Node, PBFTBlock)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.Node,jabs.ledgerdata.pbft.PBFTBlock)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"PBFTBlockVote(int, Node, B, PBFTBlockVote.VoteType)","u":"%3Cinit%3E(int,jabs.network.node.nodes.Node,B,jabs.ledgerdata.pbft.PBFTBlockVote.VoteType)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTCommitVote","l":"PBFTCommitVote(Node, B)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,B)"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"PBFTCSVLogger(Path)","u":"%3Cinit%3E(java.nio.file.Path)"},{"p":"jabs.log","c":"PBFTCSVLogger","l":"PBFTCSVLogger(Writer)","u":"%3Cinit%3E(java.io.Writer)"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"PBFTLANScenario(String, long, AbstractLogger, int, double)","u":"%3Cinit%3E(java.lang.String,long,jabs.log.AbstractLogger,int,double)"},{"p":"jabs.network.networks","c":"PBFTLocalLANNetwork","l":"PBFTLocalLANNetwork(RandomnessEngine)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"pbftMode"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTMode","l":"PBFTMode()","u":"%3Cinit%3E()"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"PBFTNode(Simulator, Network, int, long, long, int)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,int)"},{"p":"jabs.network.p2p","c":"PBFTP2P","l":"PBFTP2P()","u":"%3Cinit%3E()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"pbftPhase"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"PBFTPhase()","u":"%3Cinit%3E()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTPrepareVote","l":"PBFTPrepareVote(Node, B)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,B)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTPrePrepareVote","l":"PBFTPrePrepareVote(Node, B)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,B)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTTx","l":"PBFTTx(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote","l":"PBFTViewVote(Node, PBFTViewVote.VoteType)","u":"%3Cinit%3E(jabs.network.node.nodes.Node,jabs.ledgerdata.pbft.PBFTViewVote.VoteType)"},{"p":"jabs.simulator","c":"Simulator","l":"peekEvent()"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"peerBlockchainNode"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"PeerBlockchainNode(Simulator, Network, int, long, long, AbstractP2PConnections, AbstractChainBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.network.p2p.AbstractP2PConnections,jabs.consensus.algorithm.AbstractChainBasedConsensus)"},{"p":"jabs.consensus.algorithm","c":"AbstractDAGBasedConsensus","l":"peerDLTNode"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"PeerDLTNode(Simulator, Network, int, long, long, AbstractP2PConnections, AbstractDAGBasedConsensus)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,int,long,long,jabs.network.p2p.AbstractP2PConnections,jabs.consensus.algorithm.AbstractDAGBasedConsensus)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator)","u":"populateNetwork(jabs.simulator.Simulator)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator)","u":"populateNetwork(jabs.simulator.Simulator)"},{"p":"jabs.network.networks","c":"Network","l":"populateNetwork(Simulator)","u":"populateNetwork(jabs.simulator.Simulator)"},{"p":"jabs.network.networks","c":"PBFTLocalLANNetwork","l":"populateNetwork(Simulator)","u":"populateNetwork(jabs.simulator.Simulator)"},{"p":"jabs.network.networks","c":"TangleGlobalNetwork","l":"populateNetwork(Simulator)","u":"populateNetwork(jabs.simulator.Simulator)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, double)","u":"populateNetwork(jabs.simulator.Simulator,double)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetworkWithoutTx","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"Network","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"PBFTLocalLANNetwork","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"TangleGlobalNetwork","l":"populateNetwork(Simulator, int)","u":"populateNetwork(jabs.simulator.Simulator,int)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetworkWithoutTx","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"CasperFFGGlobalBlockchainNetwork","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"DAGsperGlobalBlockchainNetwork","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"EthereumGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int, int)","u":"populateNetwork(jabs.simulator.Simulator,int,int)"},{"p":"jabs.network.networks","c":"BitcoinGlobalProofOfWorkNetwork","l":"populateNetwork(Simulator, int, int, double)","u":"populateNetwork(jabs.simulator.Simulator,int,int,double)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"PRE_PREPARE"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"PRE_PREPARING"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"PREPARE"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"preparedBlocks"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"prepareVotes"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"PREPARING"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"previousFVotes"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"previousJVotes"},{"p":"jabs.network.node.nodes","c":"Node","l":"processIncomingPacket(Packet)","u":"processIncomingPacket(jabs.network.message.Packet)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"processIncomingPacket(Packet)","u":"processIncomingPacket(jabs.network.message.Packet)"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"processIncomingPacket(Packet)","u":"processIncomingPacket(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"processingTime(Packet)","u":"processingTime(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"PacketReceivingProcess","l":"processingTime(Packet)","u":"processingTime(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"PacketSendingProcess","l":"processingTime(Packet)","u":"processingTime(jabs.network.message.Packet)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"processNewBlock(B)"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"processNewBlock(B)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"processNewBlock(BitcoinBlock)","u":"processNewBlock(jabs.ledgerdata.bitcoin.BitcoinBlock)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"processNewBlock(EthereumBlock)","u":"processNewBlock(jabs.ledgerdata.ethereum.EthereumBlock)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"processNewBlock(EthereumBlock)","u":"processNewBlock(jabs.ledgerdata.ethereum.EthereumBlock)"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"processNewBlock(PBFTBlock)","u":"processNewBlock(jabs.ledgerdata.pbft.PBFTBlock)"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"processNewBlock(TangleBlock)","u":"processNewBlock(jabs.ledgerdata.tangle.TangleBlock)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"processNewTx(BitcoinTx, Node)","u":"processNewTx(jabs.ledgerdata.bitcoin.BitcoinTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"processNewTx(EthereumTx, Node)","u":"processNewTx(jabs.ledgerdata.ethereum.EthereumTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"processNewTx(EthereumTx, Node)","u":"processNewTx(jabs.ledgerdata.ethereum.EthereumTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"processNewTx(PBFTTx, Node)","u":"processNewTx(jabs.ledgerdata.pbft.PBFTTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"processNewTx(T, Node)","u":"processNewTx(T,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"processNewTx(TangleTx, Node)","u":"processNewTx(jabs.ledgerdata.tangle.TangleTx,jabs.network.node.nodes.Node)"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinNode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumNode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node.nodes.pbft","c":"PBFTNode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node.nodes","c":"PeerBlockchainNode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.network.node.nodes","c":"PeerDLTNode","l":"processNewVote(Vote)","u":"processNewVote(jabs.ledgerdata.Vote)"},{"p":"jabs.scenario","c":"AbstractScenario","l":"progressMessageIntervals"},{"p":"jabs.simulator","c":"Simulator","l":"putEvent(Event, double)","u":"putEvent(jabs.simulator.event.Event,double)"},{"p":"jabs.network.networks","c":"Network","l":"randomnessEngine"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"randomnessEngine"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"randomnessEngine"},{"p":"jabs.scenario","c":"AbstractScenario","l":"randomnessEngine"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"randomnessEngine"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"randomnessEngine"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"RandomnessEngine(long)","u":"%3Cinit%3E(long)"},{"p":"jabs.simulator","c":"Simulator","l":"removeEvent(Simulator.ScheduledEvent)","u":"removeEvent(jabs.simulator.Simulator.ScheduledEvent)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"removePreviouslyVotedHeights(HashSet, List, HashMap)","u":"removePreviouslyVotedHeights(java.util.HashSet,java.util.List,java.util.HashMap)"},{"p":"jabs.network.p2p","c":"AbstractBlockchainP2PConnections","l":"requestConnection(Node)","u":"requestConnection(jabs.network.node.nodes.Node)"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"requestConnection(Node)","u":"requestConnection(jabs.network.node.nodes.Node)"},{"p":"jabs.network.p2p","c":"PBFTP2P","l":"requestConnection(Node)","u":"requestConnection(jabs.network.node.nodes.Node)"},{"p":"jabs.network.message","c":"RequestDataMessage","l":"RequestDataMessage(Hash)","u":"%3Cinit%3E(jabs.ledgerdata.Hash)"},{"p":"jabs.simulator","c":"Simulator","l":"reset()"},{"p":"jabs.network.node.nodes","c":"Node","l":"restore()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"run()"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"sampleBandwidthByRegion(SixRegions, Map>, long[])","u":"sampleBandwidthByRegion(jabs.network.networks.stats.sixglobalregions.SixRegions,java.util.Map,long[])"},{"p":"jabs.network.networks","c":"BlockFactory","l":"sampleBitcoinBlock(Simulator, RandomnessEngine, BitcoinMinerNode, BitcoinBlock, double)","u":"sampleBitcoinBlock(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.bitcoin.BitcoinMinerNode,jabs.ledgerdata.bitcoin.BitcoinBlock,double)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"sampleBitcoinBlockSize(RandomnessEngine)","u":"sampleBitcoinBlockSize(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"sampleBitcoinTransaction(RandomnessEngine)","u":"sampleBitcoinTransaction(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleDistributionWithBins(double[], long[])","u":"sampleDistributionWithBins(double[],long[])"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleDistributionWithBins(List, long[])","u":"sampleDistributionWithBins(java.util.List,long[])"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleDouble(double)"},{"p":"jabs.network.networks","c":"Network","l":"sampleDownloadBandwidth(NodeType)"},{"p":"jabs.network.networks.stats","c":"NetworkStats","l":"sampleDownloadBandwidth(R)"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"sampleDownloadBandwidth(SingleNodeType)","u":"sampleDownloadBandwidth(jabs.network.networks.stats.lan.SingleNodeType)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"sampleDownloadBandwidth(SixRegions)","u":"sampleDownloadBandwidth(jabs.network.networks.stats.sixglobalregions.SixRegions)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"sampleEthereumBlock(Simulator, RandomnessEngine, EthereumMinerNode, EthereumBlock, Set)","u":"sampleEthereumBlock(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.ethereum.EthereumMinerNode,jabs.ledgerdata.ethereum.EthereumBlock,java.util.Set)"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"sampleEthereumTransaction(RandomnessEngine)","u":"sampleEthereumTransaction(jabs.simulator.randengine.RandomnessEngine)"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleExponentialDistribution(double)"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleFromDistribution(double[])"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleFromList(List)","u":"sampleFromList(java.util.List)"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"sampleHashPower()"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleInt(int)"},{"p":"jabs.network.networks.stats","c":"MinerGlobalRegionDistribution","l":"sampleMinerHashPower()"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"sampleMinerHashPower()"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"sampleMinerHashPower()"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"sampleMinerRegion()"},{"p":"jabs.network.networks.stats","c":"MinerGlobalRegionDistribution","l":"sampleMinerRegion()"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"sampleMinerRegion()"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"sampleMinerRegion()"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleParetoDistribution(double, double)","u":"sampleParetoDistribution(double,double)"},{"p":"jabs.network.networks","c":"BlockFactory","l":"samplePBFTBlock(Simulator, RandomnessEngine, PBFTNode, PBFTBlock)","u":"samplePBFTBlock(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.pbft.PBFTNode,jabs.ledgerdata.pbft.PBFTBlock)"},{"p":"jabs.network.networks","c":"GlobalNetwork","l":"sampleRegion()"},{"p":"jabs.network.networks.stats","c":"NodeGlobalRegionDistribution","l":"sampleRegion()"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinNodeGlobalNetworkStats6Regions","l":"sampleRegion()"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumNodeGlobalNetworkStats6Regions","l":"sampleRegion()"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","c":"IOTANodeDistribution6Region","l":"sampleRegion()"},{"p":"jabs.network.networks","c":"TangleGlobalNetwork","l":"sampleRegion()"},{"p":"jabs.simulator.randengine","c":"RandomnessEngine","l":"sampleSubset(List, int)","u":"sampleSubset(java.util.List,int)"},{"p":"jabs.network.networks","c":"Network","l":"sampleUploadBandwidth(NodeType)"},{"p":"jabs.network.networks.stats","c":"NetworkStats","l":"sampleUploadBandwidth(R)"},{"p":"jabs.network.networks.stats.lan","c":"LAN100MNetworkStats","l":"sampleUploadBandwidth(SingleNodeType)","u":"sampleUploadBandwidth(jabs.network.networks.stats.lan.SingleNodeType)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"sampleUploadBandwidth(SixRegions)","u":"sampleUploadBandwidth(jabs.network.networks.stats.sixglobalregions.SixRegions)"},{"p":"jabs.log","c":"AbstractLogger","l":"scenario"},{"p":"jabs.log","c":"CasperFinalLogger","l":"scenario"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"ScheduledEvent(Event, double, long)","u":"%3Cinit%3E(jabs.simulator.event.Event,double,long)"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"sendPacketToNextProcess(Packet)","u":"sendPacketToNextProcess(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"PacketReceivingProcess","l":"sendPacketToNextProcess(Packet)","u":"sendPacketToNextProcess(jabs.network.message.Packet)"},{"p":"jabs.simulator.event","c":"PacketSendingProcess","l":"sendPacketToNextProcess(Packet)","u":"sendPacketToNextProcess(jabs.network.message.Packet)"},{"p":"jabs.network.p2p","c":"AbstractP2PConnections","l":"setNode(Node)","u":"setNode(jabs.network.node.nodes.Node)"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"setNode(PeerBlockchainNode)","u":"setNode(jabs.network.node.nodes.PeerBlockchainNode)"},{"p":"jabs.consensus.algorithm","c":"AbstractDAGBasedConsensus","l":"setNode(PeerDLTNode)","u":"setNode(jabs.network.node.nodes.PeerDLTNode)"},{"p":"jabs.scenario","c":"AbstractScenario","l":"setProgressMessageIntervals(long)"},{"p":"jabs.log","c":"AbstractLogger","l":"setScenario(AbstractScenario)","u":"setScenario(jabs.scenario.AbstractScenario)"},{"p":"jabs.log","c":"CasperFinalLogger","l":"setScenario(AbstractScenario)","u":"setScenario(jabs.scenario.AbstractScenario)"},{"p":"jabs.config","c":"SimulationConfig","l":"SimulationConfig()","u":"%3Cinit%3E()"},{"p":"jabs.scenario","c":"AbstractScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"simulationStopCondition()"},{"p":"jabs.scenario","c":"BitcoinGlobalNetworkScenario","l":"simulationStopTime"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"simulationStopTime"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"simulationStopTime"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"simulationStopTime"},{"p":"jabs.scenario","c":"PBFTLANScenario","l":"simulationStopTime"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"simulationTime"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"simulationTime"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"simulationTime"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"simulator"},{"p":"jabs.network.node.nodes","c":"Node","l":"simulator"},{"p":"jabs.scenario","c":"AbstractScenario","l":"simulator"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor","l":"simulator"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"simulator"},{"p":"jabs.simulator","c":"Simulator","l":"Simulator()","u":"%3Cinit%3E()"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"SingleNodeType(int)","u":"%3Cinit%3E(int)"},{"p":"jabs.ledgerdata","c":"SingleParentBlock","l":"SingleParentBlock(int, int, double, Node, B, int)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.Node,B,int)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"SixRegions(int)","u":"%3Cinit%3E(int)"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"sixRegionsValues"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"sixRegionsValues"},{"p":"jabs.ledgerdata","c":"BasicData","l":"size"},{"p":"jabs.network.message","c":"Message","l":"size"},{"p":"jabs.network.message","c":"Packet","l":"size"},{"p":"jabs.consensus.blockchain","c":"LocalBlockDAG","l":"size()"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"SOUTH_AMERICA"},{"p":"jabs.network.networks","c":"GlobalProofOfWorkNetwork","l":"startAllMiningProcesses()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"startMining()"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"startMining()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"startMining()"},{"p":"jabs.network.node.nodes","c":"MinerNode","l":"startMining()"},{"p":"jabs.network.node.nodes.bitcoin","c":"BitcoinMinerNode","l":"stopMining()"},{"p":"jabs.network.node.nodes.ethereum","c":"EthereumMinerNode","l":"stopMining()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"stopMining()"},{"p":"jabs.network.node.nodes","c":"MinerNode","l":"stopMining()"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"takeDown()"},{"p":"jabs.network.node.nodes.iota","c":"IOTANode","l":"TANGLE_GENESIS_BLOCK"},{"p":"jabs.ledgerdata.tangle","c":"TangleBlock","l":"TangleBlock(int, int, double, Node, List, int, TangleTx, int)","u":"%3Cinit%3E(int,int,double,jabs.network.node.nodes.Node,java.util.List,int,jabs.ledgerdata.tangle.TangleTx,int)"},{"p":"jabs.network.networks","c":"TangleGlobalNetwork","l":"TangleGlobalNetwork(RandomnessEngine, NodeGlobalNetworkStats)","u":"%3Cinit%3E(jabs.simulator.randengine.RandomnessEngine,jabs.network.networks.stats.NodeGlobalNetworkStats)"},{"p":"jabs.consensus.algorithm","c":"TangleIOTA","l":"TangleIOTA(LocalBlockDAG)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockDAG)"},{"p":"jabs.ledgerdata.tangle","c":"TangleTx","l":"TangleTx(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.simulator","c":"Simulator","l":"thereIsMoreEvents()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"time"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"time"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"time()"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"time()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"TimedPacket(Packet, double)","u":"%3Cinit%3E(jabs.network.message.Packet,double)"},{"p":"jabs.simulator.event","c":"AbstractPoissonProcess","l":"timeToNextGeneration()"},{"p":"jabs.network.message","c":"Packet","l":"to"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"toBeFinalized"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"toBeFinalizedHeight"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"toBeJustified"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"toBeJustified"},{"p":"jabs.ledgerdata.casper","c":"CasperFFGLink","l":"toString()"},{"p":"jabs.simulator.event","c":"AbstractPacketProcessor.TimedPacket","l":"toString()"},{"p":"jabs.simulator","c":"Simulator.ScheduledEvent","l":"toString()"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlockWithTx","l":"totalGas"},{"p":"jabs.network.networks.stats","c":"MinerGlobalRegionDistribution","l":"totalNumberOfMiners()"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinProofOfWorkGlobalNetworkStats6Regions","l":"totalNumberOfMiners()"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumProofOfWorkGlobalNetworkStats6Regions","l":"totalNumberOfMiners()"},{"p":"jabs.network.networks.stats","c":"NodeGlobalRegionDistribution","l":"totalNumberOfNodes()"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","c":"BitcoinNodeGlobalNetworkStats6Regions","l":"totalNumberOfNodes()"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","c":"EthereumNodeGlobalNetworkStats6Regions","l":"totalNumberOfNodes()"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","c":"IOTANodeDistribution6Region","l":"totalNumberOfNodes()"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"totalVoteMassageTraffic"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"totalVoteMassageTraffic"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"totalWeights"},{"p":"jabs.network.networks","c":"TransactionFactory","l":"TransactionFactory()","u":"%3Cinit%3E()"},{"p":"jabs.ledgerdata","c":"Data.DataType","l":"TX"},{"p":"jabs.ledgerdata","c":"Tx","l":"Tx(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"jabs.simulator.event","c":"TxGenerationProcessRandomNetworkNode","l":"TxGenerationProcessRandomNetworkNode(Simulator, Network, RandomnessEngine, double)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.network.networks.Network,jabs.simulator.randengine.RandomnessEngine,double)"},{"p":"jabs.simulator.event","c":"TxGenerationProcessSingleNode","l":"TxGenerationProcessSingleNode(Simulator, RandomnessEngine, Node, double)","u":"%3Cinit%3E(jabs.simulator.Simulator,jabs.simulator.randengine.RandomnessEngine,jabs.network.node.nodes.Node,double)"},{"p":"jabs.scenario","c":"EthereumCasperNetworkScenario","l":"txGenerationRate"},{"p":"jabs.scenario","c":"EthereumDAGsperNetworkScenario","l":"txGenerationRate"},{"p":"jabs.scenario","c":"NormalEthereumNetworkScenario","l":"txGenerationRate"},{"p":"jabs.ledgerdata.bitcoin","c":"BitcoinBlockWithTx","l":"Txs"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlockWithTx","l":"Txs"},{"p":"jabs.ledgerdata.dagsper","c":"DAGsperVote","l":"unaffectedHeights"},{"p":"jabs.ledgerdata.ethereum","c":"EthereumBlock","l":"uncles"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"unfinalizableHeights"},{"p":"jabs.consensus.algorithm","c":"AbstractChainBasedConsensus","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"GhostProtocol","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"NakamotoConsensus","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"PBFT","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"updateChain()"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"updateFinalizedBlocks(B)"},{"p":"jabs.consensus.algorithm","c":"DAGsper","l":"updateFinalizedBlocks(B)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"UPLOAD_BANDWIDTH_BIN"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"GlobalNetworkStats6Region","l":"UPLOAD_BANDWIDTH_DISTRIBUTION"},{"p":"jabs.network.node","c":"NodeNetworkInterface","l":"uploadBandwidth"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"value"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"value"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTMode","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.ledgerdata","c":"Data.DataType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote.VoteType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTMode","l":"values()"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTPhase","l":"values()"},{"p":"jabs.ledgerdata","c":"Data.DataType","l":"values()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"values()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote.VoteType","l":"values()"},{"p":"jabs.network.networks.stats.lan","c":"SingleNodeType","l":"values()"},{"p":"jabs.network.networks.stats.sixglobalregions","c":"SixRegions","l":"values()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote.VoteType","l":"VIEW_CHANGE"},{"p":"jabs.consensus.algorithm","c":"PBFT.PBFTMode","l":"VIEW_CHANGE_MODE"},{"p":"jabs.network.message","c":"VoteMessage","l":"vote"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote","l":"VOTE_SIZE"},{"p":"jabs.ledgerdata","c":"Vote","l":"Vote(int, Node)","u":"%3Cinit%3E(int,jabs.network.node.nodes.Node)"},{"p":"jabs.network.message","c":"VoteMessage","l":"VoteMessage(Vote)","u":"%3Cinit%3E(jabs.ledgerdata.Vote)"},{"p":"jabs.ledgerdata","c":"Vote","l":"voter"},{"p":"jabs.consensus.algorithm","c":"CasperFFG","l":"votes"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote","l":"voteType"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote","l":"voteType"},{"p":"jabs.ledgerdata.pbft","c":"PBFTBlockVote.VoteType","l":"VoteType()","u":"%3Cinit%3E()"},{"p":"jabs.ledgerdata.pbft","c":"PBFTViewVote.VoteType","l":"VoteType()","u":"%3Cinit%3E()"},{"p":"jabs.ledgerdata.tangle","c":"TangleBlock","l":"weight"},{"p":"jabs.consensus.algorithm","c":"Xolph","l":"Xolph(LocalBlockTree)","u":"%3Cinit%3E(jabs.consensus.blockchain.LocalBlockTree)"}];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/module-search-index.js b/javadoc/module-search-index.js deleted file mode 100644 index 0d59754f..00000000 --- a/javadoc/module-search-index.js +++ /dev/null @@ -1 +0,0 @@ -moduleSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/overview-frame.html b/javadoc/overview-frame.html deleted file mode 100644 index f6af0810..00000000 --- a/javadoc/overview-frame.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -Overview List (jabs 0.2.0 API) - - - - - - - -

 

- - diff --git a/javadoc/overview-summary.html b/javadoc/overview-summary.html deleted file mode 100644 index 61f61aaf..00000000 --- a/javadoc/overview-summary.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - -jabs 0.2.0 API - - - - - - - - - - - -
- -

index.html

-
- - diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html deleted file mode 100644 index 99093ce0..00000000 --- a/javadoc/overview-tree.html +++ /dev/null @@ -1,400 +0,0 @@ - - - - -Class Hierarchy (jabs 0.2.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
-

Enum Class Hierarchy

- -
-
-
-
- -
-
-
- - diff --git a/javadoc/package-list b/javadoc/package-list deleted file mode 100644 index 87d678f2..00000000 --- a/javadoc/package-list +++ /dev/null @@ -1,23 +0,0 @@ -jabs -jabs.config -jabs.consensus.algorithm -jabs.consensus.blockchain -jabs.ledgerdata -jabs.ledgerdata.bitcoin -jabs.ledgerdata.casper -jabs.ledgerdata.dagsper -jabs.ledgerdata.ethereum -jabs.ledgerdata.pbft -jabs.log -jabs.network.message -jabs.network.networks -jabs.network.node -jabs.network.node.nodes -jabs.network.node.nodes.bitcoin -jabs.network.node.nodes.ethereum -jabs.network.node.nodes.pbft -jabs.network.p2p -jabs.scenario -jabs.simulator -jabs.simulator.event -jabs.simulator.randengine diff --git a/javadoc/package-search-index.js b/javadoc/package-search-index.js deleted file mode 100644 index bd67541d..00000000 --- a/javadoc/package-search-index.js +++ /dev/null @@ -1 +0,0 @@ -packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"jabs"},{"l":"jabs.config"},{"l":"jabs.consensus.algorithm"},{"l":"jabs.consensus.blockchain"},{"l":"jabs.ledgerdata"},{"l":"jabs.ledgerdata.bitcoin"},{"l":"jabs.ledgerdata.casper"},{"l":"jabs.ledgerdata.dagsper"},{"l":"jabs.ledgerdata.ethereum"},{"l":"jabs.ledgerdata.pbft"},{"l":"jabs.ledgerdata.tangle"},{"l":"jabs.log"},{"l":"jabs.network.message"},{"l":"jabs.network.networks"},{"l":"jabs.network.networks.stats"},{"l":"jabs.network.networks.stats.lan"},{"l":"jabs.network.networks.stats.sixglobalregions"},{"l":"jabs.network.networks.stats.sixglobalregions.bitcoin"},{"l":"jabs.network.networks.stats.sixglobalregions.ethereum"},{"l":"jabs.network.networks.stats.sixglobalregions.iota"},{"l":"jabs.network.node"},{"l":"jabs.network.node.nodes"},{"l":"jabs.network.node.nodes.bitcoin"},{"l":"jabs.network.node.nodes.ethereum"},{"l":"jabs.network.node.nodes.iota"},{"l":"jabs.network.node.nodes.pbft"},{"l":"jabs.network.p2p"},{"l":"jabs.scenario"},{"l":"jabs.simulator"},{"l":"jabs.simulator.event"},{"l":"jabs.simulator.randengine"}];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/resources/glass.png b/javadoc/resources/glass.png deleted file mode 100644 index a7f591f4..00000000 Binary files a/javadoc/resources/glass.png and /dev/null differ diff --git a/javadoc/resources/x.png b/javadoc/resources/x.png deleted file mode 100644 index 30548a75..00000000 Binary files a/javadoc/resources/x.png and /dev/null differ diff --git a/javadoc/script-dir/external/jquery/jquery.js b/javadoc/script-dir/external/jquery/jquery.js deleted file mode 100644 index 5b16efa1..00000000 --- a/javadoc/script-dir/external/jquery/jquery.js +++ /dev/null @@ -1,10598 +0,0 @@ -/*! - * jQuery JavaScript Library v3.4.1 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2019-05-01T21:04Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var document = window.document; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var concat = arr.concat; - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - -var isFunction = function isFunction( obj ) { - - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - return typeof obj === "function" && typeof obj.nodeType !== "number"; - }; - - -var isWindow = function isWindow( obj ) { - return obj != null && obj === obj.window; - }; - - - - - var preservedScriptAttributes = { - type: true, - src: true, - nonce: true, - noModule: true - }; - - function DOMEval( code, node, doc ) { - doc = doc || document; - - var i, val, - script = doc.createElement( "script" ); - - script.text = code; - if ( node ) { - for ( i in preservedScriptAttributes ) { - - // Support: Firefox 64+, Edge 18+ - // Some browsers don't support the "nonce" property on scripts. - // On the other hand, just using `getAttribute` is not enough as - // the `nonce` attribute is reset to an empty string whenever it - // becomes browsing-context connected. - // See https://github.com/whatwg/html/issues/2369 - // See https://html.spec.whatwg.org/#nonce-attributes - // The `node.getAttribute` check was added for the sake of - // `jQuery.globalEval` so that it can fake a nonce-containing node - // via an object. - val = node[ i ] || node.getAttribute && node.getAttribute( i ); - if ( val ) { - script.setAttribute( i, val ); - } - } - } - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - - -function toType( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; -} -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.4.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android <=4.0 only - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - copy = options[ name ]; - - // Prevent Object.prototype pollution - // Prevent never-ending loop - if ( name === "__proto__" || target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - src = target[ name ]; - - // Ensure proper type for the source value - if ( copyIsArray && !Array.isArray( src ) ) { - clone = []; - } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { - clone = {}; - } else { - clone = src; - } - copyIsArray = false; - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - // Evaluates a script in a global context - globalEval: function( code, options ) { - DOMEval( code, { nonce: options && options.nonce } ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // Support: Android <=4.0 only - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), -function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -} ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = toType( obj ); - - if ( isFunction( obj ) || isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.4 - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://js.foundation/ - * - * Date: 2019-04-08 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - nonnativeSelectorCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - rdescend = new RegExp( whitespace + "|>" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rhtml = /HTML$/i, - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - inDisabledFieldset = addCombinator( - function( elem ) { - return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - - // ID selector - if ( (m = match[1]) ) { - - // Document context - if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !nonnativeSelectorCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) && - - // Support: IE 8 only - // Exclude object elements - (nodeType !== 1 || context.nodeName.toLowerCase() !== "object") ) { - - newSelector = selector; - newContext = context; - - // qSA considers elements outside a scoping root when evaluating child or - // descendant combinators, which is not what we want. - // In such cases, we work around the behavior by prefixing every selector in the - // list with an ID selector referencing the scope context. - // Thanks to Andrew Dupont for this technique. - if ( nodeType === 1 && rdescend.test( selector ) ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", (nid = expando) ); - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[i] = "#" + nid + " " + toSelector( groups[i] ); - } - newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - } - - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - nonnativeSelectorCache( selector, true ); - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement("fieldset"); - - try { - return !!fn( el ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - inDisabledFieldset( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - var namespace = elem.namespaceURI, - docElem = (elem.ownerDocument || elem).documentElement; - - // Support: IE <=8 - // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes - // https://bugs.jquery.com/ticket/4833 - return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( preferredDoc !== document && - (subWindow = document.defaultView) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( el ) { - el.className = "i"; - return !el.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( el ) { - el.appendChild( document.createComment("") ); - return !el.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); - - // ID filter and find - if ( support.getById ) { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( (elem = elems[i++]) ) { - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( el ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll(":enabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll(":disabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( el ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - if ( support.matchesSelector && documentIsHTML && - !nonnativeSelectorCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) { - nonnativeSelectorCache( expr, true ); - } - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return (sel + "").replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - // Use previously-cached element index if available - if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? - argument + length : - argument > length ? - length : - argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( (oldCache = uniqueCache[ key ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context === document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - if ( !context && elem.ownerDocument !== document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( el ) { - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( el ) { - return el.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -}; -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Filtered directly for both simple and complex selectors - return jQuery.filter( qualifier, elements, not ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( typeof elem.contentDocument !== "undefined" ) { - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && toType( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // rejected_handlers.disable - // fulfilled_handlers.disable - tuples[ 3 - i ][ 3 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock, - - // progress_handlers.lock - tuples[ 0 ][ 3 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the master Deferred - master = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - master.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( master.state() === "pending" || - isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return master.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); - } - - return master.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( toType( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - - -// Matches dashed string for camelizing -var rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g; - -// Used by camelCase as callback to replace() -function fcamelCase( all, letter ) { - return letter.toUpperCase(); -} - -// Convert dashed to camelCase; used by the css and data modules -// Support: IE <=9 - 11, Edge 12 - 15 -// Microsoft forgot to hump their vendor prefix (#9572) -function camelCase( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); -} -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( camelCase ); - } else { - key = camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var documentElement = document.documentElement; - - - - var isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ); - }, - composed = { composed: true }; - - // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only - // Check attachment across shadow DOM boundaries when possible (gh-3504) - // Support: iOS 10.0-10.2 only - // Early iOS 10 versions support `attachShadow` but not `getRootNode`, - // leading to errors. We need to check for `getRootNode`. - if ( documentElement.getRootNode ) { - isAttached = function( elem ) { - return jQuery.contains( elem.ownerDocument, elem ) || - elem.getRootNode( composed ) === elem.ownerDocument; - }; - } -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - isAttached( elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - -var swap = function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, scale, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = elem.nodeType && - ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Support: Firefox <=54 - // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) - initial = initial / 2; - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - while ( maxIterations-- ) { - - // Evaluate and update our best guess (doubling guesses that zero out). - // Finish if the scale equals or crosses 1 (making the old*new product non-positive). - jQuery.style( elem, prop, initialInUnit + unit ); - if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { - maxIterations = 0; - } - initialInUnit = initialInUnit / scale; - - } - - initialInUnit = initialInUnit * 2; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); - -var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // Support: IE <=9 only - option: [ 1, "" ], - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], - tr: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - _default: [ 0, "", "" ] -}; - -// Support: IE <=9 only -wrapMap.optgroup = wrapMap.option; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, attached, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( toType( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - attached = isAttached( elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( attached ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -} )(); - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 - 11+ -// focus() and blur() are asynchronous, except when they are no-op. -// So expect focus to be synchronous when the element is already active, -// and blur to be synchronous when the element is not already active. -// (focus and blur are always synchronous in other supported browsers, -// this just defines when we can count on it). -function expectSync( elem, type ) { - return ( elem === safeActiveElement() ) === ( type === "focus" ); -} - -// Support: IE <=9 only -// Accessing document.activeElement can throw unexpectedly -// https://bugs.jquery.com/ticket/13393 -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = {}; - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - // Make a writable jQuery.Event from the native event object - var event = jQuery.event.fix( nativeEvent ); - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // If the event is namespaced, then each handler is only invoked if it is - // specially universal or its namespaces are a superset of the event's. - if ( !event.rnamespace || handleObj.namespace === false || - event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - click: { - - // Utilize native event to ensure correct state for checkable inputs - setup: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Claim the first handler - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - // dataPriv.set( el, "click", ... ) - leverageNative( el, "click", returnTrue ); - } - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function( data ) { - - // For mutual compressibility with _default, replace `this` access with a local var. - // `|| data` is dead code meant only to preserve the variable through minification. - var el = this || data; - - // Force setup before triggering a click - if ( rcheckableType.test( el.type ) && - el.click && nodeName( el, "input" ) ) { - - leverageNative( el, "click" ); - } - - // Return non-false to allow normal event-path propagation - return true; - }, - - // For cross-browser consistency, suppress native .click() on links - // Also prevent it if we're currently inside a leveraged native-event stack - _default: function( event ) { - var target = event.target; - return rcheckableType.test( target.type ) && - target.click && nodeName( target, "input" ) && - dataPriv.get( target, "click" ) || - nodeName( target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -// Ensure the presence of an event listener that handles manually-triggered -// synthetic events by interrupting progress until reinvoked in response to -// *native* events that it fires directly, ensuring that state changes have -// already occurred before other listeners are invoked. -function leverageNative( el, type, expectSync ) { - - // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add - if ( !expectSync ) { - if ( dataPriv.get( el, type ) === undefined ) { - jQuery.event.add( el, type, returnTrue ); - } - return; - } - - // Register the controller as a special universal handler for all event namespaces - dataPriv.set( el, type, false ); - jQuery.event.add( el, type, { - namespace: false, - handler: function( event ) { - var notAsync, result, - saved = dataPriv.get( this, type ); - - if ( ( event.isTrigger & 1 ) && this[ type ] ) { - - // Interrupt processing of the outer synthetic .trigger()ed event - // Saved data should be false in such cases, but might be a leftover capture object - // from an async native handler (gh-4350) - if ( !saved.length ) { - - // Store arguments for use when handling the inner native event - // There will always be at least one argument (an event object), so this array - // will not be confused with a leftover capture object. - saved = slice.call( arguments ); - dataPriv.set( this, type, saved ); - - // Trigger the native event and capture its result - // Support: IE <=9 - 11+ - // focus() and blur() are asynchronous - notAsync = expectSync( this, type ); - this[ type ](); - result = dataPriv.get( this, type ); - if ( saved !== result || notAsync ) { - dataPriv.set( this, type, false ); - } else { - result = {}; - } - if ( saved !== result ) { - - // Cancel the outer synthetic event - event.stopImmediatePropagation(); - event.preventDefault(); - return result.value; - } - - // If this is an inner synthetic event for an event with a bubbling surrogate - // (focus or blur), assume that the surrogate already propagated from triggering the - // native event and prevent that from happening again here. - // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the - // bubbling surrogate propagates *after* the non-bubbling base), but that seems - // less bad than duplication. - } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { - event.stopPropagation(); - } - - // If this is a native event triggered above, everything is now in order - // Fire an inner synthetic event with the original arguments - } else if ( saved.length ) { - - // ...and capture the result - dataPriv.set( this, type, { - value: jQuery.event.trigger( - - // Support: IE <=9 - 11+ - // Extend with the prototype to reset the above stopImmediatePropagation() - jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), - saved.slice( 1 ), - this - ) - } ); - - // Abort handling of the native event - event.stopImmediatePropagation(); - } - } - } ); -} - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - code: true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - - which: function( event ) { - var button = event.button; - - // Add which for key events - if ( event.which == null && rkeyEvent.test( event.type ) ) { - return event.charCode != null ? event.charCode : event.keyCode; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { - if ( button & 1 ) { - return 1; - } - - if ( button & 2 ) { - return 3; - } - - if ( button & 4 ) { - return 2; - } - - return 0; - } - - return event.which; - } -}, jQuery.event.addProp ); - -jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { - jQuery.event.special[ type ] = { - - // Utilize native event if possible so blur/focus sequence is correct - setup: function() { - - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative( this, type, expectSync ); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function() { - - // Force setup before trigger - leverageNative( this, type ); - - // Return non-false to allow normal event-path propagation - return true; - }, - - delegateType: delegateType - }; -} ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - /* eslint-disable max-len */ - - // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, - - /* eslint-enable */ - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.access( src ); - pdataCur = dataPriv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl && !node.noModule ) { - jQuery._evalUrl( node.src, { - nonce: node.nonce || node.getAttribute( "nonce" ) - } ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && isAttached( node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = isAttached( elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - // Support: Chrome <=64 - // Don't get tricked when zoom affects offsetWidth (gh-4029) - div.style.position = "absolute"; - scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !isAttached( elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style, - vendorProps = {}; - -// Return a vendor-prefixed property or undefined -function vendorPropName( name ) { - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a potentially-mapped jQuery.cssProps or vendor prefixed property -function finalPropName( name ) { - var final = jQuery.cssProps[ name ] || vendorProps[ name ]; - - if ( final ) { - return final; - } - if ( name in emptyStyle ) { - return name; - } - return vendorProps[ name ] = vendorPropName( name ) || name; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }; - -function setPositiveNumber( elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - - // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter - // Use an explicit zero to avoid NaN (gh-3964) - ) ) || 0; - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). - // Fake content-box until we know it's needed to know the true value. - boxSizingNeeded = !support.boxSizingReliable() || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox, - - val = curCSS( elem, dimension, styles ), - offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - // Support: IE 9-11 only - // Also use offsetWidth/offsetHeight for when box sizing is unreliable - // We use getClientRects() to check for hidden/disconnected. - // In those cases, the computed value can be trusted to be border-box - if ( ( !support.boxSizingReliable() && isBorderBox || - val === "auto" || - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && - elem.getClientRects().length ) { - - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // Where available, offsetWidth/offsetHeight approximate border box dimensions. - // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the - // retrieved value as a content box dimension. - valueIsBorderBox = offsetProp in elem; - if ( valueIsBorderBox ) { - val = elem[ offsetProp ]; - } - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "gridArea": true, - "gridColumn": true, - "gridColumnEnd": true, - "gridColumnStart": true, - "gridRow": true, - "gridRowEnd": true, - "gridRowStart": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append - // "px" to a few hardcoded values. - if ( type === "number" && !isCustomProp ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - - // Only read styles.position if the test has a chance to fail - // to avoid forcing a reflow. - scrollboxSizeBuggy = !support.scrollboxSize() && - styles.position === "absolute", - - // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) - boxSizingNeeded = scrollboxSizeBuggy || extra, - isBorderBox = boxSizingNeeded && - jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra ? - boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ) : - 0; - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && scrollboxSizeBuggy ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && ( - jQuery.cssHooks[ tween.prop ] || - tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( isValidValue ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = classesToArray( value ); - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = Date.now(); - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - if ( a == null ) { - return ""; - } - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ) - .filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ) - .map( function( i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() + " " ] = - ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) - .concat( match[ 2 ] ); - } - } - match = responseHeaders[ key.toLowerCase() + " " ]; - } - return match == null ? null : match.join( ", " ); - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - - -jQuery._evalUrl = function( url, options ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - - // Only evaluate the response if it is successful (gh-4126) - // dataFilter is not invoked for failure responses, so using it instead - // of the default converter is kludgy but it works. - converters: { - "text script": function() {} - }, - dataFilter: function( response ) { - jQuery.globalEval( response, options ); - } - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain or forced-by-attrs requests - if ( s.crossDomain || s.scriptAttrs ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( "\r\n"; - -// inject VBScript -document.write(IEBinaryToArray_ByteStr_Script); - -global.JSZipUtils._getBinaryFromXHR = function (xhr) { - var binary = xhr.responseBody; - var byteMapping = {}; - for ( var i = 0; i < 256; i++ ) { - for ( var j = 0; j < 256; j++ ) { - byteMapping[ String.fromCharCode( i + (j << 8) ) ] = - String.fromCharCode(i) + String.fromCharCode(j); - } - } - var rawBytes = IEBinaryToArray_ByteStr(binary); - var lastChr = IEBinaryToArray_ByteStr_Last(binary); - return rawBytes.replace(/[\s\S]/g, function( match ) { - return byteMapping[match]; - }) + lastChr; -}; - -// enforcing Stuk's coding style -// vim: set shiftwidth=4 softtabstop=4: - -},{}]},{},[1]) -; diff --git a/javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.min.js b/javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.min.js deleted file mode 100644 index 93d8bc8e..00000000 --- a/javadoc/script-dir/jszip-utils/dist/jszip-utils-ie.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - -JSZipUtils - A collection of cross-browser utilities to go along with JSZip. - - -(c) 2014 Stuart Knightley, David Duponchel -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. - -*/ -!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); diff --git a/javadoc/script-dir/jszip-utils/dist/jszip-utils.js b/javadoc/script-dir/jszip-utils/dist/jszip-utils.js deleted file mode 100644 index 775895ec..00000000 --- a/javadoc/script-dir/jszip-utils/dist/jszip-utils.js +++ /dev/null @@ -1,118 +0,0 @@ -/*! - -JSZipUtils - A collection of cross-browser utilities to go along with JSZip. - - -(c) 2014 Stuart Knightley, David Duponchel -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. - -*/ -!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o - -(c) 2014 Stuart Knightley, David Duponchel -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. - -*/ -!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g - -(c) 2009-2016 Stuart Knightley -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. - -JSZip uses the library pako released under the MIT license : -https://github.com/nodeca/pako/blob/master/LICENSE -*/ - -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSZip = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o> 2; - enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); - enc3 = remainingBytes > 1 ? (((chr2 & 15) << 2) | (chr3 >> 6)) : 64; - enc4 = remainingBytes > 2 ? (chr3 & 63) : 64; - - output.push(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4)); - - } - - return output.join(""); -}; - -// public method for decoding -exports.decode = function(input) { - var chr1, chr2, chr3; - var enc1, enc2, enc3, enc4; - var i = 0, resultIndex = 0; - - var dataUrlPrefix = "data:"; - - if (input.substr(0, dataUrlPrefix.length) === dataUrlPrefix) { - // This is a common error: people give a data url - // (data:image/png;base64,iVBOR...) with a {base64: true} and - // wonders why things don't work. - // We can detect that the string input looks like a data url but we - // *can't* be sure it is one: removing everything up to the comma would - // be too dangerous. - throw new Error("Invalid base64 input, it looks like a data url."); - } - - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); - - var totalLength = input.length * 3 / 4; - if(input.charAt(input.length - 1) === _keyStr.charAt(64)) { - totalLength--; - } - if(input.charAt(input.length - 2) === _keyStr.charAt(64)) { - totalLength--; - } - if (totalLength % 1 !== 0) { - // totalLength is not an integer, the length does not match a valid - // base64 content. That can happen if: - // - the input is not a base64 content - // - the input is *almost* a base64 content, with a extra chars at the - // beginning or at the end - // - the input uses a base64 variant (base64url for example) - throw new Error("Invalid base64 input, bad content length."); - } - var output; - if (support.uint8array) { - output = new Uint8Array(totalLength|0); - } else { - output = new Array(totalLength|0); - } - - while (i < input.length) { - - enc1 = _keyStr.indexOf(input.charAt(i++)); - enc2 = _keyStr.indexOf(input.charAt(i++)); - enc3 = _keyStr.indexOf(input.charAt(i++)); - enc4 = _keyStr.indexOf(input.charAt(i++)); - - chr1 = (enc1 << 2) | (enc2 >> 4); - chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); - chr3 = ((enc3 & 3) << 6) | enc4; - - output[resultIndex++] = chr1; - - if (enc3 !== 64) { - output[resultIndex++] = chr2; - } - if (enc4 !== 64) { - output[resultIndex++] = chr3; - } - - } - - return output; -}; - -},{"./support":30,"./utils":32}],2:[function(require,module,exports){ -'use strict'; - -var external = require("./external"); -var DataWorker = require('./stream/DataWorker'); -var DataLengthProbe = require('./stream/DataLengthProbe'); -var Crc32Probe = require('./stream/Crc32Probe'); -var DataLengthProbe = require('./stream/DataLengthProbe'); - -/** - * Represent a compressed object, with everything needed to decompress it. - * @constructor - * @param {number} compressedSize the size of the data compressed. - * @param {number} uncompressedSize the size of the data after decompression. - * @param {number} crc32 the crc32 of the decompressed file. - * @param {object} compression the type of compression, see lib/compressions.js. - * @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data. - */ -function CompressedObject(compressedSize, uncompressedSize, crc32, compression, data) { - this.compressedSize = compressedSize; - this.uncompressedSize = uncompressedSize; - this.crc32 = crc32; - this.compression = compression; - this.compressedContent = data; -} - -CompressedObject.prototype = { - /** - * Create a worker to get the uncompressed content. - * @return {GenericWorker} the worker. - */ - getContentWorker : function () { - var worker = new DataWorker(external.Promise.resolve(this.compressedContent)) - .pipe(this.compression.uncompressWorker()) - .pipe(new DataLengthProbe("data_length")); - - var that = this; - worker.on("end", function () { - if(this.streamInfo['data_length'] !== that.uncompressedSize) { - throw new Error("Bug : uncompressed data size mismatch"); - } - }); - return worker; - }, - /** - * Create a worker to get the compressed content. - * @return {GenericWorker} the worker. - */ - getCompressedWorker : function () { - return new DataWorker(external.Promise.resolve(this.compressedContent)) - .withStreamInfo("compressedSize", this.compressedSize) - .withStreamInfo("uncompressedSize", this.uncompressedSize) - .withStreamInfo("crc32", this.crc32) - .withStreamInfo("compression", this.compression) - ; - } -}; - -/** - * Chain the given worker with other workers to compress the content with the - * given compresion. - * @param {GenericWorker} uncompressedWorker the worker to pipe. - * @param {Object} compression the compression object. - * @param {Object} compressionOptions the options to use when compressing. - * @return {GenericWorker} the new worker compressing the content. - */ -CompressedObject.createWorkerFrom = function (uncompressedWorker, compression, compressionOptions) { - return uncompressedWorker - .pipe(new Crc32Probe()) - .pipe(new DataLengthProbe("uncompressedSize")) - .pipe(compression.compressWorker(compressionOptions)) - .pipe(new DataLengthProbe("compressedSize")) - .withStreamInfo("compression", compression); -}; - -module.exports = CompressedObject; - -},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(require,module,exports){ -'use strict'; - -var GenericWorker = require("./stream/GenericWorker"); - -exports.STORE = { - magic: "\x00\x00", - compressWorker : function (compressionOptions) { - return new GenericWorker("STORE compression"); - }, - uncompressWorker : function () { - return new GenericWorker("STORE decompression"); - } -}; -exports.DEFLATE = require('./flate'); - -},{"./flate":7,"./stream/GenericWorker":28}],4:[function(require,module,exports){ -'use strict'; - -var utils = require('./utils'); - -/** - * The following functions come from pako, from pako/lib/zlib/crc32.js - * released under the MIT license, see pako https://github.com/nodeca/pako/ - */ - -// Use ordinary array, since untyped makes no boost here -function makeTable() { - var c, table = []; - - for(var n =0; n < 256; n++){ - c = n; - for(var k =0; k < 8; k++){ - c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); - } - table[n] = c; - } - - return table; -} - -// Create table on load. Just 255 signed longs. Not a problem. -var crcTable = makeTable(); - - -function crc32(crc, buf, len, pos) { - var t = crcTable, end = pos + len; - - crc = crc ^ (-1); - - for (var i = pos; i < end; i++ ) { - crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF]; - } - - return (crc ^ (-1)); // >>> 0; -} - -// That's all for the pako functions. - -/** - * Compute the crc32 of a string. - * This is almost the same as the function crc32, but for strings. Using the - * same function for the two use cases leads to horrible performances. - * @param {Number} crc the starting value of the crc. - * @param {String} str the string to use. - * @param {Number} len the length of the string. - * @param {Number} pos the starting position for the crc32 computation. - * @return {Number} the computed crc32. - */ -function crc32str(crc, str, len, pos) { - var t = crcTable, end = pos + len; - - crc = crc ^ (-1); - - for (var i = pos; i < end; i++ ) { - crc = (crc >>> 8) ^ t[(crc ^ str.charCodeAt(i)) & 0xFF]; - } - - return (crc ^ (-1)); // >>> 0; -} - -module.exports = function crc32wrapper(input, crc) { - if (typeof input === "undefined" || !input.length) { - return 0; - } - - var isArray = utils.getTypeOf(input) !== "string"; - - if(isArray) { - return crc32(crc|0, input, input.length, 0); - } else { - return crc32str(crc|0, input, input.length, 0); - } -}; - -},{"./utils":32}],5:[function(require,module,exports){ -'use strict'; -exports.base64 = false; -exports.binary = false; -exports.dir = false; -exports.createFolders = true; -exports.date = null; -exports.compression = null; -exports.compressionOptions = null; -exports.comment = null; -exports.unixPermissions = null; -exports.dosPermissions = null; - -},{}],6:[function(require,module,exports){ -/* global Promise */ -'use strict'; - -// load the global object first: -// - it should be better integrated in the system (unhandledRejection in node) -// - the environment may have a custom Promise implementation (see zone.js) -var ES6Promise = null; -if (typeof Promise !== "undefined") { - ES6Promise = Promise; -} else { - ES6Promise = require("lie"); -} - -/** - * Let the user use/change some implementations. - */ -module.exports = { - Promise: ES6Promise -}; - -},{"lie":37}],7:[function(require,module,exports){ -'use strict'; -var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined'); - -var pako = require("pako"); -var utils = require("./utils"); -var GenericWorker = require("./stream/GenericWorker"); - -var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array"; - -exports.magic = "\x08\x00"; - -/** - * Create a worker that uses pako to inflate/deflate. - * @constructor - * @param {String} action the name of the pako function to call : either "Deflate" or "Inflate". - * @param {Object} options the options to use when (de)compressing. - */ -function FlateWorker(action, options) { - GenericWorker.call(this, "FlateWorker/" + action); - - this._pako = null; - this._pakoAction = action; - this._pakoOptions = options; - // the `meta` object from the last chunk received - // this allow this worker to pass around metadata - this.meta = {}; -} - -utils.inherits(FlateWorker, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -FlateWorker.prototype.processChunk = function (chunk) { - this.meta = chunk.meta; - if (this._pako === null) { - this._createPako(); - } - this._pako.push(utils.transformTo(ARRAY_TYPE, chunk.data), false); -}; - -/** - * @see GenericWorker.flush - */ -FlateWorker.prototype.flush = function () { - GenericWorker.prototype.flush.call(this); - if (this._pako === null) { - this._createPako(); - } - this._pako.push([], true); -}; -/** - * @see GenericWorker.cleanUp - */ -FlateWorker.prototype.cleanUp = function () { - GenericWorker.prototype.cleanUp.call(this); - this._pako = null; -}; - -/** - * Create the _pako object. - * TODO: lazy-loading this object isn't the best solution but it's the - * quickest. The best solution is to lazy-load the worker list. See also the - * issue #446. - */ -FlateWorker.prototype._createPako = function () { - this._pako = new pako[this._pakoAction]({ - raw: true, - level: this._pakoOptions.level || -1 // default compression - }); - var self = this; - this._pako.onData = function(data) { - self.push({ - data : data, - meta : self.meta - }); - }; -}; - -exports.compressWorker = function (compressionOptions) { - return new FlateWorker("Deflate", compressionOptions); -}; -exports.uncompressWorker = function () { - return new FlateWorker("Inflate", {}); -}; - -},{"./stream/GenericWorker":28,"./utils":32,"pako":38}],8:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); -var GenericWorker = require('../stream/GenericWorker'); -var utf8 = require('../utf8'); -var crc32 = require('../crc32'); -var signature = require('../signature'); - -/** - * Transform an integer into a string in hexadecimal. - * @private - * @param {number} dec the number to convert. - * @param {number} bytes the number of bytes to generate. - * @returns {string} the result. - */ -var decToHex = function(dec, bytes) { - var hex = "", i; - for (i = 0; i < bytes; i++) { - hex += String.fromCharCode(dec & 0xff); - dec = dec >>> 8; - } - return hex; -}; - -/** - * Generate the UNIX part of the external file attributes. - * @param {Object} unixPermissions the unix permissions or null. - * @param {Boolean} isDir true if the entry is a directory, false otherwise. - * @return {Number} a 32 bit integer. - * - * adapted from http://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute : - * - * TTTTsstrwxrwxrwx0000000000ADVSHR - * ^^^^____________________________ file type, see zipinfo.c (UNX_*) - * ^^^_________________________ setuid, setgid, sticky - * ^^^^^^^^^________________ permissions - * ^^^^^^^^^^______ not used ? - * ^^^^^^ DOS attribute bits : Archive, Directory, Volume label, System file, Hidden, Read only - */ -var generateUnixExternalFileAttr = function (unixPermissions, isDir) { - - var result = unixPermissions; - if (!unixPermissions) { - // I can't use octal values in strict mode, hence the hexa. - // 040775 => 0x41fd - // 0100664 => 0x81b4 - result = isDir ? 0x41fd : 0x81b4; - } - return (result & 0xFFFF) << 16; -}; - -/** - * Generate the DOS part of the external file attributes. - * @param {Object} dosPermissions the dos permissions or null. - * @param {Boolean} isDir true if the entry is a directory, false otherwise. - * @return {Number} a 32 bit integer. - * - * Bit 0 Read-Only - * Bit 1 Hidden - * Bit 2 System - * Bit 3 Volume Label - * Bit 4 Directory - * Bit 5 Archive - */ -var generateDosExternalFileAttr = function (dosPermissions, isDir) { - - // the dir flag is already set for compatibility - return (dosPermissions || 0) & 0x3F; -}; - -/** - * Generate the various parts used in the construction of the final zip file. - * @param {Object} streamInfo the hash with informations about the compressed file. - * @param {Boolean} streamedContent is the content streamed ? - * @param {Boolean} streamingEnded is the stream finished ? - * @param {number} offset the current offset from the start of the zip file. - * @param {String} platform let's pretend we are this platform (change platform dependents fields) - * @param {Function} encodeFileName the function to encode the file name / comment. - * @return {Object} the zip parts. - */ -var generateZipParts = function(streamInfo, streamedContent, streamingEnded, offset, platform, encodeFileName) { - var file = streamInfo['file'], - compression = streamInfo['compression'], - useCustomEncoding = encodeFileName !== utf8.utf8encode, - encodedFileName = utils.transformTo("string", encodeFileName(file.name)), - utfEncodedFileName = utils.transformTo("string", utf8.utf8encode(file.name)), - comment = file.comment, - encodedComment = utils.transformTo("string", encodeFileName(comment)), - utfEncodedComment = utils.transformTo("string", utf8.utf8encode(comment)), - useUTF8ForFileName = utfEncodedFileName.length !== file.name.length, - useUTF8ForComment = utfEncodedComment.length !== comment.length, - dosTime, - dosDate, - extraFields = "", - unicodePathExtraField = "", - unicodeCommentExtraField = "", - dir = file.dir, - date = file.date; - - - var dataInfo = { - crc32 : 0, - compressedSize : 0, - uncompressedSize : 0 - }; - - // if the content is streamed, the sizes/crc32 are only available AFTER - // the end of the stream. - if (!streamedContent || streamingEnded) { - dataInfo.crc32 = streamInfo['crc32']; - dataInfo.compressedSize = streamInfo['compressedSize']; - dataInfo.uncompressedSize = streamInfo['uncompressedSize']; - } - - var bitflag = 0; - if (streamedContent) { - // Bit 3: the sizes/crc32 are set to zero in the local header. - // The correct values are put in the data descriptor immediately - // following the compressed data. - bitflag |= 0x0008; - } - if (!useCustomEncoding && (useUTF8ForFileName || useUTF8ForComment)) { - // Bit 11: Language encoding flag (EFS). - bitflag |= 0x0800; - } - - - var extFileAttr = 0; - var versionMadeBy = 0; - if (dir) { - // dos or unix, we set the dos dir flag - extFileAttr |= 0x00010; - } - if(platform === "UNIX") { - versionMadeBy = 0x031E; // UNIX, version 3.0 - extFileAttr |= generateUnixExternalFileAttr(file.unixPermissions, dir); - } else { // DOS or other, fallback to DOS - versionMadeBy = 0x0014; // DOS, version 2.0 - extFileAttr |= generateDosExternalFileAttr(file.dosPermissions, dir); - } - - // date - // @see http://www.delorie.com/djgpp/doc/rbinter/it/52/13.html - // @see http://www.delorie.com/djgpp/doc/rbinter/it/65/16.html - // @see http://www.delorie.com/djgpp/doc/rbinter/it/66/16.html - - dosTime = date.getUTCHours(); - dosTime = dosTime << 6; - dosTime = dosTime | date.getUTCMinutes(); - dosTime = dosTime << 5; - dosTime = dosTime | date.getUTCSeconds() / 2; - - dosDate = date.getUTCFullYear() - 1980; - dosDate = dosDate << 4; - dosDate = dosDate | (date.getUTCMonth() + 1); - dosDate = dosDate << 5; - dosDate = dosDate | date.getUTCDate(); - - if (useUTF8ForFileName) { - // set the unicode path extra field. unzip needs at least one extra - // field to correctly handle unicode path, so using the path is as good - // as any other information. This could improve the situation with - // other archive managers too. - // This field is usually used without the utf8 flag, with a non - // unicode path in the header (winrar, winzip). This helps (a bit) - // with the messy Windows' default compressed folders feature but - // breaks on p7zip which doesn't seek the unicode path extra field. - // So for now, UTF-8 everywhere ! - unicodePathExtraField = - // Version - decToHex(1, 1) + - // NameCRC32 - decToHex(crc32(encodedFileName), 4) + - // UnicodeName - utfEncodedFileName; - - extraFields += - // Info-ZIP Unicode Path Extra Field - "\x75\x70" + - // size - decToHex(unicodePathExtraField.length, 2) + - // content - unicodePathExtraField; - } - - if(useUTF8ForComment) { - - unicodeCommentExtraField = - // Version - decToHex(1, 1) + - // CommentCRC32 - decToHex(crc32(encodedComment), 4) + - // UnicodeName - utfEncodedComment; - - extraFields += - // Info-ZIP Unicode Path Extra Field - "\x75\x63" + - // size - decToHex(unicodeCommentExtraField.length, 2) + - // content - unicodeCommentExtraField; - } - - var header = ""; - - // version needed to extract - header += "\x0A\x00"; - // general purpose bit flag - header += decToHex(bitflag, 2); - // compression method - header += compression.magic; - // last mod file time - header += decToHex(dosTime, 2); - // last mod file date - header += decToHex(dosDate, 2); - // crc-32 - header += decToHex(dataInfo.crc32, 4); - // compressed size - header += decToHex(dataInfo.compressedSize, 4); - // uncompressed size - header += decToHex(dataInfo.uncompressedSize, 4); - // file name length - header += decToHex(encodedFileName.length, 2); - // extra field length - header += decToHex(extraFields.length, 2); - - - var fileRecord = signature.LOCAL_FILE_HEADER + header + encodedFileName + extraFields; - - var dirRecord = signature.CENTRAL_FILE_HEADER + - // version made by (00: DOS) - decToHex(versionMadeBy, 2) + - // file header (common to file and central directory) - header + - // file comment length - decToHex(encodedComment.length, 2) + - // disk number start - "\x00\x00" + - // internal file attributes TODO - "\x00\x00" + - // external file attributes - decToHex(extFileAttr, 4) + - // relative offset of local header - decToHex(offset, 4) + - // file name - encodedFileName + - // extra field - extraFields + - // file comment - encodedComment; - - return { - fileRecord: fileRecord, - dirRecord: dirRecord - }; -}; - -/** - * Generate the EOCD record. - * @param {Number} entriesCount the number of entries in the zip file. - * @param {Number} centralDirLength the length (in bytes) of the central dir. - * @param {Number} localDirLength the length (in bytes) of the local dir. - * @param {String} comment the zip file comment as a binary string. - * @param {Function} encodeFileName the function to encode the comment. - * @return {String} the EOCD record. - */ -var generateCentralDirectoryEnd = function (entriesCount, centralDirLength, localDirLength, comment, encodeFileName) { - var dirEnd = ""; - var encodedComment = utils.transformTo("string", encodeFileName(comment)); - - // end of central dir signature - dirEnd = signature.CENTRAL_DIRECTORY_END + - // number of this disk - "\x00\x00" + - // number of the disk with the start of the central directory - "\x00\x00" + - // total number of entries in the central directory on this disk - decToHex(entriesCount, 2) + - // total number of entries in the central directory - decToHex(entriesCount, 2) + - // size of the central directory 4 bytes - decToHex(centralDirLength, 4) + - // offset of start of central directory with respect to the starting disk number - decToHex(localDirLength, 4) + - // .ZIP file comment length - decToHex(encodedComment.length, 2) + - // .ZIP file comment - encodedComment; - - return dirEnd; -}; - -/** - * Generate data descriptors for a file entry. - * @param {Object} streamInfo the hash generated by a worker, containing informations - * on the file entry. - * @return {String} the data descriptors. - */ -var generateDataDescriptors = function (streamInfo) { - var descriptor = ""; - descriptor = signature.DATA_DESCRIPTOR + - // crc-32 4 bytes - decToHex(streamInfo['crc32'], 4) + - // compressed size 4 bytes - decToHex(streamInfo['compressedSize'], 4) + - // uncompressed size 4 bytes - decToHex(streamInfo['uncompressedSize'], 4); - - return descriptor; -}; - - -/** - * A worker to concatenate other workers to create a zip file. - * @param {Boolean} streamFiles `true` to stream the content of the files, - * `false` to accumulate it. - * @param {String} comment the comment to use. - * @param {String} platform the platform to use, "UNIX" or "DOS". - * @param {Function} encodeFileName the function to encode file names and comments. - */ -function ZipFileWorker(streamFiles, comment, platform, encodeFileName) { - GenericWorker.call(this, "ZipFileWorker"); - // The number of bytes written so far. This doesn't count accumulated chunks. - this.bytesWritten = 0; - // The comment of the zip file - this.zipComment = comment; - // The platform "generating" the zip file. - this.zipPlatform = platform; - // the function to encode file names and comments. - this.encodeFileName = encodeFileName; - // Should we stream the content of the files ? - this.streamFiles = streamFiles; - // If `streamFiles` is false, we will need to accumulate the content of the - // files to calculate sizes / crc32 (and write them *before* the content). - // This boolean indicates if we are accumulating chunks (it will change a lot - // during the lifetime of this worker). - this.accumulate = false; - // The buffer receiving chunks when accumulating content. - this.contentBuffer = []; - // The list of generated directory records. - this.dirRecords = []; - // The offset (in bytes) from the beginning of the zip file for the current source. - this.currentSourceOffset = 0; - // The total number of entries in this zip file. - this.entriesCount = 0; - // the name of the file currently being added, null when handling the end of the zip file. - // Used for the emited metadata. - this.currentFile = null; - - - - this._sources = []; -} -utils.inherits(ZipFileWorker, GenericWorker); - -/** - * @see GenericWorker.push - */ -ZipFileWorker.prototype.push = function (chunk) { - - var currentFilePercent = chunk.meta.percent || 0; - var entriesCount = this.entriesCount; - var remainingFiles = this._sources.length; - - if(this.accumulate) { - this.contentBuffer.push(chunk); - } else { - this.bytesWritten += chunk.data.length; - - GenericWorker.prototype.push.call(this, { - data : chunk.data, - meta : { - currentFile : this.currentFile, - percent : entriesCount ? (currentFilePercent + 100 * (entriesCount - remainingFiles - 1)) / entriesCount : 100 - } - }); - } -}; - -/** - * The worker started a new source (an other worker). - * @param {Object} streamInfo the streamInfo object from the new source. - */ -ZipFileWorker.prototype.openedSource = function (streamInfo) { - this.currentSourceOffset = this.bytesWritten; - this.currentFile = streamInfo['file'].name; - - var streamedContent = this.streamFiles && !streamInfo['file'].dir; - - // don't stream folders (because they don't have any content) - if(streamedContent) { - var record = generateZipParts(streamInfo, streamedContent, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); - this.push({ - data : record.fileRecord, - meta : {percent:0} - }); - } else { - // we need to wait for the whole file before pushing anything - this.accumulate = true; - } -}; - -/** - * The worker finished a source (an other worker). - * @param {Object} streamInfo the streamInfo object from the finished source. - */ -ZipFileWorker.prototype.closedSource = function (streamInfo) { - this.accumulate = false; - var streamedContent = this.streamFiles && !streamInfo['file'].dir; - var record = generateZipParts(streamInfo, streamedContent, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); - - this.dirRecords.push(record.dirRecord); - if(streamedContent) { - // after the streamed file, we put data descriptors - this.push({ - data : generateDataDescriptors(streamInfo), - meta : {percent:100} - }); - } else { - // the content wasn't streamed, we need to push everything now - // first the file record, then the content - this.push({ - data : record.fileRecord, - meta : {percent:0} - }); - while(this.contentBuffer.length) { - this.push(this.contentBuffer.shift()); - } - } - this.currentFile = null; -}; - -/** - * @see GenericWorker.flush - */ -ZipFileWorker.prototype.flush = function () { - - var localDirLength = this.bytesWritten; - for(var i = 0; i < this.dirRecords.length; i++) { - this.push({ - data : this.dirRecords[i], - meta : {percent:100} - }); - } - var centralDirLength = this.bytesWritten - localDirLength; - - var dirEnd = generateCentralDirectoryEnd(this.dirRecords.length, centralDirLength, localDirLength, this.zipComment, this.encodeFileName); - - this.push({ - data : dirEnd, - meta : {percent:100} - }); -}; - -/** - * Prepare the next source to be read. - */ -ZipFileWorker.prototype.prepareNextSource = function () { - this.previous = this._sources.shift(); - this.openedSource(this.previous.streamInfo); - if (this.isPaused) { - this.previous.pause(); - } else { - this.previous.resume(); - } -}; - -/** - * @see GenericWorker.registerPrevious - */ -ZipFileWorker.prototype.registerPrevious = function (previous) { - this._sources.push(previous); - var self = this; - - previous.on('data', function (chunk) { - self.processChunk(chunk); - }); - previous.on('end', function () { - self.closedSource(self.previous.streamInfo); - if(self._sources.length) { - self.prepareNextSource(); - } else { - self.end(); - } - }); - previous.on('error', function (e) { - self.error(e); - }); - return this; -}; - -/** - * @see GenericWorker.resume - */ -ZipFileWorker.prototype.resume = function () { - if(!GenericWorker.prototype.resume.call(this)) { - return false; - } - - if (!this.previous && this._sources.length) { - this.prepareNextSource(); - return true; - } - if (!this.previous && !this._sources.length && !this.generatedError) { - this.end(); - return true; - } -}; - -/** - * @see GenericWorker.error - */ -ZipFileWorker.prototype.error = function (e) { - var sources = this._sources; - if(!GenericWorker.prototype.error.call(this, e)) { - return false; - } - for(var i = 0; i < sources.length; i++) { - try { - sources[i].error(e); - } catch(e) { - // the `error` exploded, nothing to do - } - } - return true; -}; - -/** - * @see GenericWorker.lock - */ -ZipFileWorker.prototype.lock = function () { - GenericWorker.prototype.lock.call(this); - var sources = this._sources; - for(var i = 0; i < sources.length; i++) { - sources[i].lock(); - } -}; - -module.exports = ZipFileWorker; - -},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(require,module,exports){ -'use strict'; - -var compressions = require('../compressions'); -var ZipFileWorker = require('./ZipFileWorker'); - -/** - * Find the compression to use. - * @param {String} fileCompression the compression defined at the file level, if any. - * @param {String} zipCompression the compression defined at the load() level. - * @return {Object} the compression object to use. - */ -var getCompression = function (fileCompression, zipCompression) { - - var compressionName = fileCompression || zipCompression; - var compression = compressions[compressionName]; - if (!compression) { - throw new Error(compressionName + " is not a valid compression method !"); - } - return compression; -}; - -/** - * Create a worker to generate a zip file. - * @param {JSZip} zip the JSZip instance at the right root level. - * @param {Object} options to generate the zip file. - * @param {String} comment the comment to use. - */ -exports.generateWorker = function (zip, options, comment) { - - var zipFileWorker = new ZipFileWorker(options.streamFiles, comment, options.platform, options.encodeFileName); - var entriesCount = 0; - try { - - zip.forEach(function (relativePath, file) { - entriesCount++; - var compression = getCompression(file.options.compression, options.compression); - var compressionOptions = file.options.compressionOptions || options.compressionOptions || {}; - var dir = file.dir, date = file.date; - - file._compressWorker(compression, compressionOptions) - .withStreamInfo("file", { - name : relativePath, - dir : dir, - date : date, - comment : file.comment || "", - unixPermissions : file.unixPermissions, - dosPermissions : file.dosPermissions - }) - .pipe(zipFileWorker); - }); - zipFileWorker.entriesCount = entriesCount; - } catch (e) { - zipFileWorker.error(e); - } - - return zipFileWorker; -}; - -},{"../compressions":3,"./ZipFileWorker":8}],10:[function(require,module,exports){ -'use strict'; - -/** - * Representation a of zip file in js - * @constructor - */ -function JSZip() { - // if this constructor is used without `new`, it adds `new` before itself: - if(!(this instanceof JSZip)) { - return new JSZip(); - } - - if(arguments.length) { - throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); - } - - // object containing the files : - // { - // "folder/" : {...}, - // "folder/data.txt" : {...} - // } - this.files = {}; - - this.comment = null; - - // Where we are in the hierarchy - this.root = ""; - this.clone = function() { - var newObj = new JSZip(); - for (var i in this) { - if (typeof this[i] !== "function") { - newObj[i] = this[i]; - } - } - return newObj; - }; -} -JSZip.prototype = require('./object'); -JSZip.prototype.loadAsync = require('./load'); -JSZip.support = require('./support'); -JSZip.defaults = require('./defaults'); - -// TODO find a better way to handle this version, -// a require('package.json').version doesn't work with webpack, see #327 -JSZip.version = "3.2.0"; - -JSZip.loadAsync = function (content, options) { - return new JSZip().loadAsync(content, options); -}; - -JSZip.external = require("./external"); -module.exports = JSZip; - -},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(require,module,exports){ -'use strict'; -var utils = require('./utils'); -var external = require("./external"); -var utf8 = require('./utf8'); -var utils = require('./utils'); -var ZipEntries = require('./zipEntries'); -var Crc32Probe = require('./stream/Crc32Probe'); -var nodejsUtils = require("./nodejsUtils"); - -/** - * Check the CRC32 of an entry. - * @param {ZipEntry} zipEntry the zip entry to check. - * @return {Promise} the result. - */ -function checkEntryCRC32(zipEntry) { - return new external.Promise(function (resolve, reject) { - var worker = zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe()); - worker.on("error", function (e) { - reject(e); - }) - .on("end", function () { - if (worker.streamInfo.crc32 !== zipEntry.decompressed.crc32) { - reject(new Error("Corrupted zip : CRC32 mismatch")); - } else { - resolve(); - } - }) - .resume(); - }); -} - -module.exports = function(data, options) { - var zip = this; - options = utils.extend(options || {}, { - base64: false, - checkCRC32: false, - optimizedBinaryString: false, - createFolders: false, - decodeFileName: utf8.utf8decode - }); - - if (nodejsUtils.isNode && nodejsUtils.isStream(data)) { - return external.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")); - } - - return utils.prepareContent("the loaded zip file", data, true, options.optimizedBinaryString, options.base64) - .then(function(data) { - var zipEntries = new ZipEntries(options); - zipEntries.load(data); - return zipEntries; - }).then(function checkCRC32(zipEntries) { - var promises = [external.Promise.resolve(zipEntries)]; - var files = zipEntries.files; - if (options.checkCRC32) { - for (var i = 0; i < files.length; i++) { - promises.push(checkEntryCRC32(files[i])); - } - } - return external.Promise.all(promises); - }).then(function addFiles(results) { - var zipEntries = results.shift(); - var files = zipEntries.files; - for (var i = 0; i < files.length; i++) { - var input = files[i]; - zip.file(input.fileNameStr, input.decompressed, { - binary: true, - optimizedBinaryString: true, - date: input.date, - dir: input.dir, - comment : input.fileCommentStr.length ? input.fileCommentStr : null, - unixPermissions : input.unixPermissions, - dosPermissions : input.dosPermissions, - createFolders: options.createFolders - }); - } - if (zipEntries.zipComment.length) { - zip.comment = zipEntries.zipComment; - } - - return zip; - }); -}; - -},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(require,module,exports){ -"use strict"; - -var utils = require('../utils'); -var GenericWorker = require('../stream/GenericWorker'); - -/** - * A worker that use a nodejs stream as source. - * @constructor - * @param {String} filename the name of the file entry for this stream. - * @param {Readable} stream the nodejs stream. - */ -function NodejsStreamInputAdapter(filename, stream) { - GenericWorker.call(this, "Nodejs stream input adapter for " + filename); - this._upstreamEnded = false; - this._bindStream(stream); -} - -utils.inherits(NodejsStreamInputAdapter, GenericWorker); - -/** - * Prepare the stream and bind the callbacks on it. - * Do this ASAP on node 0.10 ! A lazy binding doesn't always work. - * @param {Stream} stream the nodejs stream to use. - */ -NodejsStreamInputAdapter.prototype._bindStream = function (stream) { - var self = this; - this._stream = stream; - stream.pause(); - stream - .on("data", function (chunk) { - self.push({ - data: chunk, - meta : { - percent : 0 - } - }); - }) - .on("error", function (e) { - if(self.isPaused) { - this.generatedError = e; - } else { - self.error(e); - } - }) - .on("end", function () { - if(self.isPaused) { - self._upstreamEnded = true; - } else { - self.end(); - } - }); -}; -NodejsStreamInputAdapter.prototype.pause = function () { - if(!GenericWorker.prototype.pause.call(this)) { - return false; - } - this._stream.pause(); - return true; -}; -NodejsStreamInputAdapter.prototype.resume = function () { - if(!GenericWorker.prototype.resume.call(this)) { - return false; - } - - if(this._upstreamEnded) { - this.end(); - } else { - this._stream.resume(); - } - - return true; -}; - -module.exports = NodejsStreamInputAdapter; - -},{"../stream/GenericWorker":28,"../utils":32}],13:[function(require,module,exports){ -'use strict'; - -var Readable = require('readable-stream').Readable; - -var utils = require('../utils'); -utils.inherits(NodejsStreamOutputAdapter, Readable); - -/** -* A nodejs stream using a worker as source. -* @see the SourceWrapper in http://nodejs.org/api/stream.html -* @constructor -* @param {StreamHelper} helper the helper wrapping the worker -* @param {Object} options the nodejs stream options -* @param {Function} updateCb the update callback. -*/ -function NodejsStreamOutputAdapter(helper, options, updateCb) { - Readable.call(this, options); - this._helper = helper; - - var self = this; - helper.on("data", function (data, meta) { - if (!self.push(data)) { - self._helper.pause(); - } - if(updateCb) { - updateCb(meta); - } - }) - .on("error", function(e) { - self.emit('error', e); - }) - .on("end", function () { - self.push(null); - }); -} - - -NodejsStreamOutputAdapter.prototype._read = function() { - this._helper.resume(); -}; - -module.exports = NodejsStreamOutputAdapter; - -},{"../utils":32,"readable-stream":16}],14:[function(require,module,exports){ -'use strict'; - -module.exports = { - /** - * True if this is running in Nodejs, will be undefined in a browser. - * In a browser, browserify won't include this file and the whole module - * will be resolved an empty object. - */ - isNode : typeof Buffer !== "undefined", - /** - * Create a new nodejs Buffer from an existing content. - * @param {Object} data the data to pass to the constructor. - * @param {String} encoding the encoding to use. - * @return {Buffer} a new Buffer. - */ - newBufferFrom: function(data, encoding) { - if (Buffer.from && Buffer.from !== Uint8Array.from) { - return Buffer.from(data, encoding); - } else { - if (typeof data === "number") { - // Safeguard for old Node.js versions. On newer versions, - // Buffer.from(number) / Buffer(number, encoding) already throw. - throw new Error("The \"data\" argument must not be a number"); - } - return new Buffer(data, encoding); - } - }, - /** - * Create a new nodejs Buffer with the specified size. - * @param {Integer} size the size of the buffer. - * @return {Buffer} a new Buffer. - */ - allocBuffer: function (size) { - if (Buffer.alloc) { - return Buffer.alloc(size); - } else { - var buf = new Buffer(size); - buf.fill(0); - return buf; - } - }, - /** - * Find out if an object is a Buffer. - * @param {Object} b the object to test. - * @return {Boolean} true if the object is a Buffer, false otherwise. - */ - isBuffer : function(b){ - return Buffer.isBuffer(b); - }, - - isStream : function (obj) { - return obj && - typeof obj.on === "function" && - typeof obj.pause === "function" && - typeof obj.resume === "function"; - } -}; - -},{}],15:[function(require,module,exports){ -'use strict'; -var utf8 = require('./utf8'); -var utils = require('./utils'); -var GenericWorker = require('./stream/GenericWorker'); -var StreamHelper = require('./stream/StreamHelper'); -var defaults = require('./defaults'); -var CompressedObject = require('./compressedObject'); -var ZipObject = require('./zipObject'); -var generate = require("./generate"); -var nodejsUtils = require("./nodejsUtils"); -var NodejsStreamInputAdapter = require("./nodejs/NodejsStreamInputAdapter"); - - -/** - * Add a file in the current folder. - * @private - * @param {string} name the name of the file - * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data of the file - * @param {Object} originalOptions the options of the file - * @return {Object} the new file. - */ -var fileAdd = function(name, data, originalOptions) { - // be sure sub folders exist - var dataType = utils.getTypeOf(data), - parent; - - - /* - * Correct options. - */ - - var o = utils.extend(originalOptions || {}, defaults); - o.date = o.date || new Date(); - if (o.compression !== null) { - o.compression = o.compression.toUpperCase(); - } - - if (typeof o.unixPermissions === "string") { - o.unixPermissions = parseInt(o.unixPermissions, 8); - } - - // UNX_IFDIR 0040000 see zipinfo.c - if (o.unixPermissions && (o.unixPermissions & 0x4000)) { - o.dir = true; - } - // Bit 4 Directory - if (o.dosPermissions && (o.dosPermissions & 0x0010)) { - o.dir = true; - } - - if (o.dir) { - name = forceTrailingSlash(name); - } - if (o.createFolders && (parent = parentFolder(name))) { - folderAdd.call(this, parent, true); - } - - var isUnicodeString = dataType === "string" && o.binary === false && o.base64 === false; - if (!originalOptions || typeof originalOptions.binary === "undefined") { - o.binary = !isUnicodeString; - } - - - var isCompressedEmpty = (data instanceof CompressedObject) && data.uncompressedSize === 0; - - if (isCompressedEmpty || o.dir || !data || data.length === 0) { - o.base64 = false; - o.binary = true; - data = ""; - o.compression = "STORE"; - dataType = "string"; - } - - /* - * Convert content to fit. - */ - - var zipObjectContent = null; - if (data instanceof CompressedObject || data instanceof GenericWorker) { - zipObjectContent = data; - } else if (nodejsUtils.isNode && nodejsUtils.isStream(data)) { - zipObjectContent = new NodejsStreamInputAdapter(name, data); - } else { - zipObjectContent = utils.prepareContent(name, data, o.binary, o.optimizedBinaryString, o.base64); - } - - var object = new ZipObject(name, zipObjectContent, o); - this.files[name] = object; - /* - TODO: we can't throw an exception because we have async promises - (we can have a promise of a Date() for example) but returning a - promise is useless because file(name, data) returns the JSZip - object for chaining. Should we break that to allow the user - to catch the error ? - - return external.Promise.resolve(zipObjectContent) - .then(function () { - return object; - }); - */ -}; - -/** - * Find the parent folder of the path. - * @private - * @param {string} path the path to use - * @return {string} the parent folder, or "" - */ -var parentFolder = function (path) { - if (path.slice(-1) === '/') { - path = path.substring(0, path.length - 1); - } - var lastSlash = path.lastIndexOf('/'); - return (lastSlash > 0) ? path.substring(0, lastSlash) : ""; -}; - -/** - * Returns the path with a slash at the end. - * @private - * @param {String} path the path to check. - * @return {String} the path with a trailing slash. - */ -var forceTrailingSlash = function(path) { - // Check the name ends with a / - if (path.slice(-1) !== "/") { - path += "/"; // IE doesn't like substr(-1) - } - return path; -}; - -/** - * Add a (sub) folder in the current folder. - * @private - * @param {string} name the folder's name - * @param {boolean=} [createFolders] If true, automatically create sub - * folders. Defaults to false. - * @return {Object} the new folder. - */ -var folderAdd = function(name, createFolders) { - createFolders = (typeof createFolders !== 'undefined') ? createFolders : defaults.createFolders; - - name = forceTrailingSlash(name); - - // Does this folder already exist? - if (!this.files[name]) { - fileAdd.call(this, name, null, { - dir: true, - createFolders: createFolders - }); - } - return this.files[name]; -}; - -/** -* Cross-window, cross-Node-context regular expression detection -* @param {Object} object Anything -* @return {Boolean} true if the object is a regular expression, -* false otherwise -*/ -function isRegExp(object) { - return Object.prototype.toString.call(object) === "[object RegExp]"; -} - -// return the actual prototype of JSZip -var out = { - /** - * @see loadAsync - */ - load: function() { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); - }, - - - /** - * Call a callback function for each entry at this folder level. - * @param {Function} cb the callback function: - * function (relativePath, file) {...} - * It takes 2 arguments : the relative path and the file. - */ - forEach: function(cb) { - var filename, relativePath, file; - for (filename in this.files) { - if (!this.files.hasOwnProperty(filename)) { - continue; - } - file = this.files[filename]; - relativePath = filename.slice(this.root.length, filename.length); - if (relativePath && filename.slice(0, this.root.length) === this.root) { // the file is in the current root - cb(relativePath, file); // TODO reverse the parameters ? need to be clean AND consistent with the filter search fn... - } - } - }, - - /** - * Filter nested files/folders with the specified function. - * @param {Function} search the predicate to use : - * function (relativePath, file) {...} - * It takes 2 arguments : the relative path and the file. - * @return {Array} An array of matching elements. - */ - filter: function(search) { - var result = []; - this.forEach(function (relativePath, entry) { - if (search(relativePath, entry)) { // the file matches the function - result.push(entry); - } - - }); - return result; - }, - - /** - * Add a file to the zip file, or search a file. - * @param {string|RegExp} name The name of the file to add (if data is defined), - * the name of the file to find (if no data) or a regex to match files. - * @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded - * @param {Object} o File options - * @return {JSZip|Object|Array} this JSZip object (when adding a file), - * a file (when searching by string) or an array of files (when searching by regex). - */ - file: function(name, data, o) { - if (arguments.length === 1) { - if (isRegExp(name)) { - var regexp = name; - return this.filter(function(relativePath, file) { - return !file.dir && regexp.test(relativePath); - }); - } - else { // text - var obj = this.files[this.root + name]; - if (obj && !obj.dir) { - return obj; - } else { - return null; - } - } - } - else { // more than one argument : we have data ! - name = this.root + name; - fileAdd.call(this, name, data, o); - } - return this; - }, - - /** - * Add a directory to the zip file, or search. - * @param {String|RegExp} arg The name of the directory to add, or a regex to search folders. - * @return {JSZip} an object with the new directory as the root, or an array containing matching folders. - */ - folder: function(arg) { - if (!arg) { - return this; - } - - if (isRegExp(arg)) { - return this.filter(function(relativePath, file) { - return file.dir && arg.test(relativePath); - }); - } - - // else, name is a new folder - var name = this.root + arg; - var newFolder = folderAdd.call(this, name); - - // Allow chaining by returning a new object with this folder as the root - var ret = this.clone(); - ret.root = newFolder.name; - return ret; - }, - - /** - * Delete a file, or a directory and all sub-files, from the zip - * @param {string} name the name of the file to delete - * @return {JSZip} this JSZip object - */ - remove: function(name) { - name = this.root + name; - var file = this.files[name]; - if (!file) { - // Look for any folders - if (name.slice(-1) !== "/") { - name += "/"; - } - file = this.files[name]; - } - - if (file && !file.dir) { - // file - delete this.files[name]; - } else { - // maybe a folder, delete recursively - var kids = this.filter(function(relativePath, file) { - return file.name.slice(0, name.length) === name; - }); - for (var i = 0; i < kids.length; i++) { - delete this.files[kids[i].name]; - } - } - - return this; - }, - - /** - * Generate the complete zip file - * @param {Object} options the options to generate the zip file : - * - compression, "STORE" by default. - * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. - * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file - */ - generate: function(options) { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); - }, - - /** - * Generate the complete zip file as an internal stream. - * @param {Object} options the options to generate the zip file : - * - compression, "STORE" by default. - * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. - * @return {StreamHelper} the streamed zip file. - */ - generateInternalStream: function(options) { - var worker, opts = {}; - try { - opts = utils.extend(options || {}, { - streamFiles: false, - compression: "STORE", - compressionOptions : null, - type: "", - platform: "DOS", - comment: null, - mimeType: 'application/zip', - encodeFileName: utf8.utf8encode - }); - - opts.type = opts.type.toLowerCase(); - opts.compression = opts.compression.toUpperCase(); - - // "binarystring" is prefered but the internals use "string". - if(opts.type === "binarystring") { - opts.type = "string"; - } - - if (!opts.type) { - throw new Error("No output type specified."); - } - - utils.checkSupport(opts.type); - - // accept nodejs `process.platform` - if( - opts.platform === 'darwin' || - opts.platform === 'freebsd' || - opts.platform === 'linux' || - opts.platform === 'sunos' - ) { - opts.platform = "UNIX"; - } - if (opts.platform === 'win32') { - opts.platform = "DOS"; - } - - var comment = opts.comment || this.comment || ""; - worker = generate.generateWorker(this, opts, comment); - } catch (e) { - worker = new GenericWorker("error"); - worker.error(e); - } - return new StreamHelper(worker, opts.type || "string", opts.mimeType); - }, - /** - * Generate the complete zip file asynchronously. - * @see generateInternalStream - */ - generateAsync: function(options, onUpdate) { - return this.generateInternalStream(options).accumulate(onUpdate); - }, - /** - * Generate the complete zip file asynchronously. - * @see generateInternalStream - */ - generateNodeStream: function(options, onUpdate) { - options = options || {}; - if (!options.type) { - options.type = "nodebuffer"; - } - return this.generateInternalStream(options).toNodejsStream(onUpdate); - } -}; -module.exports = out; - -},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(require,module,exports){ -/* - * This file is used by module bundlers (browserify/webpack/etc) when - * including a stream implementation. We use "readable-stream" to get a - * consistent behavior between nodejs versions but bundlers often have a shim - * for "stream". Using this shim greatly improve the compatibility and greatly - * reduce the final size of the bundle (only one stream implementation, not - * two). - */ -module.exports = require("stream"); - -},{"stream":undefined}],17:[function(require,module,exports){ -'use strict'; -var DataReader = require('./DataReader'); -var utils = require('../utils'); - -function ArrayReader(data) { - DataReader.call(this, data); - for(var i = 0; i < this.data.length; i++) { - data[i] = data[i] & 0xFF; - } -} -utils.inherits(ArrayReader, DataReader); -/** - * @see DataReader.byteAt - */ -ArrayReader.prototype.byteAt = function(i) { - return this.data[this.zero + i]; -}; -/** - * @see DataReader.lastIndexOfSignature - */ -ArrayReader.prototype.lastIndexOfSignature = function(sig) { - var sig0 = sig.charCodeAt(0), - sig1 = sig.charCodeAt(1), - sig2 = sig.charCodeAt(2), - sig3 = sig.charCodeAt(3); - for (var i = this.length - 4; i >= 0; --i) { - if (this.data[i] === sig0 && this.data[i + 1] === sig1 && this.data[i + 2] === sig2 && this.data[i + 3] === sig3) { - return i - this.zero; - } - } - - return -1; -}; -/** - * @see DataReader.readAndCheckSignature - */ -ArrayReader.prototype.readAndCheckSignature = function (sig) { - var sig0 = sig.charCodeAt(0), - sig1 = sig.charCodeAt(1), - sig2 = sig.charCodeAt(2), - sig3 = sig.charCodeAt(3), - data = this.readData(4); - return sig0 === data[0] && sig1 === data[1] && sig2 === data[2] && sig3 === data[3]; -}; -/** - * @see DataReader.readData - */ -ArrayReader.prototype.readData = function(size) { - this.checkOffset(size); - if(size === 0) { - return []; - } - var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); - this.index += size; - return result; -}; -module.exports = ArrayReader; - -},{"../utils":32,"./DataReader":18}],18:[function(require,module,exports){ -'use strict'; -var utils = require('../utils'); - -function DataReader(data) { - this.data = data; // type : see implementation - this.length = data.length; - this.index = 0; - this.zero = 0; -} -DataReader.prototype = { - /** - * Check that the offset will not go too far. - * @param {string} offset the additional offset to check. - * @throws {Error} an Error if the offset is out of bounds. - */ - checkOffset: function(offset) { - this.checkIndex(this.index + offset); - }, - /** - * Check that the specified index will not be too far. - * @param {string} newIndex the index to check. - * @throws {Error} an Error if the index is out of bounds. - */ - checkIndex: function(newIndex) { - if (this.length < this.zero + newIndex || newIndex < 0) { - throw new Error("End of data reached (data length = " + this.length + ", asked index = " + (newIndex) + "). Corrupted zip ?"); - } - }, - /** - * Change the index. - * @param {number} newIndex The new index. - * @throws {Error} if the new index is out of the data. - */ - setIndex: function(newIndex) { - this.checkIndex(newIndex); - this.index = newIndex; - }, - /** - * Skip the next n bytes. - * @param {number} n the number of bytes to skip. - * @throws {Error} if the new index is out of the data. - */ - skip: function(n) { - this.setIndex(this.index + n); - }, - /** - * Get the byte at the specified index. - * @param {number} i the index to use. - * @return {number} a byte. - */ - byteAt: function(i) { - // see implementations - }, - /** - * Get the next number with a given byte size. - * @param {number} size the number of bytes to read. - * @return {number} the corresponding number. - */ - readInt: function(size) { - var result = 0, - i; - this.checkOffset(size); - for (i = this.index + size - 1; i >= this.index; i--) { - result = (result << 8) + this.byteAt(i); - } - this.index += size; - return result; - }, - /** - * Get the next string with a given byte size. - * @param {number} size the number of bytes to read. - * @return {string} the corresponding string. - */ - readString: function(size) { - return utils.transformTo("string", this.readData(size)); - }, - /** - * Get raw data without conversion, bytes. - * @param {number} size the number of bytes to read. - * @return {Object} the raw data, implementation specific. - */ - readData: function(size) { - // see implementations - }, - /** - * Find the last occurence of a zip signature (4 bytes). - * @param {string} sig the signature to find. - * @return {number} the index of the last occurence, -1 if not found. - */ - lastIndexOfSignature: function(sig) { - // see implementations - }, - /** - * Read the signature (4 bytes) at the current position and compare it with sig. - * @param {string} sig the expected signature - * @return {boolean} true if the signature matches, false otherwise. - */ - readAndCheckSignature: function(sig) { - // see implementations - }, - /** - * Get the next date. - * @return {Date} the date. - */ - readDate: function() { - var dostime = this.readInt(4); - return new Date(Date.UTC( - ((dostime >> 25) & 0x7f) + 1980, // year - ((dostime >> 21) & 0x0f) - 1, // month - (dostime >> 16) & 0x1f, // day - (dostime >> 11) & 0x1f, // hour - (dostime >> 5) & 0x3f, // minute - (dostime & 0x1f) << 1)); // second - } -}; -module.exports = DataReader; - -},{"../utils":32}],19:[function(require,module,exports){ -'use strict'; -var Uint8ArrayReader = require('./Uint8ArrayReader'); -var utils = require('../utils'); - -function NodeBufferReader(data) { - Uint8ArrayReader.call(this, data); -} -utils.inherits(NodeBufferReader, Uint8ArrayReader); - -/** - * @see DataReader.readData - */ -NodeBufferReader.prototype.readData = function(size) { - this.checkOffset(size); - var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); - this.index += size; - return result; -}; -module.exports = NodeBufferReader; - -},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(require,module,exports){ -'use strict'; -var DataReader = require('./DataReader'); -var utils = require('../utils'); - -function StringReader(data) { - DataReader.call(this, data); -} -utils.inherits(StringReader, DataReader); -/** - * @see DataReader.byteAt - */ -StringReader.prototype.byteAt = function(i) { - return this.data.charCodeAt(this.zero + i); -}; -/** - * @see DataReader.lastIndexOfSignature - */ -StringReader.prototype.lastIndexOfSignature = function(sig) { - return this.data.lastIndexOf(sig) - this.zero; -}; -/** - * @see DataReader.readAndCheckSignature - */ -StringReader.prototype.readAndCheckSignature = function (sig) { - var data = this.readData(4); - return sig === data; -}; -/** - * @see DataReader.readData - */ -StringReader.prototype.readData = function(size) { - this.checkOffset(size); - // this will work because the constructor applied the "& 0xff" mask. - var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); - this.index += size; - return result; -}; -module.exports = StringReader; - -},{"../utils":32,"./DataReader":18}],21:[function(require,module,exports){ -'use strict'; -var ArrayReader = require('./ArrayReader'); -var utils = require('../utils'); - -function Uint8ArrayReader(data) { - ArrayReader.call(this, data); -} -utils.inherits(Uint8ArrayReader, ArrayReader); -/** - * @see DataReader.readData - */ -Uint8ArrayReader.prototype.readData = function(size) { - this.checkOffset(size); - if(size === 0) { - // in IE10, when using subarray(idx, idx), we get the array [0x00] instead of []. - return new Uint8Array(0); - } - var result = this.data.subarray(this.zero + this.index, this.zero + this.index + size); - this.index += size; - return result; -}; -module.exports = Uint8ArrayReader; - -},{"../utils":32,"./ArrayReader":17}],22:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); -var support = require('../support'); -var ArrayReader = require('./ArrayReader'); -var StringReader = require('./StringReader'); -var NodeBufferReader = require('./NodeBufferReader'); -var Uint8ArrayReader = require('./Uint8ArrayReader'); - -/** - * Create a reader adapted to the data. - * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read. - * @return {DataReader} the data reader. - */ -module.exports = function (data) { - var type = utils.getTypeOf(data); - utils.checkSupport(type); - if (type === "string" && !support.uint8array) { - return new StringReader(data); - } - if (type === "nodebuffer") { - return new NodeBufferReader(data); - } - if (support.uint8array) { - return new Uint8ArrayReader(utils.transformTo("uint8array", data)); - } - return new ArrayReader(utils.transformTo("array", data)); -}; - -},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(require,module,exports){ -'use strict'; -exports.LOCAL_FILE_HEADER = "PK\x03\x04"; -exports.CENTRAL_FILE_HEADER = "PK\x01\x02"; -exports.CENTRAL_DIRECTORY_END = "PK\x05\x06"; -exports.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x06\x07"; -exports.ZIP64_CENTRAL_DIRECTORY_END = "PK\x06\x06"; -exports.DATA_DESCRIPTOR = "PK\x07\x08"; - -},{}],24:[function(require,module,exports){ -'use strict'; - -var GenericWorker = require('./GenericWorker'); -var utils = require('../utils'); - -/** - * A worker which convert chunks to a specified type. - * @constructor - * @param {String} destType the destination type. - */ -function ConvertWorker(destType) { - GenericWorker.call(this, "ConvertWorker to " + destType); - this.destType = destType; -} -utils.inherits(ConvertWorker, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -ConvertWorker.prototype.processChunk = function (chunk) { - this.push({ - data : utils.transformTo(this.destType, chunk.data), - meta : chunk.meta - }); -}; -module.exports = ConvertWorker; - -},{"../utils":32,"./GenericWorker":28}],25:[function(require,module,exports){ -'use strict'; - -var GenericWorker = require('./GenericWorker'); -var crc32 = require('../crc32'); -var utils = require('../utils'); - -/** - * A worker which calculate the crc32 of the data flowing through. - * @constructor - */ -function Crc32Probe() { - GenericWorker.call(this, "Crc32Probe"); - this.withStreamInfo("crc32", 0); -} -utils.inherits(Crc32Probe, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -Crc32Probe.prototype.processChunk = function (chunk) { - this.streamInfo.crc32 = crc32(chunk.data, this.streamInfo.crc32 || 0); - this.push(chunk); -}; -module.exports = Crc32Probe; - -},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); -var GenericWorker = require('./GenericWorker'); - -/** - * A worker which calculate the total length of the data flowing through. - * @constructor - * @param {String} propName the name used to expose the length - */ -function DataLengthProbe(propName) { - GenericWorker.call(this, "DataLengthProbe for " + propName); - this.propName = propName; - this.withStreamInfo(propName, 0); -} -utils.inherits(DataLengthProbe, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -DataLengthProbe.prototype.processChunk = function (chunk) { - if(chunk) { - var length = this.streamInfo[this.propName] || 0; - this.streamInfo[this.propName] = length + chunk.data.length; - } - GenericWorker.prototype.processChunk.call(this, chunk); -}; -module.exports = DataLengthProbe; - - -},{"../utils":32,"./GenericWorker":28}],27:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); -var GenericWorker = require('./GenericWorker'); - -// the size of the generated chunks -// TODO expose this as a public variable -var DEFAULT_BLOCK_SIZE = 16 * 1024; - -/** - * A worker that reads a content and emits chunks. - * @constructor - * @param {Promise} dataP the promise of the data to split - */ -function DataWorker(dataP) { - GenericWorker.call(this, "DataWorker"); - var self = this; - this.dataIsReady = false; - this.index = 0; - this.max = 0; - this.data = null; - this.type = ""; - - this._tickScheduled = false; - - dataP.then(function (data) { - self.dataIsReady = true; - self.data = data; - self.max = data && data.length || 0; - self.type = utils.getTypeOf(data); - if(!self.isPaused) { - self._tickAndRepeat(); - } - }, function (e) { - self.error(e); - }); -} - -utils.inherits(DataWorker, GenericWorker); - -/** - * @see GenericWorker.cleanUp - */ -DataWorker.prototype.cleanUp = function () { - GenericWorker.prototype.cleanUp.call(this); - this.data = null; -}; - -/** - * @see GenericWorker.resume - */ -DataWorker.prototype.resume = function () { - if(!GenericWorker.prototype.resume.call(this)) { - return false; - } - - if (!this._tickScheduled && this.dataIsReady) { - this._tickScheduled = true; - utils.delay(this._tickAndRepeat, [], this); - } - return true; -}; - -/** - * Trigger a tick a schedule an other call to this function. - */ -DataWorker.prototype._tickAndRepeat = function() { - this._tickScheduled = false; - if(this.isPaused || this.isFinished) { - return; - } - this._tick(); - if(!this.isFinished) { - utils.delay(this._tickAndRepeat, [], this); - this._tickScheduled = true; - } -}; - -/** - * Read and push a chunk. - */ -DataWorker.prototype._tick = function() { - - if(this.isPaused || this.isFinished) { - return false; - } - - var size = DEFAULT_BLOCK_SIZE; - var data = null, nextIndex = Math.min(this.max, this.index + size); - if (this.index >= this.max) { - // EOF - return this.end(); - } else { - switch(this.type) { - case "string": - data = this.data.substring(this.index, nextIndex); - break; - case "uint8array": - data = this.data.subarray(this.index, nextIndex); - break; - case "array": - case "nodebuffer": - data = this.data.slice(this.index, nextIndex); - break; - } - this.index = nextIndex; - return this.push({ - data : data, - meta : { - percent : this.max ? this.index / this.max * 100 : 0 - } - }); - } -}; - -module.exports = DataWorker; - -},{"../utils":32,"./GenericWorker":28}],28:[function(require,module,exports){ -'use strict'; - -/** - * A worker that does nothing but passing chunks to the next one. This is like - * a nodejs stream but with some differences. On the good side : - * - it works on IE 6-9 without any issue / polyfill - * - it weights less than the full dependencies bundled with browserify - * - it forwards errors (no need to declare an error handler EVERYWHERE) - * - * A chunk is an object with 2 attributes : `meta` and `data`. The former is an - * object containing anything (`percent` for example), see each worker for more - * details. The latter is the real data (String, Uint8Array, etc). - * - * @constructor - * @param {String} name the name of the stream (mainly used for debugging purposes) - */ -function GenericWorker(name) { - // the name of the worker - this.name = name || "default"; - // an object containing metadata about the workers chain - this.streamInfo = {}; - // an error which happened when the worker was paused - this.generatedError = null; - // an object containing metadata to be merged by this worker into the general metadata - this.extraStreamInfo = {}; - // true if the stream is paused (and should not do anything), false otherwise - this.isPaused = true; - // true if the stream is finished (and should not do anything), false otherwise - this.isFinished = false; - // true if the stream is locked to prevent further structure updates (pipe), false otherwise - this.isLocked = false; - // the event listeners - this._listeners = { - 'data':[], - 'end':[], - 'error':[] - }; - // the previous worker, if any - this.previous = null; -} - -GenericWorker.prototype = { - /** - * Push a chunk to the next workers. - * @param {Object} chunk the chunk to push - */ - push : function (chunk) { - this.emit("data", chunk); - }, - /** - * End the stream. - * @return {Boolean} true if this call ended the worker, false otherwise. - */ - end : function () { - if (this.isFinished) { - return false; - } - - this.flush(); - try { - this.emit("end"); - this.cleanUp(); - this.isFinished = true; - } catch (e) { - this.emit("error", e); - } - return true; - }, - /** - * End the stream with an error. - * @param {Error} e the error which caused the premature end. - * @return {Boolean} true if this call ended the worker with an error, false otherwise. - */ - error : function (e) { - if (this.isFinished) { - return false; - } - - if(this.isPaused) { - this.generatedError = e; - } else { - this.isFinished = true; - - this.emit("error", e); - - // in the workers chain exploded in the middle of the chain, - // the error event will go downward but we also need to notify - // workers upward that there has been an error. - if(this.previous) { - this.previous.error(e); - } - - this.cleanUp(); - } - return true; - }, - /** - * Add a callback on an event. - * @param {String} name the name of the event (data, end, error) - * @param {Function} listener the function to call when the event is triggered - * @return {GenericWorker} the current object for chainability - */ - on : function (name, listener) { - this._listeners[name].push(listener); - return this; - }, - /** - * Clean any references when a worker is ending. - */ - cleanUp : function () { - this.streamInfo = this.generatedError = this.extraStreamInfo = null; - this._listeners = []; - }, - /** - * Trigger an event. This will call registered callback with the provided arg. - * @param {String} name the name of the event (data, end, error) - * @param {Object} arg the argument to call the callback with. - */ - emit : function (name, arg) { - if (this._listeners[name]) { - for(var i = 0; i < this._listeners[name].length; i++) { - this._listeners[name][i].call(this, arg); - } - } - }, - /** - * Chain a worker with an other. - * @param {Worker} next the worker receiving events from the current one. - * @return {worker} the next worker for chainability - */ - pipe : function (next) { - return next.registerPrevious(this); - }, - /** - * Same as `pipe` in the other direction. - * Using an API with `pipe(next)` is very easy. - * Implementing the API with the point of view of the next one registering - * a source is easier, see the ZipFileWorker. - * @param {Worker} previous the previous worker, sending events to this one - * @return {Worker} the current worker for chainability - */ - registerPrevious : function (previous) { - if (this.isLocked) { - throw new Error("The stream '" + this + "' has already been used."); - } - - // sharing the streamInfo... - this.streamInfo = previous.streamInfo; - // ... and adding our own bits - this.mergeStreamInfo(); - this.previous = previous; - var self = this; - previous.on('data', function (chunk) { - self.processChunk(chunk); - }); - previous.on('end', function () { - self.end(); - }); - previous.on('error', function (e) { - self.error(e); - }); - return this; - }, - /** - * Pause the stream so it doesn't send events anymore. - * @return {Boolean} true if this call paused the worker, false otherwise. - */ - pause : function () { - if(this.isPaused || this.isFinished) { - return false; - } - this.isPaused = true; - - if(this.previous) { - this.previous.pause(); - } - return true; - }, - /** - * Resume a paused stream. - * @return {Boolean} true if this call resumed the worker, false otherwise. - */ - resume : function () { - if(!this.isPaused || this.isFinished) { - return false; - } - this.isPaused = false; - - // if true, the worker tried to resume but failed - var withError = false; - if(this.generatedError) { - this.error(this.generatedError); - withError = true; - } - if(this.previous) { - this.previous.resume(); - } - - return !withError; - }, - /** - * Flush any remaining bytes as the stream is ending. - */ - flush : function () {}, - /** - * Process a chunk. This is usually the method overridden. - * @param {Object} chunk the chunk to process. - */ - processChunk : function(chunk) { - this.push(chunk); - }, - /** - * Add a key/value to be added in the workers chain streamInfo once activated. - * @param {String} key the key to use - * @param {Object} value the associated value - * @return {Worker} the current worker for chainability - */ - withStreamInfo : function (key, value) { - this.extraStreamInfo[key] = value; - this.mergeStreamInfo(); - return this; - }, - /** - * Merge this worker's streamInfo into the chain's streamInfo. - */ - mergeStreamInfo : function () { - for(var key in this.extraStreamInfo) { - if (!this.extraStreamInfo.hasOwnProperty(key)) { - continue; - } - this.streamInfo[key] = this.extraStreamInfo[key]; - } - }, - - /** - * Lock the stream to prevent further updates on the workers chain. - * After calling this method, all calls to pipe will fail. - */ - lock: function () { - if (this.isLocked) { - throw new Error("The stream '" + this + "' has already been used."); - } - this.isLocked = true; - if (this.previous) { - this.previous.lock(); - } - }, - - /** - * - * Pretty print the workers chain. - */ - toString : function () { - var me = "Worker " + this.name; - if (this.previous) { - return this.previous + " -> " + me; - } else { - return me; - } - } -}; - -module.exports = GenericWorker; - -},{}],29:[function(require,module,exports){ -'use strict'; - -var utils = require('../utils'); -var ConvertWorker = require('./ConvertWorker'); -var GenericWorker = require('./GenericWorker'); -var base64 = require('../base64'); -var support = require("../support"); -var external = require("../external"); - -var NodejsStreamOutputAdapter = null; -if (support.nodestream) { - try { - NodejsStreamOutputAdapter = require('../nodejs/NodejsStreamOutputAdapter'); - } catch(e) {} -} - -/** - * Apply the final transformation of the data. If the user wants a Blob for - * example, it's easier to work with an U8intArray and finally do the - * ArrayBuffer/Blob conversion. - * @param {String} type the name of the final type - * @param {String|Uint8Array|Buffer} content the content to transform - * @param {String} mimeType the mime type of the content, if applicable. - * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the content in the right format. - */ -function transformZipOutput(type, content, mimeType) { - switch(type) { - case "blob" : - return utils.newBlob(utils.transformTo("arraybuffer", content), mimeType); - case "base64" : - return base64.encode(content); - default : - return utils.transformTo(type, content); - } -} - -/** - * Concatenate an array of data of the given type. - * @param {String} type the type of the data in the given array. - * @param {Array} dataArray the array containing the data chunks to concatenate - * @return {String|Uint8Array|Buffer} the concatenated data - * @throws Error if the asked type is unsupported - */ -function concat (type, dataArray) { - var i, index = 0, res = null, totalLength = 0; - for(i = 0; i < dataArray.length; i++) { - totalLength += dataArray[i].length; - } - switch(type) { - case "string": - return dataArray.join(""); - case "array": - return Array.prototype.concat.apply([], dataArray); - case "uint8array": - res = new Uint8Array(totalLength); - for(i = 0; i < dataArray.length; i++) { - res.set(dataArray[i], index); - index += dataArray[i].length; - } - return res; - case "nodebuffer": - return Buffer.concat(dataArray); - default: - throw new Error("concat : unsupported type '" + type + "'"); - } -} - -/** - * Listen a StreamHelper, accumulate its content and concatenate it into a - * complete block. - * @param {StreamHelper} helper the helper to use. - * @param {Function} updateCallback a callback called on each update. Called - * with one arg : - * - the metadata linked to the update received. - * @return Promise the promise for the accumulation. - */ -function accumulate(helper, updateCallback) { - return new external.Promise(function (resolve, reject){ - var dataArray = []; - var chunkType = helper._internalType, - resultType = helper._outputType, - mimeType = helper._mimeType; - helper - .on('data', function (data, meta) { - dataArray.push(data); - if(updateCallback) { - updateCallback(meta); - } - }) - .on('error', function(err) { - dataArray = []; - reject(err); - }) - .on('end', function (){ - try { - var result = transformZipOutput(resultType, concat(chunkType, dataArray), mimeType); - resolve(result); - } catch (e) { - reject(e); - } - dataArray = []; - }) - .resume(); - }); -} - -/** - * An helper to easily use workers outside of JSZip. - * @constructor - * @param {Worker} worker the worker to wrap - * @param {String} outputType the type of data expected by the use - * @param {String} mimeType the mime type of the content, if applicable. - */ -function StreamHelper(worker, outputType, mimeType) { - var internalType = outputType; - switch(outputType) { - case "blob": - case "arraybuffer": - internalType = "uint8array"; - break; - case "base64": - internalType = "string"; - break; - } - - try { - // the type used internally - this._internalType = internalType; - // the type used to output results - this._outputType = outputType; - // the mime type - this._mimeType = mimeType; - utils.checkSupport(internalType); - this._worker = worker.pipe(new ConvertWorker(internalType)); - // the last workers can be rewired without issues but we need to - // prevent any updates on previous workers. - worker.lock(); - } catch(e) { - this._worker = new GenericWorker("error"); - this._worker.error(e); - } -} - -StreamHelper.prototype = { - /** - * Listen a StreamHelper, accumulate its content and concatenate it into a - * complete block. - * @param {Function} updateCb the update callback. - * @return Promise the promise for the accumulation. - */ - accumulate : function (updateCb) { - return accumulate(this, updateCb); - }, - /** - * Add a listener on an event triggered on a stream. - * @param {String} evt the name of the event - * @param {Function} fn the listener - * @return {StreamHelper} the current helper. - */ - on : function (evt, fn) { - var self = this; - - if(evt === "data") { - this._worker.on(evt, function (chunk) { - fn.call(self, chunk.data, chunk.meta); - }); - } else { - this._worker.on(evt, function () { - utils.delay(fn, arguments, self); - }); - } - return this; - }, - /** - * Resume the flow of chunks. - * @return {StreamHelper} the current helper. - */ - resume : function () { - utils.delay(this._worker.resume, [], this._worker); - return this; - }, - /** - * Pause the flow of chunks. - * @return {StreamHelper} the current helper. - */ - pause : function () { - this._worker.pause(); - return this; - }, - /** - * Return a nodejs stream for this helper. - * @param {Function} updateCb the update callback. - * @return {NodejsStreamOutputAdapter} the nodejs stream. - */ - toNodejsStream : function (updateCb) { - utils.checkSupport("nodestream"); - if (this._outputType !== "nodebuffer") { - // an object stream containing blob/arraybuffer/uint8array/string - // is strange and I don't know if it would be useful. - // I you find this comment and have a good usecase, please open a - // bug report ! - throw new Error(this._outputType + " is not supported by this method"); - } - - return new NodejsStreamOutputAdapter(this, { - objectMode : this._outputType !== "nodebuffer" - }, updateCb); - } -}; - - -module.exports = StreamHelper; - -},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(require,module,exports){ -'use strict'; - -exports.base64 = true; -exports.array = true; -exports.string = true; -exports.arraybuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined"; -exports.nodebuffer = typeof Buffer !== "undefined"; -// contains true if JSZip can read/generate Uint8Array, false otherwise. -exports.uint8array = typeof Uint8Array !== "undefined"; - -if (typeof ArrayBuffer === "undefined") { - exports.blob = false; -} -else { - var buffer = new ArrayBuffer(0); - try { - exports.blob = new Blob([buffer], { - type: "application/zip" - }).size === 0; - } - catch (e) { - try { - var Builder = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder; - var builder = new Builder(); - builder.append(buffer); - exports.blob = builder.getBlob('application/zip').size === 0; - } - catch (e) { - exports.blob = false; - } - } -} - -try { - exports.nodestream = !!require('readable-stream').Readable; -} catch(e) { - exports.nodestream = false; -} - -},{"readable-stream":16}],31:[function(require,module,exports){ -'use strict'; - -var utils = require('./utils'); -var support = require('./support'); -var nodejsUtils = require('./nodejsUtils'); -var GenericWorker = require('./stream/GenericWorker'); - -/** - * The following functions come from pako, from pako/lib/utils/strings - * released under the MIT license, see pako https://github.com/nodeca/pako/ - */ - -// Table with utf8 lengths (calculated by first byte of sequence) -// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS, -// because max possible codepoint is 0x10ffff -var _utf8len = new Array(256); -for (var i=0; i<256; i++) { - _utf8len[i] = (i >= 252 ? 6 : i >= 248 ? 5 : i >= 240 ? 4 : i >= 224 ? 3 : i >= 192 ? 2 : 1); -} -_utf8len[254]=_utf8len[254]=1; // Invalid sequence start - -// convert string to array (typed, when possible) -var string2buf = function (str) { - var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0; - - // count binary size - for (m_pos = 0; m_pos < str_len; m_pos++) { - c = str.charCodeAt(m_pos); - if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) { - c2 = str.charCodeAt(m_pos+1); - if ((c2 & 0xfc00) === 0xdc00) { - c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); - m_pos++; - } - } - buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4; - } - - // allocate buffer - if (support.uint8array) { - buf = new Uint8Array(buf_len); - } else { - buf = new Array(buf_len); - } - - // convert - for (i=0, m_pos = 0; i < buf_len; m_pos++) { - c = str.charCodeAt(m_pos); - if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) { - c2 = str.charCodeAt(m_pos+1); - if ((c2 & 0xfc00) === 0xdc00) { - c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); - m_pos++; - } - } - if (c < 0x80) { - /* one byte */ - buf[i++] = c; - } else if (c < 0x800) { - /* two bytes */ - buf[i++] = 0xC0 | (c >>> 6); - buf[i++] = 0x80 | (c & 0x3f); - } else if (c < 0x10000) { - /* three bytes */ - buf[i++] = 0xE0 | (c >>> 12); - buf[i++] = 0x80 | (c >>> 6 & 0x3f); - buf[i++] = 0x80 | (c & 0x3f); - } else { - /* four bytes */ - buf[i++] = 0xf0 | (c >>> 18); - buf[i++] = 0x80 | (c >>> 12 & 0x3f); - buf[i++] = 0x80 | (c >>> 6 & 0x3f); - buf[i++] = 0x80 | (c & 0x3f); - } - } - - return buf; -}; - -// Calculate max possible position in utf8 buffer, -// that will not break sequence. If that's not possible -// - (very small limits) return max size as is. -// -// buf[] - utf8 bytes array -// max - length limit (mandatory); -var utf8border = function(buf, max) { - var pos; - - max = max || buf.length; - if (max > buf.length) { max = buf.length; } - - // go back from last position, until start of sequence found - pos = max-1; - while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; } - - // Fuckup - very small and broken sequence, - // return max, because we should return something anyway. - if (pos < 0) { return max; } - - // If we came to start of buffer - that means vuffer is too small, - // return max too. - if (pos === 0) { return max; } - - return (pos + _utf8len[buf[pos]] > max) ? pos : max; -}; - -// convert array to string -var buf2string = function (buf) { - var str, i, out, c, c_len; - var len = buf.length; - - // Reserve max possible length (2 words per char) - // NB: by unknown reasons, Array is significantly faster for - // String.fromCharCode.apply than Uint16Array. - var utf16buf = new Array(len*2); - - for (out=0, i=0; i 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; } - - // apply mask on first byte - c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07; - // join the rest - while (c_len > 1 && i < len) { - c = (c << 6) | (buf[i++] & 0x3f); - c_len--; - } - - // terminated by end of string? - if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } - - if (c < 0x10000) { - utf16buf[out++] = c; - } else { - c -= 0x10000; - utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff); - utf16buf[out++] = 0xdc00 | (c & 0x3ff); - } - } - - // shrinkBuf(utf16buf, out) - if (utf16buf.length !== out) { - if(utf16buf.subarray) { - utf16buf = utf16buf.subarray(0, out); - } else { - utf16buf.length = out; - } - } - - // return String.fromCharCode.apply(null, utf16buf); - return utils.applyFromCharCode(utf16buf); -}; - - -// That's all for the pako functions. - - -/** - * Transform a javascript string into an array (typed if possible) of bytes, - * UTF-8 encoded. - * @param {String} str the string to encode - * @return {Array|Uint8Array|Buffer} the UTF-8 encoded string. - */ -exports.utf8encode = function utf8encode(str) { - if (support.nodebuffer) { - return nodejsUtils.newBufferFrom(str, "utf-8"); - } - - return string2buf(str); -}; - - -/** - * Transform a bytes array (or a representation) representing an UTF-8 encoded - * string into a javascript string. - * @param {Array|Uint8Array|Buffer} buf the data de decode - * @return {String} the decoded string. - */ -exports.utf8decode = function utf8decode(buf) { - if (support.nodebuffer) { - return utils.transformTo("nodebuffer", buf).toString("utf-8"); - } - - buf = utils.transformTo(support.uint8array ? "uint8array" : "array", buf); - - return buf2string(buf); -}; - -/** - * A worker to decode utf8 encoded binary chunks into string chunks. - * @constructor - */ -function Utf8DecodeWorker() { - GenericWorker.call(this, "utf-8 decode"); - // the last bytes if a chunk didn't end with a complete codepoint. - this.leftOver = null; -} -utils.inherits(Utf8DecodeWorker, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -Utf8DecodeWorker.prototype.processChunk = function (chunk) { - - var data = utils.transformTo(support.uint8array ? "uint8array" : "array", chunk.data); - - // 1st step, re-use what's left of the previous chunk - if (this.leftOver && this.leftOver.length) { - if(support.uint8array) { - var previousData = data; - data = new Uint8Array(previousData.length + this.leftOver.length); - data.set(this.leftOver, 0); - data.set(previousData, this.leftOver.length); - } else { - data = this.leftOver.concat(data); - } - this.leftOver = null; - } - - var nextBoundary = utf8border(data); - var usableData = data; - if (nextBoundary !== data.length) { - if (support.uint8array) { - usableData = data.subarray(0, nextBoundary); - this.leftOver = data.subarray(nextBoundary, data.length); - } else { - usableData = data.slice(0, nextBoundary); - this.leftOver = data.slice(nextBoundary, data.length); - } - } - - this.push({ - data : exports.utf8decode(usableData), - meta : chunk.meta - }); -}; - -/** - * @see GenericWorker.flush - */ -Utf8DecodeWorker.prototype.flush = function () { - if(this.leftOver && this.leftOver.length) { - this.push({ - data : exports.utf8decode(this.leftOver), - meta : {} - }); - this.leftOver = null; - } -}; -exports.Utf8DecodeWorker = Utf8DecodeWorker; - -/** - * A worker to endcode string chunks into utf8 encoded binary chunks. - * @constructor - */ -function Utf8EncodeWorker() { - GenericWorker.call(this, "utf-8 encode"); -} -utils.inherits(Utf8EncodeWorker, GenericWorker); - -/** - * @see GenericWorker.processChunk - */ -Utf8EncodeWorker.prototype.processChunk = function (chunk) { - this.push({ - data : exports.utf8encode(chunk.data), - meta : chunk.meta - }); -}; -exports.Utf8EncodeWorker = Utf8EncodeWorker; - -},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(require,module,exports){ -'use strict'; - -var support = require('./support'); -var base64 = require('./base64'); -var nodejsUtils = require('./nodejsUtils'); -var setImmediate = require('set-immediate-shim'); -var external = require("./external"); - - -/** - * Convert a string that pass as a "binary string": it should represent a byte - * array but may have > 255 char codes. Be sure to take only the first byte - * and returns the byte array. - * @param {String} str the string to transform. - * @return {Array|Uint8Array} the string in a binary format. - */ -function string2binary(str) { - var result = null; - if (support.uint8array) { - result = new Uint8Array(str.length); - } else { - result = new Array(str.length); - } - return stringToArrayLike(str, result); -} - -/** - * Create a new blob with the given content and the given type. - * @param {String|ArrayBuffer} part the content to put in the blob. DO NOT use - * an Uint8Array because the stock browser of android 4 won't accept it (it - * will be silently converted to a string, "[object Uint8Array]"). - * - * Use only ONE part to build the blob to avoid a memory leak in IE11 / Edge: - * when a large amount of Array is used to create the Blob, the amount of - * memory consumed is nearly 100 times the original data amount. - * - * @param {String} type the mime type of the blob. - * @return {Blob} the created blob. - */ -exports.newBlob = function(part, type) { - exports.checkSupport("blob"); - - try { - // Blob constructor - return new Blob([part], { - type: type - }); - } - catch (e) { - - try { - // deprecated, browser only, old way - var Builder = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder; - var builder = new Builder(); - builder.append(part); - return builder.getBlob(type); - } - catch (e) { - - // well, fuck ?! - throw new Error("Bug : can't construct the Blob."); - } - } - - -}; -/** - * The identity function. - * @param {Object} input the input. - * @return {Object} the same input. - */ -function identity(input) { - return input; -} - -/** - * Fill in an array with a string. - * @param {String} str the string to use. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated). - * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array. - */ -function stringToArrayLike(str, array) { - for (var i = 0; i < str.length; ++i) { - array[i] = str.charCodeAt(i) & 0xFF; - } - return array; -} - -/** - * An helper for the function arrayLikeToString. - * This contains static informations and functions that - * can be optimized by the browser JIT compiler. - */ -var arrayToStringHelper = { - /** - * Transform an array of int into a string, chunk by chunk. - * See the performances notes on arrayLikeToString. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. - * @param {String} type the type of the array. - * @param {Integer} chunk the chunk size. - * @return {String} the resulting string. - * @throws Error if the chunk is too big for the stack. - */ - stringifyByChunk: function(array, type, chunk) { - var result = [], k = 0, len = array.length; - // shortcut - if (len <= chunk) { - return String.fromCharCode.apply(null, array); - } - while (k < len) { - if (type === "array" || type === "nodebuffer") { - result.push(String.fromCharCode.apply(null, array.slice(k, Math.min(k + chunk, len)))); - } - else { - result.push(String.fromCharCode.apply(null, array.subarray(k, Math.min(k + chunk, len)))); - } - k += chunk; - } - return result.join(""); - }, - /** - * Call String.fromCharCode on every item in the array. - * This is the naive implementation, which generate A LOT of intermediate string. - * This should be used when everything else fail. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. - * @return {String} the result. - */ - stringifyByChar: function(array){ - var resultStr = ""; - for(var i = 0; i < array.length; i++) { - resultStr += String.fromCharCode(array[i]); - } - return resultStr; - }, - applyCanBeUsed : { - /** - * true if the browser accepts to use String.fromCharCode on Uint8Array - */ - uint8array : (function () { - try { - return support.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1; - } catch (e) { - return false; - } - })(), - /** - * true if the browser accepts to use String.fromCharCode on nodejs Buffer. - */ - nodebuffer : (function () { - try { - return support.nodebuffer && String.fromCharCode.apply(null, nodejsUtils.allocBuffer(1)).length === 1; - } catch (e) { - return false; - } - })() - } -}; - -/** - * Transform an array-like object to a string. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. - * @return {String} the result. - */ -function arrayLikeToString(array) { - // Performances notes : - // -------------------- - // String.fromCharCode.apply(null, array) is the fastest, see - // see http://jsperf.com/converting-a-uint8array-to-a-string/2 - // but the stack is limited (and we can get huge arrays !). - // - // result += String.fromCharCode(array[i]); generate too many strings ! - // - // This code is inspired by http://jsperf.com/arraybuffer-to-string-apply-performance/2 - // TODO : we now have workers that split the work. Do we still need that ? - var chunk = 65536, - type = exports.getTypeOf(array), - canUseApply = true; - if (type === "uint8array") { - canUseApply = arrayToStringHelper.applyCanBeUsed.uint8array; - } else if (type === "nodebuffer") { - canUseApply = arrayToStringHelper.applyCanBeUsed.nodebuffer; - } - - if (canUseApply) { - while (chunk > 1) { - try { - return arrayToStringHelper.stringifyByChunk(array, type, chunk); - } catch (e) { - chunk = Math.floor(chunk / 2); - } - } - } - - // no apply or chunk error : slow and painful algorithm - // default browser on android 4.* - return arrayToStringHelper.stringifyByChar(array); -} - -exports.applyFromCharCode = arrayLikeToString; - - -/** - * Copy the data from an array-like to an other array-like. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array. - * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated. - * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. - */ -function arrayLikeToArrayLike(arrayFrom, arrayTo) { - for (var i = 0; i < arrayFrom.length; i++) { - arrayTo[i] = arrayFrom[i]; - } - return arrayTo; -} - -// a matrix containing functions to transform everything into everything. -var transform = {}; - -// string to ? -transform["string"] = { - "string": identity, - "array": function(input) { - return stringToArrayLike(input, new Array(input.length)); - }, - "arraybuffer": function(input) { - return transform["string"]["uint8array"](input).buffer; - }, - "uint8array": function(input) { - return stringToArrayLike(input, new Uint8Array(input.length)); - }, - "nodebuffer": function(input) { - return stringToArrayLike(input, nodejsUtils.allocBuffer(input.length)); - } -}; - -// array to ? -transform["array"] = { - "string": arrayLikeToString, - "array": identity, - "arraybuffer": function(input) { - return (new Uint8Array(input)).buffer; - }, - "uint8array": function(input) { - return new Uint8Array(input); - }, - "nodebuffer": function(input) { - return nodejsUtils.newBufferFrom(input); - } -}; - -// arraybuffer to ? -transform["arraybuffer"] = { - "string": function(input) { - return arrayLikeToString(new Uint8Array(input)); - }, - "array": function(input) { - return arrayLikeToArrayLike(new Uint8Array(input), new Array(input.byteLength)); - }, - "arraybuffer": identity, - "uint8array": function(input) { - return new Uint8Array(input); - }, - "nodebuffer": function(input) { - return nodejsUtils.newBufferFrom(new Uint8Array(input)); - } -}; - -// uint8array to ? -transform["uint8array"] = { - "string": arrayLikeToString, - "array": function(input) { - return arrayLikeToArrayLike(input, new Array(input.length)); - }, - "arraybuffer": function(input) { - return input.buffer; - }, - "uint8array": identity, - "nodebuffer": function(input) { - return nodejsUtils.newBufferFrom(input); - } -}; - -// nodebuffer to ? -transform["nodebuffer"] = { - "string": arrayLikeToString, - "array": function(input) { - return arrayLikeToArrayLike(input, new Array(input.length)); - }, - "arraybuffer": function(input) { - return transform["nodebuffer"]["uint8array"](input).buffer; - }, - "uint8array": function(input) { - return arrayLikeToArrayLike(input, new Uint8Array(input.length)); - }, - "nodebuffer": identity -}; - -/** - * Transform an input into any type. - * The supported output type are : string, array, uint8array, arraybuffer, nodebuffer. - * If no output type is specified, the unmodified input will be returned. - * @param {String} outputType the output type. - * @param {String|Array|ArrayBuffer|Uint8Array|Buffer} input the input to convert. - * @throws {Error} an Error if the browser doesn't support the requested output type. - */ -exports.transformTo = function(outputType, input) { - if (!input) { - // undefined, null, etc - // an empty string won't harm. - input = ""; - } - if (!outputType) { - return input; - } - exports.checkSupport(outputType); - var inputType = exports.getTypeOf(input); - var result = transform[inputType][outputType](input); - return result; -}; - -/** - * Return the type of the input. - * The type will be in a format valid for JSZip.utils.transformTo : string, array, uint8array, arraybuffer. - * @param {Object} input the input to identify. - * @return {String} the (lowercase) type of the input. - */ -exports.getTypeOf = function(input) { - if (typeof input === "string") { - return "string"; - } - if (Object.prototype.toString.call(input) === "[object Array]") { - return "array"; - } - if (support.nodebuffer && nodejsUtils.isBuffer(input)) { - return "nodebuffer"; - } - if (support.uint8array && input instanceof Uint8Array) { - return "uint8array"; - } - if (support.arraybuffer && input instanceof ArrayBuffer) { - return "arraybuffer"; - } -}; - -/** - * Throw an exception if the type is not supported. - * @param {String} type the type to check. - * @throws {Error} an Error if the browser doesn't support the requested type. - */ -exports.checkSupport = function(type) { - var supported = support[type.toLowerCase()]; - if (!supported) { - throw new Error(type + " is not supported by this platform"); - } -}; - -exports.MAX_VALUE_16BITS = 65535; -exports.MAX_VALUE_32BITS = -1; // well, "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" is parsed as -1 - -/** - * Prettify a string read as binary. - * @param {string} str the string to prettify. - * @return {string} a pretty string. - */ -exports.pretty = function(str) { - var res = '', - code, i; - for (i = 0; i < (str || "").length; i++) { - code = str.charCodeAt(i); - res += '\\x' + (code < 16 ? "0" : "") + code.toString(16).toUpperCase(); - } - return res; -}; - -/** - * Defer the call of a function. - * @param {Function} callback the function to call asynchronously. - * @param {Array} args the arguments to give to the callback. - */ -exports.delay = function(callback, args, self) { - setImmediate(function () { - callback.apply(self || null, args || []); - }); -}; - -/** - * Extends a prototype with an other, without calling a constructor with - * side effects. Inspired by nodejs' `utils.inherits` - * @param {Function} ctor the constructor to augment - * @param {Function} superCtor the parent constructor to use - */ -exports.inherits = function (ctor, superCtor) { - var Obj = function() {}; - Obj.prototype = superCtor.prototype; - ctor.prototype = new Obj(); -}; - -/** - * Merge the objects passed as parameters into a new one. - * @private - * @param {...Object} var_args All objects to merge. - * @return {Object} a new object with the data of the others. - */ -exports.extend = function() { - var result = {}, i, attr; - for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers - for (attr in arguments[i]) { - if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") { - result[attr] = arguments[i][attr]; - } - } - } - return result; -}; - -/** - * Transform arbitrary content into a Promise. - * @param {String} name a name for the content being processed. - * @param {Object} inputData the content to process. - * @param {Boolean} isBinary true if the content is not an unicode string - * @param {Boolean} isOptimizedBinaryString true if the string content only has one byte per character. - * @param {Boolean} isBase64 true if the string content is encoded with base64. - * @return {Promise} a promise in a format usable by JSZip. - */ -exports.prepareContent = function(name, inputData, isBinary, isOptimizedBinaryString, isBase64) { - - // if inputData is already a promise, this flatten it. - var promise = external.Promise.resolve(inputData).then(function(data) { - - - var isBlob = support.blob && (data instanceof Blob || ['[object File]', '[object Blob]'].indexOf(Object.prototype.toString.call(data)) !== -1); - - if (isBlob && typeof FileReader !== "undefined") { - return new external.Promise(function (resolve, reject) { - var reader = new FileReader(); - - reader.onload = function(e) { - resolve(e.target.result); - }; - reader.onerror = function(e) { - reject(e.target.error); - }; - reader.readAsArrayBuffer(data); - }); - } else { - return data; - } - }); - - return promise.then(function(data) { - var dataType = exports.getTypeOf(data); - - if (!dataType) { - return external.Promise.reject( - new Error("Can't read the data of '" + name + "'. Is it " + - "in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?") - ); - } - // special case : it's way easier to work with Uint8Array than with ArrayBuffer - if (dataType === "arraybuffer") { - data = exports.transformTo("uint8array", data); - } else if (dataType === "string") { - if (isBase64) { - data = base64.decode(data); - } - else if (isBinary) { - // optimizedBinaryString === true means that the file has already been filtered with a 0xFF mask - if (isOptimizedBinaryString !== true) { - // this is a string, not in a base64 format. - // Be sure that this is a correct "binary string" - data = string2binary(data); - } - } - } - return data; - }); -}; - -},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(require,module,exports){ -'use strict'; -var readerFor = require('./reader/readerFor'); -var utils = require('./utils'); -var sig = require('./signature'); -var ZipEntry = require('./zipEntry'); -var utf8 = require('./utf8'); -var support = require('./support'); -// class ZipEntries {{{ -/** - * All the entries in the zip file. - * @constructor - * @param {Object} loadOptions Options for loading the stream. - */ -function ZipEntries(loadOptions) { - this.files = []; - this.loadOptions = loadOptions; -} -ZipEntries.prototype = { - /** - * Check that the reader is on the specified signature. - * @param {string} expectedSignature the expected signature. - * @throws {Error} if it is an other signature. - */ - checkSignature: function(expectedSignature) { - if (!this.reader.readAndCheckSignature(expectedSignature)) { - this.reader.index -= 4; - var signature = this.reader.readString(4); - throw new Error("Corrupted zip or bug: unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")"); - } - }, - /** - * Check if the given signature is at the given index. - * @param {number} askedIndex the index to check. - * @param {string} expectedSignature the signature to expect. - * @return {boolean} true if the signature is here, false otherwise. - */ - isSignature: function(askedIndex, expectedSignature) { - var currentIndex = this.reader.index; - this.reader.setIndex(askedIndex); - var signature = this.reader.readString(4); - var result = signature === expectedSignature; - this.reader.setIndex(currentIndex); - return result; - }, - /** - * Read the end of the central directory. - */ - readBlockEndOfCentral: function() { - this.diskNumber = this.reader.readInt(2); - this.diskWithCentralDirStart = this.reader.readInt(2); - this.centralDirRecordsOnThisDisk = this.reader.readInt(2); - this.centralDirRecords = this.reader.readInt(2); - this.centralDirSize = this.reader.readInt(4); - this.centralDirOffset = this.reader.readInt(4); - - this.zipCommentLength = this.reader.readInt(2); - // warning : the encoding depends of the system locale - // On a linux machine with LANG=en_US.utf8, this field is utf8 encoded. - // On a windows machine, this field is encoded with the localized windows code page. - var zipComment = this.reader.readData(this.zipCommentLength); - var decodeParamType = support.uint8array ? "uint8array" : "array"; - // To get consistent behavior with the generation part, we will assume that - // this is utf8 encoded unless specified otherwise. - var decodeContent = utils.transformTo(decodeParamType, zipComment); - this.zipComment = this.loadOptions.decodeFileName(decodeContent); - }, - /** - * Read the end of the Zip 64 central directory. - * Not merged with the method readEndOfCentral : - * The end of central can coexist with its Zip64 brother, - * I don't want to read the wrong number of bytes ! - */ - readBlockZip64EndOfCentral: function() { - this.zip64EndOfCentralSize = this.reader.readInt(8); - this.reader.skip(4); - // this.versionMadeBy = this.reader.readString(2); - // this.versionNeeded = this.reader.readInt(2); - this.diskNumber = this.reader.readInt(4); - this.diskWithCentralDirStart = this.reader.readInt(4); - this.centralDirRecordsOnThisDisk = this.reader.readInt(8); - this.centralDirRecords = this.reader.readInt(8); - this.centralDirSize = this.reader.readInt(8); - this.centralDirOffset = this.reader.readInt(8); - - this.zip64ExtensibleData = {}; - var extraDataSize = this.zip64EndOfCentralSize - 44, - index = 0, - extraFieldId, - extraFieldLength, - extraFieldValue; - while (index < extraDataSize) { - extraFieldId = this.reader.readInt(2); - extraFieldLength = this.reader.readInt(4); - extraFieldValue = this.reader.readData(extraFieldLength); - this.zip64ExtensibleData[extraFieldId] = { - id: extraFieldId, - length: extraFieldLength, - value: extraFieldValue - }; - } - }, - /** - * Read the end of the Zip 64 central directory locator. - */ - readBlockZip64EndOfCentralLocator: function() { - this.diskWithZip64CentralDirStart = this.reader.readInt(4); - this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8); - this.disksCount = this.reader.readInt(4); - if (this.disksCount > 1) { - throw new Error("Multi-volumes zip are not supported"); - } - }, - /** - * Read the local files, based on the offset read in the central part. - */ - readLocalFiles: function() { - var i, file; - for (i = 0; i < this.files.length; i++) { - file = this.files[i]; - this.reader.setIndex(file.localHeaderOffset); - this.checkSignature(sig.LOCAL_FILE_HEADER); - file.readLocalPart(this.reader); - file.handleUTF8(); - file.processAttributes(); - } - }, - /** - * Read the central directory. - */ - readCentralDir: function() { - var file; - - this.reader.setIndex(this.centralDirOffset); - while (this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)) { - file = new ZipEntry({ - zip64: this.zip64 - }, this.loadOptions); - file.readCentralPart(this.reader); - this.files.push(file); - } - - if (this.centralDirRecords !== this.files.length) { - if (this.centralDirRecords !== 0 && this.files.length === 0) { - // We expected some records but couldn't find ANY. - // This is really suspicious, as if something went wrong. - throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length); - } else { - // We found some records but not all. - // Something is wrong but we got something for the user: no error here. - // console.warn("expected", this.centralDirRecords, "records in central dir, got", this.files.length); - } - } - }, - /** - * Read the end of central directory. - */ - readEndOfCentral: function() { - var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END); - if (offset < 0) { - // Check if the content is a truncated zip or complete garbage. - // A "LOCAL_FILE_HEADER" is not required at the beginning (auto - // extractible zip for example) but it can give a good hint. - // If an ajax request was used without responseType, we will also - // get unreadable data. - var isGarbage = !this.isSignature(0, sig.LOCAL_FILE_HEADER); - - if (isGarbage) { - throw new Error("Can't find end of central directory : is this a zip file ? " + - "If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"); - } else { - throw new Error("Corrupted zip: can't find end of central directory"); - } - - } - this.reader.setIndex(offset); - var endOfCentralDirOffset = offset; - this.checkSignature(sig.CENTRAL_DIRECTORY_END); - this.readBlockEndOfCentral(); - - - /* extract from the zip spec : - 4) If one of the fields in the end of central directory - record is too small to hold required data, the field - should be set to -1 (0xFFFF or 0xFFFFFFFF) and the - ZIP64 format record should be created. - 5) The end of central directory record and the - Zip64 end of central directory locator record must - reside on the same disk when splitting or spanning - an archive. - */ - if (this.diskNumber === utils.MAX_VALUE_16BITS || this.diskWithCentralDirStart === utils.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === utils.MAX_VALUE_16BITS || this.centralDirRecords === utils.MAX_VALUE_16BITS || this.centralDirSize === utils.MAX_VALUE_32BITS || this.centralDirOffset === utils.MAX_VALUE_32BITS) { - this.zip64 = true; - - /* - Warning : the zip64 extension is supported, but ONLY if the 64bits integer read from - the zip file can fit into a 32bits integer. This cannot be solved : JavaScript represents - all numbers as 64-bit double precision IEEE 754 floating point numbers. - So, we have 53bits for integers and bitwise operations treat everything as 32bits. - see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators - and http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf section 8.5 - */ - - // should look for a zip64 EOCD locator - offset = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR); - if (offset < 0) { - throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); - } - this.reader.setIndex(offset); - this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR); - this.readBlockZip64EndOfCentralLocator(); - - // now the zip64 EOCD record - if (!this.isSignature(this.relativeOffsetEndOfZip64CentralDir, sig.ZIP64_CENTRAL_DIRECTORY_END)) { - // console.warn("ZIP64 end of central directory not where expected."); - this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_END); - if (this.relativeOffsetEndOfZip64CentralDir < 0) { - throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); - } - } - this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir); - this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_END); - this.readBlockZip64EndOfCentral(); - } - - var expectedEndOfCentralDirOffset = this.centralDirOffset + this.centralDirSize; - if (this.zip64) { - expectedEndOfCentralDirOffset += 20; // end of central dir 64 locator - expectedEndOfCentralDirOffset += 12 /* should not include the leading 12 bytes */ + this.zip64EndOfCentralSize; - } - - var extraBytes = endOfCentralDirOffset - expectedEndOfCentralDirOffset; - - if (extraBytes > 0) { - // console.warn(extraBytes, "extra bytes at beginning or within zipfile"); - if (this.isSignature(endOfCentralDirOffset, sig.CENTRAL_FILE_HEADER)) { - // The offsets seem wrong, but we have something at the specified offset. - // So… we keep it. - } else { - // the offset is wrong, update the "zero" of the reader - // this happens if data has been prepended (crx files for example) - this.reader.zero = extraBytes; - } - } else if (extraBytes < 0) { - throw new Error("Corrupted zip: missing " + Math.abs(extraBytes) + " bytes."); - } - }, - prepareReader: function(data) { - this.reader = readerFor(data); - }, - /** - * Read a zip file and create ZipEntries. - * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file. - */ - load: function(data) { - this.prepareReader(data); - this.readEndOfCentral(); - this.readCentralDir(); - this.readLocalFiles(); - } -}; -// }}} end of ZipEntries -module.exports = ZipEntries; - -},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(require,module,exports){ -'use strict'; -var readerFor = require('./reader/readerFor'); -var utils = require('./utils'); -var CompressedObject = require('./compressedObject'); -var crc32fn = require('./crc32'); -var utf8 = require('./utf8'); -var compressions = require('./compressions'); -var support = require('./support'); - -var MADE_BY_DOS = 0x00; -var MADE_BY_UNIX = 0x03; - -/** - * Find a compression registered in JSZip. - * @param {string} compressionMethod the method magic to find. - * @return {Object|null} the JSZip compression object, null if none found. - */ -var findCompression = function(compressionMethod) { - for (var method in compressions) { - if (!compressions.hasOwnProperty(method)) { - continue; - } - if (compressions[method].magic === compressionMethod) { - return compressions[method]; - } - } - return null; -}; - -// class ZipEntry {{{ -/** - * An entry in the zip file. - * @constructor - * @param {Object} options Options of the current file. - * @param {Object} loadOptions Options for loading the stream. - */ -function ZipEntry(options, loadOptions) { - this.options = options; - this.loadOptions = loadOptions; -} -ZipEntry.prototype = { - /** - * say if the file is encrypted. - * @return {boolean} true if the file is encrypted, false otherwise. - */ - isEncrypted: function() { - // bit 1 is set - return (this.bitFlag & 0x0001) === 0x0001; - }, - /** - * say if the file has utf-8 filename/comment. - * @return {boolean} true if the filename/comment is in utf-8, false otherwise. - */ - useUTF8: function() { - // bit 11 is set - return (this.bitFlag & 0x0800) === 0x0800; - }, - /** - * Read the local part of a zip file and add the info in this object. - * @param {DataReader} reader the reader to use. - */ - readLocalPart: function(reader) { - var compression, localExtraFieldsLength; - - // we already know everything from the central dir ! - // If the central dir data are false, we are doomed. - // On the bright side, the local part is scary : zip64, data descriptors, both, etc. - // The less data we get here, the more reliable this should be. - // Let's skip the whole header and dash to the data ! - reader.skip(22); - // in some zip created on windows, the filename stored in the central dir contains \ instead of /. - // Strangely, the filename here is OK. - // I would love to treat these zip files as corrupted (see http://www.info-zip.org/FAQ.html#backslashes - // or APPNOTE#4.4.17.1, "All slashes MUST be forward slashes '/'") but there are a lot of bad zip generators... - // Search "unzip mismatching "local" filename continuing with "central" filename version" on - // the internet. - // - // I think I see the logic here : the central directory is used to display - // content and the local directory is used to extract the files. Mixing / and \ - // may be used to display \ to windows users and use / when extracting the files. - // Unfortunately, this lead also to some issues : http://seclists.org/fulldisclosure/2009/Sep/394 - this.fileNameLength = reader.readInt(2); - localExtraFieldsLength = reader.readInt(2); // can't be sure this will be the same as the central dir - // the fileName is stored as binary data, the handleUTF8 method will take care of the encoding. - this.fileName = reader.readData(this.fileNameLength); - reader.skip(localExtraFieldsLength); - - if (this.compressedSize === -1 || this.uncompressedSize === -1) { - throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory " + "(compressedSize === -1 || uncompressedSize === -1)"); - } - - compression = findCompression(this.compressionMethod); - if (compression === null) { // no compression found - throw new Error("Corrupted zip : compression " + utils.pretty(this.compressionMethod) + " unknown (inner file : " + utils.transformTo("string", this.fileName) + ")"); - } - this.decompressed = new CompressedObject(this.compressedSize, this.uncompressedSize, this.crc32, compression, reader.readData(this.compressedSize)); - }, - - /** - * Read the central part of a zip file and add the info in this object. - * @param {DataReader} reader the reader to use. - */ - readCentralPart: function(reader) { - this.versionMadeBy = reader.readInt(2); - reader.skip(2); - // this.versionNeeded = reader.readInt(2); - this.bitFlag = reader.readInt(2); - this.compressionMethod = reader.readString(2); - this.date = reader.readDate(); - this.crc32 = reader.readInt(4); - this.compressedSize = reader.readInt(4); - this.uncompressedSize = reader.readInt(4); - var fileNameLength = reader.readInt(2); - this.extraFieldsLength = reader.readInt(2); - this.fileCommentLength = reader.readInt(2); - this.diskNumberStart = reader.readInt(2); - this.internalFileAttributes = reader.readInt(2); - this.externalFileAttributes = reader.readInt(4); - this.localHeaderOffset = reader.readInt(4); - - if (this.isEncrypted()) { - throw new Error("Encrypted zip are not supported"); - } - - // will be read in the local part, see the comments there - reader.skip(fileNameLength); - this.readExtraFields(reader); - this.parseZIP64ExtraField(reader); - this.fileComment = reader.readData(this.fileCommentLength); - }, - - /** - * Parse the external file attributes and get the unix/dos permissions. - */ - processAttributes: function () { - this.unixPermissions = null; - this.dosPermissions = null; - var madeBy = this.versionMadeBy >> 8; - - // Check if we have the DOS directory flag set. - // We look for it in the DOS and UNIX permissions - // but some unknown platform could set it as a compatibility flag. - this.dir = this.externalFileAttributes & 0x0010 ? true : false; - - if(madeBy === MADE_BY_DOS) { - // first 6 bits (0 to 5) - this.dosPermissions = this.externalFileAttributes & 0x3F; - } - - if(madeBy === MADE_BY_UNIX) { - this.unixPermissions = (this.externalFileAttributes >> 16) & 0xFFFF; - // the octal permissions are in (this.unixPermissions & 0x01FF).toString(8); - } - - // fail safe : if the name ends with a / it probably means a folder - if (!this.dir && this.fileNameStr.slice(-1) === '/') { - this.dir = true; - } - }, - - /** - * Parse the ZIP64 extra field and merge the info in the current ZipEntry. - * @param {DataReader} reader the reader to use. - */ - parseZIP64ExtraField: function(reader) { - - if (!this.extraFields[0x0001]) { - return; - } - - // should be something, preparing the extra reader - var extraReader = readerFor(this.extraFields[0x0001].value); - - // I really hope that these 64bits integer can fit in 32 bits integer, because js - // won't let us have more. - if (this.uncompressedSize === utils.MAX_VALUE_32BITS) { - this.uncompressedSize = extraReader.readInt(8); - } - if (this.compressedSize === utils.MAX_VALUE_32BITS) { - this.compressedSize = extraReader.readInt(8); - } - if (this.localHeaderOffset === utils.MAX_VALUE_32BITS) { - this.localHeaderOffset = extraReader.readInt(8); - } - if (this.diskNumberStart === utils.MAX_VALUE_32BITS) { - this.diskNumberStart = extraReader.readInt(4); - } - }, - /** - * Read the central part of a zip file and add the info in this object. - * @param {DataReader} reader the reader to use. - */ - readExtraFields: function(reader) { - var end = reader.index + this.extraFieldsLength, - extraFieldId, - extraFieldLength, - extraFieldValue; - - if (!this.extraFields) { - this.extraFields = {}; - } - - while (reader.index < end) { - extraFieldId = reader.readInt(2); - extraFieldLength = reader.readInt(2); - extraFieldValue = reader.readData(extraFieldLength); - - this.extraFields[extraFieldId] = { - id: extraFieldId, - length: extraFieldLength, - value: extraFieldValue - }; - } - }, - /** - * Apply an UTF8 transformation if needed. - */ - handleUTF8: function() { - var decodeParamType = support.uint8array ? "uint8array" : "array"; - if (this.useUTF8()) { - this.fileNameStr = utf8.utf8decode(this.fileName); - this.fileCommentStr = utf8.utf8decode(this.fileComment); - } else { - var upath = this.findExtraFieldUnicodePath(); - if (upath !== null) { - this.fileNameStr = upath; - } else { - // ASCII text or unsupported code page - var fileNameByteArray = utils.transformTo(decodeParamType, this.fileName); - this.fileNameStr = this.loadOptions.decodeFileName(fileNameByteArray); - } - - var ucomment = this.findExtraFieldUnicodeComment(); - if (ucomment !== null) { - this.fileCommentStr = ucomment; - } else { - // ASCII text or unsupported code page - var commentByteArray = utils.transformTo(decodeParamType, this.fileComment); - this.fileCommentStr = this.loadOptions.decodeFileName(commentByteArray); - } - } - }, - - /** - * Find the unicode path declared in the extra field, if any. - * @return {String} the unicode path, null otherwise. - */ - findExtraFieldUnicodePath: function() { - var upathField = this.extraFields[0x7075]; - if (upathField) { - var extraReader = readerFor(upathField.value); - - // wrong version - if (extraReader.readInt(1) !== 1) { - return null; - } - - // the crc of the filename changed, this field is out of date. - if (crc32fn(this.fileName) !== extraReader.readInt(4)) { - return null; - } - - return utf8.utf8decode(extraReader.readData(upathField.length - 5)); - } - return null; - }, - - /** - * Find the unicode comment declared in the extra field, if any. - * @return {String} the unicode comment, null otherwise. - */ - findExtraFieldUnicodeComment: function() { - var ucommentField = this.extraFields[0x6375]; - if (ucommentField) { - var extraReader = readerFor(ucommentField.value); - - // wrong version - if (extraReader.readInt(1) !== 1) { - return null; - } - - // the crc of the comment changed, this field is out of date. - if (crc32fn(this.fileComment) !== extraReader.readInt(4)) { - return null; - } - - return utf8.utf8decode(extraReader.readData(ucommentField.length - 5)); - } - return null; - } -}; -module.exports = ZipEntry; - -},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(require,module,exports){ -'use strict'; - -var StreamHelper = require('./stream/StreamHelper'); -var DataWorker = require('./stream/DataWorker'); -var utf8 = require('./utf8'); -var CompressedObject = require('./compressedObject'); -var GenericWorker = require('./stream/GenericWorker'); - -/** - * A simple object representing a file in the zip file. - * @constructor - * @param {string} name the name of the file - * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data - * @param {Object} options the options of the file - */ -var ZipObject = function(name, data, options) { - this.name = name; - this.dir = options.dir; - this.date = options.date; - this.comment = options.comment; - this.unixPermissions = options.unixPermissions; - this.dosPermissions = options.dosPermissions; - - this._data = data; - this._dataBinary = options.binary; - // keep only the compression - this.options = { - compression : options.compression, - compressionOptions : options.compressionOptions - }; -}; - -ZipObject.prototype = { - /** - * Create an internal stream for the content of this object. - * @param {String} type the type of each chunk. - * @return StreamHelper the stream. - */ - internalStream: function (type) { - var result = null, outputType = "string"; - try { - if (!type) { - throw new Error("No output type specified."); - } - outputType = type.toLowerCase(); - var askUnicodeString = outputType === "string" || outputType === "text"; - if (outputType === "binarystring" || outputType === "text") { - outputType = "string"; - } - result = this._decompressWorker(); - - var isUnicodeString = !this._dataBinary; - - if (isUnicodeString && !askUnicodeString) { - result = result.pipe(new utf8.Utf8EncodeWorker()); - } - if (!isUnicodeString && askUnicodeString) { - result = result.pipe(new utf8.Utf8DecodeWorker()); - } - } catch (e) { - result = new GenericWorker("error"); - result.error(e); - } - - return new StreamHelper(result, outputType, ""); - }, - - /** - * Prepare the content in the asked type. - * @param {String} type the type of the result. - * @param {Function} onUpdate a function to call on each internal update. - * @return Promise the promise of the result. - */ - async: function (type, onUpdate) { - return this.internalStream(type).accumulate(onUpdate); - }, - - /** - * Prepare the content as a nodejs stream. - * @param {String} type the type of each chunk. - * @param {Function} onUpdate a function to call on each internal update. - * @return Stream the stream. - */ - nodeStream: function (type, onUpdate) { - return this.internalStream(type || "nodebuffer").toNodejsStream(onUpdate); - }, - - /** - * Return a worker for the compressed content. - * @private - * @param {Object} compression the compression object to use. - * @param {Object} compressionOptions the options to use when compressing. - * @return Worker the worker. - */ - _compressWorker: function (compression, compressionOptions) { - if ( - this._data instanceof CompressedObject && - this._data.compression.magic === compression.magic - ) { - return this._data.getCompressedWorker(); - } else { - var result = this._decompressWorker(); - if(!this._dataBinary) { - result = result.pipe(new utf8.Utf8EncodeWorker()); - } - return CompressedObject.createWorkerFrom(result, compression, compressionOptions); - } - }, - /** - * Return a worker for the decompressed content. - * @private - * @return Worker the worker. - */ - _decompressWorker : function () { - if (this._data instanceof CompressedObject) { - return this._data.getContentWorker(); - } else if (this._data instanceof GenericWorker) { - return this._data; - } else { - return new DataWorker(this._data); - } - } -}; - -var removedMethods = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"]; -var removedFn = function () { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); -}; - -for(var i = 0; i < removedMethods.length; i++) { - ZipObject.prototype[removedMethods[i]] = removedFn; -} -module.exports = ZipObject; - -},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(require,module,exports){ -(function (global){ -'use strict'; -var Mutation = global.MutationObserver || global.WebKitMutationObserver; - -var scheduleDrain; - -{ - if (Mutation) { - var called = 0; - var observer = new Mutation(nextTick); - var element = global.document.createTextNode(''); - observer.observe(element, { - characterData: true - }); - scheduleDrain = function () { - element.data = (called = ++called % 2); - }; - } else if (!global.setImmediate && typeof global.MessageChannel !== 'undefined') { - var channel = new global.MessageChannel(); - channel.port1.onmessage = nextTick; - scheduleDrain = function () { - channel.port2.postMessage(0); - }; - } else if ('document' in global && 'onreadystatechange' in global.document.createElement('script')) { - scheduleDrain = function () { - - // Create a - - - - - - -
- -
-
-
-

Serialized Form

-
- -
-
-
- -
-
-
- - diff --git a/javadoc/stylesheet.css b/javadoc/stylesheet.css deleted file mode 100644 index 836c62da..00000000 --- a/javadoc/stylesheet.css +++ /dev/null @@ -1,865 +0,0 @@ -/* - * Javadoc style sheet - */ - -@import url('resources/fonts/dejavu.css'); - -/* - * Styles for individual HTML elements. - * - * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular - * HTML element throughout the page. - */ - -body { - background-color:#ffffff; - color:#353833; - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:14px; - margin:0; - padding:0; - height:100%; - width:100%; -} -iframe { - margin:0; - padding:0; - height:100%; - width:100%; - overflow-y:scroll; - border:none; -} -a:link, a:visited { - text-decoration:none; - color:#4A6782; -} -a[href]:hover, a[href]:focus { - text-decoration:none; - color:#bb7a2a; -} -a[name] { - color:#353833; -} -pre { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; -} -h1 { - font-size:20px; -} -h2 { - font-size:18px; -} -h3 { - font-size:16px; -} -h4 { - font-size:15px; -} -h5 { - font-size:14px; -} -h6 { - font-size:13px; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:'DejaVu Sans Mono', monospace; -} -:not(h1, h2, h3, h4, h5, h6) > code, -:not(h1, h2, h3, h4, h5, h6) > tt { - font-size:14px; - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; -} -.summary-table dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -button { - font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size: 14px; -} -/* - * Styles for HTML generated by javadoc. - * - * These are style classes that are used by the standard doclet to generate HTML documentation. - */ - -/* - * Styles for document title and copyright. - */ -.clear { - clear:both; - height:0; - overflow:hidden; -} -.about-language { - float:right; - padding:0 21px 8px 8px; - font-size:11px; - margin-top:-9px; - height:2.9em; -} -.legal-copy { - margin-left:.5em; -} -.tab { - background-color:#0066FF; - color:#ffffff; - padding:8px; - width:5em; - font-weight:bold; -} -/* - * Styles for navigation bar. - */ -@media screen { - .flex-box { - position:fixed; - display:flex; - flex-direction:column; - height: 100%; - width: 100%; - } - .flex-header { - flex: 0 0 auto; - } - .flex-content { - flex: 1 1 auto; - overflow-y: auto; - } -} -.top-nav { - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - min-height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.sub-nav { - background-color:#dee3e9; - float:left; - width:100%; - overflow:hidden; - font-size:12px; -} -.sub-nav div { - clear:left; - float:left; - padding:0 0 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list { - padding-top:5px; -} -ul.nav-list { - display:block; - margin:0 25px 0 0; - padding:0; -} -ul.sub-nav-list { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.nav-list li { - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list-search { - float:right; - margin:0 0 0 0; - padding:5px 6px; - clear:none; -} -.nav-list-search label { - position:relative; - right:-16px; -} -ul.sub-nav-list li { - list-style:none; - float:left; - padding-top:10px; -} -.top-nav a:link, .top-nav a:active, .top-nav a:visited { - color:#FFFFFF; - text-decoration:none; - text-transform:uppercase; -} -.top-nav a:hover { - text-decoration:none; - color:#bb7a2a; - text-transform:uppercase; -} -.nav-bar-cell1-rev { - background-color:#F8981D; - color:#253441; - margin: auto 5px; -} -.skip-nav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* - * Hide navigation links and search box in print layout - */ -@media print { - ul.nav-list, div.sub-nav { - display:none; - } -} -/* - * Styles for page header and footer. - */ -.title { - color:#2c4557; - margin:10px 0; -} -.sub-title { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 15px 0; - padding:0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:13px; -} -/* - * Styles for headings. - */ -body.class-declaration-page .summary h2, -body.class-declaration-page .details h2, -body.class-use-page h2, -body.module-declaration-page .block-list h2 { - font-style: italic; - padding:0; - margin:15px 0; -} -body.class-declaration-page .summary h3, -body.class-declaration-page .details h3, -body.class-declaration-page .summary .inherited-list h2 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -/* - * Styles for page layout containers. - */ -main { - clear:both; - padding:10px 20px; - position:relative; -} -dl.notes > dt { - font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:12px; - font-weight:bold; - margin:10px 0 0 0; - color:#4E4E4E; -} -dl.notes > dd { - margin:5px 10px 10px 0; - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} -dl.name-value > dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -dl.name-value > dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* - * Styles for lists. - */ -li.circle { - list-style:circle; -} -ul.horizontal li { - display:inline; - font-size:0.9em; -} -div.inheritance { - margin:0; - padding:0; -} -div.inheritance div.inheritance { - margin-left:2em; -} -ul.block-list, -ul.details-list, -ul.member-list, -ul.summary-list { - margin:10px 0 10px 0; - padding:0; -} -ul.block-list > li, -ul.details-list > li, -ul.member-list > li, -ul.summary-list > li { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -.summary-table dl, .summary-table dl dt, .summary-table dl dd { - margin-top:0; - margin-bottom:1px; -} -ul.see-list, ul.see-list-long { - padding-left: 0; - list-style: none; -} -ul.see-list li { - display: inline; -} -ul.see-list li:not(:last-child):after, -ul.see-list-long li:not(:last-child):after { - content: ", "; - white-space: pre-wrap; -} -/* - * Styles for tables. - */ -.summary-table, .details-table { - width:100%; - border-spacing:0; - border-left:1px solid #EEE; - border-right:1px solid #EEE; - border-bottom:1px solid #EEE; - padding:0; -} -.caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#253441; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0; - padding-top:10px; - padding-left:1px; - margin:0; - white-space:pre; -} -.caption a:link, .caption a:visited { - color:#1f389c; -} -.caption a:hover, -.caption a:active { - color:#FFFFFF; -} -.caption span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - padding-bottom:7px; - display:inline-block; - float:left; - background-color:#F8981D; - border: none; - height:16px; -} -div.table-tabs { - padding:10px 0 0 1px; - margin:0; -} -div.table-tabs > button { - border: none; - cursor: pointer; - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 3px; -} -div.table-tabs > button.active-table-tab { - background: #F8981D; - color: #253441; -} -div.table-tabs > button.table-tab { - background: #4D7A97; - color: #FFFFFF; -} -.two-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(15%, auto); -} -.three-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto); -} -.four-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto); -} -@media screen and (max-width: 600px) { - .two-column-summary { - display: grid; - grid-template-columns: 1fr; - } -} -@media screen and (max-width: 800px) { - .three-column-summary { - display: grid; - grid-template-columns: minmax(10%, max-content) minmax(25%, auto); - } - .three-column-summary .col-last { - grid-column-end: span 2; - } -} -@media screen and (max-width: 1000px) { - .four-column-summary { - display: grid; - grid-template-columns: minmax(15%, max-content) minmax(15%, auto); - } -} -.summary-table > div, .details-table > div { - text-align:left; - padding: 8px 3px 3px 7px; -} -.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { - vertical-align:top; - padding-right:0; - padding-top:8px; - padding-bottom:3px; -} -.table-header { - background:#dee3e9; - font-weight: bold; -} -.col-first, .col-first { - font-size:13px; -} -.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { - font-size:13px; -} -.col-first, .col-second, .col-constructor-name { - vertical-align:top; - overflow: auto; -} -.col-last { - white-space:normal; -} -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-first a:link, .col-first a:visited, -.col-second a:link, .col-second a:visited, -.col-constructor-name a:link, .col-constructor-name a:visited, -.col-summary-item-name a:link, .col-summary-item-name a:visited, -.constant-values-container a:link, .constant-values-container a:visited, -.all-classes-container a:link, .all-classes-container a:visited, -.all-packages-container a:link, .all-packages-container a:visited { - font-weight:bold; -} -.table-sub-heading-color { - background-color:#EEEEFF; -} -.even-row-color, .even-row-color .table-header { - background-color:#FFFFFF; -} -.odd-row-color, .odd-row-color .table-header { - background-color:#EEEEEF; -} -/* - * Styles for contents. - */ -.deprecated-content { - margin:0; - padding:10px 0; -} -div.block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} -.col-last div { - padding-top:0; -} -.col-last a { - padding-bottom:3px; -} -.module-signature, -.package-signature, -.type-signature, -.member-signature { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - margin:14px 0; - white-space: pre-wrap; -} -.module-signature, -.package-signature, -.type-signature { - margin-top: 0; -} -.member-signature .type-parameters-long, -.member-signature .parameters, -.member-signature .exceptions { - display: inline-block; - vertical-align: top; - white-space: pre; -} -.member-signature .type-parameters { - white-space: normal; -} -/* - * Styles for formatting effect. - */ -.source-line-no { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:10px; -} -.block { - display:block; - margin:0 10px 5px 0; - color:#474747; -} -.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, -.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, -.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { - font-weight:bold; -} -.deprecation-comment, .help-footnote, .preview-comment { - font-style:italic; -} -.deprecation-block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -.preview-block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -div.block div.deprecation-comment { - font-style:normal; -} -/* - * Styles specific to HTML5 elements. - */ -main, nav, header, footer, section { - display:block; -} -/* - * Styles for javadoc search. - */ -.ui-autocomplete-category { - font-weight:bold; - font-size:15px; - padding:7px 0 7px 3px; - background-color:#4D7A97; - color:#FFFFFF; -} -.result-item { - font-size:13px; -} -.ui-autocomplete { - max-height:85%; - max-width:65%; - overflow-y:scroll; - overflow-x:scroll; - white-space:nowrap; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); -} -ul.ui-autocomplete { - position:fixed; - z-index:999999; -} -ul.ui-autocomplete li { - float:left; - clear:both; - width:100%; -} -.result-highlight { - font-weight:bold; -} -#search-input { - background-image:url('resources/glass.png'); - background-size:13px; - background-repeat:no-repeat; - background-position:2px 3px; - padding-left:20px; - position:relative; - right:-18px; - width:400px; -} -#reset-button { - background-color: rgb(255,255,255); - background-image:url('resources/x.png'); - background-position:center; - background-repeat:no-repeat; - background-size:12px; - border:0 none; - width:16px; - height:16px; - position:relative; - left:-4px; - top:-4px; - font-size:0px; -} -.watermark { - color:#545454; -} -.search-tag-desc-result { - font-style:italic; - font-size:11px; -} -.search-tag-holder-result { - font-style:italic; - font-size:12px; -} -.search-tag-result:target { - background-color:yellow; -} -.module-graph span { - display:none; - position:absolute; -} -.module-graph:hover span { - display:block; - margin: -100px 0 0 100px; - z-index: 1; -} -.inherited-list { - margin: 10px 0 10px 0; -} -section.class-description { - line-height: 1.4; -} -.summary section[class$="-summary"], .details section[class$="-details"], -.class-uses .detail, .serialized-class-details { - padding: 0px 20px 5px 10px; - border: 1px solid #ededed; - background-color: #f8f8f8; -} -.inherited-list, section[class$="-details"] .detail { - padding:0 0 5px 8px; - background-color:#ffffff; - border:none; -} -.vertical-separator { - padding: 0 5px; -} -ul.help-section-list { - margin: 0; -} -ul.help-subtoc > li { - display: inline-block; - padding-right: 5px; - font-size: smaller; -} -ul.help-subtoc > li::before { - content: "\2022" ; - padding-right:2px; -} -span.help-note { - font-style: italic; -} -/* - * Indicator icon for external links. - */ -main a[href*="://"]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - background-size:100% 100%; - width:7px; - height:7px; - margin-left:2px; - margin-bottom:4px; -} -main a[href*="://"]:hover::after, -main a[href*="://"]:focus::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} - -/* - * Styles for user-provided tables. - * - * borderless: - * No borders, vertical margins, styled caption. - * This style is provided for use with existing doc comments. - * In general, borderless tables should not be used for layout purposes. - * - * plain: - * Plain borders around table and cells, vertical margins, styled caption. - * Best for small tables or for complex tables for tables with cells that span - * rows and columns, when the "striped" style does not work well. - * - * striped: - * Borders around the table and vertical borders between cells, striped rows, - * vertical margins, styled caption. - * Best for tables that have a header row, and a body containing a series of simple rows. - */ - -table.borderless, -table.plain, -table.striped { - margin-top: 10px; - margin-bottom: 10px; -} -table.borderless > caption, -table.plain > caption, -table.striped > caption { - font-weight: bold; - font-size: smaller; -} -table.borderless th, table.borderless td, -table.plain th, table.plain td, -table.striped th, table.striped td { - padding: 2px 5px; -} -table.borderless, -table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, -table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { - border: none; -} -table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { - background-color: transparent; -} -table.plain { - border-collapse: collapse; - border: 1px solid black; -} -table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { - background-color: transparent; -} -table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, -table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { - border: 1px solid black; -} -table.striped { - border-collapse: collapse; - border: 1px solid black; -} -table.striped > thead { - background-color: #E3E3E3; -} -table.striped > thead > tr > th, table.striped > thead > tr > td { - border: 1px solid black; -} -table.striped > tbody > tr:nth-child(even) { - background-color: #EEE -} -table.striped > tbody > tr:nth-child(odd) { - background-color: #FFF -} -table.striped > tbody > tr > th, table.striped > tbody > tr > td { - border-left: 1px solid black; - border-right: 1px solid black; -} -table.striped > tbody > tr > th { - font-weight: normal; -} -/** - * Tweak font sizes and paddings for small screens. - */ -@media screen and (max-width: 1050px) { - #search-input { - width: 300px; - } -} -@media screen and (max-width: 800px) { - #search-input { - width: 200px; - } - .top-nav, - .bottom-nav { - font-size: 11px; - padding-top: 6px; - } - .sub-nav { - font-size: 11px; - } - .about-language { - padding-right: 16px; - } - ul.nav-list li, - .sub-nav .nav-list-search { - padding: 6px; - } - ul.sub-nav-list li { - padding-top: 5px; - } - main { - padding: 10px; - } - .summary section[class$="-summary"], .details section[class$="-details"], - .class-uses .detail, .serialized-class-details { - padding: 0 8px 5px 8px; - } - body { - -webkit-text-size-adjust: none; - } -} -@media screen and (max-width: 500px) { - #search-input { - width: 150px; - } - .top-nav, - .bottom-nav { - font-size: 10px; - } - .sub-nav { - font-size: 10px; - } - .about-language { - font-size: 10px; - padding-right: 12px; - } -} diff --git a/javadoc/system-properties.html b/javadoc/system-properties.html deleted file mode 100644 index b35fa61f..00000000 --- a/javadoc/system-properties.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -System Properties (jabs 0.1.0 API) - - - - - - - - - - - - - - - - -
- -
-
-
-

System Properties

-
-
-
- - - - - - - - -
System Properties Summary 
PropertyReferenced In
-
-
-
- - - diff --git a/javadoc/tag-search-index.js b/javadoc/tag-search-index.js deleted file mode 100644 index bf10aaf6..00000000 --- a/javadoc/tag-search-index.js +++ /dev/null @@ -1 +0,0 @@ -tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"},{"l":"Serialized Form","h":"","u":"serialized-form.html"}];updateSearchResults(); \ No newline at end of file diff --git a/javadoc/type-search-index.js b/javadoc/type-search-index.js deleted file mode 100644 index 89dd81f4..00000000 --- a/javadoc/type-search-index.js +++ /dev/null @@ -1 +0,0 @@ -typeSearchIndex = [{"p":"jabs.network.p2p","l":"AbstractBlockchainP2PConnections"},{"p":"jabs.consensus.algorithm","l":"AbstractChainBasedConsensus"},{"p":"jabs.consensus.algorithm","l":"AbstractConsensusAlgorithm"},{"p":"jabs.log","l":"AbstractCSVLogger"},{"p":"jabs.consensus.algorithm","l":"AbstractDAGBasedConsensus"},{"p":"jabs.log","l":"AbstractLogger"},{"p":"jabs.network.p2p","l":"AbstractP2PConnections"},{"p":"jabs.simulator.event","l":"AbstractPacketProcessor"},{"p":"jabs.simulator.event","l":"AbstractPoissonProcess"},{"p":"jabs.scenario","l":"AbstractScenario"},{"p":"jabs.simulator.event","l":"AbstractTxPoissonProcess"},{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"jabs.ledgerdata","l":"BasicData"},{"p":"jabs.log","l":"BitcoinAllMessagesLogger"},{"p":"jabs.ledgerdata.bitcoin","l":"BitcoinBlock"},{"p":"jabs.ledgerdata.bitcoin","l":"BitcoinBlockWithTx"},{"p":"jabs.network.p2p","l":"BitcoinCoreP2P"},{"p":"jabs.scenario","l":"BitcoinGlobalNetworkScenario"},{"p":"jabs.network.networks","l":"BitcoinGlobalProofOfWorkNetwork"},{"p":"jabs.network.networks","l":"BitcoinGlobalProofOfWorkNetworkWithoutTx"},{"p":"jabs.network.node.nodes.bitcoin","l":"BitcoinMinerNode"},{"p":"jabs.network.node.nodes.bitcoin","l":"BitcoinMinerNodeWithoutTx"},{"p":"jabs.network.node.nodes.bitcoin","l":"BitcoinNode"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","l":"BitcoinNodeGlobalNetworkStats6Regions"},{"p":"jabs.network.networks.stats.sixglobalregions.bitcoin","l":"BitcoinProofOfWorkGlobalNetworkStats6Regions"},{"p":"jabs.ledgerdata.bitcoin","l":"BitcoinTx"},{"p":"jabs.ledgerdata","l":"Block"},{"p":"jabs.log","l":"BlockDeliveryLogger"},{"p":"jabs.network.networks","l":"BlockFactory"},{"p":"jabs.log","l":"BlockGenerationLogger"},{"p":"jabs.simulator.event","l":"BlockMiningProcess"},{"p":"jabs.ledgerdata","l":"BlockWithTx"},{"p":"jabs.consensus.algorithm","l":"CasperFFG"},{"p":"jabs.network.networks","l":"CasperFFGGlobalBlockchainNetwork"},{"p":"jabs.ledgerdata.casper","l":"CasperFFGLink"},{"p":"jabs.ledgerdata.casper","l":"CasperFFGVote"},{"p":"jabs.log","l":"CasperFinalLogger"},{"p":"jabs.consensus.algorithm","l":"ConsensusAlgorithm"},{"p":"jabs.consensus.algorithm","l":"DAGsper"},{"p":"jabs.network.networks","l":"DAGsperGlobalBlockchainNetwork"},{"p":"jabs.ledgerdata.dagsper","l":"DAGsperVote"},{"p":"jabs.ledgerdata","l":"Data"},{"p":"jabs.network.message","l":"DataMessage"},{"p":"jabs.ledgerdata","l":"Data.DataType"},{"p":"jabs.consensus.algorithm","l":"DeterministicFinalityConsensus"},{"p":"jabs.ledgerdata.ethereum","l":"EthereumBlock"},{"p":"jabs.ledgerdata.ethereum","l":"EthereumBlockWithTx"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumCasperMiner"},{"p":"jabs.scenario","l":"EthereumCasperNetworkScenario"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumCasperNode"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumDAGsperMiner"},{"p":"jabs.scenario","l":"EthereumDAGsperNetworkScenario"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumDAGsperNode"},{"p":"jabs.network.p2p","l":"EthereumGethP2P"},{"p":"jabs.network.networks","l":"EthereumGlobalProofOfWorkNetwork"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumMinerNode"},{"p":"jabs.network.node.nodes.ethereum","l":"EthereumNode"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","l":"EthereumNodeGlobalNetworkStats6Regions"},{"p":"jabs.network.networks.stats.sixglobalregions.ethereum","l":"EthereumProofOfWorkGlobalNetworkStats6Regions"},{"p":"jabs.ledgerdata.ethereum","l":"EthereumTx"},{"p":"jabs.simulator.event","l":"Event"},{"p":"jabs.consensus.algorithm","l":"GhostProtocol"},{"p":"jabs.network.networks","l":"GlobalNetwork"},{"p":"jabs.network.networks.stats.sixglobalregions","l":"GlobalNetworkStats6Region"},{"p":"jabs.network.networks","l":"GlobalProofOfWorkNetwork"},{"p":"jabs.ledgerdata","l":"Hash"},{"p":"jabs.network.message","l":"InvMessage"},{"p":"jabs.network.node.nodes.iota","l":"IOTANode"},{"p":"jabs.network.networks.stats.sixglobalregions.iota","l":"IOTANodeDistribution6Region"},{"p":"jabs.network.networks.stats.lan","l":"LAN100MNetworkStats"},{"p":"jabs.consensus.blockchain","l":"LocalBlock"},{"p":"jabs.consensus.blockchain","l":"LocalBlockDAG"},{"p":"jabs.consensus.blockchain","l":"LocalBlockTree"},{"p":"jabs","l":"Main"},{"p":"jabs.network.message","l":"Message"},{"p":"jabs.network.networks.stats","l":"MinerGlobalRegionDistribution"},{"p":"jabs.network.node.nodes","l":"MinerNode"},{"p":"jabs.consensus.algorithm","l":"NakamotoConsensus"},{"p":"jabs.network.networks","l":"Network"},{"p":"jabs.network.networks","l":"NetworkBuilder"},{"p":"jabs.network.networks.stats","l":"NetworkStats"},{"p":"jabs.network.node.nodes","l":"Node"},{"p":"jabs.network.networks.stats","l":"NodeGlobalNetworkStats"},{"p":"jabs.network.networks.stats","l":"NodeGlobalRegionDistribution"},{"p":"jabs.network.node","l":"NodeNetworkInterface"},{"p":"jabs.scenario","l":"NormalEthereumNetworkScenario"},{"p":"jabs.network.message","l":"Packet"},{"p":"jabs.simulator.event","l":"PacketDeliveryEvent"},{"p":"jabs.simulator.event","l":"PacketReceivingProcess"},{"p":"jabs.simulator.event","l":"PacketSendingProcess"},{"p":"jabs.consensus.algorithm","l":"PBFT"},{"p":"jabs.ledgerdata.pbft","l":"PBFTBlock"},{"p":"jabs.ledgerdata.pbft","l":"PBFTBlockVote"},{"p":"jabs.ledgerdata.pbft","l":"PBFTCommitVote"},{"p":"jabs.log","l":"PBFTCSVLogger"},{"p":"jabs.scenario","l":"PBFTLANScenario"},{"p":"jabs.network.networks","l":"PBFTLocalLANNetwork"},{"p":"jabs.consensus.algorithm","l":"PBFT.PBFTMode"},{"p":"jabs.network.node.nodes.pbft","l":"PBFTNode"},{"p":"jabs.network.p2p","l":"PBFTP2P"},{"p":"jabs.consensus.algorithm","l":"PBFT.PBFTPhase"},{"p":"jabs.ledgerdata.pbft","l":"PBFTPrepareVote"},{"p":"jabs.ledgerdata.pbft","l":"PBFTPrePrepareVote"},{"p":"jabs.ledgerdata.pbft","l":"PBFTTx"},{"p":"jabs.ledgerdata.pbft","l":"PBFTViewVote"},{"p":"jabs.network.node.nodes","l":"PeerBlockchainNode"},{"p":"jabs.network.node.nodes","l":"PeerDLTNode"},{"p":"jabs.network.networks.stats","l":"ProofOfWorkGlobalNetworkStats"},{"p":"jabs.simulator.randengine","l":"RandomnessEngine"},{"p":"jabs.network.message","l":"RequestDataMessage"},{"p":"jabs.simulator","l":"Simulator.ScheduledEvent"},{"p":"jabs.config","l":"SimulationConfig"},{"p":"jabs.simulator","l":"Simulator"},{"p":"jabs.network.networks.stats.lan","l":"SingleNodeType"},{"p":"jabs.ledgerdata","l":"SingleParentBlock"},{"p":"jabs.network.networks.stats.sixglobalregions","l":"SixRegions"},{"p":"jabs.ledgerdata.tangle","l":"TangleBlock"},{"p":"jabs.network.networks","l":"TangleGlobalNetwork"},{"p":"jabs.consensus.algorithm","l":"TangleIOTA"},{"p":"jabs.ledgerdata.tangle","l":"TangleTx"},{"p":"jabs.simulator.event","l":"AbstractPacketProcessor.TimedPacket"},{"p":"jabs.network.networks","l":"TransactionFactory"},{"p":"jabs.ledgerdata","l":"Tx"},{"p":"jabs.simulator.event","l":"TxGenerationProcessRandomNetworkNode"},{"p":"jabs.simulator.event","l":"TxGenerationProcessSingleNode"},{"p":"jabs.ledgerdata","l":"Vote"},{"p":"jabs.network.message","l":"VoteMessage"},{"p":"jabs.ledgerdata.pbft","l":"PBFTBlockVote.VoteType"},{"p":"jabs.ledgerdata.pbft","l":"PBFTViewVote.VoteType"},{"p":"jabs.consensus.algorithm","l":"VotingBasedConsensus"},{"p":"jabs.consensus.algorithm","l":"Xolph"}];updateSearchResults(); \ No newline at end of file diff --git a/output/.gitignore b/output/.gitignore new file mode 100644 index 00000000..e7a210ec --- /dev/null +++ b/output/.gitignore @@ -0,0 +1,3 @@ +* +*/ +!.gitignore \ No newline at end of file diff --git a/scripts/average_time.sh b/scripts/average_time.sh new file mode 100644 index 00000000..c5cb242d --- /dev/null +++ b/scripts/average_time.sh @@ -0,0 +1,26 @@ + +# taken from: https://stackoverflow.com/questions/54920113/calculate-average-execution-time-of-a-program-using-bash +# use as below: +# $ source ./scripts/average_time.sh +# $ avg_time 10 java -jar ./target/jabs.jar +# can be used for any other program + +avg_time() { + # + # usage: avg_time n command ... + # + n=$1; shift + (($# > 0)) || return # bail if no command given + for ((i = 0; i < n; i++)); do + { time -p "$@" &>/dev/null; } 2>&1 # ignore the output of the command + # but collect time's output in stdout + done | awk ' + /real/ { real = real + $2; nr++ } + /user/ { user = user + $2; nu++ } + /sys/ { sys = sys + $2; ns++} + END { + if (nr>0) printf("real %f\n", real/nr); + if (nu>0) printf("user %f\n", user/nu); + if (ns>0) printf("sys %f\n", sys/ns) + }' +} diff --git a/src/main/java/jabs/Main.java b/src/main/java/jabs/Main.java index 9864f111..c7827d2f 100644 --- a/src/main/java/jabs/Main.java +++ b/src/main/java/jabs/Main.java @@ -1,33 +1,72 @@ package jabs; -import jabs.log.AbstractLogger; -import jabs.log.BlockGenerationLogger; -import jabs.scenario.AbstractScenario; -import jabs.scenario.BitcoinGlobalNetworkScenario; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.log.*; +import jabs.scenario.*; import java.io.IOException; import java.nio.file.Paths; +/** + * + */ public class Main { - public static void main(String[] args) throws IOException { - AbstractScenario scenario; - AbstractLogger logger; + /** + * @param args + * @throws IOException + */ + public static void main(String[] args) throws IOException { + AbstractScenario scenario; + /* + * // Simulate one day in the life of Bitcoin network + * // Nakamoto protocol with block every 600 seconds + * // Around 8000 nodes with 30 miners + * scenario = new BitcoinGlobalNetworkScenario("One day in the life of Bitcoin", + * 1, + * 86400, 600, 6); + * scenario.AddNewLogger(new + * BlockConfirmationLogger(Paths.get("output/bitcoin-confirmations-log.csv"))); + * scenario.AddNewLogger(new BlockPropagationDelayLogger( + * Paths.get("output/bitcoin-50-propagation-delay-log.csv"),0.5)); + * scenario.AddNewLogger(new BlockPropagationDelayLogger( + * Paths.get("output/bitcoin-90-propagation-delay-log.csv"),0.9)); + * scenario.AddNewLogger(new BlockchainReorgLogger( + * Paths.get("output/bitcoin-reorgs-log.csv"))); + * scenario.run(); + * + * // Simulate 1 hour in the life of Ethereum network + * // Ghost protocol with blocks every 14 seconds on average + * // Around 6000 nodes with 37 miners + * scenario = new + * NormalEthereumNetworkScenario("One hour in the life of Ethereum", 1, + * 3600, 13.3); + * scenario.AddNewLogger(new BlockPropagationDelayLogger( + * Paths.get("output/ethereum-50-propagation-delay-log.csv"), 0.5)); + * scenario.AddNewLogger(new BlockPropagationDelayLogger( + * Paths.get("output/ethereum-90-propagation-delay-log.csv"), 0.9)); + * scenario.AddNewLogger(new FinalUncleBlocksLogger( + * Paths.get("output/ethereum-uncle-rate.csv"))); + * scenario.run(); + * + * // Simulate PBFT Lan network of 40 nodes for 1 hour + * scenario = new PBFTLANScenario("One hour of a PBFT lan Network", 1, + * 40, 3600); + * scenario.AddNewLogger(new + * PBFTCSVLogger(Paths.get("output/pbft-simulation-log.csv"))); + * scenario.run(); + * + * // Simulate Snow LAN network of 40 nodes for 1 hour + * scenario = new SnowLANScenario("One hour of a Snow lan Network", 1, 40, + * 3600); + * scenario.AddNewLogger(new + * SnowCSVLogger(Paths.get("output/slush-simulation-log.csv"))); + * scenario.run(); + */ - logger = new BlockGenerationLogger(Paths.get("_output/simulation-log.csv")); - scenario = new BitcoinGlobalNetworkScenario("Normal Bitcoin Network", 1, logger, - 60000, 600); - - scenario.run(); - } -} - -// TODO: Adding Throughput Logger -// TODO: Add Multiple Loggers and Scenarios Default -// TODO: Add New Network Latency Stats -// TODO: Finalize Network Churn with Events -// TODO: Explore the multithreading option - -// TODO: Future Consensus Algorithms: -// TODO: Honey Badger BFT -// TODO: IOTA -// TODO: DPoS \ No newline at end of file + // Simulate Snow LAN network of 40 nodes for 1 hour + scenario = new SlushLANScenario("One hour of a Slush lan Network", 1, 40, + 3600); + scenario.AddNewLogger(new SnowCSVLogger(Paths.get("output/slush-simulation-log.csv"))); + scenario.run(); + } +} \ No newline at end of file diff --git a/src/main/java/jabs/config/SimulationConfig.java b/src/main/java/jabs/config/SimulationConfig.java index 01ccd027..2062a087 100644 --- a/src/main/java/jabs/config/SimulationConfig.java +++ b/src/main/java/jabs/config/SimulationConfig.java @@ -1,5 +1,9 @@ package jabs.config; +/** + * This is for future uses. Might be useful for changing simulator to support + * multithreading. + */ public final class SimulationConfig { } diff --git a/src/main/java/jabs/consensus/algorithm/AbstractChainBasedConsensus.java b/src/main/java/jabs/consensus/algorithm/AbstractChainBasedConsensus.java index 20b46d9b..faa33dde 100644 --- a/src/main/java/jabs/consensus/algorithm/AbstractChainBasedConsensus.java +++ b/src/main/java/jabs/consensus/algorithm/AbstractChainBasedConsensus.java @@ -1,11 +1,17 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockTree; +import jabs.consensus.config.ConsensusAlgorithmConfig; import jabs.ledgerdata.SingleParentBlock; import jabs.ledgerdata.Tx; import jabs.network.node.nodes.PeerBlockchainNode; -public abstract class AbstractChainBasedConsensus, T extends Tx> extends AbstractDAGBasedConsensus { +/** + * @param + * @param + */ +public abstract class AbstractChainBasedConsensus, T extends Tx> + extends AbstractDAGBasedConsensus { /** * Local Block Tree in Nodes Memory */ @@ -19,7 +25,7 @@ public abstract class AbstractChainBasedConsensus /** * The latest block agreed by consensus algorithm (Current agreed state by the Node) */ - protected B currentMainChainHead = null; + protected B currentMainChainHead; /** * Creates a Abstract Blockchain Consensus Algorithm diff --git a/src/main/java/jabs/consensus/algorithm/AbstractConsensusAlgorithm.java b/src/main/java/jabs/consensus/algorithm/AbstractConsensusAlgorithm.java index 7c45b529..3ac74f51 100644 --- a/src/main/java/jabs/consensus/algorithm/AbstractConsensusAlgorithm.java +++ b/src/main/java/jabs/consensus/algorithm/AbstractConsensusAlgorithm.java @@ -5,18 +5,22 @@ import java.util.HashSet; +/** + * @param + * @param + */ public abstract class AbstractConsensusAlgorithm, T extends Tx> implements ConsensusAlgorithm { /** * All accepted blocks (received and agreed) for the consensus algorithm */ - protected HashSet acceptedBlocks = new HashSet<>(); + protected HashSet confirmedBlocks = new HashSet<>(); /** * All accepted transactions (residing inside accepted blocks) */ - protected final HashSet acceptedTxs = new HashSet<>(); + protected final HashSet confirmedTxs = new HashSet<>(); /** * When a new block is received by the node this function should be called. @@ -49,7 +53,7 @@ public boolean isBlockValid(B block) { // TODO: This should check that the block */ @Override public boolean isBlockConfirmed(B block) { - return acceptedBlocks.contains(block); + return confirmedBlocks.contains(block); } /** @@ -63,7 +67,7 @@ public boolean isBlockConfirmed(B block) { */ @Override public boolean isTxConfirmed(T tx) { - return acceptedTxs.contains(tx); + return confirmedTxs.contains(tx); } /** @@ -73,8 +77,8 @@ public boolean isTxConfirmed(T tx) { * @return The total number of blocks agreed by consensus algorithm */ @Override - public int getNumOfAcceptedBlocks() { - return acceptedBlocks.size(); + public int getNumOfConfirmedBlocks() { + return confirmedBlocks.size(); } /** @@ -83,7 +87,7 @@ public int getNumOfAcceptedBlocks() { * @return Total number of accepted transactions by the consensus algorithm */ @Override - public int getNumOfAcceptedTxs() { - return acceptedTxs.size(); + public int getNumOfConfirmedTxs() { + return confirmedTxs.size(); } } diff --git a/src/main/java/jabs/consensus/algorithm/AbstractDAGBasedConsensus.java b/src/main/java/jabs/consensus/algorithm/AbstractDAGBasedConsensus.java index 6429f03e..37175afd 100644 --- a/src/main/java/jabs/consensus/algorithm/AbstractDAGBasedConsensus.java +++ b/src/main/java/jabs/consensus/algorithm/AbstractDAGBasedConsensus.java @@ -1,11 +1,17 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockDAG; +import jabs.consensus.config.ConsensusAlgorithmConfig; import jabs.ledgerdata.Block; import jabs.ledgerdata.Tx; import jabs.network.node.nodes.PeerDLTNode; -public abstract class AbstractDAGBasedConsensus, T extends Tx> extends AbstractConsensusAlgorithm { +/** + * @param + * @param + */ +public abstract class AbstractDAGBasedConsensus, T extends Tx> + extends AbstractConsensusAlgorithm { /** * Local Block Tree in Nodes Memory */ diff --git a/src/main/java/jabs/consensus/algorithm/CasperFFG.java b/src/main/java/jabs/consensus/algorithm/CasperFFG.java index 29a5f3ad..846540b0 100644 --- a/src/main/java/jabs/consensus/algorithm/CasperFFG.java +++ b/src/main/java/jabs/consensus/algorithm/CasperFFG.java @@ -1,6 +1,7 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockTree; +import jabs.consensus.config.CasperFFGConfig; import jabs.ledgerdata.*; import jabs.ledgerdata.casper.CasperFFGLink; import jabs.ledgerdata.casper.CasperFFGVote; @@ -11,6 +12,10 @@ import java.util.*; +/** + * @param + * @param + */ public class CasperFFG, T extends Tx> extends GhostProtocol implements VotingBasedConsensus, DeterministicFinalityConsensus { private final HashMap, HashMap>> votes = new HashMap<>(); @@ -26,15 +31,22 @@ public class CasperFFG, T extends Tx> extends private DescriptiveStatistics blockFinalizationTimes = null; - public CasperFFG(LocalBlockTree localBlockTree, int checkpointSpace, int numOfStakeholders) { - super(localBlockTree); - this.checkpointSpace = checkpointSpace; - this.numOfStakeholders = numOfStakeholders; + /** + * @param localBlockTree + * @param casperFFGConfig + */ + public CasperFFG(LocalBlockTree localBlockTree, CasperFFGConfig casperFFGConfig) { + super(localBlockTree, casperFFGConfig); + this.checkpointSpace = casperFFGConfig.checkpointSpace(); + this.numOfStakeholders = casperFFGConfig.numOfStakeholders(); this.justifiedBlocks.add(localBlockTree.getGenesisBlock()); this.finalizedBlocks.add(localBlockTree.getGenesisBlock()); this.indirectlyFinalizedBlocks.add(localBlockTree.getGenesisBlock()); } + /** + * @param blockFinalizationTimes + */ public void enableFinalizationTimeRecords(DescriptiveStatistics blockFinalizationTimes) { this.blockFinalizationTimes = blockFinalizationTimes; } @@ -67,7 +79,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { if (!indirectlyFinalizedBlocks.contains(newlyFinalizedBlock)) { indirectlyFinalizedBlocks.add(newlyFinalizedBlock); if (blockFinalizationTimes != null) { - blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getCurrentTime() - newlyFinalizedBlock.getCreationTime()); + blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getSimulationTime() - newlyFinalizedBlock.getCreationTime()); } } @@ -77,7 +89,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { if (!indirectlyFinalizedBlocks.contains(block)) { indirectlyFinalizedBlocks.add(block); if (blockFinalizationTimes != null) { - blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getCurrentTime() - block.getCreationTime()); + blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getSimulationTime() - block.getCreationTime()); } if (block instanceof BlockWithTx) { finalizedTxs.addAll(((BlockWithTx) block).getTxs()); @@ -88,7 +100,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { @Override protected void updateChain() { - this.acceptedBlocks = this.localBlockTree.getAllAncestors(this.currentMainChainHead); + this.confirmedBlocks = this.localBlockTree.getAllAncestors(this.currentMainChainHead); if ((currentMainChainHead.getHeight() - checkpointSpace) > latestCheckpoint) { latestCheckpoint = currentMainChainHead.getHeight() - (currentMainChainHead.getHeight() % checkpointSpace); diff --git a/src/main/java/jabs/consensus/algorithm/ConsensusAlgorithm.java b/src/main/java/jabs/consensus/algorithm/ConsensusAlgorithm.java index c9e1496f..c0e62800 100644 --- a/src/main/java/jabs/consensus/algorithm/ConsensusAlgorithm.java +++ b/src/main/java/jabs/consensus/algorithm/ConsensusAlgorithm.java @@ -3,13 +3,43 @@ import jabs.ledgerdata.Block; import jabs.ledgerdata.Tx; +/** + * @param + * @param + */ public interface ConsensusAlgorithm, T extends Tx> { + /** + * @param block + */ void newIncomingBlock(B block); + + /** + * @param block + * @return + */ boolean isBlockConfirmed(B block); + + /** + * @param tx + * @return + */ boolean isTxConfirmed(T tx); + + /** + * @param block + * @return + */ boolean isBlockValid(B block); - int getNumOfAcceptedBlocks(); - int getNumOfAcceptedTxs(); + + /** + * @return + */ + int getNumOfConfirmedBlocks(); + + /** + * @return + */ + int getNumOfConfirmedTxs(); } diff --git a/src/main/java/jabs/consensus/algorithm/DAGsper.java b/src/main/java/jabs/consensus/algorithm/DAGsper.java index 54626ac5..6136bad0 100644 --- a/src/main/java/jabs/consensus/algorithm/DAGsper.java +++ b/src/main/java/jabs/consensus/algorithm/DAGsper.java @@ -1,6 +1,7 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockTree; +import jabs.consensus.config.DAGsperConfig; import jabs.ledgerdata.*; import jabs.ledgerdata.dagsper.DAGsperVote; import jabs.ledgerdata.ethereum.EthereumBlock; @@ -34,10 +35,10 @@ public class DAGsper, T extends Tx> extends Gh private DescriptiveStatistics blockFinalizationTimes = null; - public DAGsper(LocalBlockTree localBlockTree, int checkpointSpace, int numOfStakeholders) { - super(localBlockTree); - this.checkpointSpace = checkpointSpace; - this.numOfStakeholders = numOfStakeholders; + public DAGsper(LocalBlockTree localBlockTree, DAGsperConfig daGsperConfig) { + super(localBlockTree, daGsperConfig); + this.checkpointSpace = daGsperConfig.checkpointSpace(); + this.numOfStakeholders = daGsperConfig.numOfStakeholders(); finalizedBlocks.add(localBlockTree.getGenesisBlock()); justifiedBlocks.add(localBlockTree.getGenesisBlock()); indirectlyFinalizedBlocks.add(localBlockTree.getGenesisBlock()); @@ -134,7 +135,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { if (!indirectlyFinalizedBlocks.contains(newlyFinalizedBlock)) { indirectlyFinalizedBlocks.add(newlyFinalizedBlock); if (blockFinalizationTimes != null) { - blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getCurrentTime() - newlyFinalizedBlock.getCreationTime()); + blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getSimulationTime() - newlyFinalizedBlock.getCreationTime()); } } @@ -161,7 +162,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { for (B block:ancestors) { if (blockFinalizationTimes != null) { - blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getCurrentTime() - block.getCreationTime()); + blockFinalizationTimes.addValue(peerBlockchainNode.getSimulator().getSimulationTime() - block.getCreationTime()); } if (block instanceof BlockWithTx) { finalizedTxs.addAll(((BlockWithTx) block).getTxs()); @@ -174,7 +175,7 @@ private void updateFinalizedBlocks(B newlyFinalizedBlock) { @Override protected void updateChain() { - acceptedBlocks = localBlockTree.getAllAncestors(currentMainChainHead); + confirmedBlocks = localBlockTree.getAllAncestors(currentMainChainHead); if (currentMainChainHead.getHeight() > 0) { if ((currentMainChainHead.getHeight() % checkpointSpace) == (peerBlockchainNode.nodeID % checkpointSpace)) { B latestConnectedJBlock = finalizedBlocks.last(); diff --git a/src/main/java/jabs/consensus/algorithm/GhostProtocol.java b/src/main/java/jabs/consensus/algorithm/GhostProtocol.java index 9feab7f1..fe7ec28e 100644 --- a/src/main/java/jabs/consensus/algorithm/GhostProtocol.java +++ b/src/main/java/jabs/consensus/algorithm/GhostProtocol.java @@ -1,21 +1,25 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockTree; +import jabs.consensus.config.GhostProtocolConfig; import jabs.ledgerdata.SingleParentBlock; import jabs.ledgerdata.Tx; import java.util.HashMap; import java.util.HashSet; -public class GhostProtocol, T extends Tx> extends AbstractChainBasedConsensus { +public class GhostProtocol, T extends Tx> + extends AbstractChainBasedConsensus { private final HashMap totalWeights = new HashMap<>(); public static int DEFAULT_GHOST_WEIGHT = 1; protected B originOfGhost; + private final double averageBlockMiningInterval; - public GhostProtocol(LocalBlockTree localBlockTree) { + public GhostProtocol(LocalBlockTree localBlockTree, GhostProtocolConfig ghostProtocolConfig) { super(localBlockTree); this.originOfGhost = localBlockTree.getGenesisBlock(); this.newIncomingBlock(localBlockTree.getGenesisBlock()); + this.averageBlockMiningInterval = ghostProtocolConfig.averageBlockMiningInterval(); } @Override @@ -59,6 +63,6 @@ public B ghost() { @Override protected void updateChain() { - this.acceptedBlocks = this.localBlockTree.getAllAncestors(this.currentMainChainHead); + this.confirmedBlocks = this.localBlockTree.getAllAncestors(this.currentMainChainHead); } } diff --git a/src/main/java/jabs/consensus/algorithm/NakamotoConsensus.java b/src/main/java/jabs/consensus/algorithm/NakamotoConsensus.java index 622fb776..e8813024 100644 --- a/src/main/java/jabs/consensus/algorithm/NakamotoConsensus.java +++ b/src/main/java/jabs/consensus/algorithm/NakamotoConsensus.java @@ -1,15 +1,23 @@ package jabs.consensus.algorithm; +import jabs.consensus.config.NakamotoConsensusConfig; import jabs.ledgerdata.SingleParentBlock; import jabs.ledgerdata.Tx; import jabs.consensus.blockchain.LocalBlockTree; +import jabs.simulator.Simulator; +import jabs.simulator.event.BlockConfirmationEvent; -public class NakamotoConsensus, T extends Tx> extends AbstractChainBasedConsensus { - private int longestChainLen = -1; +public class NakamotoConsensus, T extends Tx> + extends AbstractChainBasedConsensus { + private int longestChainLen = 0; + private final double averageBlockMiningInterval; + private final int confirmationDepth; - public NakamotoConsensus(LocalBlockTree localBlockTree) { + public NakamotoConsensus(LocalBlockTree localBlockTree, NakamotoConsensusConfig nakamotoConsensusConfig) { super(localBlockTree); - this.newIncomingBlock(localBlockTree.getGenesisBlock()); + this.averageBlockMiningInterval = nakamotoConsensusConfig.averageBlockMiningInterval(); + this.confirmationDepth = nakamotoConsensusConfig.getConfirmationDepth(); + this.currentMainChainHead = localBlockTree.getGenesisBlock(); } @Override @@ -23,6 +31,19 @@ public void newIncomingBlock(B block) { @Override protected void updateChain() { - this.acceptedBlocks = this.localBlockTree.getAllAncestors(this.currentMainChainHead); + if (currentMainChainHead.getHeight() > confirmationDepth) { + int heightOfConfirmedBlocks = currentMainChainHead.getHeight() - confirmationDepth; + B highestConfirmedBlock = localBlockTree.getAncestorOfHeight(currentMainChainHead, heightOfConfirmedBlocks); + this.confirmedBlocks = this.localBlockTree.getAllAncestors(highestConfirmedBlock); + Simulator simulator = this.peerDLTNode.getSimulator(); + double currentTime = simulator.getSimulationTime(); + simulator.putEvent( + new BlockConfirmationEvent(currentTime, this.peerDLTNode, highestConfirmedBlock), + 0); + } + } + + public double getAverageBlockMiningInterval() { + return averageBlockMiningInterval; } } diff --git a/src/main/java/jabs/consensus/algorithm/NakamotoHeaviestChainConsensus.java b/src/main/java/jabs/consensus/algorithm/NakamotoHeaviestChainConsensus.java new file mode 100644 index 00000000..5ca55bdf --- /dev/null +++ b/src/main/java/jabs/consensus/algorithm/NakamotoHeaviestChainConsensus.java @@ -0,0 +1,46 @@ +package jabs.consensus.algorithm; + +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.consensus.config.NakamotoConsensusConfig; +import jabs.ledgerdata.SingleParentPoWBlock; +import jabs.ledgerdata.Tx; +import jabs.simulator.Simulator; + +import java.util.HashSet; + +public class NakamotoHeaviestChainConsensus, T extends Tx> + extends AbstractChainBasedConsensus { + private double heaviestChainWeight = 0; + private final double averageBlockMiningInterval; + private final int confirmationDepth; + + public NakamotoHeaviestChainConsensus(LocalBlockTree localBlockTree, NakamotoConsensusConfig nakamotoConsensusConfig) { + super(localBlockTree); + this.averageBlockMiningInterval = nakamotoConsensusConfig.averageBlockMiningInterval(); + this.confirmationDepth = nakamotoConsensusConfig.getConfirmationDepth(); + this.currentMainChainHead = localBlockTree.getGenesisBlock(); + } + + @Override + public void newIncomingBlock(B block) { + HashSet pathToGenesis = localBlockTree.getAllAncestors(block); + double totalWeight = block.getWeight(); + for (B ancestorBlock:pathToGenesis) { + totalWeight += ancestorBlock.getWeight(); + } + if (totalWeight > heaviestChainWeight) { + this.heaviestChainWeight = totalWeight; + this.currentMainChainHead = block; + this.updateChain(); + } + } + + @Override + protected void updateChain() { + + } + + public double getAverageBlockMiningInterval() { + return averageBlockMiningInterval; + } +} diff --git a/src/main/java/jabs/consensus/algorithm/PBFT.java b/src/main/java/jabs/consensus/algorithm/PBFT.java index 0b609769..4dc09e66 100644 --- a/src/main/java/jabs/consensus/algorithm/PBFT.java +++ b/src/main/java/jabs/consensus/algorithm/PBFT.java @@ -1,15 +1,11 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockTree; -import jabs.ledgerdata.SingleParentBlock; -import jabs.ledgerdata.Tx; -import jabs.ledgerdata.Vote; +import jabs.ledgerdata.*; import jabs.ledgerdata.pbft.*; import jabs.network.message.VoteMessage; -import jabs.network.networks.BlockFactory; import jabs.network.node.nodes.Node; import jabs.network.node.nodes.pbft.PBFTNode; -import jabs.simulator.Simulator; import java.util.HashMap; import java.util.HashSet; @@ -62,7 +58,7 @@ public enum PBFTPhase { COMMITTING } - public PBFT(Simulator simulator, int numAllParticipants, LocalBlockTree localBlockTree) { + public PBFT(LocalBlockTree localBlockTree, int numAllParticipants) { super(localBlockTree); this.numAllParticipants = numAllParticipants; this.currentMainChainHead = localBlockTree.getGenesisBlock(); @@ -139,6 +135,24 @@ public void newIncomingBlock(B block) { } + /** + * @param block + * @return + */ + @Override + public boolean isBlockConfirmed(B block) { + return false; + } + + /** + * @param block + * @return + */ + @Override + public boolean isBlockValid(B block) { + return false; + } + public int getCurrentViewNumber() { return this.currentViewNumber; } @@ -157,6 +171,6 @@ public PBFTPhase getPbftPhase() { @Override protected void updateChain() { - this.acceptedBlocks.add(this.currentMainChainHead); + this.confirmedBlocks.add(this.currentMainChainHead); } } diff --git a/src/main/java/jabs/consensus/algorithm/QueryingBasedConsensus.java b/src/main/java/jabs/consensus/algorithm/QueryingBasedConsensus.java new file mode 100644 index 00000000..abb64fa9 --- /dev/null +++ b/src/main/java/jabs/consensus/algorithm/QueryingBasedConsensus.java @@ -0,0 +1,9 @@ +package jabs.consensus.algorithm; + +import jabs.ledgerdata.Block; +import jabs.ledgerdata.Tx; +import jabs.ledgerdata.Query; + +public interface QueryingBasedConsensus , T extends Tx> extends ConsensusAlgorithm{ + void newIncomingQuery(Query query); +} diff --git a/src/main/java/jabs/consensus/algorithm/Slush.java b/src/main/java/jabs/consensus/algorithm/Slush.java new file mode 100644 index 00000000..c4b94cdb --- /dev/null +++ b/src/main/java/jabs/consensus/algorithm/Slush.java @@ -0,0 +1,299 @@ +package jabs.consensus.algorithm; + +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.BlockFactory; +import jabs.ledgerdata.SingleParentBlock; +import jabs.ledgerdata.Tx; +import jabs.ledgerdata.Query; +import jabs.ledgerdata.snow.*; +import jabs.network.message.QueryMessage; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SlushNode; +import jabs.simulator.randengine.RandomnessEngine; + +import java.io.File; +import java.io.FileWriter; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; + +/** + * File: Slush.java + * Description: Implements Slush protocol for JABS blockchain simulator. + */ + +public class Slush, T extends Tx> extends AbstractChainBasedConsensus + implements QueryingBasedConsensus, DeterministicFinalityConsensus { + + static { + try { + File file = new File("output/slush-events-log.txt"); + if (file.exists()) { + file.delete(); + } + writer = new PrintWriter(new FileWriter(file, true)); + } catch (Exception e) { + e.printStackTrace(); + } + } + // *------------------------------------------------------------------------------------------------------- + // settings for the Slush protocols + public static int k = 2; // sample size + private double mean = 0.5; // Mean of the normal distribution + private double stdDev = 0.1; // Standard deviation of the normal distribution + // *------------------------------------------------------------------------------------------------------- + private static PrintWriter writer; + private final int numAllParticipants; + private static int numReadyNodes; + private static boolean readyTransfer; + private final HashMap> commitQueries = new HashMap<>(); + private final static HashSet committedNodes = new HashSet<>(); + public static int numConsensus; + private int numReceivedSamples; + public boolean consensus; + private SnowPhase snowPhase = SnowPhase.PREPARING; + private SnowMode snowMode = SnowMode.NORMAL; + + @Override + public boolean isBlockFinalized(B block) { + return false; + } + + @Override + public boolean isTxFinalized(T tx) { + return false; + } + + @Override + public int getNumOfFinalizedBlocks() { + return 0; + } + + @Override + public int getNumOfFinalizedTxs() { + return 0; + } + + public enum SnowPhase { + PREPARING, + COMMITTING + } + + private enum SnowMode { + NORMAL, + TRANSFERRING + } + + public Slush(LocalBlockTree localBlockTree, int numAllParticipants) { + super(localBlockTree); + this.numAllParticipants = numAllParticipants; + this.currentMainChainHead = localBlockTree.getGenesisBlock(); + } + + public void newIncomingQuery(Query query) { + if (query instanceof SnowBlockQuery) { + SnowBlockQuery blockQuery = (SnowBlockQuery) query; + B block = blockQuery.getBlock(); + SlushNode peer = (SlushNode) this.peerBlockchainNode; + if (peer.currentBlock.getHeight() < block.getHeight()) { // If the node has not yet voted for the new block + double sample = generateNormalSample(this.peerBlockchainNode.getNetwork().getRandom(), mean, stdDev); // decides + // whether + // to + // vote + // for + // the + // new + // block + // or + // not + peer.currentBlock = sample >= 0.5 ? (SnowBlock) block : peer.currentBlock; + } + SlushNode inquirer = (SlushNode) blockQuery.getInquirer(); + switch (blockQuery.getQueryType()) { + case PREPARE: + if (!this.localBlockTree.contains(block)) { + this.localBlockTree.add(block); + } + if (this.localBlockTree.getLocalBlock(block).isConnectedToGenesis) { + this.snowPhase = SnowPhase.COMMITTING; + this.peerBlockchainNode.respondQuery( + new QueryMessage( + new SnowCommitQuery<>(this.peerBlockchainNode, peer.currentBlock)), + inquirer); + } + break; + case COMMIT: + checkQueries(blockQuery, (B) peer.currentBlock, this.commitQueries, SnowPhase.PREPARING); + break; + } + } + } + + private void checkQueries(SnowBlockQuery query, B block, HashMap> queries, + Slush.SnowPhase nextStep) { + this.snowPhase = nextStep; + this.numReceivedSamples++; + List sampledNeighbors = sampleNeighbors(this.peerBlockchainNode.getNetwork().getRandom(), k); + if (!queries.containsKey(block)) { // the first query reply received for the block + queries.put(block, new HashMap<>()); + } + queries.get(block).put(query.getInquirer(), query); + if (numReceivedSamples == k) { // if the node has received all the replies + this.numReceivedSamples = 0; + if (this.snowMode == SnowMode.TRANSFERRING) { + if (!readyTransfer) { + this.snowMode = SnowMode.NORMAL; + } + queries.clear(); + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + } else if (this.snowMode == SnowMode.NORMAL) { + if (committedNodes.contains(this.peerBlockchainNode)) { // if the node has reached consensus (beta + // threshold) + queries.clear(); + if (!this.consensus) { + checkConsensus(block); + } + if (!readyTransfer) { + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + } else { + startGenerateNewBlock(nextStep, sampledNeighbors, block); + } + } else { + queries.clear(); + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + } + } + } + } + + private void startGenerateNewBlock(Slush.SnowPhase nextStep, List sampledNeighbors, B block) { + // System.out.println("node "+this.peerBlockchainNode.nodeID+" started"+ " at + // "+this.peerBlockchainNode.getSimulator().getSimulationTime()); + this.snowMode = SnowMode.TRANSFERRING; + committedNodes.remove(this.peerBlockchainNode); + this.consensus = false; + if (committedNodes.size() == 0) { + numReadyNodes = 0; + readyTransfer = false; + // System.out.println("All transferred!"); + } + switch (nextStep) { + case PREPARING: + if (this.peerBlockchainNode.nodeID == this.getCurrentPrimaryNumber()) { // The next node to start + // proposing a new block + SlushNode slushNode = (SlushNode) this.peerBlockchainNode; + SnowBlock newBlock = BlockFactory.sampleSlushBlock(this.peerBlockchainNode.getSimulator(), + this.peerBlockchainNode.getNetwork().getRandom(), + slushNode, (SnowBlock) block); + slushNode.currentBlock = newBlock; + for (Node destination : sampledNeighbors) { + slushNode.query( + new QueryMessage( + new SnowPrepareQuery<>(slushNode, newBlock)), + destination); + } + } else { + SlushNode slushNode = (SlushNode) this.peerBlockchainNode; + slushNode.currentBlock = (SnowBlock) block; + for (Node destination : sampledNeighbors) { + slushNode.query( + new QueryMessage( + new SnowPrepareQuery<>(slushNode, block)), + destination); + } + } + break; + } + } + + private void continueSampling(Slush.SnowPhase nextStep, List sampledNeighbors, B block) { + switch (nextStep) { + case PREPARING: + for (Node destination : sampledNeighbors) { + this.peerBlockchainNode.query( + new QueryMessage( + new SnowPrepareQuery<>(this.peerBlockchainNode, block)), + destination); + } + break; + } + } + + private void checkConsensus(B block) { + if (committedNodes.size() == getNumAllParticipants()) { + // System.out.println("node "+this.peerBlockchainNode.nodeID+" is ready"+ " at + // "+this.peerBlockchainNode.getSimulator().getSimulationTime()); + this.consensus = true; + numReadyNodes++; + if (numReadyNodes == getNumAllParticipants()) { + readyTransfer = true; + } + this.currentMainChainHead = block; // accepts the block + updateChain(); + writer.println("Consensus occurred in node " + this.peerBlockchainNode.getNodeID() + " for the block " + + block.getHeight() + " at " + this.peerBlockchainNode.getSimulator().getSimulationTime()); + writer.flush(); + } + } + + private List sampleNeighbors(RandomnessEngine randomnessEngine, int k) { + List neighbors = new ArrayList<>(); + neighbors.addAll(this.peerBlockchainNode.getP2pConnections().getNeighbors()); + neighbors.remove(this.peerBlockchainNode); + List sampledNodes = new ArrayList<>(); + for (int i = 0; i < k; i++) { + int randomIndex = randomnessEngine.sampleInt(neighbors.size()); + sampledNodes.add(neighbors.get(randomIndex)); + neighbors.remove(randomIndex); + } + return sampledNodes; + } + + private static double generateNormalSample(RandomnessEngine random, double mean, double stdDev) { + return mean + stdDev * random.nextGaussian(); + } + + @Override + public void newIncomingBlock(B block) { + + } + + /** + * @param block + * @return + */ + @Override + public boolean isBlockConfirmed(B block) { + return false; + } + + /** + * @param block + * @return + */ + @Override + public boolean isBlockValid(B block) { + return false; + } + + public int getNumAllParticipants() { + return this.numAllParticipants; + } + + public Slush.SnowPhase getSnowPhase() { + return this.snowPhase; + } + + public int getCurrentPrimaryNumber() { + return (this.currentMainChainHead.getHeight() % this.numAllParticipants); + } + + @Override + protected void updateChain() { + this.confirmedBlocks.add(this.currentMainChainHead); + numConsensus = this.confirmedBlocks.size(); + } + +} diff --git a/src/main/java/jabs/consensus/algorithm/Snow.java b/src/main/java/jabs/consensus/algorithm/Snow.java new file mode 100644 index 00000000..956627c1 --- /dev/null +++ b/src/main/java/jabs/consensus/algorithm/Snow.java @@ -0,0 +1,302 @@ +package jabs.consensus.algorithm; + +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.BlockFactory; +import jabs.ledgerdata.SingleParentBlock; +import jabs.ledgerdata.Tx; +import jabs.ledgerdata.Query; +import jabs.ledgerdata.snow.*; +import jabs.network.message.QueryMessage; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SnowNode; +import jabs.simulator.randengine.RandomnessEngine; + +import java.io.File; +import java.io.FileWriter; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; + +/** + * File: Snow.java + * Description: Implements SnowBall protocol for JABS blockchain simulator. + * Author: Siamak Abdi + * Date: August 22, 2023 + */ + +public class Snow, T extends Tx> extends AbstractChainBasedConsensus + implements QueryingBasedConsensus, DeterministicFinalityConsensus { + + static { + try { + File file = new File("output/snow-events-log.txt"); + if (file.exists()) { + file.delete(); + } + writer = new PrintWriter(new FileWriter(file, true)); + } catch (Exception e) { + e.printStackTrace(); + } + } + //*------------------------------------------------------------------------------------------------------- + // settings for the Snow protocols + public static int k = 2; // sample size + private int alpha = k/2; // quorum size or threshold + private int beta = 5; // conviction threshold + private double mean = 0.5; // Mean of the normal distribution + private double stdDev = 0.1; // Standard deviation of the normal distribution + //*------------------------------------------------------------------------------------------------------- + private static PrintWriter writer; + private final int numAllParticipants; + private static int numReadyNodes; + private static boolean readyTransfer; + private final HashMap> commitQueries = new HashMap<>(); + private final static HashSet committedNodes = new HashSet<>(); + public static int numConsensus; + private int numReceivedSamples; + private int conviction; + public boolean consensus; + private SnowPhase snowPhase = SnowPhase.PREPARING; + private SnowMode snowMode = SnowMode.NORMAL; + @Override + public boolean isBlockFinalized(B block) { + return false; + } + + @Override + public boolean isTxFinalized(T tx) { + return false; + } + + @Override + public int getNumOfFinalizedBlocks() { + return 0; + } + + @Override + public int getNumOfFinalizedTxs() { + return 0; + } + + public enum SnowPhase { + PREPARING, + COMMITTING + } + private enum SnowMode{ + NORMAL, + TRANSFERRING + } + + public Snow(LocalBlockTree localBlockTree, int numAllParticipants) { + super(localBlockTree); + this.numAllParticipants = numAllParticipants; + this.currentMainChainHead = localBlockTree.getGenesisBlock(); + } + + public void newIncomingQuery(Query query) { + if (query instanceof SnowBlockQuery) { + SnowBlockQuery blockQuery = (SnowBlockQuery) query; + B block = blockQuery.getBlock(); + SnowNode peer = (SnowNode) this.peerBlockchainNode; + if(peer.currentBlock.getHeight() < block.getHeight()){ // If the node has not yet voted for the new block + double sample = generateNormalSample(this.peerBlockchainNode.getNetwork().getRandom(), mean, stdDev); // decides whether to vote for the new block or not + peer.currentBlock = sample >= 0.5 ? (SnowBlock) block : peer.currentBlock; + } + SnowNode inquirer = (SnowNode) blockQuery.getInquirer(); + switch (blockQuery.getQueryType()) { + case PREPARE : + if (!this.localBlockTree.contains(block)) { + this.localBlockTree.add(block); + } + if (this.localBlockTree.getLocalBlock(block).isConnectedToGenesis) { + this.snowPhase = SnowPhase.COMMITTING; + this.peerBlockchainNode.respondQuery( + new QueryMessage( + new SnowCommitQuery<>(this.peerBlockchainNode, peer.currentBlock) + ), inquirer + ); + } + break; + case COMMIT: + checkQueries(blockQuery, (B) peer.currentBlock, this.commitQueries, SnowPhase.PREPARING); + break; + } + } + } + + private void checkQueries(SnowBlockQuery query, B block, HashMap> queries, Snow.SnowPhase nextStep) { + this.snowPhase = nextStep; + this.numReceivedSamples++; + List sampledNeighbors = sampleNeighbors(this.peerBlockchainNode.getNetwork().getRandom(), k); + if (!queries.containsKey(block)) { // the first query reply received for the block + queries.put(block, new HashMap<>()); + } + queries.get(block).put(query.getInquirer(), query); + if (numReceivedSamples == k) { // if the node has received all the replies + this.numReceivedSamples = 0; + if(this.snowMode == SnowMode.TRANSFERRING){ + if(!readyTransfer){ + this.snowMode = SnowMode.NORMAL; + } + queries.clear(); + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + }else if(this.snowMode == SnowMode.NORMAL){ + if(committedNodes.contains(this.peerBlockchainNode)){ // if the node has reached consensus (beta threshold) + queries.clear(); + if(!this.consensus){ + checkConsensus(block); + } + if(!readyTransfer){ + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + }else { + startGenerateNewBlock(nextStep, sampledNeighbors, block); + } + } else if ((queries.get(block).size() > alpha) && (block.getHeight()>this.currentMainChainHead.getHeight())) { // If a successful query for the block reaches the alpha value + this.conviction++; + queries.clear(); + if((this.conviction==beta)){ // if the node's conviction value reaches the beta value (local consensus) + committedNodes.add(this.peerBlockchainNode); + this.conviction = 0; + if(!this.consensus){ + checkConsensus(block); + } + } + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + } else { + queries.clear(); + this.conviction = 0; + continueSampling(nextStep, sampledNeighbors, block); // Just to participate in the process + } + } + } + } + + private void startGenerateNewBlock(Snow.SnowPhase nextStep, List sampledNeighbors, B block) { + //System.out.println("node "+this.peerBlockchainNode.nodeID+" started"+ " at "+this.peerBlockchainNode.getSimulator().getSimulationTime()); + this.conviction = 0; + this.snowMode = SnowMode.TRANSFERRING; + committedNodes.remove(this.peerBlockchainNode); + this.consensus = false; + if(committedNodes.size()==0){ + numReadyNodes = 0; + readyTransfer = false; + //System.out.println("All transferred!"); + } + switch (nextStep) { + case PREPARING: + if(this.peerBlockchainNode.nodeID == this.getCurrentPrimaryNumber()) { // The next node to start proposing a new block + SnowNode snowNode = (SnowNode) this.peerBlockchainNode; + SnowBlock newBlock = BlockFactory.sampleSnowBlock(this.peerBlockchainNode.getSimulator(), this.peerBlockchainNode.getNetwork().getRandom(), + snowNode, (SnowBlock) block); + snowNode.currentBlock = newBlock; + for (Node destination : sampledNeighbors) { + snowNode.query( + new QueryMessage( + new SnowPrepareQuery<>(snowNode, newBlock) + ), destination + ); + } + }else { + SnowNode snowNode = (SnowNode) this.peerBlockchainNode; + snowNode.currentBlock = (SnowBlock) block; + for(Node destination:sampledNeighbors){ + snowNode.query( + new QueryMessage( + new SnowPrepareQuery<>(snowNode, block) + ), destination + ); + } + } + break; + } + } + + private void continueSampling(Snow.SnowPhase nextStep, List sampledNeighbors, B block) { + switch (nextStep) { + case PREPARING: + for(Node destination:sampledNeighbors){ + this.peerBlockchainNode.query( + new QueryMessage( + new SnowPrepareQuery<>(this.peerBlockchainNode, block) + ), destination + ); + } + break; + } + } + + private void checkConsensus(B block) { + if(committedNodes.size() == getNumAllParticipants()){ + //System.out.println("node "+this.peerBlockchainNode.nodeID+" is ready"+ " at "+this.peerBlockchainNode.getSimulator().getSimulationTime()); + this.consensus=true; + numReadyNodes++; + if(numReadyNodes==getNumAllParticipants()){ + readyTransfer = true; + } + this.currentMainChainHead = block; // accepts the block + updateChain(); + writer.println("Consensus occurred in node " + this.peerBlockchainNode.getNodeID() + " for the block " + block.getHeight() + " at " + this.peerBlockchainNode.getSimulator().getSimulationTime()); + writer.flush(); + } + } + + private List sampleNeighbors(RandomnessEngine randomnessEngine, int k) { + List neighbors = new ArrayList<>(); + neighbors.addAll(this.peerBlockchainNode.getP2pConnections().getNeighbors()); + neighbors.remove(this.peerBlockchainNode); + List sampledNodes = new ArrayList<>(); + for (int i = 0; i < k; i++) { + int randomIndex = randomnessEngine.sampleInt(neighbors.size()); + sampledNodes.add(neighbors.get(randomIndex)); + neighbors.remove(randomIndex); + } + return sampledNodes; + } + private static double generateNormalSample(RandomnessEngine random, double mean, double stdDev) { + return mean + stdDev * random.nextGaussian(); + } + + @Override + public void newIncomingBlock(B block) { + + } + + /** + * @param block + * @return + */ + @Override + public boolean isBlockConfirmed(B block) { + return false; + } + + /** + * @param block + * @return + */ + @Override + public boolean isBlockValid(B block) { + return false; + } + + public int getNumAllParticipants() { + return this.numAllParticipants; + } + + public Snow.SnowPhase getSnowPhase() { + return this.snowPhase; + } + + public int getCurrentPrimaryNumber() { + return (this.currentMainChainHead.getHeight() % this.numAllParticipants); + } + + @Override + protected void updateChain() { + this.confirmedBlocks.add(this.currentMainChainHead); + numConsensus = this.confirmedBlocks.size(); + } + +} diff --git a/src/main/java/jabs/consensus/algorithm/TangleIOTA.java b/src/main/java/jabs/consensus/algorithm/TangleIOTA.java index 01ad93f7..ce9c7c87 100644 --- a/src/main/java/jabs/consensus/algorithm/TangleIOTA.java +++ b/src/main/java/jabs/consensus/algorithm/TangleIOTA.java @@ -1,21 +1,25 @@ package jabs.consensus.algorithm; import jabs.consensus.blockchain.LocalBlockDAG; +import jabs.consensus.config.TangleIOTAConsensusConfig; import jabs.ledgerdata.tangle.TangleBlock; import jabs.ledgerdata.tangle.TangleTx; import java.util.HashMap; import java.util.HashSet; +/** + * + */ public class TangleIOTA extends AbstractDAGBasedConsensus { - protected final HashMap blockAccWeights = new HashMap<>(); + protected final HashMap blockAccWeights = new HashMap<>(); /** * Creates a Tangle Consensus Algorithm * * @param localBlockDAG local block tree in the node's memory */ - public TangleIOTA(LocalBlockDAG localBlockDAG) { + public TangleIOTA(LocalBlockDAG localBlockDAG, TangleIOTAConsensusConfig tangleIOTAConsensusConfig) { super(localBlockDAG); this.newIncomingBlock(localBlockDAG.getGenesisBlock()); } diff --git a/src/main/java/jabs/consensus/algorithm/package-info.java b/src/main/java/jabs/consensus/algorithm/package-info.java new file mode 100644 index 00000000..b618d701 --- /dev/null +++ b/src/main/java/jabs/consensus/algorithm/package-info.java @@ -0,0 +1,4 @@ +/** + * + */ +package jabs.consensus.algorithm; \ No newline at end of file diff --git a/src/main/java/jabs/consensus/config/CasperFFGConfig.java b/src/main/java/jabs/consensus/config/CasperFFGConfig.java new file mode 100644 index 00000000..47a28990 --- /dev/null +++ b/src/main/java/jabs/consensus/config/CasperFFGConfig.java @@ -0,0 +1,32 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.Block; +import jabs.ledgerdata.SingleParentBlock; + +import java.util.Objects; + +/** + */ +public final class CasperFFGConfig> extends GhostProtocolConfig { + private final int checkpointSpace; + private final int numOfStakeholders; + + /** + * @param checkpointSpace + * @param numOfStakeholders + */ + public CasperFFGConfig(B genesisBlock, double averageBlockMiningInterval, int checkpointSpace, int numOfStakeholders) { + super(genesisBlock, averageBlockMiningInterval); + this.checkpointSpace = checkpointSpace; + this.numOfStakeholders = numOfStakeholders; + } + + + public int checkpointSpace() { + return checkpointSpace; + } + + public int numOfStakeholders() { + return numOfStakeholders; + } +} diff --git a/src/main/java/jabs/consensus/config/ChainBasedConsensusConfig.java b/src/main/java/jabs/consensus/config/ChainBasedConsensusConfig.java new file mode 100644 index 00000000..179e969c --- /dev/null +++ b/src/main/java/jabs/consensus/config/ChainBasedConsensusConfig.java @@ -0,0 +1,28 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.SingleParentBlock; + +/** + */ +public class ChainBasedConsensusConfig> + implements ConsensusAlgorithmConfig { + private final double averageBlockMiningInterval; + private final B genesisBlock; + + /** + * @param averageBlockMiningInterval + * @param genesisBlock + */ + public ChainBasedConsensusConfig(B genesisBlock, double averageBlockMiningInterval) { + this.averageBlockMiningInterval = averageBlockMiningInterval; + this.genesisBlock = genesisBlock; + } + + public double averageBlockMiningInterval() { + return averageBlockMiningInterval; + } + + public B getGenesisBlock() { + return this.genesisBlock; + } +} diff --git a/src/main/java/jabs/consensus/config/ConsensusAlgorithmConfig.java b/src/main/java/jabs/consensus/config/ConsensusAlgorithmConfig.java new file mode 100644 index 00000000..58765f03 --- /dev/null +++ b/src/main/java/jabs/consensus/config/ConsensusAlgorithmConfig.java @@ -0,0 +1,8 @@ +package jabs.consensus.config; + +/** + * + */ +public interface ConsensusAlgorithmConfig { + +} diff --git a/src/main/java/jabs/consensus/config/DAGsperConfig.java b/src/main/java/jabs/consensus/config/DAGsperConfig.java new file mode 100644 index 00000000..e9ad2a44 --- /dev/null +++ b/src/main/java/jabs/consensus/config/DAGsperConfig.java @@ -0,0 +1,31 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.SingleParentBlock; + +/** + * + */ +public final class DAGsperConfig> extends GhostProtocolConfig { + private final int checkpointSpace; + private final int numOfStakeholders; + + /** + * @param genesisBlock + * @param checkpointSpace + * @param numOfStakeholders + */ + public DAGsperConfig(B genesisBlock, double averageBlockMiningInterval, int checkpointSpace, + int numOfStakeholders) { + super(genesisBlock, averageBlockMiningInterval); + this.checkpointSpace = checkpointSpace; + this.numOfStakeholders = numOfStakeholders; + } + + public int checkpointSpace() { + return checkpointSpace; + } + + public int numOfStakeholders() { + return numOfStakeholders; + } +} diff --git a/src/main/java/jabs/consensus/config/GhostProtocolConfig.java b/src/main/java/jabs/consensus/config/GhostProtocolConfig.java new file mode 100644 index 00000000..953b1250 --- /dev/null +++ b/src/main/java/jabs/consensus/config/GhostProtocolConfig.java @@ -0,0 +1,14 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.SingleParentBlock; + +/** + */ +public class GhostProtocolConfig> extends ChainBasedConsensusConfig { + /** + * @param averageBlockMiningInterval + */ + public GhostProtocolConfig(B genesisBlock, double averageBlockMiningInterval) { + super(genesisBlock, averageBlockMiningInterval); + } +} diff --git a/src/main/java/jabs/consensus/config/NakamotoConsensusConfig.java b/src/main/java/jabs/consensus/config/NakamotoConsensusConfig.java new file mode 100644 index 00000000..482f19b3 --- /dev/null +++ b/src/main/java/jabs/consensus/config/NakamotoConsensusConfig.java @@ -0,0 +1,22 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.SingleParentBlock; + +/** + */ +public class NakamotoConsensusConfig> + extends ChainBasedConsensusConfig { + private final int confirmationDepth; + /** + * @param averageBlockMiningInterval + * @param confirmationDepth + */ + public NakamotoConsensusConfig(B genesisBlock, double averageBlockMiningInterval, int confirmationDepth) { + super(genesisBlock, averageBlockMiningInterval); + this.confirmationDepth = confirmationDepth; + } + + public int getConfirmationDepth() { + return confirmationDepth; + } +} diff --git a/src/main/java/jabs/consensus/config/PBFTConsensusConfig.java b/src/main/java/jabs/consensus/config/PBFTConsensusConfig.java new file mode 100644 index 00000000..4e797b31 --- /dev/null +++ b/src/main/java/jabs/consensus/config/PBFTConsensusConfig.java @@ -0,0 +1,4 @@ +package jabs.consensus.config; + +public class PBFTConsensusConfig implements ConsensusAlgorithmConfig { +} diff --git a/src/main/java/jabs/consensus/config/RoundRobinConsensus.java b/src/main/java/jabs/consensus/config/RoundRobinConsensus.java new file mode 100644 index 00000000..972e1b24 --- /dev/null +++ b/src/main/java/jabs/consensus/config/RoundRobinConsensus.java @@ -0,0 +1,93 @@ +package jabs.consensus.config; + +import jabs.consensus.algorithm.AbstractChainBasedConsensus; +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.SingleParentBlock; +import jabs.ledgerdata.Tx; +import jabs.network.networks.GlobalProofOfWorkNetwork; +import jabs.network.node.nodes.MinerNode; +import jabs.simulator.Simulator; +import jabs.simulator.event.BlockConfirmationEvent; + +import java.util.List; +import java.lang.Math; + +public class RoundRobinConsensus, T extends Tx> + extends AbstractChainBasedConsensus { + private int longestChainLen = 0; + private final double averageBlockMiningInterval; + private final int confirmationDepth; + + List allMiners = ((GlobalProofOfWorkNetwork) this.peerDLTNode.getNetwork()).getAllMiners(); + private final int numOfMiners = allMiners.size(); + private final double miningDiversity = 0.75; + private final int spacingMinus1 = (int) ((Math.ceil(numOfMiners * miningDiversity)) - 1); + + public RoundRobinConsensus(LocalBlockTree localBlockTree, NakamotoConsensusConfig nakamotoConsensusConfig) { + super(localBlockTree); + this.averageBlockMiningInterval = nakamotoConsensusConfig.averageBlockMiningInterval(); + this.confirmationDepth = nakamotoConsensusConfig.getConfirmationDepth(); + this.currentMainChainHead = localBlockTree.getGenesisBlock(); + } + + @Override + public void newIncomingBlock(B block) { + int currentId = block.getCreator().getNodeID(); + int currentHeight = block.getHeight(); + + boolean flag = false; + for(int i = 0; i < spacingMinus1 - 1; i++) { + B parentIBlock = localBlockTree.getAncestorOfHeight(block,currentHeight - (i + 1)); + if(parentIBlock.getCreator().getNodeID() == currentId) { + flag = true; + } + } + + if (!flag) { + this.longestChainLen = block.getHeight(); + this.currentMainChainHead = block; + this.updateChain(); + } + } + + @Override + protected void updateChain() { + if (currentMainChainHead.getHeight() > confirmationDepth) { + int heightOfConfirmedBlocks = currentMainChainHead.getHeight() - confirmationDepth; + B highestConfirmedBlock = localBlockTree.getAncestorOfHeight(currentMainChainHead, heightOfConfirmedBlocks); + this.confirmedBlocks = this.localBlockTree.getAllAncestors(highestConfirmedBlock); + Simulator simulator = this.peerDLTNode.getSimulator(); + double currentTime = simulator.getSimulationTime(); + simulator.putEvent( + new BlockConfirmationEvent(currentTime, this.peerDLTNode, highestConfirmedBlock), + 0); + } + } + + public double getAverageBlockMiningInterval() { + return averageBlockMiningInterval; + } + + @Override + public boolean isBlockValid(B block) { + List permittedMiners = null; + int currentHeight = currentMainChainHead.getHeight() + 1; + int firstMinerID = currentHeight % numOfMiners; + if(firstMinerID == 0) { + firstMinerID = numOfMiners; + } + int upperBound = firstMinerID + numOfMiners - spacingMinus1-1; + for(int i = firstMinerID; i <= upperBound; i++) { + if((upperBound) > numOfMiners) { + int temp = upperBound % numOfMiners; + permittedMiners.add(temp); + } + else { + permittedMiners.add(i); + } + } + //if(permittedMiners.contains(this.peerDLTNode.getNodeID())) {return true;} + if(permittedMiners.contains(block.getCreator().getNodeID())) {return true;} + else { return false;} + } +} diff --git a/src/main/java/jabs/consensus/config/SnowConsensusConfig.java b/src/main/java/jabs/consensus/config/SnowConsensusConfig.java new file mode 100644 index 00000000..14ea5478 --- /dev/null +++ b/src/main/java/jabs/consensus/config/SnowConsensusConfig.java @@ -0,0 +1,4 @@ +package jabs.consensus.config; + +public class SnowConsensusConfig implements ConsensusAlgorithmConfig{ +} diff --git a/src/main/java/jabs/consensus/config/TangleIOTAConsensusConfig.java b/src/main/java/jabs/consensus/config/TangleIOTAConsensusConfig.java new file mode 100644 index 00000000..d9b45d7a --- /dev/null +++ b/src/main/java/jabs/consensus/config/TangleIOTAConsensusConfig.java @@ -0,0 +1,13 @@ +package jabs.consensus.config; + +import jabs.ledgerdata.Block; +import jabs.ledgerdata.tangle.TangleBlock; + +import java.util.Objects; + +/** + * @param averageBlockMiningDifficulty + */ +public record TangleIOTAConsensusConfig(double averageBlockMiningDifficulty) + implements ConsensusAlgorithmConfig { +} diff --git a/src/main/java/jabs/consensus/config/package-info.java b/src/main/java/jabs/consensus/config/package-info.java new file mode 100644 index 00000000..91815487 --- /dev/null +++ b/src/main/java/jabs/consensus/config/package-info.java @@ -0,0 +1 @@ +package jabs.consensus.config; \ No newline at end of file diff --git a/src/main/java/jabs/ledgerdata/BlockFactory.java b/src/main/java/jabs/ledgerdata/BlockFactory.java new file mode 100644 index 00000000..af605bd2 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/BlockFactory.java @@ -0,0 +1,89 @@ +package jabs.ledgerdata; + +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.ledgerdata.ethereum.EthereumBlock; +import jabs.ledgerdata.pbft.PBFTBlock; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.ethereum.EthereumMinerNode; +import jabs.network.node.nodes.pbft.PBFTNode; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; +import jabs.ledgerdata.snow.SnowBlock; +import jabs.network.node.nodes.snow.SnowNode; +import jabs.network.node.nodes.snow.SlushNode; + +import java.util.Set; + +public final class BlockFactory { + public static final int ETHEREUM_BLOCK_HEADER_SIZE = 543; // A header could have variable size but mostly its + // really close this value + public static final int ETHEREUM_BLOCK_HASH_SIZE = 36; // 32 byte hash + 4 byte network id + public static final long ETHEREUM_MIN_DIFFICULTY = 17146335232L; + + public static final int BITCOIN_BLOCK_HEADER_SIZE = 80; + public static final int BITCOIN_INV_SIZE = 36; // 4 byte type + 32 byte hash + public static final int GET_DATA_OVERHEAD = 4; + public static final int INV_MESSAGE_OVERHEAD = 1; + public static final int ETHEREUM_HELLO_MESSAGE_SIZE = 16; + + private static final long[] BITCOIN_COMPACT_BLOCK_SIZE_2020_BINS = { + 30, 3624, 7668, 11910, 16644, 21828, 27558, 30672, 31662, 32544, 33420, 34878, 35544, 36198, + 36840, 37476, + 38130, 38838, 39630, 40674, 42732, 72714 + }; + + private static final long[] BITCOIN_BLOCK_SIZE_2020_BINS = { + 196, 119880, 254789, 396047, 553826, 726752, 917631, 1021479, 1054560, 1084003, 1113136, + 1138722, 1161695, + 1183942, 1205734, 1227090, 1248408, 1270070, 1293647, 1320186, 1354939, 1423459, 2422858 + }; + + private static final double[] BITCOIN_BLOCK_SIZE_2020 = { + 0.0000, 0.0482, 0.0422, 0.0422, 0.0421, 0.0422, 0.0421, 0.0445, 0.0455, 0.0458, 0.0461, 0.0468, + 0.0472, + 0.0481, 0.0477, 0.0479, 0.0484, 0.0482, 0.0475, 0.0464, 0.0454, 0.0434, 0.0420 + }; + + public static int sampleBitcoinBlockSize(RandomnessEngine randomnessEngine) { + return (int) randomnessEngine.sampleDistributionWithBins(BITCOIN_BLOCK_SIZE_2020, + BITCOIN_BLOCK_SIZE_2020_BINS); + } + + public static int sampleBitcoinCompactBlockSize(RandomnessEngine randomnessEngine) { + return (int) randomnessEngine.sampleDistributionWithBins(BITCOIN_BLOCK_SIZE_2020, + BITCOIN_BLOCK_SIZE_2020_BINS); + } + + public static BitcoinBlockWithoutTx sampleBitcoinBlock(Simulator simulator, RandomnessEngine randomnessEngine, + Node creator, BitcoinBlockWithoutTx parent, + double difficulty, double weight) { + return new BitcoinBlockWithoutTx(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, + simulator.getSimulationTime(), creator, parent, difficulty, weight); + } + + public static PBFTBlock samplePBFTBlock(Simulator simulator, RandomnessEngine randomnessEngine, + PBFTNode creator, PBFTBlock parent) { + return new PBFTBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, + simulator.getSimulationTime(), creator, parent); // TODO: Size of PBFT Blocks + } + + public static SnowBlock sampleSnowBlock(Simulator simulator, RandomnessEngine randomnessEngine, + SnowNode creator, SnowBlock parent) { + return new SnowBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, + simulator.getSimulationTime(), creator, parent); // TODO: Size of Snow Blocks + } + + public static SnowBlock sampleSlushBlock(Simulator simulator, RandomnessEngine randomnessEngine, + SlushNode creator, SnowBlock parent) { + return new SnowBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, + simulator.getSimulationTime(), creator, parent); // TODO: Size of Snow Blocks + } + + public static EthereumBlock sampleEthereumBlock(Simulator simulator, RandomnessEngine randomnessEngine, + EthereumMinerNode creator, EthereumBlock parent, + Set uncles, double weight) { + return new EthereumBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, + simulator.getSimulationTime(), creator, parent, uncles, ETHEREUM_MIN_DIFFICULTY, + weight); // TODO: Block Size + } +} diff --git a/src/main/java/jabs/ledgerdata/ProofOfWorkBlock.java b/src/main/java/jabs/ledgerdata/ProofOfWorkBlock.java new file mode 100644 index 00000000..c108d2ff --- /dev/null +++ b/src/main/java/jabs/ledgerdata/ProofOfWorkBlock.java @@ -0,0 +1,6 @@ +package jabs.ledgerdata; + +public interface ProofOfWorkBlock { + double getDifficulty(); + double getWeight(); +} diff --git a/src/main/java/jabs/ledgerdata/Query.java b/src/main/java/jabs/ledgerdata/Query.java new file mode 100644 index 00000000..166ff3d3 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/Query.java @@ -0,0 +1,17 @@ +package jabs.ledgerdata; + +import jabs.network.node.nodes.Node; + +public class Query extends BasicData { + private final Node inquirer; + + protected Query(int size, Node inquirer) { + super(size); + this.inquirer = inquirer; + } + + public Node getInquirer() { + return inquirer; + } + +} diff --git a/src/main/java/jabs/ledgerdata/SingleParentPoWBlock.java b/src/main/java/jabs/ledgerdata/SingleParentPoWBlock.java new file mode 100644 index 00000000..8fa12079 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/SingleParentPoWBlock.java @@ -0,0 +1,32 @@ +package jabs.ledgerdata; + +import jabs.network.node.nodes.Node; + +import java.util.ArrayList; + +public class SingleParentPoWBlock> extends SingleParentBlock implements ProofOfWorkBlock{ + protected final double difficulty; + protected final double weight; + + public SingleParentPoWBlock(int size, int height, double creationTime, Node creator, B parent, int hashSize, double difficulty, double weight) { + super(size, height, creationTime, creator, parent, hashSize); + this.difficulty = difficulty; + this.weight = weight; + } + + /** + * @return + */ + @Override + public double getDifficulty() { + return this.difficulty; + } + + /** + * @return + */ + @Override + public double getWeight() { + return this.weight; + } +} diff --git a/src/main/java/jabs/network/networks/TransactionFactory.java b/src/main/java/jabs/ledgerdata/TransactionFactory.java similarity index 98% rename from src/main/java/jabs/network/networks/TransactionFactory.java rename to src/main/java/jabs/ledgerdata/TransactionFactory.java index 348d8da8..4e1dacde 100644 --- a/src/main/java/jabs/network/networks/TransactionFactory.java +++ b/src/main/java/jabs/ledgerdata/TransactionFactory.java @@ -1,4 +1,4 @@ -package jabs.network.networks; +package jabs.ledgerdata; import jabs.ledgerdata.bitcoin.BitcoinTx; import jabs.ledgerdata.ethereum.EthereumTx; diff --git a/src/main/java/jabs/ledgerdata/TxCompactID.java b/src/main/java/jabs/ledgerdata/TxCompactID.java new file mode 100644 index 00000000..b3586ed3 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/TxCompactID.java @@ -0,0 +1,9 @@ +package jabs.ledgerdata; + +public class TxCompactID extends BasicData { + + protected TxCompactID(int size) { + super(size); + } + +} diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlock.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlock.java deleted file mode 100644 index 11a6f9f3..00000000 --- a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlock.java +++ /dev/null @@ -1,18 +0,0 @@ -package jabs.ledgerdata.bitcoin; - -import jabs.ledgerdata.SingleParentBlock; -import jabs.network.node.nodes.Node; - -import static jabs.network.networks.BlockFactory.BITCOIN_INV_SIZE; - -public class BitcoinBlock extends SingleParentBlock { - protected final double difficulty; - public BitcoinBlock(int size, int height, double creationTime, Node creator, BitcoinBlock parent, double difficulty) { - super(size, height, creationTime, creator, parent, BITCOIN_INV_SIZE); - this.difficulty = difficulty; - } - - public double getDifficulty(){ - return difficulty; - } -} diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.java index 91b4f7dc..ff863809 100644 --- a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.java +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithTx.java @@ -1,19 +1,19 @@ package jabs.ledgerdata.bitcoin; -import jabs.network.node.nodes.bitcoin.BitcoinMinerNode; +import jabs.network.node.nodes.Node; import java.util.HashSet; import java.util.Set; -import static jabs.network.networks.BlockFactory.BITCOIN_BLOCK_HEADER_SIZE; +import static jabs.ledgerdata.BlockFactory.BITCOIN_BLOCK_HEADER_SIZE; -public class BitcoinBlockWithTx extends BitcoinBlock { +public class BitcoinBlockWithTx extends BitcoinBlockWithoutTx { private final Set Txs; - public BitcoinBlockWithTx(int height, double creationTime, BitcoinBlock parent, BitcoinMinerNode creator, - Set txs, double difficulty) { - super(0, height, creationTime, creator, parent, difficulty); - Txs = txs; + public BitcoinBlockWithTx(int height, double creationTime, BitcoinBlockWithoutTx parent, Node creator, + Set txs, double difficulty, double weight) { + super(0, height, creationTime, creator, parent, difficulty, weight); + this.Txs = txs; int totalSize = BITCOIN_BLOCK_HEADER_SIZE; for (BitcoinTx tx:txs) { @@ -24,4 +24,12 @@ public BitcoinBlockWithTx(int height, double creationTime, BitcoinBlock parent, } public Set getTxs() { return new HashSet<>(this.Txs); } + + /** + * @param difficulty The difficulty of starting genesis block + * @return returns + */ + public static BitcoinBlockWithTx generateGenesisBlock(double difficulty) { + return new BitcoinBlockWithTx(0, 0, null, null, new HashSet<>(), 0, 0); + } } diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithoutTx.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithoutTx.java new file mode 100644 index 00000000..f924b542 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinBlockWithoutTx.java @@ -0,0 +1,30 @@ +package jabs.ledgerdata.bitcoin; + +import jabs.ledgerdata.SingleParentPoWBlock; +import jabs.network.node.nodes.Node; + +import static jabs.ledgerdata.BlockFactory.BITCOIN_INV_SIZE; + +public class BitcoinBlockWithoutTx extends SingleParentPoWBlock { + + public BitcoinBlockWithoutTx(int size, int height, double creationTime, Node creator, BitcoinBlockWithoutTx parent, + double difficulty, double weight) { + super(size, height, creationTime, creator, parent, BITCOIN_INV_SIZE, difficulty, weight);; + } + + public double getDifficulty(){ + return difficulty; + } + + /** + * @return + */ + @Override + public double getWeight() { + return this.weight; + } + + public static BitcoinBlockWithoutTx generateGenesisBlock(double difficulty) { + return new BitcoinBlockWithoutTx(0, 0, 0, null, null, difficulty, 0); + } +} diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlock.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlock.java new file mode 100644 index 00000000..67bc62be --- /dev/null +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlock.java @@ -0,0 +1,43 @@ +package jabs.ledgerdata.bitcoin; + +import jabs.network.node.nodes.Node; + +import java.util.HashSet; +import java.util.Set; + +import static jabs.ledgerdata.BlockFactory.BITCOIN_BLOCK_HEADER_SIZE; + +public class BitcoinCompactBlock extends BitcoinBlockWithoutTx { + private final Set TxCompactIDs = new HashSet<>(); + + public BitcoinCompactBlock(int height, double creationTime, Node creator, BitcoinBlockWithoutTx parent, + Set txs, double difficulty, double weight) { + super(0, height, creationTime, creator, parent, difficulty, weight); + + int totalSize = BITCOIN_BLOCK_HEADER_SIZE; + for (BitcoinTx tx:txs) { + TxCompactIDs.add(tx.getCompactID()); + totalSize += tx.getSize(); + } + + this.size = totalSize; + } + + public BitcoinCompactBlock(BitcoinBlockWithTx block) { + super(0, block.getHeight(), block.getCreationTime(), block.getCreator(), block.getParent(), + block.getDifficulty(), block.getWeight()); + + int totalSize = BITCOIN_BLOCK_HEADER_SIZE; + + for (BitcoinTx tx: block.getTxs()) { + TxCompactIDs.add(tx.getCompactID()); + totalSize += tx.getSize(); + } + + this.size = totalSize; + } + + public Set getTxCompactIDs() { + return TxCompactIDs; + } +} diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlockWithoutTx.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlockWithoutTx.java new file mode 100644 index 00000000..d3c3a52a --- /dev/null +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinCompactBlockWithoutTx.java @@ -0,0 +1,30 @@ +package jabs.ledgerdata.bitcoin; + +import jabs.network.node.nodes.Node; + +import java.util.HashSet; +import java.util.Set; + +import static jabs.ledgerdata.BlockFactory.BITCOIN_BLOCK_HEADER_SIZE; + +public class BitcoinCompactBlockWithoutTx extends BitcoinBlockWithoutTx { + private final Set TxCompactIDs = new HashSet<>(); + + public BitcoinCompactBlockWithoutTx(int size, int height, double creationTime, Node creator, + BitcoinBlockWithoutTx parent, Set txs, double difficulty, + double weight) { + super(size, height, creationTime, creator, parent, difficulty, weight); + } + + // This is a very rough estimation of the size of a compact block in bitcoin + public BitcoinCompactBlockWithoutTx(BitcoinBlockWithoutTx block) { + super(0, block.getHeight(), block.getCreationTime(), block.getCreator(), block.getParent(), + block.getDifficulty(), block.getWeight()); + + this.size = (int)((((double)block.getSize() - BITCOIN_BLOCK_HEADER_SIZE) / 200) * 6) + BITCOIN_BLOCK_HEADER_SIZE; + } + + public Set getTxCompactIDs() { + return TxCompactIDs; + } +} diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTx.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTx.java index f73f7609..b96f0c6b 100644 --- a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTx.java +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTx.java @@ -2,10 +2,14 @@ import jabs.ledgerdata.Tx; -import static jabs.network.networks.BlockFactory.BITCOIN_INV_SIZE; +import static jabs.ledgerdata.BlockFactory.BITCOIN_INV_SIZE; public class BitcoinTx extends Tx { + private final BitcoinTxCompactID compactID = new BitcoinTxCompactID(); public BitcoinTx(int size) { super(size, BITCOIN_INV_SIZE); } + public BitcoinTxCompactID getCompactID() { + return this.compactID; + } } diff --git a/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTxCompactID.java b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTxCompactID.java new file mode 100644 index 00000000..63e62a9f --- /dev/null +++ b/src/main/java/jabs/ledgerdata/bitcoin/BitcoinTxCompactID.java @@ -0,0 +1,10 @@ +package jabs.ledgerdata.bitcoin; + +import jabs.ledgerdata.TxCompactID; + +public class BitcoinTxCompactID extends TxCompactID { + public static final int BITCOIN_TX_COMPACT_ID_SIZE = 6; + protected BitcoinTxCompactID() { + super(BITCOIN_TX_COMPACT_ID_SIZE); + } +} diff --git a/src/main/java/jabs/ledgerdata/ethereum/EthereumBlock.java b/src/main/java/jabs/ledgerdata/ethereum/EthereumBlock.java index f9809671..0ecefdf5 100644 --- a/src/main/java/jabs/ledgerdata/ethereum/EthereumBlock.java +++ b/src/main/java/jabs/ledgerdata/ethereum/EthereumBlock.java @@ -1,21 +1,23 @@ package jabs.ledgerdata.ethereum; +import jabs.ledgerdata.ProofOfWorkBlock; import jabs.ledgerdata.SingleParentBlock; +import jabs.ledgerdata.SingleParentPoWBlock; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; import jabs.network.node.nodes.ethereum.EthereumMinerNode; +import java.util.HashSet; import java.util.Set; -import static jabs.network.networks.BlockFactory.ETHEREUM_BLOCK_HASH_SIZE; +import static jabs.ledgerdata.BlockFactory.ETHEREUM_BLOCK_HASH_SIZE; -public class EthereumBlock extends SingleParentBlock { +public class EthereumBlock extends SingleParentPoWBlock implements ProofOfWorkBlock { private final Set uncles; - private final long difficulty; public EthereumBlock(int size, int height, double creationTime, EthereumMinerNode creator, EthereumBlock parent, - Set uncles, long difficulty) { - super(size, height, creationTime, creator, parent, ETHEREUM_BLOCK_HASH_SIZE); + Set uncles, double difficulty, double weight) { + super(size, height, creationTime, creator, parent, ETHEREUM_BLOCK_HASH_SIZE, difficulty, weight); this.uncles = uncles; - this.difficulty = difficulty; long unclesDifficultySum = 0; for (EthereumBlock uncle:uncles) { @@ -27,7 +29,19 @@ public Set getUncles() { return this.uncles; } - public long getDifficulty() { + public double getDifficulty() { return this.difficulty; } + + public static EthereumBlock generateGenesisBlock(double difficulty) { + return new EthereumBlock(0, 0, 0, null, null, new HashSet<>(), difficulty, 0); + } + + /** + * @return + */ + @Override + public double getWeight() { + return this.weight; + } } diff --git a/src/main/java/jabs/ledgerdata/ethereum/EthereumBlockWithTx.java b/src/main/java/jabs/ledgerdata/ethereum/EthereumBlockWithTx.java index ff9108c8..ec35f5da 100644 --- a/src/main/java/jabs/ledgerdata/ethereum/EthereumBlockWithTx.java +++ b/src/main/java/jabs/ledgerdata/ethereum/EthereumBlockWithTx.java @@ -3,8 +3,8 @@ import jabs.ledgerdata.BlockWithTx; import jabs.network.node.nodes.ethereum.EthereumMinerNode; -import static jabs.network.networks.BlockFactory.ETHEREUM_BLOCK_HEADER_SIZE; -import static jabs.network.networks.BlockFactory.ETHEREUM_BLOCK_HASH_SIZE; +import static jabs.ledgerdata.BlockFactory.ETHEREUM_BLOCK_HEADER_SIZE; +import static jabs.ledgerdata.BlockFactory.ETHEREUM_BLOCK_HASH_SIZE; import java.util.HashSet; import java.util.Set; @@ -13,8 +13,9 @@ public class EthereumBlockWithTx extends EthereumBlock implements BlockWithTx Txs; private final long totalGas; - public EthereumBlockWithTx(int height, double creationTime, EthereumMinerNode creator, EthereumBlock parent, Set uncles, Set txs, long difficulty) { - super(0, height, creationTime, creator, parent, uncles, difficulty); + public EthereumBlockWithTx(int height, double creationTime, EthereumMinerNode creator, EthereumBlock parent, + Set uncles, Set txs, long difficulty, double weight) { + super(0, height, creationTime, creator, parent, uncles, difficulty, weight); Txs = txs; int totalSize = ETHEREUM_BLOCK_HEADER_SIZE; @@ -32,6 +33,11 @@ public EthereumBlockWithTx(int height, double creationTime, EthereumMinerNode cr totalGas = totalGasTemp; } + public static EthereumBlockWithTx generateGenesisBlock(long difficulty) { + return new EthereumBlockWithTx(0, 0, null, null, new HashSet<>(), + new HashSet<>(), difficulty, 0); + } + @Override public Set getTxs() { return new HashSet<>(this.Txs); } diff --git a/src/main/java/jabs/ledgerdata/snow/SnowBlock.java b/src/main/java/jabs/ledgerdata/snow/SnowBlock.java new file mode 100644 index 00000000..5e3d239a --- /dev/null +++ b/src/main/java/jabs/ledgerdata/snow/SnowBlock.java @@ -0,0 +1,12 @@ +package jabs.ledgerdata.snow; + +import jabs.ledgerdata.SingleParentBlock; +import jabs.network.node.nodes.Node; + +public class SnowBlock extends SingleParentBlock { + public static final int Snow_BLOCK_HASH_SIZE = 32; + + public SnowBlock(int size, int height, double creationTime, Node creator, SnowBlock parent) { + super(size, height, creationTime, creator, parent, Snow_BLOCK_HASH_SIZE); + } +} diff --git a/src/main/java/jabs/ledgerdata/snow/SnowBlockQuery.java b/src/main/java/jabs/ledgerdata/snow/SnowBlockQuery.java new file mode 100644 index 00000000..fab1f9de --- /dev/null +++ b/src/main/java/jabs/ledgerdata/snow/SnowBlockQuery.java @@ -0,0 +1,29 @@ +package jabs.ledgerdata.snow; + +import jabs.ledgerdata.Block; +import jabs.ledgerdata.Query; +import jabs.network.node.nodes.Node; +public class SnowBlockQuery > extends Query { + private final B block; + private final SnowBlockQuery.QueryType queryType; + + public static final int SNOW_QUERY_SIZE_OVERHEAD = 10; + + public enum QueryType { + PREPARE, + COMMIT + } + + protected SnowBlockQuery(int size, Node inquirer, B block, SnowBlockQuery.QueryType queryType) { + super(size, inquirer); + this.block = block; + this.queryType = queryType; + } + + public SnowBlockQuery.QueryType getQueryType() { + return this.queryType; + } + public B getBlock() { + return this.block; + } +} diff --git a/src/main/java/jabs/ledgerdata/snow/SnowCommitQuery.java b/src/main/java/jabs/ledgerdata/snow/SnowCommitQuery.java new file mode 100644 index 00000000..5c41ba52 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/snow/SnowCommitQuery.java @@ -0,0 +1,10 @@ +package jabs.ledgerdata.snow; + +import jabs.ledgerdata.Block; +import jabs.network.node.nodes.Node; + +public class SnowCommitQuery > extends SnowBlockQuery { + public SnowCommitQuery(Node inquirer, B block) { + super(block.getHash().getSize() + SNOW_QUERY_SIZE_OVERHEAD, inquirer, block, QueryType.COMMIT); + } +} diff --git a/src/main/java/jabs/ledgerdata/snow/SnowPrepareQuery.java b/src/main/java/jabs/ledgerdata/snow/SnowPrepareQuery.java new file mode 100644 index 00000000..39128512 --- /dev/null +++ b/src/main/java/jabs/ledgerdata/snow/SnowPrepareQuery.java @@ -0,0 +1,10 @@ +package jabs.ledgerdata.snow; + +import jabs.ledgerdata.Block; +import jabs.network.node.nodes.Node; + +public class SnowPrepareQuery > extends SnowBlockQuery { + public SnowPrepareQuery(Node inquirer, B block) { + super(block.getHash().getSize() + SNOW_QUERY_SIZE_OVERHEAD, inquirer, block, SnowBlockQuery.QueryType.PREPARE); + } +} diff --git a/src/main/java/jabs/ledgerdata/snow/SnowTx.java b/src/main/java/jabs/ledgerdata/snow/SnowTx.java new file mode 100644 index 00000000..ba1633ae --- /dev/null +++ b/src/main/java/jabs/ledgerdata/snow/SnowTx.java @@ -0,0 +1,9 @@ +package jabs.ledgerdata.snow; + +import jabs.ledgerdata.Tx; + +public class SnowTx extends Tx { + protected SnowTx(int size, int hashSize) { + super(size, hashSize); + } +} diff --git a/src/main/java/jabs/ledgerdata/tangle/TangleBlock.java b/src/main/java/jabs/ledgerdata/tangle/TangleBlock.java index 892b4d7b..dbf98db1 100644 --- a/src/main/java/jabs/ledgerdata/tangle/TangleBlock.java +++ b/src/main/java/jabs/ledgerdata/tangle/TangleBlock.java @@ -1,21 +1,36 @@ package jabs.ledgerdata.tangle; import jabs.ledgerdata.Block; +import jabs.ledgerdata.ProofOfWorkBlock; import jabs.network.node.nodes.Node; import java.util.List; -public class TangleBlock extends Block { +public class TangleBlock extends Block implements ProofOfWorkBlock { protected final TangleTx blockTx; - protected final int weight; + private final double difficulty; + private final double weight; public TangleBlock(int size, int height, double creationTime, Node creator, List parents, - int hashSize, TangleTx blockTx, int weight) { + int hashSize, TangleTx blockTx, double weight, double difficulty) { super(size, height, creationTime, creator, parents, hashSize); this.blockTx = blockTx; this.weight = weight; + this.difficulty = difficulty; } - public int getWeight() { + /** + * @return Difficulty of the block + */ + @Override + public double getDifficulty() { + return this.difficulty; + } + + /** + * @return Weight of the block + */ + @Override + public double getWeight() { return this.weight; } } diff --git a/src/main/java/jabs/log/AbstractCSVLogger.java b/src/main/java/jabs/log/AbstractCSVLogger.java index 0b9af9f3..ffc037e2 100644 --- a/src/main/java/jabs/log/AbstractCSVLogger.java +++ b/src/main/java/jabs/log/AbstractCSVLogger.java @@ -1,8 +1,9 @@ package jabs.log; import de.siegmar.fastcsv.writer.CsvWriter; +import jabs.network.node.nodes.Node; +import jabs.simulator.event.Event; -import java.io.File; import java.io.IOException; import java.io.Writer; import java.nio.file.Path; @@ -17,23 +18,25 @@ public void initialLog() { } @Override - public void logBeforeEvent() { - if (this.csvOutputConditionBeforeEvent()) { - loggerCSV.writeRow(this.csvLineOutput()); + public void logBeforeEachEvent(Event event) { + if (this.csvOutputConditionBeforeEvent(event)) { + loggerCSV.writeRow(this.csvEventOutput(event)); } } @Override - public void logAfterEvent() { - if (this.csvOutputConditionAfterEvent()) { - loggerCSV.writeRow(this.csvLineOutput()); + public void logAfterEachEvent(Event event) { + if (this.csvOutputConditionAfterEvent(event)) { + loggerCSV.writeRow(this.csvEventOutput(event)); } } @Override public void finalLog() throws IOException { - if (this.csvOutputConditionFinal()) { - loggerCSV.writeRow(this.csvLineOutput()); + if (this.csvOutputConditionFinalPerNode()) { + for (Object node: this.scenario.getNetwork().getAllNodes()) { + loggerCSV.writeRow(this.csvNodeOutput(((Node) node))); + } } loggerCSV.close(); } @@ -49,21 +52,21 @@ public void finalLog() throws IOException { * this run before event execution. * @return true if one line should be written to the output CSV file. */ - abstract protected boolean csvOutputConditionBeforeEvent(); + abstract protected boolean csvOutputConditionBeforeEvent(Event event); /** * If return value is true, then one line will be written to the csv output. * this run after event execution. * @return true if one line should be written to the output CSV file. */ - abstract protected boolean csvOutputConditionAfterEvent(); + abstract protected boolean csvOutputConditionAfterEvent(Event event); /** - * If return value is true, then one line will be written to the csv output. - * this run after event execution. - * @return true if one line should be written to the output CSV file. + * If true, at the end of the simulation for each node a single line output + * would be printed which is determined by the csvNodeOutput() function + * @return true one line per each node will be written to csv output */ - abstract protected boolean csvOutputConditionFinal(); + abstract protected boolean csvOutputConditionFinalPerNode(); /** * First line of CSV file which has the header information @@ -71,12 +74,21 @@ public void finalLog() throws IOException { */ abstract protected String[] csvHeaderOutput(); + /** + * If the CSV Output is true the returned value of this function will + * be written to csv output file + * @return list of strings to output + */ + abstract protected String[] csvEventOutput(Event event); /** - * If the CSV Output is true the returned value of this function will be written to csv output file + * If csvOutputConditionFinalPerNode() is true the returned value of this + * function will be written to csv output file * @return list of strings to output */ - abstract protected String[] csvLineOutput(); + protected String[] csvNodeOutput(Node node) { + return new String[0]; + }; /** * creates an abstract CSV logger diff --git a/src/main/java/jabs/log/AbstractLogger.java b/src/main/java/jabs/log/AbstractLogger.java index 30c46b4e..b5f6096c 100644 --- a/src/main/java/jabs/log/AbstractLogger.java +++ b/src/main/java/jabs/log/AbstractLogger.java @@ -1,6 +1,7 @@ package jabs.log; import jabs.scenario.AbstractScenario; +import jabs.simulator.event.Event; import java.io.IOException; @@ -29,13 +30,13 @@ public void setScenario(AbstractScenario scenario) { * Before each event this function will be called. This can be used to log * information that emphasis on the changes each event causes. */ - abstract public void logBeforeEvent(); + abstract public void logBeforeEachEvent(Event event); /** * This function will be called after each event. Most information should * be logged using this function. */ - abstract public void logAfterEvent(); + abstract public void logAfterEachEvent(Event event); /** * At the end of the scenario this function will be called and can be used for diff --git a/src/main/java/jabs/log/BitcoinAllMessagesLogger.java b/src/main/java/jabs/log/AllPassedMessagesLogger.java similarity index 74% rename from src/main/java/jabs/log/BitcoinAllMessagesLogger.java rename to src/main/java/jabs/log/AllPassedMessagesLogger.java index 51ccf757..746ceef7 100644 --- a/src/main/java/jabs/log/BitcoinAllMessagesLogger.java +++ b/src/main/java/jabs/log/AllPassedMessagesLogger.java @@ -9,12 +9,12 @@ import java.io.Writer; import java.nio.file.Path; -public class BitcoinAllMessagesLogger extends AbstractCSVLogger { +public class AllPassedMessagesLogger extends AbstractCSVLogger { /** * creates an abstract CSV logger * @param writer this is output CSV of the logger */ - public BitcoinAllMessagesLogger(Writer writer) { + public AllPassedMessagesLogger(Writer writer) { super(writer); } @@ -22,7 +22,7 @@ public BitcoinAllMessagesLogger(Writer writer) { * creates an abstract CSV logger * @param path this is output path of CSV file */ - public BitcoinAllMessagesLogger(Path path) throws IOException { + public AllPassedMessagesLogger(Path path) throws IOException { super(path); } @@ -33,18 +33,17 @@ protected String csvStartingComment() { } @Override - protected boolean csvOutputConditionBeforeEvent() { + protected boolean csvOutputConditionBeforeEvent(Event event) { return false; } @Override - protected boolean csvOutputConditionAfterEvent() { - Event event = this.scenario.getSimulator().peekEvent(); + protected boolean csvOutputConditionAfterEvent(Event event) { return (event instanceof PacketDeliveryEvent); } @Override - protected boolean csvOutputConditionFinal() { + protected boolean csvOutputConditionFinalPerNode() { return false; } @@ -54,13 +53,12 @@ protected String[] csvHeaderOutput() { } @Override - protected String[] csvLineOutput() { - Event event = this.scenario.getSimulator().peekEvent(); + protected String[] csvEventOutput(Event event) { Packet packet = ((PacketDeliveryEvent) event).packet; Message message = packet.getMessage(); return new String[]{ - Double.toString(this.scenario.getSimulator().getCurrentTime()), + Double.toString(this.scenario.getSimulator().getSimulationTime()), message.getClass().getSimpleName(), Integer.toString(packet.getFrom().nodeID), Integer.toString(packet.getTo().nodeID), diff --git a/src/main/java/jabs/log/BlockConfirmationLogger.java b/src/main/java/jabs/log/BlockConfirmationLogger.java new file mode 100644 index 00000000..5da54d89 --- /dev/null +++ b/src/main/java/jabs/log/BlockConfirmationLogger.java @@ -0,0 +1,70 @@ +package jabs.log; + +import jabs.ledgerdata.Block; +import jabs.network.node.nodes.Node; +import jabs.simulator.event.BlockConfirmationEvent; +import jabs.simulator.event.Event; + +import java.io.IOException; +import java.io.Writer; +import java.nio.file.Path; + +public class BlockConfirmationLogger extends AbstractCSVLogger { + /** + * creates an abstract CSV logger + * @param writer this is output CSV of the logger + */ + public BlockConfirmationLogger(Writer writer) { + super(writer); + } + + /** + * creates an abstract CSV logger + * @param path this is output path of CSV file + */ + public BlockConfirmationLogger(Path path) throws IOException { + super(path); + } + + @Override + protected String csvStartingComment() { + return String.format("Simulation name: %s Number of nodes: %d Network type: %s", scenario.getName(), + this.scenario.getNetwork().getAllNodes().size(), this.scenario.getNetwork().getClass().getSimpleName()); + } + + @Override + protected boolean csvOutputConditionBeforeEvent(Event event) { + return false; + } + + @Override + protected boolean csvOutputConditionAfterEvent(Event event) { + return event instanceof BlockConfirmationEvent; + } + + @Override + protected boolean csvOutputConditionFinalPerNode() { + return false; + } + + @Override + protected String[] csvHeaderOutput() { + return new String[]{"Time", "NodeID", "BlockHeight", "BlockHashCode", "BlockSize", "BlockCreationTime", "BlockCreator"}; + } + + @Override + protected String[] csvEventOutput(Event event) { + Node node = ((BlockConfirmationEvent) event).getNode(); + Block block = ((BlockConfirmationEvent) event).getBlock(); + + return new String[]{ + Double.toString(this.scenario.getSimulator().getSimulationTime()), + Integer.toString(node.nodeID), + Integer.toString(block.getHeight()), + Integer.toString(block.hashCode()), + Integer.toString(block.getSize()), + Double.toString(block.getCreationTime()), + Integer.toString(block.getCreator().nodeID) + }; + } +} diff --git a/src/main/java/jabs/log/BlockDeliveryLogger.java b/src/main/java/jabs/log/BlockDeliveryLogger.java index 18ebd030..ee11bc40 100644 --- a/src/main/java/jabs/log/BlockDeliveryLogger.java +++ b/src/main/java/jabs/log/BlockDeliveryLogger.java @@ -35,13 +35,12 @@ protected String csvStartingComment() { } @Override - protected boolean csvOutputConditionBeforeEvent() { + protected boolean csvOutputConditionBeforeEvent(Event event) { return false; } @Override - protected boolean csvOutputConditionAfterEvent() { - Event event = this.scenario.getSimulator().peekEvent(); + protected boolean csvOutputConditionAfterEvent(Event event) { if (event instanceof PacketDeliveryEvent) { Message message = ((PacketDeliveryEvent) event).packet.getMessage(); if (message instanceof DataMessage) { @@ -52,26 +51,29 @@ protected boolean csvOutputConditionAfterEvent() { } @Override - protected boolean csvOutputConditionFinal() { + protected boolean csvOutputConditionFinalPerNode() { return false; } @Override protected String[] csvHeaderOutput() { - return new String[]{"Time", "BlockHeight", "BlockCreator", "BlockSize", "Sender", "Receiver"}; + return new String[]{"Time", "DelayFromCreation", "BlockHeight", "BlockCreator", "BlockSize", "BlockHashCode", "Receiver", "Sender"}; } @Override - protected String[] csvLineOutput() { - Event event = this.scenario.getSimulator().peekEvent(); + protected String[] csvEventOutput(Event event) { Packet packet = ((PacketDeliveryEvent) event).packet; Block block = ((Block) ((DataMessage) packet.getMessage()).getData()); return new String[]{ - Double.toString(this.scenario.getSimulator().getCurrentTime()), + Double.toString(this.scenario.getSimulator().getSimulationTime()), + Double.toString(this.scenario.getSimulator().getSimulationTime() - block.getCreationTime()), Integer.toString(block.getHeight()), - Integer.toString(block.getCreator().nodeID), Integer.toString(block.getSize()), - Integer.toString(packet.getFrom().nodeID), Integer.toString(packet.getTo().nodeID) + Integer.toString(block.getCreator().nodeID), + Integer.toString(block.getSize()), + Integer.toString(block.hashCode()), + Integer.toString(packet.getTo().nodeID), + Integer.toString(packet.getFrom().nodeID) }; } } diff --git a/src/main/java/jabs/log/BlockGenerationLogger.java b/src/main/java/jabs/log/BlockGenerationLogger.java index 8c0ee8dc..3d586901 100644 --- a/src/main/java/jabs/log/BlockGenerationLogger.java +++ b/src/main/java/jabs/log/BlockGenerationLogger.java @@ -33,18 +33,17 @@ protected String csvStartingComment() { } @Override - protected boolean csvOutputConditionBeforeEvent() { + protected boolean csvOutputConditionBeforeEvent(Event event) { return false; } @Override - protected boolean csvOutputConditionAfterEvent() { - Event event = this.scenario.getSimulator().peekEvent(); + protected boolean csvOutputConditionAfterEvent(Event event) { return event instanceof BlockMiningProcess; } @Override - protected boolean csvOutputConditionFinal() { + protected boolean csvOutputConditionFinalPerNode() { return false; } @@ -54,13 +53,12 @@ protected String[] csvHeaderOutput() { } @Override - protected String[] csvLineOutput() { - Event event = this.scenario.getSimulator().peekEvent(); + protected String[] csvEventOutput(Event event) { MinerNode miner = ((BlockMiningProcess) event).getMiner(); Node node = ((Node) miner); return new String[]{ - Double.toString(this.scenario.getSimulator().getCurrentTime()), + Double.toString(this.scenario.getSimulator().getSimulationTime()), Double.toString(node.nodeID), }; } diff --git a/src/main/java/jabs/log/BlockPropagationDelayLogger.java b/src/main/java/jabs/log/BlockPropagationDelayLogger.java new file mode 100644 index 00000000..2f2602c9 --- /dev/null +++ b/src/main/java/jabs/log/BlockPropagationDelayLogger.java @@ -0,0 +1,99 @@ +package jabs.log; + +import jabs.ledgerdata.Block; +import jabs.network.message.DataMessage; +import jabs.network.message.Message; +import jabs.network.message.Packet; +import jabs.network.node.nodes.Node; +import jabs.simulator.event.Event; +import jabs.simulator.event.PacketDeliveryEvent; + +import java.io.IOException; +import java.io.Writer; +import java.nio.file.Path; +import java.util.HashMap; +import java.util.HashSet; + +public class BlockPropagationDelayLogger extends AbstractCSVLogger { + private final double shareOfNodesReceivedBlock; + private final HashMap> ReceivedBy = new HashMap<>(); + + /** + * creates an abstract CSV logger + * + * @param writer this is output CSV of the logger + * @param shareOfNodesReceivedBlock + */ + public BlockPropagationDelayLogger(Writer writer, double shareOfNodesReceivedBlock) { + super(writer); + this.shareOfNodesReceivedBlock = shareOfNodesReceivedBlock; + } + + /** + * creates an abstract CSV logger + * @param path this is output path of CSV file + */ + public BlockPropagationDelayLogger(Path path, double shareOfNodesReceivedBlock) throws IOException { + super(path); + this.shareOfNodesReceivedBlock = shareOfNodesReceivedBlock; + } + + @Override + protected String csvStartingComment() { + return String.format("Simulation name: %s Number of nodes: %d Network type: %s", scenario.getName(), + this.scenario.getNetwork().getAllNodes().size(), this.scenario.getNetwork().getClass().getSimpleName()); + } + + @Override + protected boolean csvOutputConditionBeforeEvent(Event event) { + return false; + } + + @Override + protected boolean csvOutputConditionAfterEvent(Event event) { + if (event instanceof PacketDeliveryEvent) { + Packet packet = ((PacketDeliveryEvent) event).packet; + Message message = packet.getMessage(); + if (message instanceof DataMessage) { + if (((DataMessage) message).getData() instanceof Block) { + Block block = ((Block) ((DataMessage) message).getData()); + Node Receiver = packet.getTo(); + if (ReceivedBy.containsKey(block)) { + ReceivedBy.get(block).add(Receiver); + } else { + ReceivedBy.put(block, new HashSet<>()); + ReceivedBy.get(block).add(Receiver); + } + int exactNumber = (int)(this.scenario.getNetwork().getAllNodes().size() * shareOfNodesReceivedBlock); + return (ReceivedBy.get(block).size() == exactNumber); + } + } + } + return false; + } + + @Override + protected boolean csvOutputConditionFinalPerNode() { + return false; + } + + @Override + protected String[] csvHeaderOutput() { + return new String[]{"Time", "PropagationDelay", "BlockHashCode", "BlockHeight", "BlockCreator", "BlockSize"}; + } + + @Override + protected String[] csvEventOutput(Event event) { + Packet packet = ((PacketDeliveryEvent) event).packet; + Block block = ((Block) ((DataMessage) packet.getMessage()).getData()); + + return new String[]{ + Double.toString(this.scenario.getSimulator().getSimulationTime()), + Double.toString(this.scenario.getSimulator().getSimulationTime() - block.getCreationTime()), + Integer.toString(block.hashCode()), + Integer.toString(block.getHeight()), + Integer.toString(block.getCreator().nodeID), + Integer.toString(block.getSize()), + }; + } +} diff --git a/src/main/java/jabs/log/BlockchainReorgLogger.java b/src/main/java/jabs/log/BlockchainReorgLogger.java new file mode 100644 index 00000000..944e3ec2 --- /dev/null +++ b/src/main/java/jabs/log/BlockchainReorgLogger.java @@ -0,0 +1,108 @@ +package jabs.log; + +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.Block; +import jabs.ledgerdata.Data; +import jabs.ledgerdata.SingleParentPoWBlock; +import jabs.network.message.DataMessage; +import jabs.network.message.Message; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.PeerBlockchainNode; +import jabs.simulator.event.Event; +import jabs.simulator.event.PacketReceivingProcess; + +import java.io.IOException; +import java.io.Writer; +import java.nio.file.Path; + +public class BlockchainReorgLogger> extends AbstractCSVLogger { + protected LocalBlockTree NetworkViewBlockTree; + private boolean newBlockReceived = false; + private B previousHeadChain = null; + private Node currentNode = null; + + /** + * creates an abstract CSV logger + * @param writer this is output CSV of the logger + */ + public BlockchainReorgLogger(Writer writer) { + super(writer); + } + + /** + * creates an abstract CSV logger + * @param path this is output path of CSV file + */ + public BlockchainReorgLogger(Path path) throws IOException { + super(path); + } + + @Override + protected String csvStartingComment() { + B genesisBlock = + (B) ((PeerBlockchainNode) this.scenario.getNetwork().getNode(0)).getConsensusAlgorithm() + .getLocalBlockTree().getGenesisBlock(); + this.NetworkViewBlockTree = new LocalBlockTree<>(genesisBlock); + return String.format("Simulation name: %s Number of nodes: %d Network type: %s", scenario.getName(), + this.scenario.getNetwork().getAllNodes().size(), this.scenario.getNetwork().getClass().getSimpleName()); + } + + @Override + protected boolean csvOutputConditionBeforeEvent(Event event) { + if (event instanceof PacketReceivingProcess) { + if (!((PacketReceivingProcess) event).isQueueEmpty()) { + Message message = ((PacketReceivingProcess) event).peek().getMessage(); + Node node = ((PacketReceivingProcess) event).getNode(); + if (message instanceof DataMessage) { + Data data = ((DataMessage) message).getData(); + if (data instanceof Block) { + NetworkViewBlockTree.add((B) data); + this.previousHeadChain = ((B) ((PeerBlockchainNode) node).getConsensusAlgorithm() + .getCanonicalChainHead()); + newBlockReceived = true; + } + } + } + } + return false; + } + + @Override + protected boolean csvOutputConditionAfterEvent(Event event) { + if (newBlockReceived) { + newBlockReceived = false; + this.currentNode = ((PacketReceivingProcess) event).getNode(); + B currentHeadChain = ((B) ((PeerBlockchainNode) this.currentNode).getConsensusAlgorithm() + .getCanonicalChainHead()); + B ancestor = NetworkViewBlockTree.getAncestorOfHeight(currentHeadChain, this.previousHeadChain.getHeight()); + return ancestor != this.previousHeadChain; + } + return false; + } + + @Override + protected boolean csvOutputConditionFinalPerNode() { + return false; + } + + @Override + protected String[] csvHeaderOutput() { + return new String[]{"Time", "NodeID", "BlockHeight", "BlockCreationTime", "BlockCreator", "ReorgLength"}; + } + + @Override + protected String[] csvEventOutput(Event event) { + B nodeChainHead = ((B) ((PeerBlockchainNode) this.currentNode).getConsensusAlgorithm().getCanonicalChainHead()); + B commonAncestor = NetworkViewBlockTree.getCommonAncestor(nodeChainHead, this.previousHeadChain); + int reorgLength = nodeChainHead.getHeight() - commonAncestor.getHeight(); + + return new String[]{ + Double.toString(this.scenario.getSimulator().getSimulationTime()), + Integer.toString(this.currentNode.nodeID), + Integer.toString(nodeChainHead.getHeight()), + Double.toString(nodeChainHead.getCreationTime()), + Integer.toString(nodeChainHead.getCreator().nodeID), + Integer.toString(reorgLength) + }; + } +} diff --git a/src/main/java/jabs/log/CasperFinalLogger.java b/src/main/java/jabs/log/CasperFinalLogger.java deleted file mode 100644 index 7bf70594..00000000 --- a/src/main/java/jabs/log/CasperFinalLogger.java +++ /dev/null @@ -1,50 +0,0 @@ -package jabs.log; - -import jabs.consensus.algorithm.DeterministicFinalityConsensus; -import jabs.network.node.nodes.PeerBlockchainNode; -import jabs.scenario.AbstractScenario; -import jabs.scenario.EthereumCasperNetworkScenario; - -public class CasperFinalLogger extends AbstractLogger { - private AbstractScenario scenario; - - @Override - public void setScenario(AbstractScenario scenario) { - this.scenario = scenario; - } - - @Override - public void initialLog() { - - } - - @Override - public void logBeforeEvent() { - - } - - @Override - public void logAfterEvent() { - - } - - @Override - public void finalLog() { - if (scenario instanceof EthereumCasperNetworkScenario) { - EthereumCasperNetworkScenario CasperScenario = (EthereumCasperNetworkScenario) scenario; - System.out.print("*** Ethereum CasperFFG Scenario ***\n"); - System.out.print("** Settings **\n"); - System.out.printf("Total Number of Nodes: %s\n", CasperScenario.numOfMiners + CasperScenario.numOfNonMiners); - System.out.printf("Total Number of Miners: %s\n", CasperScenario.numOfMiners); - System.out.printf("Casper Checkpoint Space: %s blocks\n", CasperScenario.checkpointSpace); - System.out.printf("Transaction Generation Rate: %s tps\n", CasperScenario.txGenerationRate); - System.out.printf("Block Generation Rate: %s bps\n", CasperScenario.blockGenerationRate); - System.out.printf("Total Simulation Time: %s sec\n", CasperScenario.simulationStopTime); - System.out.print("** Results **\n"); - System.out.printf("Average Finalization Time : %s ms\n", CasperScenario.blockFinalizationTimes.getMean()); - System.out.printf("Standard Deviation Finalization Time : %s ms\n", CasperScenario.blockFinalizationTimes.getStandardDeviation()); - System.out.printf("Total Vote Traffic : %s byte\n", CasperScenario.totalVoteMassageTraffic); - System.out.printf("Percentage of Finalized Blocks: %s\n", ((double) ((DeterministicFinalityConsensus) ((PeerBlockchainNode) this.scenario.getNetwork().getNode(0)).getConsensusAlgorithm()).getNumOfFinalizedBlocks()) / ((double) ((PeerBlockchainNode) this.scenario.getNetwork().getNode(0)).numberOfAlreadySeenBlocks())); - } - } -} diff --git a/src/main/java/jabs/log/FinalUncleBlocksLogger.java b/src/main/java/jabs/log/FinalUncleBlocksLogger.java new file mode 100644 index 00000000..13ce9760 --- /dev/null +++ b/src/main/java/jabs/log/FinalUncleBlocksLogger.java @@ -0,0 +1,84 @@ +package jabs.log; + +import jabs.consensus.algorithm.ConsensusAlgorithm; +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.Block; +import jabs.ledgerdata.Data; +import jabs.ledgerdata.SingleParentPoWBlock; +import jabs.network.message.DataMessage; +import jabs.network.message.Message; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.PeerBlockchainNode; +import jabs.network.node.nodes.PeerDLTNode; +import jabs.simulator.event.Event; +import jabs.simulator.event.PacketReceivingProcess; + +import java.io.IOException; +import java.io.Writer; +import java.nio.file.Path; + +/** + * + */ +public class FinalUncleBlocksLogger extends AbstractCSVLogger { + /** + * creates an abstract CSV logger + * @param writer this is output CSV of the logger + */ + public FinalUncleBlocksLogger(Writer writer) { + super(writer); + } + + /** + * creates an abstract CSV logger + * @param path this is output path of CSV file + */ + public FinalUncleBlocksLogger(Path path) throws IOException { + super(path); + } + + @Override + protected String csvStartingComment() { + return String.format("Simulation name: %s Number of nodes: %d Network type: %s", scenario.getName(), + this.scenario.getNetwork().getAllNodes().size(), this.scenario.getNetwork().getClass().getSimpleName()); + } + + @Override + protected boolean csvOutputConditionBeforeEvent(Event event) { + return false; + } + + @Override + protected boolean csvOutputConditionAfterEvent(Event event) { + return false; + } + + @Override + protected boolean csvOutputConditionFinalPerNode() { + return true; + } + + @Override + protected String[] csvHeaderOutput() { + return new String[]{"NodeID", "CanonicalChainLength", "NumUncles"}; + } + + @Override + protected String[] csvEventOutput(Event event) { + return new String[0]; + } + + @Override + protected String[] csvNodeOutput(Node node) { + int canonicalHeadLen = + ((PeerBlockchainNode) node).getConsensusAlgorithm().getCanonicalChainHead().getHeight(); + int totalBlocks = ((PeerBlockchainNode) node).getConsensusAlgorithm().getLocalBlockTree().size(); + int numUncles = totalBlocks - canonicalHeadLen - 1; // The genesis block shall not be counted + + return new String[]{ + Integer.toString(node.nodeID), + Integer.toString(canonicalHeadLen), + Integer.toString(numUncles), + }; + } +} diff --git a/src/main/java/jabs/log/PBFTCSVLogger.java b/src/main/java/jabs/log/PBFTCSVLogger.java index 13f8b70d..840b96ff 100644 --- a/src/main/java/jabs/log/PBFTCSVLogger.java +++ b/src/main/java/jabs/log/PBFTCSVLogger.java @@ -4,6 +4,7 @@ import jabs.ledgerdata.pbft.PBFTCommitVote; import jabs.ledgerdata.pbft.PBFTPrePrepareVote; import jabs.ledgerdata.pbft.PBFTPrepareVote; +import jabs.simulator.event.Event; import jabs.simulator.event.PacketDeliveryEvent; import jabs.network.message.Packet; import jabs.network.message.VoteMessage; @@ -35,31 +36,33 @@ protected String csvStartingComment() { } @Override - protected boolean csvOutputConditionBeforeEvent() { + protected boolean csvOutputConditionBeforeEvent(Event event) { return false; } @Override - protected boolean csvOutputConditionAfterEvent() { - if (this.scenario.getSimulator().peekEvent() instanceof PacketDeliveryEvent) { - return ((PacketDeliveryEvent) this.scenario.getSimulator().peekEvent()).packet.getMessage() instanceof VoteMessage; + protected boolean csvOutputConditionAfterEvent(Event event) { + if (event instanceof PacketDeliveryEvent) { + PacketDeliveryEvent deliveryEvent = (PacketDeliveryEvent) event; + Packet packet = deliveryEvent.packet; + return packet.getMessage() instanceof VoteMessage; } return false; } @Override - protected boolean csvOutputConditionFinal() { + protected boolean csvOutputConditionFinalPerNode() { return false; } @Override protected String[] csvHeaderOutput() { - return new String[]{"Vote message type", "Voter ID", "From Node", "To Node"}; + return new String[]{"Simulation time, Vote message type", "Voter ID", "From Node", "To Node"}; } @Override - protected String[] csvLineOutput() { - Packet packet = ((PacketDeliveryEvent) this.scenario.getSimulator().peekEvent()).packet; + protected String[] csvEventOutput(Event event) { + Packet packet = ((PacketDeliveryEvent) event).packet; Vote vote = ((VoteMessage) packet.getMessage()).getVote(); String voteType = ""; @@ -71,7 +74,7 @@ protected String[] csvLineOutput() { voteType = "PREPREPARE"; } - return new String[]{Double.toString(this.scenario.getSimulator().getCurrentTime()), voteType, + return new String[]{Double.toString(this.scenario.getSimulator().getSimulationTime()), voteType, Integer.toString(vote.getVoter().nodeID), Integer.toString(packet.getFrom().nodeID), Integer.toString(packet.getTo().nodeID)}; } diff --git a/src/main/java/jabs/log/SnowCSVLogger.java b/src/main/java/jabs/log/SnowCSVLogger.java new file mode 100644 index 00000000..e47d1e3e --- /dev/null +++ b/src/main/java/jabs/log/SnowCSVLogger.java @@ -0,0 +1,79 @@ +package jabs.log; + +import jabs.ledgerdata.Query; +import jabs.ledgerdata.snow.SnowCommitQuery; +import jabs.ledgerdata.snow.SnowPrepareQuery; +import jabs.network.message.Packet; +import jabs.network.message.QueryMessage; +import jabs.simulator.event.Event; +import jabs.simulator.event.PacketDeliveryEvent; + +import java.io.IOException; +import java.io.Writer; +import java.nio.file.Path; + +public class SnowCSVLogger extends AbstractCSVLogger { + + /** + * creates an abstract CSV logger + * @param writer this is output CSV of the logger + */ + public SnowCSVLogger(Writer writer) { + super(writer); + } + + /** + * creates an abstract CSV logger + * @param path this is output path of CSV file + */ + public SnowCSVLogger(Path path) throws IOException { + super(path); + } + + @Override + protected String csvStartingComment() { + return String.format("Snow Simulation with %d nodes on %s network", this.scenario.getNetwork().getAllNodes().size(), this.scenario.getNetwork().getClass().getSimpleName()); + } + + @Override + protected boolean csvOutputConditionBeforeEvent(Event event) { + return false; + } + + @Override + protected boolean csvOutputConditionAfterEvent(Event event) { + if (event instanceof PacketDeliveryEvent) { + PacketDeliveryEvent deliveryEvent = (PacketDeliveryEvent) event; + Packet packet = deliveryEvent.packet; + return packet.getMessage() instanceof QueryMessage; + } + return false; + } + + @Override + protected boolean csvOutputConditionFinalPerNode() { + return false; + } + + @Override + protected String[] csvHeaderOutput() { + return new String[]{"Simulation time", "Query message type", "Inquirer ID", "From Node", "To Node"}; + } + + @Override + protected String[] csvEventOutput(Event event) { + Packet packet = ((PacketDeliveryEvent) event).packet; + Query query = ((QueryMessage) packet.getMessage()).getQuery(); + + String queryType = ""; + if (query instanceof SnowCommitQuery) { + queryType = "COMMIT"; + } else if (query instanceof SnowPrepareQuery) { + queryType = "PREPARE"; + } + + return new String[]{Double.toString(this.scenario.getSimulator().getSimulationTime()), queryType, + Integer.toString(query.getInquirer().nodeID), Integer.toString(packet.getFrom().nodeID), + Integer.toString(packet.getTo().nodeID)}; + } +} diff --git a/src/main/java/jabs/network/message/InvMessage.java b/src/main/java/jabs/network/message/InvMessage.java index 12082868..c0232bc9 100644 --- a/src/main/java/jabs/network/message/InvMessage.java +++ b/src/main/java/jabs/network/message/InvMessage.java @@ -2,7 +2,7 @@ import jabs.ledgerdata.Hash; -import static jabs.network.networks.BlockFactory.INV_MESSAGE_OVERHEAD; +import static jabs.ledgerdata.BlockFactory.INV_MESSAGE_OVERHEAD; public class InvMessage extends Message { private final Hash hash; diff --git a/src/main/java/jabs/network/message/QueryMessage.java b/src/main/java/jabs/network/message/QueryMessage.java new file mode 100644 index 00000000..f259e55f --- /dev/null +++ b/src/main/java/jabs/network/message/QueryMessage.java @@ -0,0 +1,16 @@ +package jabs.network.message; + +import jabs.ledgerdata.Query; + +public class QueryMessage extends Message{ + private final Query query; + + public QueryMessage(Query query) { + super(query.getSize()); + this.query = query; + } + + public Query getQuery() { + return query; + } +} diff --git a/src/main/java/jabs/network/message/RequestDataMessage.java b/src/main/java/jabs/network/message/RequestDataMessage.java index a1bdc8ff..12187de1 100644 --- a/src/main/java/jabs/network/message/RequestDataMessage.java +++ b/src/main/java/jabs/network/message/RequestDataMessage.java @@ -2,7 +2,7 @@ import jabs.ledgerdata.Hash; -import static jabs.network.networks.BlockFactory.GET_DATA_OVERHEAD; +import static jabs.ledgerdata.BlockFactory.GET_DATA_OVERHEAD; public class RequestDataMessage extends Message { private final Hash payloadHash; diff --git a/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetwork.java b/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetwork.java deleted file mode 100644 index 6059fde5..00000000 --- a/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetwork.java +++ /dev/null @@ -1,88 +0,0 @@ -package jabs.network.networks; - -import jabs.ledgerdata.bitcoin.BitcoinBlock; -import jabs.network.networks.stats.*; -import jabs.network.node.nodes.Node; -import jabs.network.node.nodes.bitcoin.BitcoinMinerNode; -import jabs.network.node.nodes.bitcoin.BitcoinMinerNodeWithoutTx; -import jabs.network.node.nodes.bitcoin.BitcoinNode; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -import java.util.ArrayList; -import java.util.List; - -public class BitcoinGlobalProofOfWorkNetwork> extends GlobalProofOfWorkNetwork { - protected static final double bitcoinBlockGenerationInterval = 600; - public BitcoinGlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, - ProofOfWorkGlobalNetworkStats networkStats) { - super(randomnessEngine, networkStats); - } - - public BitcoinNode createSampleBitcoinNode(Simulator simulator, Network network, int nodeID, - BitcoinBlock genesisBlock) { - R region = this.sampleRegion(); - return new BitcoinNode(simulator, this, nodeID, network.sampleDownloadBandwidth(region), - network.sampleUploadBandwidth(region), genesisBlock); - } - - public BitcoinMinerNode createSampleBitcoinMinerNode(Simulator simulator, Network network, int nodeID, - BitcoinBlock genesisBlock, long hashPower) { - R region = this.sampleRegion(); - return new BitcoinMinerNode(simulator, this, nodeID, network.sampleDownloadBandwidth(region), - network.sampleUploadBandwidth(region), genesisBlock, hashPower); - } - - public BitcoinMinerNode createSampleBitcoinMinerNodeWithoutTx(Simulator simulator, Network network, int nodeID, - BitcoinBlock genesisBlock, long hashPower) { - R region = this.sampleRegion(); - return new BitcoinMinerNodeWithoutTx(simulator, this, nodeID, network.sampleDownloadBandwidth(region), - network.sampleUploadBandwidth(region), genesisBlock, hashPower); - } - - @Override - public void populateNetwork(Simulator simulator) { - this.populateNetwork(simulator, minerDistribution.totalNumberOfMiners(), nodeDistribution.totalNumberOfNodes()); - } - - public void populateNetwork(Simulator simulator, double averageBlockMiningInterval) { - this.populateNetwork(simulator, minerDistribution.totalNumberOfMiners(), nodeDistribution.totalNumberOfNodes(), - averageBlockMiningInterval); - } - - @Override - public void populateNetwork(Simulator simulator, int numNodes) { - int numMiners = (int) Math.floor(0.01 * (float)numNodes) + 1; - this.populateNetwork(simulator, numMiners, numNodes-numMiners); - } - - @Override - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners) { - this.populateNetwork(simulator, numMiners, numNonMiners, bitcoinBlockGenerationInterval); - } - - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners, double averageBlockMiningInterval) { - long totalHashPower = 0; - List hashPowers = new ArrayList<>(); - for (int i = 0; i < numMiners; i++) { - long hashPower = sampleHashPower(); - hashPowers.add(hashPower); - totalHashPower += hashPower; - } - - double difficulty = totalHashPower * averageBlockMiningInterval; - BitcoinBlock genesisBlock = new BitcoinBlock(0, 0, simulator.getCurrentTime(), null, null, difficulty); - - for (int i = 0; i < numMiners; i++) { - this.addMiner(createSampleBitcoinMinerNode(simulator, this, i, genesisBlock, hashPowers.get(i))); - } - - for (int i = 0; i < numNonMiners; i++) { - this.addNode(createSampleBitcoinNode(simulator, this, numMiners + i, genesisBlock)); - } - - for (Node node:this.getAllNodes()) { - node.getP2pConnections().connectToNetwork(this); - } - } -} diff --git a/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetworkWithoutTx.java b/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetworkWithoutTx.java deleted file mode 100644 index aa9eba9c..00000000 --- a/src/main/java/jabs/network/networks/BitcoinGlobalProofOfWorkNetworkWithoutTx.java +++ /dev/null @@ -1,51 +0,0 @@ -package jabs.network.networks; - -import jabs.ledgerdata.bitcoin.BitcoinBlock; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; -import jabs.network.node.nodes.Node; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -import java.util.ArrayList; -import java.util.List; - -public class BitcoinGlobalProofOfWorkNetworkWithoutTx> extends BitcoinGlobalProofOfWorkNetwork { - public BitcoinGlobalProofOfWorkNetworkWithoutTx(RandomnessEngine randomnessEngine, - ProofOfWorkGlobalNetworkStats networkStats) { - super(randomnessEngine, networkStats); - } - - @Override - public void populateNetwork(Simulator simulator, int numNodes) { - int numMiners = (int) Math.floor(0.01 * (float)numNodes) + 1; - this.populateNetwork(simulator, numMiners, numNodes-numMiners); - } - - @Override - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners) { - long totalHashPower = 0; - List hashPowers = new ArrayList<>(); - for (int i = 0; i < numMiners; i++) { - long hashPower = sampleHashPower(); - hashPowers.add(hashPower); - totalHashPower += hashPower; - } - - double difficulty = totalHashPower * bitcoinBlockGenerationInterval; - BitcoinBlock genesisBlock = new BitcoinBlock(0, 0, simulator.getCurrentTime(), null, - null, difficulty); - - for (int i = 0; i < numMiners; i++) { - this.addMiner(createSampleBitcoinMinerNodeWithoutTx(simulator, this, i, genesisBlock, - hashPowers.get(i))); - } - - for (int i = 0; i < numNonMiners; i++) { - this.addNode(createSampleBitcoinNode(simulator, this, numMiners + i, genesisBlock)); - } - - for (Node node:this.getAllNodes()) { - node.getP2pConnections().connectToNetwork(this); - } - } -} diff --git a/src/main/java/jabs/network/networks/BlockFactory.java b/src/main/java/jabs/network/networks/BlockFactory.java deleted file mode 100644 index e321817c..00000000 --- a/src/main/java/jabs/network/networks/BlockFactory.java +++ /dev/null @@ -1,55 +0,0 @@ -package jabs.network.networks; - -import jabs.ledgerdata.bitcoin.BitcoinBlock; -import jabs.ledgerdata.ethereum.EthereumBlock; -import jabs.ledgerdata.pbft.PBFTBlock; -import jabs.network.node.nodes.bitcoin.BitcoinMinerNode; -import jabs.network.node.nodes.ethereum.EthereumMinerNode; -import jabs.network.node.nodes.pbft.PBFTNode; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -import java.util.Set; - -public final class BlockFactory { - public static final int ETHEREUM_BLOCK_HEADER_SIZE = 543; // A header could have variable size but mostly its really close this value - public static final int ETHEREUM_BLOCK_HASH_SIZE = 36; // 32 byte hash + 4 byte network id - public static final long ETHEREUM_MIN_DIFFICULTY = 17146335232L; - - public static final int BITCOIN_BLOCK_HEADER_SIZE = 80; - public static final int BITCOIN_INV_SIZE = 36; // 4 byte type + 32 byte hash - public static final int GET_DATA_OVERHEAD = 4; - public static final int INV_MESSAGE_OVERHEAD = 1; - public static final int ETHEREUM_HELLO_MESSAGE_SIZE = 16; - - private static final long[] BITCOIN_BLOCK_SIZE_2020_BINS = { - 196, 119880, 254789, 396047, 553826, 726752, 917631, 1021479, 1054560, 1084003, 1113136, 1138722, 1161695, - 1183942, 1205734, 1227090, 1248408, 1270070, 1293647, 1320186, 1354939, 1423459, 2422858 - }; - - private static final double[] BITCOIN_BLOCK_SIZE_2020 = { - 0.0000, 0.0482, 0.0422, 0.0422, 0.0421, 0.0422, 0.0421, 0.0445, 0.0455, 0.0458, 0.0461, 0.0468, 0.0472, - 0.0481, 0.0477, 0.0479, 0.0484, 0.0482, 0.0475, 0.0464, 0.0454, 0.0434, 0.0420 - }; - - public static int sampleBitcoinBlockSize(RandomnessEngine randomnessEngine) { - return (int) randomnessEngine.sampleDistributionWithBins(BITCOIN_BLOCK_SIZE_2020, BITCOIN_BLOCK_SIZE_2020_BINS); - } - - public static BitcoinBlock sampleBitcoinBlock(Simulator simulator, RandomnessEngine randomnessEngine, - BitcoinMinerNode creator, BitcoinBlock parent, double difficulty) { - return new BitcoinBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, - simulator.getCurrentTime(), creator, parent, difficulty); - } - - public static PBFTBlock samplePBFTBlock(Simulator simulator, RandomnessEngine randomnessEngine, PBFTNode creator, PBFTBlock parent) { - return new PBFTBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, - simulator.getCurrentTime(), creator, parent); // TODO: Size of PBFT Blocks - } - - public static EthereumBlock sampleEthereumBlock(Simulator simulator, RandomnessEngine randomnessEngine, EthereumMinerNode creator, EthereumBlock parent, - Set uncles) { - return new EthereumBlock(sampleBitcoinBlockSize(randomnessEngine), parent.getHeight() + 1, - simulator.getCurrentTime(), creator, parent, uncles, ETHEREUM_MIN_DIFFICULTY); // TODO: Block Size - } -} diff --git a/src/main/java/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.java b/src/main/java/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.java deleted file mode 100644 index 84dcc464..00000000 --- a/src/main/java/jabs/network/networks/CasperFFGGlobalBlockchainNetwork.java +++ /dev/null @@ -1,46 +0,0 @@ -package jabs.network.networks; - -import jabs.network.networks.stats.MinerGlobalRegionDistribution; -import jabs.network.networks.stats.NetworkStats; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; -import jabs.network.node.nodes.Node; -import jabs.network.node.nodes.ethereum.EthereumCasperMiner; -import jabs.network.node.nodes.ethereum.EthereumCasperNode; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -public class CasperFFGGlobalBlockchainNetwork> extends EthereumGlobalProofOfWorkNetwork { - protected final int checkpointSpace; - - public CasperFFGGlobalBlockchainNetwork(RandomnessEngine randomnessEngine, int checkpointSpace, - ProofOfWorkGlobalNetworkStats networkStats) { - super(randomnessEngine, networkStats); - this.checkpointSpace = checkpointSpace; - } - - @Override - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners) { - for (int i = 0; i < numMiners; i++) { - this.addMiner(createNewEthereumCasperMiner(simulator, this, i, checkpointSpace, numNonMiners + numMiners)); - } - - for (int i = 0; i < numNonMiners; i++) { - this.addNode(createNewEthereumCasperNode(simulator, this, numMiners + i, checkpointSpace, numNonMiners + numMiners)); - } - - for (Node node:this.getAllNodes()) { - node.getP2pConnections().connectToNetwork(this); - } - } - - public EthereumCasperNode createNewEthereumCasperNode(Simulator simulator, Network network, int nodeID, int checkpointSpace, int numOfStakeholders) { - R region = sampleRegion(); - return new EthereumCasperNode(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region), checkpointSpace, numOfStakeholders); - } - - public EthereumCasperMiner createNewEthereumCasperMiner(Simulator simulator, Network network, int nodeID, int checkpointSpace, int numOfStakeholders) { - R region = sampleRegion(); - return new EthereumCasperMiner(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region), sampleHashPower(), checkpointSpace, numOfStakeholders); - } -} diff --git a/src/main/java/jabs/network/networks/DAGsperGlobalBlockchainNetwork.java b/src/main/java/jabs/network/networks/DAGsperGlobalBlockchainNetwork.java deleted file mode 100644 index 6ee16c45..00000000 --- a/src/main/java/jabs/network/networks/DAGsperGlobalBlockchainNetwork.java +++ /dev/null @@ -1,46 +0,0 @@ -package jabs.network.networks; - -import jabs.network.networks.stats.MinerGlobalRegionDistribution; -import jabs.network.networks.stats.NetworkStats; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; -import jabs.network.node.nodes.Node; -import jabs.network.node.nodes.ethereum.EthereumDAGsperMiner; -import jabs.network.node.nodes.ethereum.EthereumDAGsperNode; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -public class DAGsperGlobalBlockchainNetwork> extends EthereumGlobalProofOfWorkNetwork { - private final int checkpointSpace; - - public DAGsperGlobalBlockchainNetwork(RandomnessEngine randomnessEngine, int checkpointSpace, - ProofOfWorkGlobalNetworkStats networkStats) { - super(randomnessEngine, networkStats); - this.checkpointSpace = checkpointSpace; - } - - @Override - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners) { - for (int i = 0; i < numMiners; i++) { - this.addMiner(createNewEthereumDAGsperMiner(simulator, this, i, checkpointSpace, numNonMiners + numMiners)); - } - - for (int i = 0; i < numNonMiners; i++) { - this.addNode(createNewEthereumDAGsperNode(simulator, this, numMiners + i, checkpointSpace, numNonMiners + numMiners)); - } - - for (Node node:this.getAllNodes()) { - node.getP2pConnections().connectToNetwork(this); - } - } - - public EthereumDAGsperNode createNewEthereumDAGsperNode(Simulator simulator, Network network, int nodeID, int checkpointSpace, int numOfStakeholders) { - R region = sampleRegion(); - return new EthereumDAGsperNode(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region), checkpointSpace, numOfStakeholders); - } - - public EthereumDAGsperMiner createNewEthereumDAGsperMiner(Simulator simulator, Network network, int nodeID, int checkpointSpace, int numOfStakeholders) { - R region = sampleMinerRegion(); - return new EthereumDAGsperMiner(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region), sampleHashPower(), checkpointSpace, numOfStakeholders); - } -} diff --git a/src/main/java/jabs/network/networks/EthereumGlobalProofOfWorkNetwork.java b/src/main/java/jabs/network/networks/EthereumGlobalProofOfWorkNetwork.java deleted file mode 100644 index 02673d96..00000000 --- a/src/main/java/jabs/network/networks/EthereumGlobalProofOfWorkNetwork.java +++ /dev/null @@ -1,52 +0,0 @@ -package jabs.network.networks; - -import jabs.network.networks.stats.*; -import jabs.network.node.nodes.Node; -import jabs.network.node.nodes.ethereum.EthereumMinerNode; -import jabs.network.node.nodes.ethereum.EthereumNode; -import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; - -public class EthereumGlobalProofOfWorkNetwork> extends GlobalProofOfWorkNetwork { - public EthereumGlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, - ProofOfWorkGlobalNetworkStats networkStats) { - super(randomnessEngine, networkStats); - } - - @Override - public void populateNetwork(Simulator simulator) { - populateNetwork(simulator, minerDistribution.totalNumberOfMiners(), nodeDistribution.totalNumberOfNodes()); - } - - @Override - public void populateNetwork(Simulator simulator, int numNodes) { - int numMiners = (int) Math.floor(0.01 * (float)numNodes) + 1; - this.populateNetwork(simulator, numMiners, numNodes-numMiners); - } - - @Override - public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners) { - for (int i = 0; i < numMiners; i++) { - this.addMiner(createNewEthereumMiner(simulator, this, i)); - } - - for (int i = 0; i < numNonMiners; i++) { - this.addNode(createNewEthereumNode(simulator, this, numMiners + i)); - } - - for (Node node:this.getAllNodes()) { - node.getP2pConnections().connectToNetwork(this); - } - } - - public EthereumNode createNewEthereumNode(Simulator simulator, Network network, int nodeID) { - R region = this.sampleRegion(); - return new EthereumNode(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region)); - } - - public EthereumMinerNode createNewEthereumMiner(Simulator simulator, Network network, int nodeID) { - R region = this.sampleMinerRegion(); - return new EthereumMinerNode(simulator, network, nodeID, network.sampleDownloadBandwidth(region), network.sampleUploadBandwidth(region), sampleHashPower()); - } - -} diff --git a/src/main/java/jabs/network/networks/GlobalNetwork.java b/src/main/java/jabs/network/networks/GlobalNetwork.java index e8cf5e44..ffbc261a 100644 --- a/src/main/java/jabs/network/networks/GlobalNetwork.java +++ b/src/main/java/jabs/network/networks/GlobalNetwork.java @@ -1,25 +1,24 @@ package jabs.network.networks; -import jabs.network.networks.stats.NodeGlobalNetworkStats; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.NodeGlobalNetworkStats; +import jabs.network.stats.NodeGlobalRegionDistribution; import jabs.network.node.nodes.Node; import jabs.simulator.randengine.RandomnessEngine; -import jabs.simulator.Simulator; -public abstract class GlobalNetwork> extends Network { - public final NodeGlobalRegionDistribution nodeDistribution; +public abstract class GlobalNetwork> extends Network { + public final NodeGlobalRegionDistribution nodeDistribution; - public GlobalNetwork(RandomnessEngine randomnessEngine, NodeGlobalNetworkStats networkStats) { + public GlobalNetwork(RandomnessEngine randomnessEngine, NodeGlobalNetworkStats networkStats) { super(randomnessEngine, networkStats); this.nodeDistribution = networkStats; } @Override - public void addNode(Node node) { + public void addNode(N node) { this.addNode(node, sampleRegion()); } - public Region sampleRegion() { + public R sampleRegion() { return nodeDistribution.sampleRegion(); } } diff --git a/src/main/java/jabs/network/networks/GlobalProofOfWorkNetwork.java b/src/main/java/jabs/network/networks/GlobalProofOfWorkNetwork.java index dc08a389..f3e65392 100644 --- a/src/main/java/jabs/network/networks/GlobalProofOfWorkNetwork.java +++ b/src/main/java/jabs/network/networks/GlobalProofOfWorkNetwork.java @@ -1,7 +1,11 @@ package jabs.network.networks; -import jabs.network.networks.stats.MinerGlobalRegionDistribution; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.ledgerdata.Block; +import jabs.ledgerdata.ProofOfWorkBlock; +import jabs.network.stats.MinerGlobalRegionDistribution; +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; import jabs.network.node.nodes.MinerNode; import jabs.network.node.nodes.Node; import jabs.simulator.Simulator; @@ -10,11 +14,12 @@ import java.util.ArrayList; import java.util.List; -public abstract class GlobalProofOfWorkNetwork> extends GlobalNetwork { +public abstract class GlobalProofOfWorkNetwork, R extends Enum> + extends GlobalNetwork { protected final List miners = new ArrayList<>(); - protected final MinerGlobalRegionDistribution minerDistribution; + protected final MinerGlobalRegionDistribution minerDistribution; - protected GlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, ProofOfWorkGlobalNetworkStats networkStats) { + protected GlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, ProofOfWorkGlobalNetworkStats networkStats) { super(randomnessEngine, networkStats); this.minerDistribution = networkStats; } @@ -29,22 +34,68 @@ public void startAllMiningProcesses() { public List getAllMiners() { return miners; } - public Region sampleMinerRegion() { + public R sampleMinerRegion() { return minerDistribution.sampleMinerRegion(); } public MinerNode getMiner(int i) { return miners.get(i); } - public void addMiner(MinerNode node) { - nodes.add((Node) node); + public void addMiner(M node) { + nodes.add((N) node); miners.add(node); - nodeTypes.put((Node) node, sampleMinerRegion()); + nodeTypes.put((N) node, sampleMinerRegion()); } - protected long sampleHashPower() { + protected double sampleHashPower() { return minerDistribution.sampleMinerHashPower(); } - public abstract void populateNetwork(Simulator simulator, int numMiners, int numNonMiners); + public abstract B genesisBlock(double difficulty); + public abstract N createSampleNode(Simulator simulator, int nodeID, B genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig); + public abstract M createSampleMiner(Simulator simulator, int nodeID, double hashPower, B genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig); + + + public void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig consensusAlgorithmConfig) { + this.populateNetwork(simulator, minerDistribution.totalNumberOfMiners(), nodeDistribution.totalNumberOfNodes(), + consensusAlgorithmConfig); + } + + public void populateNetwork(Simulator simulator, int numNodes, ConsensusAlgorithmConfig consensusAlgorithmConfig) { + int numMiners = (int) Math.floor(minerDistribution.shareOfMinersToAllNodes() * numNodes) + 1; + this.populateNetwork(simulator, numMiners, numNodes-numMiners, consensusAlgorithmConfig); + } + + public void populateNetwork(Simulator simulator, int numMiners, int numNonMiners, + ConsensusAlgorithmConfig consensusAlgorithmConfig) { + long totalHashPower = 0; + List hashPowers = new ArrayList<>(); + for (int i = 0; i < numMiners; i++) { + double hashPower = sampleHashPower(); + hashPowers.add(hashPower); + totalHashPower += hashPower; + } + + ChainBasedConsensusConfig chainBasedConsensusConfig = (ChainBasedConsensusConfig) consensusAlgorithmConfig; + double miningInterval = chainBasedConsensusConfig.averageBlockMiningInterval(); + B genesisBlock = (B) chainBasedConsensusConfig.getGenesisBlock(); + double genesisDifficulty = ((ProofOfWorkBlock) genesisBlock).getDifficulty(); + + double hashPowerScale = genesisDifficulty / (totalHashPower * miningInterval); + + for (int i = 0; i < numMiners; i++) { + this.addMiner(createSampleMiner(simulator, i, hashPowerScale * hashPowers.get(i), genesisBlock, + chainBasedConsensusConfig)); + } + + for (int i = 0; i < numNonMiners; i++) { + this.addNode(createSampleNode(simulator, numMiners + i, genesisBlock, chainBasedConsensusConfig)); + } + + for (Node node:this.getAllNodes()) { + node.getP2pConnections().connectToNetwork(this); + } + } } diff --git a/src/main/java/jabs/network/networks/Network.java b/src/main/java/jabs/network/networks/Network.java index a1c72f9e..d1ca4e2b 100644 --- a/src/main/java/jabs/network/networks/Network.java +++ b/src/main/java/jabs/network/networks/Network.java @@ -1,6 +1,7 @@ package jabs.network.networks; -import jabs.network.networks.stats.NetworkStats; +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.network.stats.NetworkStats; import jabs.network.node.nodes.Node; import jabs.simulator.randengine.RandomnessEngine; import jabs.simulator.Simulator; @@ -9,48 +10,46 @@ import java.util.HashMap; import java.util.List; -public abstract class Network> { - protected final List nodes = new ArrayList(); +public abstract class Network> { + protected final List nodes = new ArrayList(); protected final RandomnessEngine randomnessEngine; public final NetworkStats networkStats; - public final HashMap nodeTypes = new HashMap<>(); + public final HashMap nodeTypes = new HashMap<>(); protected Network(RandomnessEngine randomnessEngine, NetworkStats networkStats) { this.randomnessEngine = randomnessEngine; this.networkStats = networkStats; } - public Node getRandomNode() { + public N getRandomNode() { return nodes.get(randomnessEngine.sampleInt(nodes.size())); } - public List getAllNodes() { + public List getAllNodes() { return nodes; } - public Node getNode(int i) { + public N getNode(int i) { return nodes.get(i); } - public double getLatency(Node from, Node to) { + public double getLatency(N from, N to) { return networkStats.getLatency(nodeTypes.get(from), nodeTypes.get(to)); }; public long sampleDownloadBandwidth(NodeType type) { return networkStats.sampleDownloadBandwidth(type); }; - public long sampleUploadBandwidth(NodeType type){ return networkStats.sampleUploadBandwidth(type); }; - public abstract void populateNetwork(Simulator simulator); - - public abstract void populateNetwork(Simulator simulator, int numNodes); - - public abstract void addNode(Node node); + public abstract void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig consensusAlgorithmConfig); + public abstract void populateNetwork(Simulator simulator, int numNodes, + ConsensusAlgorithmConfig consensusAlgorithmConfig); + public abstract void addNode(N node); - public void addNode(Node node, NodeType nodeType) { + public void addNode(N node, NodeType nodeType) { nodes.add(node); nodeTypes.put(node, nodeType); } diff --git a/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetwork.java b/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetwork.java new file mode 100644 index 00000000..1b6cf1b9 --- /dev/null +++ b/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetwork.java @@ -0,0 +1,47 @@ +package jabs.network.networks.bitcoin; + +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.consensus.config.NakamotoConsensusConfig; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.network.networks.GlobalProofOfWorkNetwork; +import jabs.network.stats.*; +import jabs.network.node.nodes.bitcoin.BitcoinMinerNode; +import jabs.network.node.nodes.bitcoin.BitcoinNode; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; + +public class BitcoinGlobalProofOfWorkNetwork> extends + GlobalProofOfWorkNetwork { + + public BitcoinGlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, + ProofOfWorkGlobalNetworkStats networkStats) { + super(randomnessEngine, networkStats); + } + + /** + * @param difficulty the difficulty value of the genesis block + * @return the genesis block with no parents + */ + @Override + public BitcoinBlockWithoutTx genesisBlock(double difficulty) { + return new BitcoinBlockWithoutTx(0, 0, 0, null, null, difficulty, 0); + } + + @Override + public BitcoinNode createSampleNode(Simulator simulator, int nodeID, BitcoinBlockWithoutTx genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = (R) this.sampleRegion(); + return new BitcoinNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), genesisBlock, (NakamotoConsensusConfig) chainBasedConsensusConfig); + } + + @Override + public BitcoinMinerNode createSampleMiner(Simulator simulator, int nodeID, double hashPower, + BitcoinBlockWithoutTx genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = (R) this.sampleRegion(); + return new BitcoinMinerNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), hashPower, genesisBlock, + (NakamotoConsensusConfig) chainBasedConsensusConfig); + } +} diff --git a/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetworkWithoutTx.java b/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetworkWithoutTx.java new file mode 100644 index 00000000..19dc4203 --- /dev/null +++ b/src/main/java/jabs/network/networks/bitcoin/BitcoinGlobalProofOfWorkNetworkWithoutTx.java @@ -0,0 +1,25 @@ +package jabs.network.networks.bitcoin; + +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.network.node.nodes.bitcoin.BitcoinMinerNode; +import jabs.network.node.nodes.bitcoin.BitcoinMinerNodeWithoutTx; +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; + +public class BitcoinGlobalProofOfWorkNetworkWithoutTx> extends BitcoinGlobalProofOfWorkNetwork { + public BitcoinGlobalProofOfWorkNetworkWithoutTx(RandomnessEngine randomnessEngine, + ProofOfWorkGlobalNetworkStats networkStats) { + super(randomnessEngine, networkStats); + } + + @Override + public BitcoinMinerNode createSampleMiner(Simulator simulator, int nodeID, double hashPower, + BitcoinBlockWithoutTx genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = this.sampleRegion(); + return new BitcoinMinerNodeWithoutTx(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), hashPower, genesisBlock, chainBasedConsensusConfig); + } +} diff --git a/src/main/java/jabs/network/networks/ethereum/CasperFFGGlobalBlockchainNetwork.java b/src/main/java/jabs/network/networks/ethereum/CasperFFGGlobalBlockchainNetwork.java new file mode 100644 index 00000000..60da73bd --- /dev/null +++ b/src/main/java/jabs/network/networks/ethereum/CasperFFGGlobalBlockchainNetwork.java @@ -0,0 +1,41 @@ +package jabs.network.networks.ethereum; + +import jabs.consensus.config.CasperFFGConfig; +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; +import jabs.network.networks.Network; +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.ethereum.EthereumCasperMiner; +import jabs.network.node.nodes.ethereum.EthereumCasperNode; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; + +public class CasperFFGGlobalBlockchainNetwork> extends EthereumGlobalProofOfWorkNetwork { + protected final int checkpointSpace; + protected static final double CASPER_DEFAULT_CHECKPOINT_SPACE = 14; + + public CasperFFGGlobalBlockchainNetwork(RandomnessEngine randomnessEngine, int checkpointSpace, + ProofOfWorkGlobalNetworkStats networkStats) { + super(randomnessEngine, networkStats); + this.checkpointSpace = checkpointSpace; + } + + @Override + public EthereumCasperNode createSampleNode(Simulator simulator, int nodeID, EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = (R) sampleRegion(); + return new EthereumCasperNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), genesisBlock, + (CasperFFGConfig) chainBasedConsensusConfig); + } + + @Override + public EthereumCasperMiner createSampleMiner(Simulator simulator, int nodeID, double hashPower, + EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = (R) sampleRegion(); + return new EthereumCasperMiner(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), hashPower, genesisBlock, (CasperFFGConfig) chainBasedConsensusConfig); + } +} diff --git a/src/main/java/jabs/network/networks/ethereum/DAGsperGlobalBlockchainNetwork.java b/src/main/java/jabs/network/networks/ethereum/DAGsperGlobalBlockchainNetwork.java new file mode 100644 index 00000000..e6d0ef39 --- /dev/null +++ b/src/main/java/jabs/network/networks/ethereum/DAGsperGlobalBlockchainNetwork.java @@ -0,0 +1,38 @@ +package jabs.network.networks.ethereum; + +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.consensus.config.DAGsperConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; +import jabs.network.networks.Network; +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.ethereum.EthereumDAGsperMiner; +import jabs.network.node.nodes.ethereum.EthereumDAGsperNode; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; + +public class DAGsperGlobalBlockchainNetwork> extends EthereumGlobalProofOfWorkNetwork { + private final int checkpointSpace; + + public DAGsperGlobalBlockchainNetwork(RandomnessEngine randomnessEngine, int checkpointSpace, + ProofOfWorkGlobalNetworkStats networkStats) { + super(randomnessEngine, networkStats); + this.checkpointSpace = checkpointSpace; + } + + + public EthereumDAGsperNode createNewEthereumDAGsperNode(Simulator simulator, int nodeID, EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = sampleRegion(); + return new EthereumDAGsperNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), genesisBlock, (DAGsperConfig) chainBasedConsensusConfig); + } + + public EthereumDAGsperMiner createNewEthereumDAGsperMiner(Simulator simulator, int nodeID, + EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = sampleMinerRegion(); + return new EthereumDAGsperMiner(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), sampleHashPower(), genesisBlock, (DAGsperConfig) chainBasedConsensusConfig); + } +} diff --git a/src/main/java/jabs/network/networks/ethereum/EthereumGlobalProofOfWorkNetwork.java b/src/main/java/jabs/network/networks/ethereum/EthereumGlobalProofOfWorkNetwork.java new file mode 100644 index 00000000..6438a990 --- /dev/null +++ b/src/main/java/jabs/network/networks/ethereum/EthereumGlobalProofOfWorkNetwork.java @@ -0,0 +1,51 @@ +package jabs.network.networks.ethereum; + +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.consensus.config.GhostProtocolConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; +import jabs.network.networks.GlobalProofOfWorkNetwork; +import jabs.network.stats.*; +import jabs.network.node.nodes.ethereum.EthereumMinerNode; +import jabs.network.node.nodes.ethereum.EthereumNode; +import jabs.simulator.randengine.RandomnessEngine; +import jabs.simulator.Simulator; + +import java.util.HashSet; + +public class EthereumGlobalProofOfWorkNetwork> extends + GlobalProofOfWorkNetwork { + public EthereumGlobalProofOfWorkNetwork(RandomnessEngine randomnessEngine, + ProofOfWorkGlobalNetworkStats networkStats) { + super(randomnessEngine, networkStats); + } + + /** + * @param difficulty Difficulty of genesis block + * @return Parent-less block that could be used for genesis block + */ + @Override + public EthereumBlock genesisBlock(double difficulty) { + return new EthereumBlock(0, 0, 0, null, null, new HashSet<>(), difficulty, + 0); + } + + @Override + public EthereumNode createSampleNode(Simulator simulator, int nodeID, EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = this.sampleRegion(); + return new EthereumNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), + genesisBlock, (GhostProtocolConfig) chainBasedConsensusConfig); + } + + @Override + public EthereumMinerNode createSampleMiner(Simulator simulator, int nodeID, double hashPower, + EthereumBlock genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + R region = this.sampleMinerRegion(); + return new EthereumMinerNode(simulator, this, nodeID, this.sampleDownloadBandwidth(region), + this.sampleUploadBandwidth(region), hashPower, + genesisBlock, (GhostProtocolConfig) chainBasedConsensusConfig); + } + +} diff --git a/src/main/java/jabs/network/networks/TangleGlobalNetwork.java b/src/main/java/jabs/network/networks/iota/TangleGlobalNetwork.java similarity index 60% rename from src/main/java/jabs/network/networks/TangleGlobalNetwork.java rename to src/main/java/jabs/network/networks/iota/TangleGlobalNetwork.java index 8df7bc6d..0a346639 100644 --- a/src/main/java/jabs/network/networks/TangleGlobalNetwork.java +++ b/src/main/java/jabs/network/networks/iota/TangleGlobalNetwork.java @@ -1,24 +1,28 @@ -package jabs.network.networks; +package jabs.network.networks.iota; -import jabs.network.networks.stats.NodeGlobalNetworkStats; +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.consensus.config.TangleIOTAConsensusConfig; +import jabs.network.networks.GlobalNetwork; +import jabs.network.stats.NodeGlobalNetworkStats; import jabs.network.node.nodes.Node; import jabs.network.node.nodes.iota.IOTANode; import jabs.network.p2p.BitcoinCoreP2P; import jabs.simulator.Simulator; import jabs.simulator.randengine.RandomnessEngine; -public class TangleGlobalNetwork> extends GlobalNetwork { +public class TangleGlobalNetwork> extends GlobalNetwork { public TangleGlobalNetwork(RandomnessEngine randomnessEngine, NodeGlobalNetworkStats networkStats) { super(randomnessEngine, networkStats); } - public IOTANode createNewIOTANode(Simulator simulator, int nodeID) { + public IOTANode createNewIOTANode(Simulator simulator, int nodeID, + TangleIOTAConsensusConfig tangleIOTAConsensusConfig) { R nodeRegion = this.sampleRegion(); return new IOTANode(simulator, this, nodeID, this.sampleDownloadBandwidth(nodeTypes.get(nodeRegion)), this.sampleUploadBandwidth(nodeTypes.get(nodeRegion)), - new BitcoinCoreP2P()); // TODO: New P2P model is required + new BitcoinCoreP2P(), tangleIOTAConsensusConfig); // TODO: New P2P model is required } @Override @@ -28,14 +32,14 @@ public R sampleRegion() { @Override - public void populateNetwork(Simulator simulator) { - this.populateNetwork(simulator, nodeDistribution.totalNumberOfNodes()); + public void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig consensusAlgorithmConfig) { + this.populateNetwork(simulator, nodeDistribution.totalNumberOfNodes(), consensusAlgorithmConfig); } @Override - public void populateNetwork(Simulator simulator, int numNodes) { + public void populateNetwork(Simulator simulator, int numNodes, ConsensusAlgorithmConfig consensusAlgorithmConfig) { for (int i = 0; i < numNodes; i++) { - this.addNode(createNewIOTANode(simulator, i)); + this.addNode(createNewIOTANode(simulator, i, (TangleIOTAConsensusConfig) consensusAlgorithmConfig)); } for (Node node:this.getAllNodes()) { diff --git a/src/main/java/jabs/network/networks/PBFTLocalLANNetwork.java b/src/main/java/jabs/network/networks/pbft/PBFTLocalLANNetwork.java similarity index 59% rename from src/main/java/jabs/network/networks/PBFTLocalLANNetwork.java rename to src/main/java/jabs/network/networks/pbft/PBFTLocalLANNetwork.java index 82fbe1fd..d61383c9 100644 --- a/src/main/java/jabs/network/networks/PBFTLocalLANNetwork.java +++ b/src/main/java/jabs/network/networks/pbft/PBFTLocalLANNetwork.java @@ -1,14 +1,17 @@ -package jabs.network.networks; - -import jabs.network.networks.stats.NetworkStats; -import jabs.network.networks.stats.lan.LAN100MNetworkStats; -import jabs.network.networks.stats.lan.SingleNodeType; +package jabs.network.networks.pbft; + +import jabs.consensus.algorithm.PBFT; +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.consensus.config.PBFTConsensusConfig; +import jabs.network.networks.Network; +import jabs.network.stats.lan.LAN100MNetworkStats; +import jabs.network.stats.lan.SingleNodeType; import jabs.network.node.nodes.Node; import jabs.network.node.nodes.pbft.PBFTNode; import jabs.simulator.randengine.RandomnessEngine; import jabs.simulator.Simulator; -public class PBFTLocalLANNetwork extends Network { +public class PBFTLocalLANNetwork extends Network { public PBFTLocalLANNetwork(RandomnessEngine randomnessEngine) { super(randomnessEngine, new LAN100MNetworkStats(randomnessEngine)); } @@ -22,14 +25,14 @@ public PBFTNode createNewPBFTNode(Simulator simulator, int nodeID, int numAllPar @Override - public void populateNetwork(Simulator simulator) { - populateNetwork(simulator, 40); + public void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig pbftConsensusConfig) { + populateNetwork(simulator, 40, pbftConsensusConfig); } @Override - public void populateNetwork(Simulator simulator, int numNodes) { + public void populateNetwork(Simulator simulator, int numNodes, ConsensusAlgorithmConfig pbftConsensusConfig) { for (int i = 0; i < numNodes; i++) { - this.addNode(createNewPBFTNode(simulator, i, numNodes)); + this.addNode(createNewPBFTNode(simulator, i, numNodes), SingleNodeType.LAN_NODE); } for (Node node:this.getAllNodes()) { @@ -38,10 +41,10 @@ public void populateNetwork(Simulator simulator, int numNodes) { } /** - * @param node + * @param node A PBFT node to add to the network */ @Override - public void addNode(Node node) { + public void addNode(PBFTNode node) { this.addNode(node, SingleNodeType.LAN_NODE); } diff --git a/src/main/java/jabs/network/networks/snow/SlushLocalLANNetwork.java b/src/main/java/jabs/network/networks/snow/SlushLocalLANNetwork.java new file mode 100644 index 00000000..0782f265 --- /dev/null +++ b/src/main/java/jabs/network/networks/snow/SlushLocalLANNetwork.java @@ -0,0 +1,47 @@ +package jabs.network.networks.snow; + +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.network.networks.Network; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SlushNode; +import jabs.network.stats.lan.LAN100MNetworkStats; +import jabs.network.stats.lan.SingleNodeType; +import jabs.simulator.Simulator; +import jabs.simulator.randengine.RandomnessEngine; + +public class SlushLocalLANNetwork extends Network { + public SlushLocalLANNetwork(RandomnessEngine randomnessEngine) { + super(randomnessEngine, new LAN100MNetworkStats(randomnessEngine)); + } + + public SlushNode createNewSlushNode(Simulator simulator, int nodeID, int numAllParticipants) { + return new SlushNode(simulator, this, nodeID, + this.sampleDownloadBandwidth(SingleNodeType.LAN_NODE), + this.sampleUploadBandwidth(SingleNodeType.LAN_NODE), + numAllParticipants); + } + + @Override + public void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig snowConsensusConfig) { + populateNetwork(simulator, 40, snowConsensusConfig); + } + + @Override + public void populateNetwork(Simulator simulator, int numNodes, ConsensusAlgorithmConfig SLushConsensusConfig) { + for (int i = 0; i < numNodes; i++) { + this.addNode(createNewSlushNode(simulator, i, numNodes), SingleNodeType.LAN_NODE); + } + + for (Node node : this.getAllNodes()) { + node.getP2pConnections().connectToNetwork(this); + } + } + + /** + * @param node A SLush node to add to the network + */ + @Override + public void addNode(SlushNode node) { + this.addNode(node, SingleNodeType.LAN_NODE); + } +} diff --git a/src/main/java/jabs/network/networks/snow/SnowLocalLANNetwork.java b/src/main/java/jabs/network/networks/snow/SnowLocalLANNetwork.java new file mode 100644 index 00000000..c5dbb8d1 --- /dev/null +++ b/src/main/java/jabs/network/networks/snow/SnowLocalLANNetwork.java @@ -0,0 +1,47 @@ +package jabs.network.networks.snow; + +import jabs.consensus.config.ConsensusAlgorithmConfig; +import jabs.network.networks.Network; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SnowNode; +import jabs.network.stats.lan.LAN100MNetworkStats; +import jabs.network.stats.lan.SingleNodeType; +import jabs.simulator.Simulator; +import jabs.simulator.randengine.RandomnessEngine; + +public class SnowLocalLANNetwork extends Network { + public SnowLocalLANNetwork(RandomnessEngine randomnessEngine) { + super(randomnessEngine, new LAN100MNetworkStats(randomnessEngine)); + } + + public SnowNode createNewSnowNode(Simulator simulator, int nodeID, int numAllParticipants) { + return new SnowNode(simulator, this, nodeID, + this.sampleDownloadBandwidth(SingleNodeType.LAN_NODE), + this.sampleUploadBandwidth(SingleNodeType.LAN_NODE), + numAllParticipants); + } + + @Override + public void populateNetwork(Simulator simulator, ConsensusAlgorithmConfig snowConsensusConfig) { + populateNetwork(simulator, 40, snowConsensusConfig); + } + + @Override + public void populateNetwork(Simulator simulator, int numNodes, ConsensusAlgorithmConfig snowConsensusConfig) { + for (int i = 0; i < numNodes; i++) { + this.addNode(createNewSnowNode(simulator, i, numNodes), SingleNodeType.LAN_NODE); + } + + for (Node node : this.getAllNodes()) { + node.getP2pConnections().connectToNetwork(this); + } + } + + /** + * @param node A Snow node to add to the network + */ + @Override + public void addNode(SnowNode node) { + this.addNode(node, SingleNodeType.LAN_NODE); + } +} diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java b/src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java deleted file mode 100644 index 96623e2d..00000000 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java +++ /dev/null @@ -1,45 +0,0 @@ -package jabs.network.networks.stats.sixglobalregions.ethereum; - -import jabs.network.networks.stats.MinerGlobalRegionDistribution; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; -import jabs.network.networks.stats.sixglobalregions.SixRegions; -import jabs.simulator.randengine.RandomnessEngine; - -public class EthereumProofOfWorkGlobalNetworkStats6Regions extends EthereumNodeGlobalNetworkStats6Regions - implements ProofOfWorkGlobalNetworkStats { - - public EthereumProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine randomnessEngine) { - super(randomnessEngine); - } - public static final double[] ETHEREUM_MINER_REGION_DISTRIBUTION_2020 = {0.0875, 0.0863, 0.0111, 0.8146, 0.0000, 0.0005}; - - /** - * Hash power probability distribution (CDF) in Ethereum Network - */ - public static final double[] ETHEREUM_HASH_POWER_DISTRIBUTION = {0.0035, 0.0035, 0.0070, 0.0140, 0.0279, 0.0558, 0.1117, 0.2234, 0.4468, 0.1065}; - - /** - * Hash power probability distribution (Hash Power Values) in Ethereum Network - */ - public static final long[] ETHEREUM_HASH_POWER_DISTRIBUTION_BIN = {548989, 241491, 31187, 15453, 3204, 578, 23, 1, 1, 1}; - public static final int ETHEREUM_NUM_MINERS_2020 = 56; - - - @Override - public SixRegions sampleMinerRegion() { - return SixRegions.sixRegionsValues[randomnessEngine.sampleFromDistribution(ETHEREUM_MINER_REGION_DISTRIBUTION_2020)]; - } - - @Override - public long sampleMinerHashPower() { - return randomnessEngine.sampleDistributionWithBins(ETHEREUM_HASH_POWER_DISTRIBUTION, ETHEREUM_HASH_POWER_DISTRIBUTION_BIN); - } - - /** - * @return - */ - @Override - public int totalNumberOfMiners() { - return ETHEREUM_NUM_MINERS_2020; - } -} diff --git a/src/main/java/jabs/network/node/NodeNetworkInterface.java b/src/main/java/jabs/network/node/NetworkInterface.java similarity index 96% rename from src/main/java/jabs/network/node/NodeNetworkInterface.java rename to src/main/java/jabs/network/node/NetworkInterface.java index 27005707..af26b423 100644 --- a/src/main/java/jabs/network/node/NodeNetworkInterface.java +++ b/src/main/java/jabs/network/node/NetworkInterface.java @@ -9,7 +9,7 @@ import jabs.simulator.randengine.RandomnessEngine; import jabs.simulator.Simulator; -public class NodeNetworkInterface { +public class NetworkInterface { /** * Node's total download bandwidth */ @@ -74,7 +74,7 @@ public boolean isNetworkInterfaceDown() { * @param downloadBandwidth The total down-link bandwidth of this node * @param uploadBandwidth The total up-link bandwidth of this node */ - public NodeNetworkInterface(Simulator simulator, Node node, long downloadBandwidth, long uploadBandwidth) { + public NetworkInterface(Simulator simulator, Node node, long downloadBandwidth, long uploadBandwidth) { this.simulator = simulator; this.downloadBandwidth = downloadBandwidth; this.uploadBandwidth = uploadBandwidth; diff --git a/src/main/java/jabs/network/node/nodes/MinerNode.java b/src/main/java/jabs/network/node/nodes/MinerNode.java index 7f102e68..6e14033e 100644 --- a/src/main/java/jabs/network/node/nodes/MinerNode.java +++ b/src/main/java/jabs/network/node/nodes/MinerNode.java @@ -7,5 +7,5 @@ public interface MinerNode { void stopMining(); - long getHashPower(); + double getHashPower(); } diff --git a/src/main/java/jabs/network/node/nodes/Node.java b/src/main/java/jabs/network/node/nodes/Node.java index 755fc820..ad2905fd 100644 --- a/src/main/java/jabs/network/node/nodes/Node.java +++ b/src/main/java/jabs/network/node/nodes/Node.java @@ -3,7 +3,7 @@ import jabs.network.message.Message; import jabs.network.message.Packet; import jabs.network.networks.Network; -import jabs.network.node.NodeNetworkInterface; +import jabs.network.node.NetworkInterface; import jabs.network.p2p.AbstractP2PConnections; import jabs.simulator.Simulator; @@ -17,7 +17,7 @@ public abstract class Node { * Node's network interface * This object handles all packet sending/receiving in network */ - protected final NodeNetworkInterface nodeNetworkInterface; + protected final NetworkInterface networkInterface; /** * Node's P2P connections @@ -49,7 +49,7 @@ public abstract class Node { public Node(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, AbstractP2PConnections p2pConnections) { this.nodeID = nodeID; this.network = network; - this.nodeNetworkInterface = new NodeNetworkInterface(simulator,this, downloadBandwidth, uploadBandwidth); + this.networkInterface = new NetworkInterface(simulator,this, downloadBandwidth, uploadBandwidth); this.p2pConnections = p2pConnections; this.p2pConnections.setNode(this); this.simulator = simulator; @@ -73,22 +73,22 @@ public Node(Simulator simulator, Network network, int nodeID, long downloadBandw * Simulates a crash fault. It stops packet delivery to and from the node. */ public void crash() { - nodeNetworkInterface.takeDown(); + networkInterface.takeDown(); } /** * Restores the node from a crash fault. New packets can be delivered to and from the node. */ public void restore() { - nodeNetworkInterface.bringUp(); + networkInterface.bringUp(); } /** * Returns node network interface * @return nodes network interface */ - public NodeNetworkInterface getNodeNetworkInterface() { - return this.nodeNetworkInterface; + public NetworkInterface getNodeNetworkInterface() { + return this.networkInterface; } /** @@ -105,11 +105,28 @@ public AbstractP2PConnections getP2pConnections() { */ public void broadcastMessage(Message message) { for (Node neighbor:this.p2pConnections.getNeighbors()) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, message) ); } } + /** + * Forces the node to respond a message to the inquirer + * @param message The message to be responded + */ + public void respondQuery(Message message, Node destination) { + this.networkInterface.addToUpLinkQueue( + new Packet(this, destination, message)); + } + + /** + * Forces the node to query from its sampled neighbors + * @param message The message to be queried + */ + public void query(Message message, Node destination) { + this.networkInterface.addToUpLinkQueue( + new Packet(this, destination, message)); + } /** * Returns node's simulator @@ -126,5 +143,13 @@ public Simulator getSimulator() { public Network getNetwork() { return this.network; } + + /** + * getter method for node ID + * @return node's ID + */ + public int getNodeID() { + return this.nodeID; + } } diff --git a/src/main/java/jabs/network/node/nodes/PeerBlockchainNode.java b/src/main/java/jabs/network/node/nodes/PeerBlockchainNode.java index f2e68bb5..60c63c2c 100644 --- a/src/main/java/jabs/network/node/nodes/PeerBlockchainNode.java +++ b/src/main/java/jabs/network/node/nodes/PeerBlockchainNode.java @@ -19,9 +19,11 @@ public abstract class PeerBlockchainNode, T exten protected final HashMap alreadySeenTxs = new HashMap<>(); protected final HashMap alreadySeenBlocks = new HashMap<>(); protected final HashSet alreadySeenVotes = new HashSet<>(); + protected final HashSet alreadySeenQueries = new HashSet<>(); protected final LocalBlockTree localBlockTree; - public PeerBlockchainNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, AbstractP2PConnections routingTable, + public PeerBlockchainNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, AbstractP2PConnections routingTable, AbstractChainBasedConsensus consensusAlgorithm) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, routingTable, consensusAlgorithm); this.consensusAlgorithm = consensusAlgorithm; @@ -45,7 +47,7 @@ public void processIncomingPacket(Packet packet) { this.processNewBlock(newBlock); } } else { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(block.getParent().getHash()) ) @@ -64,7 +66,7 @@ public void processIncomingPacket(Packet packet) { if (hash.getData() instanceof Block){ if (!alreadySeenTxs.containsKey(hash)) { alreadySeenTxs.put(hash, null); - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(hash) ) @@ -73,7 +75,7 @@ public void processIncomingPacket(Packet packet) { } else if (hash.getData() instanceof Tx) { if (!alreadySeenBlocks.containsKey(hash)) { alreadySeenBlocks.put(hash, null); - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(hash) ) @@ -86,7 +88,7 @@ public void processIncomingPacket(Packet packet) { if (alreadySeenBlocks.containsKey(hash)) { B block = alreadySeenBlocks.get(hash); if (block != null) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new DataMessage(block) ) @@ -97,7 +99,7 @@ public void processIncomingPacket(Packet packet) { if (alreadySeenTxs.containsKey(hash)) { T tx = alreadySeenTxs.get(hash); if (tx != null) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new DataMessage(tx) ) @@ -111,11 +113,18 @@ public void processIncomingPacket(Packet packet) { alreadySeenVotes.add(vote); this.processNewVote(vote); } + }else if (message instanceof QueryMessage) { + Query query = ((QueryMessage) message).getQuery(); + if (!alreadySeenQueries.contains(query)) { + alreadySeenQueries.add(query); + this.processNewQuery(query); + } } } protected abstract void processNewBlock(B block); protected abstract void processNewVote(Vote vote); + protected abstract void processNewQuery(Query query); public AbstractChainBasedConsensus getConsensusAlgorithm() { return this.consensusAlgorithm; diff --git a/src/main/java/jabs/network/node/nodes/PeerDLTNode.java b/src/main/java/jabs/network/node/nodes/PeerDLTNode.java index ecd2b5dc..17ce907f 100644 --- a/src/main/java/jabs/network/node/nodes/PeerDLTNode.java +++ b/src/main/java/jabs/network/node/nodes/PeerDLTNode.java @@ -1,9 +1,7 @@ package jabs.network.node.nodes; -import jabs.consensus.algorithm.AbstractChainBasedConsensus; import jabs.consensus.algorithm.AbstractDAGBasedConsensus; import jabs.consensus.blockchain.LocalBlockDAG; -import jabs.consensus.blockchain.LocalBlockTree; import jabs.ledgerdata.*; import jabs.network.message.*; import jabs.network.networks.Network; @@ -21,6 +19,7 @@ public abstract class PeerDLTNode, T extends Tx> extends N protected final HashMap alreadySeenTxs = new HashMap<>(); protected final HashMap alreadySeenBlocks = new HashMap<>(); protected final HashSet alreadySeenVotes = new HashSet<>(); + protected final HashSet alreadySeenQueries = new HashSet<>(); protected final LocalBlockDAG localBlockTree; public PeerDLTNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, AbstractP2PConnections routingTable, @@ -49,7 +48,7 @@ public void processIncomingPacket(Packet packet) { } } else { for (B parent: block.getParents()){ - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(parent.getHash()) ) @@ -69,7 +68,7 @@ public void processIncomingPacket(Packet packet) { if (hash.getData() instanceof Block){ if (!alreadySeenTxs.containsKey(hash)) { alreadySeenTxs.put(hash, null); - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(hash) ) @@ -78,7 +77,7 @@ public void processIncomingPacket(Packet packet) { } else if (hash.getData() instanceof Tx) { if (!alreadySeenBlocks.containsKey(hash)) { alreadySeenBlocks.put(hash, null); - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new RequestDataMessage(hash) ) @@ -91,7 +90,7 @@ public void processIncomingPacket(Packet packet) { if (alreadySeenBlocks.containsKey(hash)) { B block = alreadySeenBlocks.get(hash); if (block != null) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new DataMessage(block) ) @@ -102,7 +101,7 @@ public void processIncomingPacket(Packet packet) { if (alreadySeenTxs.containsKey(hash)) { T tx = alreadySeenTxs.get(hash); if (tx != null) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, packet.getFrom(), new DataMessage(tx) ) @@ -116,13 +115,19 @@ public void processIncomingPacket(Packet packet) { alreadySeenVotes.add(vote); this.processNewVote(vote); } + }else if (message instanceof QueryMessage) { + Query query = ((QueryMessage) message).getQuery(); + if (!alreadySeenQueries.contains(query)) { + alreadySeenQueries.add(query); + this.processNewQuery(query); + } } } protected abstract void processNewTx(T tx, Node from); protected abstract void processNewBlock(B block); protected abstract void processNewVote(Vote vote); - + protected abstract void processNewQuery(Query query); public AbstractDAGBasedConsensus getConsensusAlgorithm() { return this.consensusAlgorithm; } diff --git a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.java b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.java index 322f8e46..fb133bfa 100644 --- a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.java +++ b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNode.java @@ -1,8 +1,10 @@ package jabs.network.node.nodes.bitcoin; import jabs.consensus.algorithm.AbstractChainBasedConsensus; -import jabs.ledgerdata.bitcoin.BitcoinBlock; +import jabs.consensus.config.NakamotoConsensusConfig; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; import jabs.ledgerdata.bitcoin.BitcoinBlockWithTx; +import jabs.ledgerdata.bitcoin.BitcoinCompactBlock; import jabs.ledgerdata.bitcoin.BitcoinTx; import jabs.network.message.DataMessage; import jabs.network.message.Packet; @@ -16,28 +18,29 @@ public class BitcoinMinerNode extends BitcoinNode implements MinerNode { protected Set memPool = new HashSet<>(); - protected final long hashPower; + protected final double hashPower; protected Simulator.ScheduledEvent miningProcess; static final long MAXIMUM_BLOCK_SIZE = 1800000; public BitcoinMinerNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, - long uploadBandwidth, BitcoinBlock genesisBlock, long hashPower, - AbstractChainBasedConsensus consensusAlgorithm) { - super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock, consensusAlgorithm); + long uploadBandwidth, double hashPower, + AbstractChainBasedConsensus consensusAlgorithm) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, consensusAlgorithm); this.hashPower = hashPower; } public BitcoinMinerNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, - long uploadBandwidth, BitcoinBlock genesisBlock, long hashPower) { - super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock); + long uploadBandwidth, double hashPower, BitcoinBlockWithoutTx genesisBlock, + NakamotoConsensusConfig nakamotoConsensusConfig) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock, nakamotoConsensusConfig); this.hashPower = hashPower; } @Override public void generateNewBlock() { - BitcoinBlock canonicalChainHead = this.consensusAlgorithm.getCanonicalChainHead(); + BitcoinBlockWithoutTx canonicalChainHead = this.consensusAlgorithm.getCanonicalChainHead(); Set blockTxs = new HashSet<>(); long totalTxSize = 0; @@ -49,14 +52,17 @@ public void generateNewBlock() { totalTxSize += bitcoinTx.getSize(); } + double weight = this.network.getRandom().sampleExponentialDistribution(1); BitcoinBlockWithTx bitcoinBlockWithTx = new BitcoinBlockWithTx( - canonicalChainHead.getHeight()+1, simulator.getCurrentTime(), + canonicalChainHead.getHeight()+1, simulator.getSimulationTime(), this.getConsensusAlgorithm().getCanonicalChainHead(), this, blockTxs, - canonicalChainHead.getDifficulty()); // TODO: Difficulty adjustment? + canonicalChainHead.getDifficulty(), weight); // TODO: Difficulty adjustment? + + BitcoinCompactBlock bitcoinCompactBlock = new BitcoinCompactBlock(bitcoinBlockWithTx); this.processIncomingPacket( new Packet( - this, this, new DataMessage(bitcoinBlockWithTx) + this, this, new DataMessage(bitcoinCompactBlock) ) ); } @@ -81,7 +87,7 @@ public void stopMining() { } @Override - public long getHashPower() { + public double getHashPower() { return this.hashPower; } } diff --git a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.java b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.java index c76e3c9c..aff44dcb 100644 --- a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.java +++ b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinMinerNodeWithoutTx.java @@ -1,11 +1,14 @@ package jabs.network.node.nodes.bitcoin; import jabs.consensus.algorithm.AbstractChainBasedConsensus; -import jabs.ledgerdata.bitcoin.BitcoinBlock; +import jabs.consensus.config.ChainBasedConsensusConfig; +import jabs.consensus.config.NakamotoConsensusConfig; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.ledgerdata.bitcoin.BitcoinCompactBlockWithoutTx; import jabs.ledgerdata.bitcoin.BitcoinTx; import jabs.network.message.DataMessage; import jabs.network.message.Packet; -import jabs.network.networks.BlockFactory; +import jabs.ledgerdata.BlockFactory; import jabs.network.networks.Network; import jabs.network.node.nodes.MinerNode; import jabs.simulator.Simulator; @@ -13,34 +16,39 @@ public class BitcoinMinerNodeWithoutTx extends BitcoinMinerNode implements MinerNode { public BitcoinMinerNodeWithoutTx(Simulator simulator, Network network, int nodeID, long downloadBandwidth, - long uploadBandwidth, long hashPower, BitcoinBlock genesisBlock, - AbstractChainBasedConsensus consensusAlgorithm) { - super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock, hashPower, + long uploadBandwidth, double hashPower, + AbstractChainBasedConsensus consensusAlgorithm) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, hashPower, consensusAlgorithm); } public BitcoinMinerNodeWithoutTx(Simulator simulator, Network network, int nodeID, long downloadBandwidth, - long uploadBandwidth, BitcoinBlock genesisBlock, long hashPower) { - super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock, hashPower); + long uploadBandwidth, double hashPower, BitcoinBlockWithoutTx genesisBlock, + ChainBasedConsensusConfig chainBasedConsensusConfig) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, hashPower, genesisBlock, + (NakamotoConsensusConfig) chainBasedConsensusConfig); } @Override public void generateNewBlock() { - BitcoinBlock canonicalChainHead = this.consensusAlgorithm.getCanonicalChainHead(); + BitcoinBlockWithoutTx canonicalChainHead = this.consensusAlgorithm.getCanonicalChainHead(); - BitcoinBlock bitcoinBlock = BlockFactory.sampleBitcoinBlock(this.simulator, + double weight = this.network.getRandom().sampleExponentialDistribution(1); + BitcoinBlockWithoutTx bitcoinBlockWithoutTX = BlockFactory.sampleBitcoinBlock(this.simulator, this.getNetwork().getRandom(), this, canonicalChainHead, - canonicalChainHead.getDifficulty()); // TODO: Difficulty adjustment? + canonicalChainHead.getDifficulty(), weight); // TODO: Difficulty adjustment? + + BitcoinCompactBlockWithoutTx compactBlock = new BitcoinCompactBlockWithoutTx(bitcoinBlockWithoutTX); this.processIncomingPacket( new Packet( - this, this, new DataMessage(bitcoinBlock) + this, this, new DataMessage(compactBlock) ) ); } @Override - public long getHashPower() { + public double getHashPower() { return this.hashPower; } } diff --git a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinNode.java b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinNode.java index b5a0b54b..ee26fc67 100644 --- a/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinNode.java +++ b/src/main/java/jabs/network/node/nodes/bitcoin/BitcoinNode.java @@ -3,29 +3,29 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.AbstractChainBasedConsensus; import jabs.consensus.algorithm.NakamotoConsensus; +import jabs.consensus.config.NakamotoConsensusConfig; import jabs.ledgerdata.Vote; -import jabs.ledgerdata.bitcoin.BitcoinBlock; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; import jabs.ledgerdata.bitcoin.BitcoinTx; import jabs.network.message.InvMessage; import jabs.network.message.Packet; import jabs.network.networks.Network; -import jabs.network.networks.TransactionFactory; +import jabs.ledgerdata.TransactionFactory; import jabs.network.node.nodes.PeerBlockchainNode; import jabs.network.node.nodes.Node; import jabs.network.p2p.BitcoinCoreP2P; import jabs.simulator.Simulator; -public class BitcoinNode extends PeerBlockchainNode { +public class BitcoinNode extends PeerBlockchainNode { public BitcoinNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, - BitcoinBlock genesisBlock) { + BitcoinBlockWithoutTx genesisBlock, NakamotoConsensusConfig nakamotoConsensusConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, new BitcoinCoreP2P(), - new NakamotoConsensus<>(new LocalBlockTree<>(genesisBlock))); + new NakamotoConsensus<>(new LocalBlockTree<>(genesisBlock), nakamotoConsensusConfig)); } public BitcoinNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, - BitcoinBlock genesisBlock, - AbstractChainBasedConsensus consensusAlgorithm) { + AbstractChainBasedConsensus consensusAlgorithm) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, new BitcoinCoreP2P(), consensusAlgorithm); } @@ -36,7 +36,7 @@ protected void processNewTx(BitcoinTx bitcoinTx, Node from) { } @Override - protected void processNewBlock(BitcoinBlock bitcoinBlock) { + protected void processNewBlock(BitcoinBlockWithoutTx bitcoinBlock) { this.consensusAlgorithm.newIncomingBlock(bitcoinBlock); this.broadcastBlockInvMessage(bitcoinBlock); } @@ -46,9 +46,14 @@ protected void processNewVote(Vote vote) { } + @Override + protected void processNewQuery(jabs.ledgerdata.Query query) { + + } + protected void broadcastTxInvMessage(BitcoinTx tx) { for (Node neighbor:this.p2pConnections.getNeighbors()) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new InvMessage(tx.getHash().getSize(), tx.getHash()) ) @@ -56,9 +61,9 @@ protected void broadcastTxInvMessage(BitcoinTx tx) { } } - protected void broadcastBlockInvMessage(BitcoinBlock block) { + protected void broadcastBlockInvMessage(BitcoinBlockWithoutTx block) { for (Node neighbor:this.p2pConnections.getNeighbors()) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new InvMessage(block.getHash().getSize(), block.getHash()) ) diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperMiner.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperMiner.java index 3a9b1a12..2d44e4fe 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperMiner.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperMiner.java @@ -2,12 +2,16 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.CasperFFG; +import jabs.consensus.config.CasperFFGConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.network.networks.Network; import jabs.simulator.Simulator; public class EthereumCasperMiner extends EthereumMinerNode { - public EthereumCasperMiner(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, long hashPower, int checkpointSpace, int numOfStakeholders) { + public EthereumCasperMiner(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, double hashPower, EthereumBlock genesisBlock, + CasperFFGConfig casperFFGConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, hashPower, - new CasperFFG<>(new LocalBlockTree<>(ETHEREUM_GENESIS_BLOCK), checkpointSpace, numOfStakeholders)); + new CasperFFG<>(new LocalBlockTree<>(genesisBlock), casperFFGConfig)); } } diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperNode.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperNode.java index 7c756810..1fcd6431 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperNode.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumCasperNode.java @@ -2,12 +2,15 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.CasperFFG; +import jabs.consensus.config.CasperFFGConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.network.networks.Network; import jabs.simulator.Simulator; public class EthereumCasperNode extends EthereumNode { - public EthereumCasperNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, int checkpointSpace, int numOfStakeholders) { + public EthereumCasperNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, EthereumBlock genesisBlock, CasperFFGConfig casperFFGConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, - new CasperFFG<>(new LocalBlockTree<>(ETHEREUM_GENESIS_BLOCK), checkpointSpace, numOfStakeholders)); + new CasperFFG<>(new LocalBlockTree<>(genesisBlock), casperFFGConfig)); } } diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.java index 31cf6106..8c8d4ef7 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperMiner.java @@ -2,12 +2,16 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.DAGsper; +import jabs.consensus.config.DAGsperConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.network.networks.Network; import jabs.simulator.Simulator; public class EthereumDAGsperMiner extends EthereumMinerNode { - public EthereumDAGsperMiner(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, long hashPower, int checkpointSpace, int numOfStakeholders) { + public EthereumDAGsperMiner(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, double hashPower, EthereumBlock genesisBlock, + DAGsperConfig daGsperConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, hashPower, - new DAGsper<>(new LocalBlockTree<>(ETHEREUM_GENESIS_BLOCK), checkpointSpace, numOfStakeholders)); + new DAGsper<>(new LocalBlockTree<>(genesisBlock), daGsperConfig)); } } diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.java index 18aef2ca..0de85484 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumDAGsperNode.java @@ -2,12 +2,15 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.DAGsper; +import jabs.consensus.config.DAGsperConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.network.networks.Network; import jabs.simulator.Simulator; public class EthereumDAGsperNode extends EthereumNode { - public EthereumDAGsperNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, int checkpointSpace, int numOfStakeholders) { + public EthereumDAGsperNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, EthereumBlock genesisBlock, DAGsperConfig daGsperConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, - new DAGsper<>(new LocalBlockTree<>(ETHEREUM_GENESIS_BLOCK), checkpointSpace, numOfStakeholders)); + new DAGsper<>(new LocalBlockTree<>(genesisBlock), daGsperConfig)); } } diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumMinerNode.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumMinerNode.java index 83f79575..d31162c7 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumMinerNode.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumMinerNode.java @@ -1,6 +1,7 @@ package jabs.network.node.nodes.ethereum; import jabs.consensus.algorithm.AbstractChainBasedConsensus; +import jabs.consensus.config.GhostProtocolConfig; import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.ledgerdata.ethereum.EthereumBlockWithTx; import jabs.ledgerdata.ethereum.EthereumTx; @@ -15,21 +16,24 @@ import java.util.HashSet; import java.util.Set; -import static jabs.network.networks.BlockFactory.ETHEREUM_MIN_DIFFICULTY; +import static jabs.ledgerdata.BlockFactory.ETHEREUM_MIN_DIFFICULTY; public class EthereumMinerNode extends EthereumNode implements MinerNode { protected Set memPool = new HashSet<>(); protected Set alreadyUncledBlocks = new HashSet<>(); - protected final long hashPower; + protected final double hashPower; protected Simulator.ScheduledEvent miningProcess; static final long MAXIMUM_BLOCK_GAS = 12500000; - public EthereumMinerNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, long hashPower) { - super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth); + public EthereumMinerNode(Simulator simulator, Network network, int nodeID, + long downloadBandwidth, long uploadBandwidth, double hashPower, EthereumBlock genesisBlock, + GhostProtocolConfig ghostProtocolConfig) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, genesisBlock, ghostProtocolConfig); this.hashPower = hashPower; } - public EthereumMinerNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, long hashPower, + public EthereumMinerNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, + long uploadBandwidth, double hashPower, AbstractChainBasedConsensus consensusAlgorithm) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, consensusAlgorithm); this.hashPower = hashPower; @@ -52,9 +56,11 @@ public void generateNewBlock() { totalGas += ethereumTx.getGas(); } + double weight = this.network.getRandom().sampleExponentialDistribution(1); EthereumBlockWithTx ethereumBlockWithTx = new EthereumBlockWithTx( - canonicalChainHead.getHeight()+1, simulator.getCurrentTime(), this, - this.getConsensusAlgorithm().getCanonicalChainHead(), tipBlocks, blockTxs, ETHEREUM_MIN_DIFFICULTY); // TODO: Difficulty? + canonicalChainHead.getHeight()+1, simulator.getSimulationTime(), this, + this.getConsensusAlgorithm().getCanonicalChainHead(), tipBlocks, blockTxs, ETHEREUM_MIN_DIFFICULTY, + weight); // TODO: Difficulty? this.processIncomingPacket( new Packet( @@ -81,7 +87,7 @@ public void stopMining() { simulator.removeEvent(this.miningProcess); } - public long getHashPower() { + public double getHashPower() { return this.hashPower; } diff --git a/src/main/java/jabs/network/node/nodes/ethereum/EthereumNode.java b/src/main/java/jabs/network/node/nodes/ethereum/EthereumNode.java index a67deeac..66712b4e 100644 --- a/src/main/java/jabs/network/node/nodes/ethereum/EthereumNode.java +++ b/src/main/java/jabs/network/node/nodes/ethereum/EthereumNode.java @@ -4,6 +4,7 @@ import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.GhostProtocol; import jabs.consensus.algorithm.VotingBasedConsensus; +import jabs.consensus.config.GhostProtocolConfig; import jabs.ledgerdata.Vote; import jabs.ledgerdata.ethereum.EthereumBlock; import jabs.ledgerdata.ethereum.EthereumTx; @@ -12,26 +13,20 @@ import jabs.network.message.Packet; import jabs.network.message.VoteMessage; import jabs.network.networks.Network; -import jabs.network.networks.TransactionFactory; +import jabs.ledgerdata.TransactionFactory; import jabs.network.node.nodes.PeerBlockchainNode; import jabs.network.node.nodes.Node; import jabs.network.p2p.EthereumGethP2P; import jabs.simulator.Simulator; -import java.util.Collections; - -import static jabs.network.networks.BlockFactory.ETHEREUM_MIN_DIFFICULTY; import static org.apache.commons.math3.util.FastMath.sqrt; public class EthereumNode extends PeerBlockchainNode { - public static final EthereumBlock ETHEREUM_GENESIS_BLOCK = - new EthereumBlock(0, 0, 0, null, null, Collections.emptySet(), - ETHEREUM_MIN_DIFFICULTY); - - public EthereumNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth) { + public EthereumNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, + EthereumBlock genesisBlock, GhostProtocolConfig ghostProtocolConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, new EthereumGethP2P(), - new GhostProtocol<>(new LocalBlockTree<>(ETHEREUM_GENESIS_BLOCK))); + new GhostProtocol<>(new LocalBlockTree<>(genesisBlock), ghostProtocolConfig)); } public EthereumNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, @@ -57,7 +52,7 @@ protected void processNewVote(Vote vote) { if (this.consensusAlgorithm instanceof VotingBasedConsensus) { ((VotingBasedConsensus) this.consensusAlgorithm).newIncomingVote(vote); for (Node neighbor : this.p2pConnections.getNeighbors()) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new VoteMessage(vote) ) @@ -66,6 +61,11 @@ protected void processNewVote(Vote vote) { } } + @Override + protected void processNewQuery(jabs.ledgerdata.Query query) { + + } + @Override public void generateNewTransaction() { broadcastTransaction(TransactionFactory.sampleEthereumTransaction(network.getRandom())); @@ -75,13 +75,13 @@ protected void broadcastNewBlockAndBlockHashes(EthereumBlock ethereumBlock){ for (int i = 0; i < this.p2pConnections.getNeighbors().size(); i++) { Node neighbor = this.p2pConnections.getNeighbors().get(i); if (i < sqrt(this.p2pConnections.getNeighbors().size())){ - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new DataMessage(ethereumBlock) ) ); } else { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new InvMessage(ethereumBlock.getHash().getSize(), ethereumBlock.getHash()) ) @@ -93,7 +93,7 @@ protected void broadcastNewBlockAndBlockHashes(EthereumBlock ethereumBlock){ protected void broadcastTransaction(EthereumTx tx, Node excludeNeighbor) { for (Node neighbor:this.p2pConnections.getNeighbors()) { if (neighbor != excludeNeighbor){ - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new DataMessage(tx) ) diff --git a/src/main/java/jabs/network/node/nodes/iota/IOTANode.java b/src/main/java/jabs/network/node/nodes/iota/IOTANode.java index 858cb621..40b76dd8 100644 --- a/src/main/java/jabs/network/node/nodes/iota/IOTANode.java +++ b/src/main/java/jabs/network/node/nodes/iota/IOTANode.java @@ -1,8 +1,9 @@ package jabs.network.node.nodes.iota; -import jabs.consensus.algorithm.AbstractDAGBasedConsensus; import jabs.consensus.algorithm.TangleIOTA; import jabs.consensus.blockchain.LocalBlockDAG; +import jabs.consensus.config.TangleIOTAConsensusConfig; +import jabs.ledgerdata.Query; import jabs.ledgerdata.Vote; import jabs.ledgerdata.tangle.TangleTx; import jabs.ledgerdata.tangle.TangleBlock; @@ -14,18 +15,26 @@ import jabs.network.node.nodes.PeerDLTNode; import jabs.network.p2p.AbstractP2PConnections; import jabs.simulator.Simulator; -import jabs.simulator.event.BlockMiningProcess; public class IOTANode extends PeerDLTNode implements MinerNode { public static final TangleBlock TANGLE_GENESIS_BLOCK = - new TangleBlock(0, 0, 0, null, null, 32, new TangleTx(1650, 32),1); + new TangleBlock(0, 0, 0, null, null, 32, new TangleTx(1650, 32),1, 0); protected Simulator.ScheduledEvent blockGenerationProcess; + /** + * @param simulator + * @param network + * @param nodeID + * @param downloadBandwidth + * @param uploadBandwidth + * @param routingTable + * @param tangleIOTAConsensusConfig + */ public IOTANode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, - AbstractP2PConnections routingTable) { + AbstractP2PConnections routingTable, TangleIOTAConsensusConfig tangleIOTAConsensusConfig) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, routingTable, - new TangleIOTA(new LocalBlockDAG<>(TANGLE_GENESIS_BLOCK))); + new TangleIOTA(new LocalBlockDAG<>(TANGLE_GENESIS_BLOCK), tangleIOTAConsensusConfig)); } /** @@ -56,7 +65,7 @@ protected void processNewBlock(TangleBlock block) { protected void broadcastBlockInvMessage(TangleBlock block) { for (Node neighbor:this.p2pConnections.getNeighbors()) { - this.nodeNetworkInterface.addToUpLinkQueue( + this.networkInterface.addToUpLinkQueue( new Packet(this, neighbor, new InvMessage(block.getHash().getSize(), block.getHash()) ) @@ -88,6 +97,11 @@ protected void processNewVote(Vote vote) { } + @Override + protected void processNewQuery(Query query) { + + } + /** * */ @@ -100,7 +114,7 @@ public void generateNewBlock() { * @return */ @Override - public long getHashPower() { + public double getHashPower() { return 0; } } diff --git a/src/main/java/jabs/network/node/nodes/pbft/PBFTNode.java b/src/main/java/jabs/network/node/nodes/pbft/PBFTNode.java index ef8a3228..4e54312e 100644 --- a/src/main/java/jabs/network/node/nodes/pbft/PBFTNode.java +++ b/src/main/java/jabs/network/node/nodes/pbft/PBFTNode.java @@ -1,5 +1,4 @@ package jabs.network.node.nodes.pbft; - import jabs.consensus.blockchain.LocalBlockTree; import jabs.consensus.algorithm.PBFT; import jabs.ledgerdata.Vote; @@ -18,7 +17,9 @@ public class PBFTNode extends PeerBlockchainNode { public PBFTNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, int numAllParticipants) { super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, new PBFTP2P(), - new PBFT<>(simulator, numAllParticipants, new LocalBlockTree<>(PBFT_GENESIS_BLOCK))); + new PBFT<>(new LocalBlockTree<>(PBFT_GENESIS_BLOCK), numAllParticipants) + ); + this.consensusAlgorithm.setNode(this); } @Override @@ -36,6 +37,11 @@ protected void processNewVote(Vote vote) { ((PBFT) this.consensusAlgorithm).newIncomingVote(vote); } + @Override + protected void processNewQuery(jabs.ledgerdata.Query query) { + + } + @Override public void generateNewTransaction() { // nothing for now diff --git a/src/main/java/jabs/network/node/nodes/snow/SlushNode.java b/src/main/java/jabs/network/node/nodes/snow/SlushNode.java new file mode 100644 index 00000000..f8b84936 --- /dev/null +++ b/src/main/java/jabs/network/node/nodes/snow/SlushNode.java @@ -0,0 +1,51 @@ +package jabs.network.node.nodes.snow; + +import jabs.consensus.algorithm.Slush; +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.Query; +import jabs.ledgerdata.Vote; +import jabs.ledgerdata.snow.SnowBlock; +import jabs.ledgerdata.snow.SnowTx; +import jabs.network.networks.Network; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.PeerBlockchainNode; +import jabs.network.p2p.SnowP2P; +import jabs.simulator.Simulator; + +public class SlushNode extends PeerBlockchainNode { + public static final SnowBlock SNOW_GENESIS_BLOCK = new SnowBlock(0, 0, 0, null, null); + public SnowBlock currentBlock; + + public SlushNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, + int numAllParticipants) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, + new SnowP2P(), + new Slush<>(new LocalBlockTree<>(SNOW_GENESIS_BLOCK), numAllParticipants)); + this.consensusAlgorithm.setNode(this); + } + + @Override + protected void processNewTx(SnowTx tx, Node from) { + // nothing for now + } + + @Override + protected void processNewBlock(SnowBlock block) { + // nothing for now + } + + @Override + protected void processNewVote(Vote vote) { + + } + + @Override + protected void processNewQuery(Query query) { + ((Slush) this.consensusAlgorithm).newIncomingQuery(query); + } + + @Override + public void generateNewTransaction() { + // nothing for now + } +} diff --git a/src/main/java/jabs/network/node/nodes/snow/SnowNode.java b/src/main/java/jabs/network/node/nodes/snow/SnowNode.java new file mode 100644 index 00000000..0899904d --- /dev/null +++ b/src/main/java/jabs/network/node/nodes/snow/SnowNode.java @@ -0,0 +1,51 @@ +package jabs.network.node.nodes.snow; + +import jabs.consensus.algorithm.Snow; +import jabs.consensus.blockchain.LocalBlockTree; +import jabs.ledgerdata.Query; +import jabs.ledgerdata.Vote; +import jabs.ledgerdata.snow.SnowBlock; +import jabs.ledgerdata.snow.SnowTx; +import jabs.network.networks.Network; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.PeerBlockchainNode; +import jabs.network.p2p.SnowP2P; +import jabs.simulator.Simulator; + +public class SnowNode extends PeerBlockchainNode { + public static final SnowBlock SNOW_GENESIS_BLOCK = new SnowBlock(0, 0, 0, null, null); + public SnowBlock currentBlock; + + public SnowNode(Simulator simulator, Network network, int nodeID, long downloadBandwidth, long uploadBandwidth, + int numAllParticipants) { + super(simulator, network, nodeID, downloadBandwidth, uploadBandwidth, + new SnowP2P(), + new Snow<>(new LocalBlockTree<>(SNOW_GENESIS_BLOCK), numAllParticipants)); + this.consensusAlgorithm.setNode(this); + } + + @Override + protected void processNewTx(SnowTx tx, Node from) { + // nothing for now + } + + @Override + protected void processNewBlock(SnowBlock block) { + // nothing for now + } + + @Override + protected void processNewVote(Vote vote) { + + } + + @Override + protected void processNewQuery(Query query) { + ((Snow) this.consensusAlgorithm).newIncomingQuery(query); + } + + @Override + public void generateNewTransaction() { + // nothing for now + } +} diff --git a/src/main/java/jabs/network/p2p/AbstractBlockchainP2PConnections.java b/src/main/java/jabs/network/p2p/AbstractBlockchainP2PConnections.java index c5e84520..f7fc46c8 100644 --- a/src/main/java/jabs/network/p2p/AbstractBlockchainP2PConnections.java +++ b/src/main/java/jabs/network/p2p/AbstractBlockchainP2PConnections.java @@ -43,7 +43,7 @@ public void connectToNetwork(Network network){ public boolean requestConnection(Node remoteNode) { if (this.inbound.size() <= (this.maxConnections - this.numOutboundConnections)) { this.inbound.add(remoteNode); - this.neighbors.add(remoteNode); + this.peerNeighbors.add(remoteNode); return true; } else { return false; @@ -52,6 +52,6 @@ public boolean requestConnection(Node remoteNode) { public void addOutbound(Node remoteNode) { this.outbound.add(remoteNode); - this.neighbors.add(remoteNode); + this.peerNeighbors.add(remoteNode); } } diff --git a/src/main/java/jabs/network/p2p/AbstractP2PConnections.java b/src/main/java/jabs/network/p2p/AbstractP2PConnections.java index c980157a..5f502d30 100644 --- a/src/main/java/jabs/network/p2p/AbstractP2PConnections.java +++ b/src/main/java/jabs/network/p2p/AbstractP2PConnections.java @@ -9,7 +9,7 @@ // TODO recheck if it is a better method for implementing Abstract Routing Table public abstract class AbstractP2PConnections { protected Node node; - protected final List neighbors = new ArrayList<>(); + protected final List peerNeighbors = new ArrayList<>(); protected Node getNode() { return node; @@ -18,7 +18,7 @@ public void setNode(Node node) { this.node = node; } public List getNeighbors(){ - return this.neighbors; + return this.peerNeighbors; } public abstract void connectToNetwork(Network network); public abstract boolean requestConnection(Node node); diff --git a/src/main/java/jabs/network/p2p/PBFTP2P.java b/src/main/java/jabs/network/p2p/PBFTP2P.java index 37e9a99f..f5626be3 100644 --- a/src/main/java/jabs/network/p2p/PBFTP2P.java +++ b/src/main/java/jabs/network/p2p/PBFTP2P.java @@ -6,7 +6,7 @@ public class PBFTP2P extends AbstractP2PConnections { @Override public void connectToNetwork(Network network) { - this.neighbors.addAll(network.getAllNodes()); + this.peerNeighbors.addAll(network.getAllNodes()); node.getNodeNetworkInterface().connectNetwork(network, network.getRandom()); } diff --git a/src/main/java/jabs/network/p2p/SnowP2P.java b/src/main/java/jabs/network/p2p/SnowP2P.java new file mode 100644 index 00000000..5e4e925d --- /dev/null +++ b/src/main/java/jabs/network/p2p/SnowP2P.java @@ -0,0 +1,16 @@ +package jabs.network.p2p; + +import jabs.network.networks.Network; +import jabs.network.node.nodes.Node; + +public class SnowP2P extends AbstractP2PConnections{ + public void connectToNetwork(Network network) { + this.peerNeighbors.addAll(network.getAllNodes()); + node.getNodeNetworkInterface().connectNetwork(network, network.getRandom()); + } + + @Override + public boolean requestConnection(Node node) { + return false; + } +} diff --git a/src/main/java/jabs/network/networks/stats/MinerGlobalRegionDistribution.java b/src/main/java/jabs/network/stats/MinerGlobalRegionDistribution.java similarity index 56% rename from src/main/java/jabs/network/networks/stats/MinerGlobalRegionDistribution.java rename to src/main/java/jabs/network/stats/MinerGlobalRegionDistribution.java index 5a5a88a1..2c9ba54b 100644 --- a/src/main/java/jabs/network/networks/stats/MinerGlobalRegionDistribution.java +++ b/src/main/java/jabs/network/stats/MinerGlobalRegionDistribution.java @@ -1,9 +1,11 @@ -package jabs.network.networks.stats; +package jabs.network.stats; public interface MinerGlobalRegionDistribution> { R sampleMinerRegion(); - long sampleMinerHashPower(); + double sampleMinerHashPower(); + + double shareOfMinersToAllNodes(); int totalNumberOfMiners(); } diff --git a/src/main/java/jabs/network/networks/stats/NetworkStats.java b/src/main/java/jabs/network/stats/NetworkStats.java similarity index 84% rename from src/main/java/jabs/network/networks/stats/NetworkStats.java rename to src/main/java/jabs/network/stats/NetworkStats.java index c36c38b5..7601983b 100644 --- a/src/main/java/jabs/network/networks/stats/NetworkStats.java +++ b/src/main/java/jabs/network/stats/NetworkStats.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats; +package jabs.network.stats; public interface NetworkStats> { diff --git a/src/main/java/jabs/network/networks/stats/NodeGlobalNetworkStats.java b/src/main/java/jabs/network/stats/NodeGlobalNetworkStats.java similarity index 76% rename from src/main/java/jabs/network/networks/stats/NodeGlobalNetworkStats.java rename to src/main/java/jabs/network/stats/NodeGlobalNetworkStats.java index 177eef56..cff04e88 100644 --- a/src/main/java/jabs/network/networks/stats/NodeGlobalNetworkStats.java +++ b/src/main/java/jabs/network/stats/NodeGlobalNetworkStats.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats; +package jabs.network.stats; public interface NodeGlobalNetworkStats> extends NetworkStats, NodeGlobalRegionDistribution { diff --git a/src/main/java/jabs/network/networks/stats/NodeGlobalRegionDistribution.java b/src/main/java/jabs/network/stats/NodeGlobalRegionDistribution.java similarity index 76% rename from src/main/java/jabs/network/networks/stats/NodeGlobalRegionDistribution.java rename to src/main/java/jabs/network/stats/NodeGlobalRegionDistribution.java index 15209bc6..b72b409f 100644 --- a/src/main/java/jabs/network/networks/stats/NodeGlobalRegionDistribution.java +++ b/src/main/java/jabs/network/stats/NodeGlobalRegionDistribution.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats; +package jabs.network.stats; public interface NodeGlobalRegionDistribution> { R sampleRegion(); diff --git a/src/main/java/jabs/network/networks/stats/ProofOfWorkGlobalNetworkStats.java b/src/main/java/jabs/network/stats/ProofOfWorkGlobalNetworkStats.java similarity index 81% rename from src/main/java/jabs/network/networks/stats/ProofOfWorkGlobalNetworkStats.java rename to src/main/java/jabs/network/stats/ProofOfWorkGlobalNetworkStats.java index 5c0999e3..935dba93 100644 --- a/src/main/java/jabs/network/networks/stats/ProofOfWorkGlobalNetworkStats.java +++ b/src/main/java/jabs/network/stats/ProofOfWorkGlobalNetworkStats.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats; +package jabs.network.stats; public interface ProofOfWorkGlobalNetworkStats> extends NetworkStats, NodeGlobalNetworkStats, MinerGlobalRegionDistribution { diff --git a/src/main/java/jabs/network/stats/eightysixcountries/EightySixCountries.java b/src/main/java/jabs/network/stats/eightysixcountries/EightySixCountries.java new file mode 100644 index 00000000..1cdbfd2d --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/EightySixCountries.java @@ -0,0 +1,101 @@ +package jabs.network.stats.eightysixcountries; + +public enum EightySixCountries { + ALBANIA(0), + ALGERIA(1), + ARGENTINA(2), + AUSTRALIA(3), + AUSTRIA(4), + BANGLADESH(5), + BELGIUM(6), + BRAZIL(7), + BULGARIA(8), + CAMBODIA(9), + CANADA(10), + CHILE(11), + CHINA(12), + COLOMBIA(13), + COSTA_RICA(14), + CROATIA(15), + CYPRUS(16), + CZECH_REPUBLIC(17), + DENMARK(18), + ESTONIA(19), + FINLAND(20), + FRANCE(21), + GEORGIA(22), + GERMANY(23), + GHANA(24), + GREECE(25), + GUATEMALA(26), + HONDURAS(27), + HONG_KONG(28), + HUNGARY(29), + INDIA(30), + INDONESIA(31), + IRAN(32), + IRELAND(33), + ISRAEL(34), + ITALY(35), + JAPAN(36), + KAZAKHSTAN(37), + KENYA(38), + KOSOVO(39), + LATVIA(40), + LEBANON(41), + LITHUANIA(42), + LUXEMBOURG(43), + MALAYSIA(44), + MALTA(45), + MEXICO(46), + MOLDOVA(47), + MOROCCO(48), + NETHERLANDS(49), + NEW_ZEALAND(50), + NIGERIA(51), + NORWAY(52), + PAKISTAN(53), + PANAMA(54), + PERU(55), + PHILIPPINES(56), + POLAND(57), + PORTUGAL(58), + ROMANIA(59), + RUSSIA(60), + SAUDI_ARABIA(61), + SERBIA(62), + SINGAPORE(63), + SLOVAKIA(64), + SLOVENIA(65), + SOUTH_AFRICA(66), + SOUTH_KOREA(67), + SPAIN(68), + SURINAME(69), + SWEDEN(70), + SWITZERLAND(71), + TAIWAN(72), + TANZANIA(73), + THAILAND(74), + TUNISIA(75), + TURKEY(76), + UGANDA(77), + UKRAINE(78), + UNITED_ARAB_EMIRATES(79), + UNITED_KINGDOM(80), + UNITED_STATES(81), + URUGUAY(82), + VENEZUELA(83), + VIETNAM(84), + WORLD(85); + + public static final EightySixCountries[] sixRegionsValues = EightySixCountries.values(); + + private final int value; + EightySixCountries(int value) { + this.value = value; + } + + public int getValue() { + return value; + } +} diff --git a/src/main/java/jabs/network/stats/eightysixcountries/GlobalNetworkStats86Countries.java b/src/main/java/jabs/network/stats/eightysixcountries/GlobalNetworkStats86Countries.java new file mode 100644 index 00000000..c523581d --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/GlobalNetworkStats86Countries.java @@ -0,0 +1,154 @@ +package jabs.network.stats.eightysixcountries; + +import jabs.network.stats.NetworkStats; +import jabs.simulator.randengine.RandomnessEngine; +import java.util.List; +import java.util.Map; + +public class GlobalNetworkStats86Countries implements NetworkStats { + protected final RandomnessEngine randomnessEngine; + + /** + * Average latency between countries in milliseconds + */ + protected static final double[][] GLOBAL_LATENCY_BY_REGION = { + {11.12, 28.26, 142.12, 149.93, 18.14, 107.09, 25.29, 123.81, 14.88, 117.2, 79.47, 130.7, 153.53, 100.8, 97.03, 26.67, 48.61, 14.57, 21.12, 102.51, 45.83, 29.77, 33.6, 26.61, 38.35, 22.72, 75.25, 13.05, 95.31, 61.55, 148.37, 15.18, 43.85, 88.66, 156.41, 61.128, 30.38, 33.58, 51.07, 22.95, 128.33, 69.47, 108.71, 34.59, 34.8, 42.02, 33.66, 19.05, 95.68, 39.09, 88.22, 25.47, 51.29, 25.04, 163.77, 145.3, 31.29, 86.1, 100, 104.12, 140.41, 29.76, 43.39, 77.15, 22.1, 53.02, 57.58, 20.57, 141.15, 8.73, 21.71, 98.55, 140.16, 33.19, 112.7, 41.38, 23.27, 149.35, 89.3, 112.79, 25.06, 26.76, 107.59, 21.46, 66.61, 26.16, 75.81, 149.35, 89.11, 128.64, 68.59}, + {31.21, 11.12, 143.2, 158.11, 28.94, 183.26, 23.37, 124.77, 33.54, 197.8, 80.2, 122.08, 163.81, 96.55, 90.28, 29.67, 60.72, 26.06, 28.56, 97.51, 41.55, 34.77, 35.23, 24.44, 47.56, 27.57, 69.75, 43.29, 95.28, 59.11, 170.97, 39.37, 47.22, 115.5, 195.68, 79.99, 26.12, 30.89, 41.45, 20.09, 138.97, 73.92, 110.82, 41.42, 38.4, 35.44, 40.25, 19.23, 98.88, 36.79, 84.67, 38.3, 59.15, 24.3, 155.31, 71.08, 35.15, 154.1, 95.67, 101.47, 187.09, 34.05, 38.54, 74.52, 35.36, 64.99, 63.85, 34.09, 148.92, 24.27, 32.17, 103.71, 161.23, 26.15, 107.21, 39.2, 20.39, 168.61, 78.15, 144.67, 13.73, 39.01, 116.37, 36.73, 67.09, 25.02, 73.87, 146.54, 98.42, 201.41, 75.9}, + {142.16, 144.03, 11.12, 179.85, 136.61, 192.34, 118.26, 30.65, 131.86, 197.75, 98.96, 79.11, 241.88, 46.86, 118.83, 134.07, 149.85, 129.94, 126.38, 46.53, 150.6, 134.78, 139.65, 121.99, 166.33, 125.64, 167.54, 149.5, 112.8, 84.61, 188.94, 126.19, 135.12, 182.84, 199.07, 160.132, 118.95, 119.45, 143.07, 128.1, 158.26, 175.12, 204.09, 141.63, 126.62, 147.41, 140.77, 113.59, 188.54, 129.4, 95.86, 137.43, 148.28, 120.48, 170.05, 98.97, 136.22, 187.17, 101.46, 64.18, 185.12, 133.12, 130.2, 89.72, 131.62, 154.29, 159.56, 139.88, 186.47, 130.77, 131.12, 197.5, 161.89, 123.21, 100.71, 137.37, 126.19, 173.44, 180.72, 194.97, 131.02, 143.71, 208.34, 140.42, 172.94, 119.12, 87.99, 15.89, 85.59, 206.81, 137.28}, + {149.89, 156.01, 180.89, 15.68, 154.92, 87.46, 143.72, 168.4, 163.48, 80.53, 117.64, 179.13, 158.01, 166.8, 137.43, 147, 172.99, 147.52, 149.53, 166.15, 171.46, 150.72, 141.5, 153.5, 180.52, 145.01, 186.21, 155.65, 142.45, 114.47, 76.68, 153.99, 165.16, 120.61, 72.98, 147.136, 143.88, 147.41, 163.12, 147.15, 78.52, 168.74, 223.3, 161.26, 158.15, 175.09, 150.51, 137.85, 80.83, 160.42, 109.9, 163.46, 170.26, 143.94, 23.29, 213.95, 155.1, 113.14, 137.39, 163.56, 116.27, 157.2, 156.48, 133.68, 158.01, 160.57, 159.21, 156.66, 63.04, 133.72, 146.17, 215.61, 141.95, 137.23, 167.37, 155.68, 139.89, 129.56, 157.44, 130.82, 168.5, 165.32, 224.88, 162.96, 152.66, 141.32, 116.63, 185.8, 142.12, 95.23, 145.35}, + {18.07, 27.35, 136.55, 154.82, 8.57, 96.67, 15.32, 127.18, 19.73, 122.78, 69.1, 117.4, 119.69, 92.73, 94.49, 10.7, 43.03, 8.1, 22.08, 97.97, 38.72, 17.91, 17.49, 20.83, 35.55, 15.35, 68.51, 26.66, 91.75, 57.12, 120.99, 4.03, 40.42, 81.75, 128.83, 67.648, 26.44, 22.5, 42.02, 20.63, 131.7, 55.04, 104.3, 8.36, 24.1, 44.93, 22.6, 12.75, 90.2, 25.22, 83.62, 20.79, 45.3, 16.3, 153.31, 105.36, 22.48, 110, 90.94, 96.15, 133.59, 19.97, 35.13, 73.83, 20.8, 47.94, 65.67, 11.62, 95.13, 3.07, 10.48, 97.97, 144.03, 25.56, 106.15, 25.16, 15.35, 149.97, 71.76, 101.57, 34.04, 32.96, 100.39, 32.33, 67.48, 20.65, 69.02, 141.38, 88.59, 144.68, 62.13}, + {106.95, 181.05, 192.37, 87.45, 96.54, 11.12, 91.35, 187.09, 108.12, 38.38, 127.42, 184.87, 151.83, 201.22, 163.36, 96.23, 115.81, 96.5, 98.89, 156.69, 128.51, 116.93, 99.61, 89.27, 127.56, 97.53, 132.89, 110.8, 185.22, 126.93, 43.95, 99.36, 103.5, 41.68, 33.83, 100.036, 106.87, 120.13, 137.94, 101.82, 66.13, 130.36, 137.82, 161.3, 156.48, 122.03, 101.42, 105.9, 29.16, 108.97, 136.85, 106.1, 115.56, 109.87, 164.53, 137.44, 100.34, 74.57, 158.42, 176.25, 50.17, 100.12, 110.73, 136.95, 100.48, 121.31, 95.33, 97.26, 26.93, 96.22, 99.49, 163.88, 135.36, 90.87, 172.27, 101.87, 101.9, 54.1, 107.96, 62.4, 103.92, 118.42, 181.97, 102.18, 97.1, 100.37, 129.71, 208.68, 154.6, 93.65, 114.76}, + {25.26, 22.94, 117.46, 143.48, 15.35, 91.12, 6.32, 106.18, 22.42, 117.09, 59.62, 106.52, 113.67, 84.78, 77.73, 16.02, 36.58, 15.18, 9.85, 84.75, 34.66, 19.14, 17.46, 10.56, 39.78, 10.35, 54.81, 31.38, 82.03, 42.86, 115.51, 17.86, 25.69, 82.94, 130.81, 57.88, 12.29, 13.81, 40.42, 16.8, 119.6, 52.91, 89.55, 22.75, 21.32, 32.52, 22.25, 6.95, 94.52, 23.03, 71.5, 25.92, 39.83, 4.8, 143.07, 91.05, 20.69, 87.8, 78.51, 86, 138.32, 17.33, 24.19, 61.02, 20.12, 39.8, 51.95, 19.96, 95.19, 13.98, 18.15, 83.04, 136.89, 16.72, 91.37, 18.52, 12.24, 129.5, 68.93, 96.68, 25.54, 29.47, 91.45, 24.41, 63.97, 8.33, 57.3, 127.55, 78.28, 136.44, 56.21}, + {123.55, 123.76, 30.73, 167.89, 122.65, 187.4, 106.23, 25.68, 126.16, 186.46, 83.82, 99.57, 178.82, 93.1, 83.72, 109.06, 135.26, 119.81, 106.87, 59.14, 131.44, 106.89, 114.78, 108.4, 147.5, 106.99, 149.34, 135.74, 84.96, 70.43, 184.81, 114.96, 125.57, 177.38, 192.41, 146.324, 100.04, 107.2, 132.32, 110.19, 147.32, 153.74, 185.08, 121.84, 121.44, 132.37, 122.09, 107.31, 171.75, 118.55, 78.34, 126.92, 133.04, 100.99, 165.53, 92.65, 118.17, 186.88, 78.12, 70.77, 169.58, 115.8, 118.55, 89.78, 115.93, 133.54, 144.02, 109.39, 192.87, 124.14, 109.94, 154.64, 166.8, 115.19, 90.22, 116.67, 113.03, 159.77, 136.42, 189.44, 115.4, 122.24, 183.2, 126.8, 154.26, 101.91, 73.85, 36.76, 88.89, 182.59, 124.22}, + {14.84, 32.14, 131.8, 163.45, 19.73, 108.21, 22.41, 125.88, 4.18, 116.58, 74.99, 127.1, 121.28, 105.8, 93.81, 8.73, 47.42, 12.36, 24.9, 99.72, 45.79, 24.87, 23.82, 27.01, 28.98, 21.12, 71.9, 14.05, 104.32, 62.81, 137.33, 9.65, 49.02, 86.69, 147.33, 64.268, 31.79, 32, 44.38, 24.8, 120.44, 57.06, 104.95, 13.5, 31.71, 49.57, 28.32, 22.44, 95.51, 32.78, 85.7, 15.82, 49.97, 23.09, 160.98, 116.43, 30.11, 107.69, 100.04, 119.59, 143.43, 29.43, 45.69, 72.72, 12.45, 50.22, 60.41, 6.76, 89.24, 9.08, 12.23, 98.9, 138.79, 30.9, 107.51, 31.74, 24.97, 157.47, 75.92, 103.55, 26.42, 22.62, 109.93, 29.17, 65.12, 24.26, 72.47, 144.32, 95.45, 129.33, 65.5}, + {117.17, 195.3, 196.94, 80.63, 122.76, 38.44, 117.24, 186.47, 116.55, 11.12, 116.91, 182.66, 100.61, 167.4, 153.21, 104.95, 117.74, 107.84, 111.47, 166.78, 130.14, 114.82, 154.99, 127.84, 140.18, 104.93, 150.34, 142.17, 172.76, 139.52, 18.07, 140.31, 121.11, 50.19, 33.26, 113.358, 126.09, 150.54, 171.47, 145.9, 44.35, 186.8, 228.68, 115.11, 116.07, 160.05, 128.58, 150.13, 18.81, 181.69, 126.31, 154.54, 128.71, 121.67, 140.54, 155.1, 128.33, 64.65, 146.86, 167.5, 31.98, 152.39, 149.54, 145.64, 119.75, 103.14, 95.3, 112.93, 14.86, 111.87, 106.93, 195.37, 72.16, 129.12, 179.14, 115.32, 127.6, 29.72, 119.48, 42.97, 193.24, 169.47, 258.57, 114.6, 112.16, 115.03, 119.1, 210.95, 151.39, 33.12, 125.21}, + {79.4, 77.87, 98.67, 118.1, 69.18, 127.42, 59.67, 83.81, 74.94, 116.87, 23.45, 89.07, 124.72, 62.68, 53.43, 65.3, 87.32, 69.06, 65.21, 63.39, 87.12, 68.74, 70.43, 61.72, 100.35, 63.98, 102.79, 85.44, 58.65, 20.87, 103.59, 73.28, 74.71, 129.23, 122.81, 104.788, 59.78, 63.05, 84.98, 70.64, 78.38, 103.27, 139.13, 76.27, 71.54, 87.11, 73.7, 63.39, 113.04, 77.01, 40.34, 81.05, 89.26, 59.93, 112.66, 132.55, 71.75, 141.44, 53.6, 65.13, 114, 70.64, 74.57, 39.25, 78.74, 94.32, 101.74, 72.15, 112.97, 68.54, 65.81, 131.39, 90.85, 67.89, 66.94, 70.16, 64.92, 105.23, 117.2, 132.49, 81.86, 85.59, 145.12, 79.88, 111.49, 56.06, 27, 103.01, 51.83, 123.92, 83.68}, + {130.52, 119.76, 79.2, 179.68, 117.34, 184.75, 106.45, 99.13, 126.92, 182.59, 89.05, 11.12, 180.7, 84.55, 87.25, 118.56, 141.19, 114.95, 111.52, 99.74, 133.19, 125.96, 118.42, 109.99, 145.92, 114.05, 148.45, 131.83, 87.9, 67.18, 178.27, 121.69, 122.59, 181.43, 201.4, 149.782, 111.67, 110.28, 132.92, 119.27, 154.99, 155.77, 206.39, 125.23, 123.29, 132.51, 123.72, 106.5, 185.31, 124.02, 81.04, 127.02, 134.8, 107.43, 164.89, 135.01, 118.67, 175.34, 100.46, 18.78, 185.18, 118.95, 121.6, 78.54, 123.75, 142.15, 151.21, 120.87, 178.82, 117.24, 112.6, 196.85, 158.02, 119.21, 101.56, 118.34, 114.6, 189.33, 167.2, 186.79, 124.99, 134.28, 204.78, 124.97, 159.28, 104.6, 79.65, 25.98, 85.58, 187.57, 128.8}, + {156.61, 139.34, 190.1, 163.93, 127.9, 80.33, 130.96, 176.38, 127.44, 67.33, 132.63, 159.27, 38.39, 153.71, 78.63, 159.03, 135.99, 141.76, 113.06, 161.02, 147.72, 149.15, 115.06, 129.87, 148.43, 127.92, 173.66, 146.28, 167.04, 142.04, 30.56, 182.32, 128.43, 124.37, 76.68, 126.284, 141.85, 142.42, 143.16, 133.44, 73.76, 150.95, 166.1, 134.74, 121.19, 190.73, 141.71, 139.86, 89, 149, 138.27, 114.65, 142.77, 131.14, 159.59, 169.08, 125.14, 124.4, 142.76, 181.26, 114.72, 143.12, 118.12, 154.13, 117.46, 97.48, 116.82, 131.61, 122.19, 114.95, 190.3, 134.17, 119.45, 138.44, 131.68, 144.06, 140.96, 46.03, 174.05, 78.59, 134.72, 156.34, 119.05, 110.91, 100.45, 128.05, 132.49, 217.27, 155.62, 119.85, 133.41}, + {100.7, 95.38, 46.18, 166.7, 92.56, 201.39, 84.63, 92.92, 105.62, 167.24, 62.49, 84, 160.79, 3.37, 64.48, 93.47, 112.19, 93.59, 87.12, 14.18, 113.91, 100.4, 97.95, 87.05, 119.74, 89.24, 130.18, 112.91, 49.61, 44.26, 159.96, 98.46, 101.14, 158.86, 176.12, 126.02, 83.73, 82.76, 110.58, 93.73, 130.17, 123.7, 162.29, 102.47, 95.05, 106.85, 101.93, 86.64, 155.76, 99.84, 58.12, 104.39, 113.13, 85.17, 146.67, 127.66, 93.2, 168.49, 55.26, 68.37, 145.63, 95.85, 97.53, 43.2, 100.53, 119.09, 116.76, 97.16, 154.99, 94.86, 95.33, 155.55, 129.21, 88.72, 62.09, 95.42, 87.55, 149.85, 185.16, 157.16, 104.62, 107.17, 168.76, 103.1, 131.56, 81.8, 53.13, 80.64, 48.08, 169.5, 106.12}, + {97.09, 89.95, 117.19, 135.93, 94.45, 163.26, 77.99, 83.17, 93.79, 153.24, 53.44, 87.34, 189.15, 64.66, 11.12, 85.01, 100.76, 86.45, 85.37, 59, 104.24, 88.9, 92.2, 87.42, 110.37, 82.43, 120.78, 103.47, 53.31, 39.08, 136.15, 89.68, 95.83, 161.03, 148.21, 121.124, 79.42, 75.42, 104.22, 95.92, 107.77, 115.88, 163.34, 98.39, 91.6, 131.28, 92.75, 77.2, 145.84, 94.99, 46.46, 93.44, 138.8, 78.32, 127.67, 129.29, 86.99, 162.78, 43.69, 81.85, 144.4, 89.89, 88.97, 37.26, 89.37, 110.49, 110.75, 91.81, 142.4, 85.65, 84.64, 153.16, 142.74, 79.98, 56.53, 91.18, 82.9, 147.16, 135.97, 146.87, 122.68, 104.24, 159.77, 98.17, 126.17, 74.69, 43.83, 94.21, 70.3, 138.75, 101.68}, + {26.67, 29.15, 134.45, 147.03, 10.73, 96.4, 16.09, 108.99, 8.75, 104.93, 65.34, 118.78, 155.73, 93.43, 84.92, 11.12, 42.56, 8.7, 17.69, 92.87, 37.5, 18.01, 19.9, 16.85, 41.23, 13.15, 64.17, 19.57, 96.02, 51.16, 121.21, 5.82, 39.93, 80.04, 92.58, 64.204, 19.44, 21.35, 38.73, 15.69, 118.2, 40.71, 86.07, 16.15, 14.99, 40.84, 17.38, 15.44, 84.27, 25.33, 85.72, 13.59, 45.99, 14.92, 158.53, 106.47, 21.8, 109.34, 89.89, 95.66, 130.83, 18.64, 33.85, 71.82, 14.7, 45, 57.75, 16.31, 81.38, 6.62, 5.95, 91.1, 140.93, 20.91, 103.62, 23.5, 12.02, 123.45, 66.97, 93.55, 28.18, 31.37, 98.98, 16.97, 64.12, 17.84, 63.8, 129.32, 83.63, 120.21, 58.44}, + {48.67, 58.15, 152.86, 171.64, 42.74, 114.88, 36.33, 135.47, 46.28, 116.9, 86.77, 141.32, 131.23, 111.31, 99.63, 41.83, 11.12, 37.24, 35.77, 107.21, 58.75, 47.08, 39.92, 40.71, 60.95, 35.77, 80.06, 55.12, 107.23, 73.15, 135.56, 36.66, 61.15, 92.81, 159.49, 81.31, 37.63, 40.44, 57.91, 34.64, 141.11, 76.58, 99.93, 41.32, 52.52, 56.35, 43.55, 33.18, 112.59, 48.44, 94.56, 45.22, 60.37, 33, 172.42, 127.32, 39.17, 124.41, 109.19, 124.88, 131.92, 38.91, 46.62, 85.13, 41.01, 62.62, 66.63, 47.48, 101.14, 33.46, 39.23, 104.16, 162.17, 42.09, 118.59, 46.66, 31.4, 146.62, 81.71, 114.01, 50.11, 52.86, 104.49, 44.27, 83.64, 33.56, 83.53, 156.36, 100.94, 162.22, 79.01}, + {14.47, 25.37, 130.32, 147.48, 8.11, 96.38, 15.15, 119.65, 12.39, 107.87, 69.04, 115.06, 116.49, 93.75, 86.49, 8.7, 37.85, 5.71, 11.85, 93.51, 37.03, 20.41, 18.82, 18.15, 35.65, 12.52, 64.57, 20.88, 91.66, 53.15, 144.94, 8.36, 35.15, 81.06, 154.72, 60.326, 21.54, 22.02, 44.55, 17.85, 122.83, 46.06, 102.05, 16.1, 20.42, 40.39, 14.98, 12.7, 118.85, 25.89, 79.26, 22.94, 45.67, 14.45, 153.82, 73.76, 28.21, 94.77, 87.93, 100.57, 154.24, 14.65, 31.61, 73.78, 14.92, 41.83, 53.65, 12.11, 94.17, 3.57, 8.42, 91.21, 145.95, 24.99, 99.21, 21.77, 12.25, 147.83, 74.33, 98.02, 29.45, 29.37, 97.02, 17.41, 63.89, 17.79, 66.3, 138.69, 85.35, 131.31, 59.95}, + {21.09, 27.26, 125.81, 149.52, 22.07, 99.09, 9.86, 106.82, 24.92, 111.37, 65.23, 111.65, 128.75, 87.18, 85.39, 17.72, 36.06, 11.89, 11.12, 91.59, 38.72, 13.81, 14.1, 15.25, 45.55, 10.76, 59.5, 26.91, 77.84, 45.74, 173.83, 15.81, 30.38, 78.6, 178.94, 63.514, 15.94, 18.2, 36.86, 19.39, 122.95, 34.13, 98.05, 28.16, 14.78, 37.94, 19.45, 10.22, 87.08, 23.63, 74.24, 26.98, 47.37, 7.79, 145.1, 69.44, 5.74, 106.24, 82.64, 94.85, 127.55, 17.66, 28.31, 68.3, 24.29, 29.04, 58.76, 24.76, 85.22, 10.68, 22.66, 87.18, 143.25, 22.55, 98.94, 6.8, 13.39, 139.89, 72.23, 98.72, 33.75, 28.87, 97.85, 23.08, 64.7, 12.78, 61.35, 133.49, 79.72, 137.72, 59}, + {102.58, 95.55, 45.71, 165.9, 98.11, 156.87, 84.81, 58.91, 99.81, 166.84, 63.48, 99.84, 159.12, 14.48, 59.04, 92.9, 106.59, 93.44, 91.61, 11.12, 109.76, 100.89, 99.44, 87.84, 130.82, 87.42, 127.54, 109.47, 62.44, 55.17, 152.41, 97.57, 99.79, 149.52, 167.34, 124.43, 90.8, 83.81, 113.87, 93.81, 118.66, 131.91, 165.03, 95.85, 94.77, 105.75, 102.22, 83.51, 157.15, 98.82, 64.71, 102.09, 114.87, 82.5, 152.87, 134.94, 97.07, 149.18, 55.36, 42.26, 143.56, 96.61, 102.27, 57.59, 92.56, 116.16, 124.64, 95.54, 153.9, 94.7, 99, 156.26, 139.86, 90.22, 72.74, 96, 91.23, 154.06, 163.92, 162.28, 98.02, 109.83, 173.58, 97.6, 132.86, 84.58, 55.87, 85.94, 65.55, 159.44, 105.64}, + {45.01, 39.4, 150.32, 170.97, 38.09, 128.27, 34.28, 130.6, 45.4, 128.84, 86.6, 131.94, 141.51, 112.74, 103.86, 37.68, 59.19, 36.77, 37.69, 109.33, 11.12, 41.17, 42.37, 36.63, 64.22, 32.97, 85.42, 54.25, 103.14, 65.78, 128.74, 36.06, 49.91, 93.3, 118.18, 76.594, 38.96, 41.42, 57.3, 35.2, 145.57, 76.27, 108.14, 44.74, 42.35, 52.35, 43.99, 30.86, 103.32, 47.41, 100.95, 47.11, 56.93, 33.27, 170.93, 127.37, 44.51, 97.75, 103.03, 114.71, 134.7, 40.43, 55.88, 89.78, 42.23, 65.32, 65.71, 42.02, 103.87, 33.56, 40.27, 105.29, 146.53, 45.12, 120.22, 42.63, 33.48, 163.59, 84.85, 147.28, 39.13, 52.82, 103.24, 43.91, 88.61, 34.77, 84.16, 153.65, 103.24, 146.89, 78.08}, + {29.78, 33.82, 134.85, 150.21, 17.93, 116.83, 19.2, 110.19, 24.82, 114.86, 68.73, 126.05, 163.17, 100.7, 88.91, 18.08, 47.8, 20.46, 13.86, 100.87, 42.28, 11.12, 3.58, 26.1, 45.31, 17.3, 64.52, 35.62, 89.65, 51.34, 125.27, 19.42, 37.64, 93.93, 96.64, 67.176, 21.8, 26.35, 41.04, 22.78, 123.24, 33.13, 101.22, 30.17, 3.28, 44.17, 7.31, 17.97, 90.5, 30.89, 90.56, 27.3, 49.14, 16.37, 161.23, 110.76, 9.48, 107.87, 91.36, 103.7, 136.54, 11.54, 36.98, 75.2, 24.74, 28.56, 63.04, 26.25, 87.88, 22.83, 18.57, 93.46, 144.37, 29.06, 106.17, 8.35, 17.62, 131.39, 76.15, 113.95, 37.36, 35.23, 99.27, 19.55, 67.18, 18.68, 66.54, 132.68, 89.98, 126.18, 62.56}, + {33.54, 33.58, 138.34, 141.4, 17.56, 99.48, 17.5, 114.39, 23.75, 155.2, 70.41, 118.53, 115.01, 98.31, 92.29, 19.92, 41.86, 18.84, 14.19, 100.17, 42.64, 3.51, 11.12, 22.17, 48.52, 18.75, 68.69, 35.81, 99.17, 51.81, 134.57, 19.83, 38.12, 85.25, 141.66, 59.346, 24.05, 23.87, 42.9, 24.51, 113.97, 38.14, 102.42, 29.73, 3.71, 45.99, 8.02, 18.09, 92.39, 29.24, 82.87, 27.17, 49.76, 15.46, 158.07, 75.59, 9.36, 83.89, 88.07, 95.94, 134.08, 20.61, 34.53, 71.5, 24.93, 25.13, 50.47, 23.28, 92.77, 18.78, 16.59, 92.79, 133.08, 29.77, 105.72, 9, 19.09, 144.85, 78.53, 105.67, 35.53, 41, 98.28, 28.34, 59.61, 18.9, 67.51, 132.35, 92.97, 121.7, 61.76}, + {27.94, 25.76, 123.67, 153.04, 21.96, 89.54, 10.76, 108.55, 27.86, 129.55, 61.46, 111.45, 117.02, 86.64, 88.46, 20.14, 40.21, 20.45, 16.83, 86.91, 36.72, 26.91, 24.65, 11.88, 41.62, 13.79, 57.6, 36.27, 93.09, 43.96, 116.71, 21.68, 32.33, 78.1, 139.74, 57.798, 17.75, 16.66, 47.16, 18.65, 130.24, 50.67, 91.06, 24.77, 25.67, 33.36, 27.84, 12.13, 101.04, 26.38, 76.52, 30.03, 37.67, 11.06, 147, 80.29, 28.34, 79.07, 82.39, 89.71, 141.58, 23.33, 29.46, 68.89, 25.1, 43.58, 48.25, 24.88, 121.4, 20.67, 22.24, 87.09, 137.94, 18.34, 91.59, 25.4, 14.8, 142.33, 71.04, 116.4, 25.72, 34.47, 91.8, 28.23, 67.1, 10.72, 59.9, 132.48, 81.58, 114.33, 60.1}, + {38.37, 45.57, 166.53, 180.57, 35.58, 127.55, 39.74, 147.62, 29.25, 140.2, 100.35, 146.09, 143.49, 119.95, 110.4, 41.32, 60.88, 35.78, 45.47, 130.88, 64.86, 45.35, 48.46, 42.47, 11.12, 37.74, 92.33, 37.3, 118.48, 80.68, 201.93, 39.29, 61.11, 108.16, 201.07, 82.24, 46.29, 46.71, 68.74, 42.35, 154.77, 62.21, 117.93, 32.53, 46.44, 65.96, 43.85, 39.82, 117.65, 52.92, 111.41, 61.71, 73.78, 40.71, 180.61, 102.69, 42.67, 102.41, 113.88, 132.61, 160.68, 40.96, 58.78, 102.53, 49.52, 44.53, 79.51, 46.7, 155.07, 30.67, 47.53, 120.19, 179.54, 51.25, 133.17, 44.84, 40.03, 179.9, 109.21, 126.07, 45.68, 39.82, 120.42, 38.03, 102.94, 43.38, 96.94, 169.57, 114.3, 151.79, 86.52}, + {23.41, 27.17, 126.14, 145.08, 15.42, 95.49, 10.3, 109.59, 21.33, 103.85, 64.14, 112.15, 114.44, 89.6, 82.82, 13.18, 35.58, 12.2, 11.68, 88.02, 34.74, 17.17, 19.41, 13.45, 37.4, 9.96, 62.38, 29.05, 89.8, 49.87, 120.1, 13.39, 32.65, 77.42, 135.14, 55.414, 18.2, 17.17, 36.13, 16.15, 121.25, 51.42, 94.53, 22.23, 19.38, 37.06, 22.49, 8.81, 89.35, 21.81, 75.51, 23.33, 43.46, 9.4, 150.12, 92.17, 17.09, 76.57, 86.12, 98.69, 127.01, 15.95, 27.69, 63.9, 17.45, 40.61, 50.88, 19.64, 84.17, 10.48, 12.83, 88.3, 139.44, 20.59, 95.55, 21.92, 12.76, 129.74, 71.52, 113.07, 26.79, 29.37, 96.66, 21.13, 62.92, 13.34, 61.63, 131.96, 83.59, 119.83, 57.33}, + {74.7, 69.99, 166.36, 186.35, 68.79, 132.87, 54.62, 149.82, 72.12, 150.55, 102.86, 148.66, 161.74, 131.23, 121.32, 64.21, 81, 64.45, 59.81, 127.96, 85.69, 64.38, 68.52, 58.77, 92.45, 61.48, 11.12, 82.62, 127.99, 85.99, 174.23, 66, 67.24, 127.07, 179.01, 109.144, 54.73, 54.8, 81.18, 66.46, 170.98, 104.25, 135.49, 67.62, 70.36, 79.94, 70.84, 57.34, 136.79, 74.39, 113.37, 79.56, 90.4, 53.72, 191.9, 107.59, 83.54, 149.75, 120.17, 133.13, 172.02, 64.65, 76.95, 105.05, 72.82, 89.63, 98.61, 65.98, 136.72, 65.84, 65.67, 125.49, 181.26, 67.2, 139.02, 68.18, 61.85, 177.31, 114.07, 141.61, 71.32, 81.81, 140.27, 76.86, 113.47, 50.82, 99.16, 171.5, 117.15, 182.85, 102.08}, + {12.24, 40.68, 148.02, 154.84, 25.59, 109.79, 30.3, 134.59, 13.43, 140.99, 84.45, 130.68, 140.3, 112.46, 102.35, 18.53, 54.29, 19.98, 26.03, 108.62, 53.86, 34.62, 34.6, 35.25, 36.33, 27.29, 81.27, 6.9, 101.32, 67.85, 141.78, 21.16, 51.17, 100.32, 145.64, 72.048, 36.79, 36.96, 72.33, 29.95, 152.63, 61.42, 117.43, 29.9, 32.67, 56.24, 30.26, 26.78, 122.12, 40.63, 95.41, 29.05, 62.81, 28.04, 170.37, 89.65, 56.8, 100.23, 102.47, 114.1, 167.77, 28.88, 47.82, 86.17, 25.22, 55.88, 67.27, 25.52, 141.52, 15.49, 21.36, 107.7, 162.91, 38.58, 117.86, 35.04, 25.84, 164.75, 85.01, 120.69, 47.2, 32.89, 122.21, 26.49, 85.21, 33.13, 82.06, 153.59, 103.11, 173.04, 74.64}, + {87.59, 84.77, 106.17, 138.73, 86.79, 181.21, 75.6, 80.09, 98.21, 167.31, 52.97, 82.59, 165.88, 44.63, 49.93, 90.74, 95.4, 86.3, 73.72, 56.74, 99.36, 85.36, 94.45, 86.82, 112.77, 85.87, 122.29, 96.64, 11.12, 32.46, 153.81, 93.82, 83.85, 150.04, 151.78, 127.178, 78.69, 83.08, 105.28, 89.32, 118.47, 124.92, 150.53, 99.68, 82.5, 92.22, 87.25, 84.45, 136.87, 95.05, 41.61, 92.72, 110.5, 76.77, 130.01, 103.53, 83.43, 184.72, 35.48, 66.76, 143.41, 93.59, 84.53, 36.16, 92.88, 112.42, 133.79, 92.58, 144.11, 89.12, 90.77, 145.59, 124.01, 85.92, 46.77, 92.72, 79.07, 140.88, 181.52, 169.52, 92.01, 104.1, 157.55, 98.65, 113.74, 73.65, 42.65, 95.02, 35.38, 147.13, 99.54}, + {61.52, 59.15, 84.59, 113.83, 57.15, 127.09, 42.93, 70.32, 62.87, 139.32, 20.9, 67.36, 122.84, 44.67, 39.08, 51.22, 73.13, 53.18, 45.77, 55.12, 66.49, 51.34, 51.71, 45.01, 80.56, 50.47, 85.71, 68.77, 36.6, 11.12, 112.31, 52.19, 55.39, 114.95, 142.98, 81.494, 44.87, 42.01, 70.44, 54.59, 87.57, 83.14, 117.61, 66.35, 54.52, 69.51, 56.19, 44.56, 121.53, 60.6, 31.45, 63.84, 71.49, 41.61, 109.57, 105.84, 52.54, 105.62, 40.7, 48.15, 110.37, 53.38, 57.08, 20.97, 58.19, 72.64, 75.2, 59.31, 125.78, 50.35, 58.83, 114.96, 101.59, 53.42, 52.88, 52.42, 49.18, 95.9, 103.35, 137.62, 61.58, 66.72, 116.84, 65.4, 89.38, 38.56, 18.34, 89.64, 39.8, 127.23, 70.55}, + {148.51, 170.25, 189.2, 76.75, 120.76, 43.89, 116.02, 184.86, 137.31, 18.08, 103.59, 178.31, 58.09, 160.37, 136.12, 121.17, 136.65, 144.96, 173.83, 152.11, 130.23, 124.7, 134.55, 118.9, 201.77, 125.44, 174.7, 142.89, 157.03, 112.29, 11.12, 134.35, 179.16, 44.6, 23.52, 125.884, 136, 135.68, 137.76, 127.7, 28.03, 141.29, 225.92, 143.57, 162.74, 168.24, 140.18, 124.36, 20.21, 136.59, 111.27, 125.28, 132.3, 113.79, 125.49, 160.39, 151.68, 66.44, 147.92, 149.35, 26.8, 118, 148.13, 120.57, 126.65, 83.09, 180.71, 137.37, 16.69, 130.72, 124.52, 173.39, 91.12, 143.43, 147.35, 108.63, 142.26, 14.23, 110.89, 32.48, 152.95, 143.88, 209.95, 144.44, 114.62, 122.39, 101.58, 180.06, 134.3, 36, 123.77}, + {14.93, 36.93, 126.14, 153.97, 4.02, 99.52, 17.89, 115.21, 9.62, 140.24, 73.28, 121.81, 128.84, 98.44, 89.63, 5.79, 37.26, 8.34, 15.81, 97.48, 36.62, 19.36, 19.74, 19.59, 39.08, 12.75, 65.97, 22.33, 99.1, 52.09, 134.34, 11.12, 34.35, 80.61, 137.71, 57.256, 21.79, 21.31, 38.32, 18.25, 135.21, 57.13, 90.46, 10.9, 28.86, 42.79, 22.6, 13.27, 92.94, 24.85, 86.76, 14.34, 45.31, 14.98, 153.79, 73.98, 23.59, 82.66, 89.96, 104.49, 142.9, 20.93, 34.93, 77.47, 11.43, 43.97, 54.6, 5.21, 128.54, 3.7, 5.48, 90.09, 156.64, 23.68, 103.16, 23.67, 12.36, 150.17, 78.04, 97.84, 32.36, 30.02, 98.41, 16.08, 57.74, 18.32, 69.48, 139.52, 91.53, 145.12, 61.26}, + {43.84, 46.29, 133.89, 165.28, 40.44, 104.3, 25.72, 125.18, 49.05, 121.12, 74.71, 122.7, 130.69, 101.4, 95.84, 39.93, 61.62, 35.09, 30.39, 99.76, 49.59, 37.62, 38.15, 31.51, 61.09, 33.03, 67.36, 52.07, 89.42, 55.44, 179.16, 34.38, 11.12, 91.31, 196.69, 72.348, 31.33, 28.28, 59.22, 37.86, 131.36, 75.4, 102.32, 45.81, 41.91, 53.71, 39.93, 29.46, 112.13, 43.3, 85.02, 44.09, 62.39, 25.64, 161.36, 77.38, 34.39, 92.42, 98.88, 118.85, 143.43, 41.75, 42.91, 71.96, 41.77, 59.75, 68.97, 40.77, 108.5, 34.02, 38.66, 99.23, 158.73, 37.17, 106.8, 40.67, 32.98, 154.45, 85.12, 134.33, 41.14, 49.87, 107.77, 50.28, 75.59, 23.31, 74.87, 142.33, 101.3, 149.13, 74.89}, + {88.61, 114.11, 182.83, 120.87, 81.73, 40.97, 83.07, 177.39, 86.75, 50.21, 129.34, 181.83, 128.83, 159.2, 161.17, 80.12, 93.54, 81.12, 78.74, 149.49, 93.93, 94, 85.36, 76.77, 108.4, 76.54, 127.13, 101.66, 154.7, 115.01, 44.76, 80.84, 91.27, 13.89, 41.02, 96.582, 82.39, 96.15, 102.85, 82.46, 79.52, 113.42, 149.76, 88.95, 85.09, 92.4, 83.18, 80.54, 36.02, 119.81, 140.08, 93.02, 104.1, 75.21, 158.16, 148.7, 84.99, 77.97, 145.05, 161.25, 83.3, 85.58, 89.76, 129.74, 89.53, 113.51, 92.17, 85.45, 27.39, 80.31, 84.37, 157.18, 142.96, 82.99, 168.29, 86.1, 76.01, 64.91, 127.8, 51.04, 90.23, 101.09, 156.93, 82.31, 108.65, 80.27, 125.37, 203.33, 145.19, 101.96, 103.03}, + {157.67, 194.89, 199.57, 72.65, 128.15, 34.88, 130.58, 192.45, 146.59, 32.43, 122.38, 202.03, 80.91, 175.69, 148.08, 91.92, 158.84, 155.43, 178.59, 167.58, 121.63, 95.74, 141.85, 138.35, 200.26, 132.66, 177.56, 147.24, 157.13, 142.07, 23.26, 137.97, 195.87, 41.02, 11.12, 109.494, 143.33, 142.23, 132.14, 132.08, 43.39, 131.87, 209.65, 147.59, 185.63, 164.19, 148.57, 130.22, 28.94, 191.86, 132.02, 104.08, 138.62, 109.82, 114.27, 154.19, 167.38, 56.2, 150.24, 165.96, 30.07, 144.8, 152.7, 144.29, 146.52, 87.13, 138.34, 141.41, 6.59, 131.15, 91.76, 169.36, 104.91, 147.43, 167.53, 120.73, 150.99, 38.55, 100.91, 21.45, 156.63, 151.82, 181.68, 141.79, 72.57, 128.06, 121.45, 202.88, 159.27, 28.03, 128.54}, + {64.769, 77.12, 148.351, 146.273, 64.874, 107.028, 57.105, 135.322, 64.899, 119.074, 94.229, 139.171, 129.497, 116.075, 110.802, 61.292, 80.215, 60.263, 61.232, 114.915, 77.697, 64.698, 60.503, 58.679, 84.35, 56.292, 105.537, 73.789, 115.994, 76.067, 124.522, 59.578, 73.549, 99.751, 119.147, 32.415, 61.378, 61.096, 80.27, 59.677, 125.606, 94.049, 122.316, 67.694, 66.246, 80.158, 65.645, 55.203, 103.196, 70.706, 101.585, 68.412, 80.877, 56.475, 159.73, 128.785, 64.7, 92.417, 108.691, 119.311, 121.81, 65.027, 71.466, 95.422, 64.823, 84.245, 67.254, 65.328, 123.242, 56.351, 62.268, 120.653, 140.073, 63.879, 131.784, 65.873, 58.307, 129.703, 101.892, 115.713, 65.588, 71.898, 119.209, 69.321, 72.865, 57.981, 89.529, 154.259, 109.74, 138.567, 43.695}, + {30.46, 25.27, 118.31, 143.93, 26.49, 106.78, 12.42, 101.06, 31.81, 126.02, 59.76, 111.95, 119.26, 83.84, 79.58, 19.28, 38.04, 21.74, 16.26, 90.95, 40.09, 21.67, 23.83, 15.42, 46.35, 17.82, 54.56, 37.88, 83.71, 44.87, 136.02, 21.82, 31.31, 82.37, 143.22, 61.976, 1.92, 14, 39.32, 22.97, 120.2, 57.58, 92.95, 29.31, 29.05, 36.5, 30.05, 13.22, 100.22, 30.64, 71.86, 31.41, 43.31, 11.88, 145.24, 71.88, 23.54, 96.13, 82.05, 95.15, 132.93, 23.07, 30.3, 62.15, 28.37, 46.72, 49.9, 26.93, 110.11, 20.48, 19.57, 82.97, 138.83, 20.13, 93.07, 23.35, 19.22, 135.63, 73.11, 131.5, 26.46, 39.04, 86.67, 30.58, 64.29, 8.24, 57.32, 129.89, 79.72, 141.54, 60.52}, + {33.51, 27.98, 119.52, 147.35, 22.48, 120.28, 13.79, 107.43, 32.04, 150.7, 63.08, 110.39, 153.84, 82.77, 75.57, 21.42, 41.19, 21.91, 18.1, 83.97, 42, 26.34, 24.16, 14.79, 46.6, 16.66, 54.47, 38.45, 87.74, 42.04, 135.77, 21.25, 28.3, 96.12, 142.99, 60.122, 13.9, 11.12, 39.3, 23.98, 121.2, 56.6, 94.9, 31.15, 27.94, 36.05, 31.43, 14.36, 97.75, 29.63, 74.48, 35.15, 39.41, 12.49, 142.42, 68.92, 28.84, 79.22, 81.17, 94.9, 142.25, 22.99, 26.5, 62.22, 31.52, 47.69, 57.95, 25.04, 91.38, 20.33, 20.97, 87.39, 140.9, 19.01, 92.87, 27.9, 18.19, 136.66, 69.96, 135.47, 26, 35.01, 93.06, 37.4, 66.41, 10.43, 59.04, 126.94, 77.66, 159.12, 62.02}, + {51.07, 40.86, 142.83, 163.12, 42.09, 138.14, 40.57, 132.26, 44.45, 171.5, 84.98, 133.1, 135.01, 110.23, 104.26, 38.75, 57.81, 44.57, 36.9, 113.82, 58.05, 41.23, 42.9, 47.65, 68.79, 35.97, 80.99, 73.35, 110.36, 70.43, 137.79, 38.41, 59.07, 102.81, 132.69, 79.66, 39.12, 39.19, 1.84, 39.05, 144.75, 77.74, 117.22, 41.29, 42.89, 55.39, 42.96, 32.85, 132.31, 48.1, 100.26, 47.98, 63.05, 33.79, 171.36, 92.73, 43.22, 117.47, 106.12, 115.54, 158.55, 44.29, 54.05, 86.24, 42.66, 63.67, 68.95, 41.68, 103.76, 57.04, 41.96, 107.8, 152.74, 41.47, 119.95, 43.58, 36.52, 160.09, 98.22, 146.82, 39.66, 50.79, 117.88, 47.21, 80.2, 34.49, 83.95, 153.24, 104.25, 144.62, 80.89}, + {22.89, 19.12, 127.41, 147.24, 20.64, 101.7, 16.75, 111.14, 24.75, 145.89, 70.61, 119.3, 124.56, 93.92, 95.68, 15.58, 34.85, 17.85, 19.34, 93.69, 35.88, 22.62, 24.39, 16.38, 42.27, 16.09, 66.44, 30.93, 95.21, 54.63, 127.74, 18.21, 37.84, 82.37, 132.77, 57.364, 22.89, 23.95, 38.94, 9.3, 133, 57.62, 94.87, 27.51, 24.98, 36.47, 26.64, 14.41, 85.55, 23.94, 81.39, 29.98, 42.92, 15.47, 152.79, 83.43, 24.65, 86.8, 89.33, 101.33, 125.86, 23.18, 34.23, 70.19, 26.67, 49.71, 49.53, 24.93, 102.09, 15.12, 16, 91.54, 147.17, 22.54, 103.2, 29.47, 12.14, 147.43, 70.22, 108.38, 15.07, 29.73, 92.62, 29.73, 58.82, 18.93, 67.56, 136.67, 84.04, 155.47, 61.94}, + {127.96, 137.68, 158.35, 78.5, 131.65, 66.32, 119.61, 147.47, 120.3, 44.37, 78.43, 155.05, 64.6, 130.53, 107.79, 118.2, 142.36, 122.77, 122.98, 118.65, 146.5, 123.23, 113.86, 129.53, 154.45, 122.15, 170.56, 153.57, 123.73, 87.52, 28.06, 135.34, 131.39, 79.41, 44.01, 134.312, 120.02, 121.25, 144.73, 132.97, 6.38, 126.42, 205, 130.02, 105.99, 151.05, 107.99, 126.02, 42.53, 143.25, 83.33, 134.56, 149.45, 121.01, 98.55, 181.17, 128.12, 98.48, 110.99, 133.63, 36.76, 120.31, 136.04, 109.97, 135.42, 85.05, 145.06, 127.7, 40.89, 134.3, 120.55, 190.42, 34.11, 119.64, 136.59, 120.61, 121.01, 23.6, 151.56, 53.97, 146.11, 150.24, 203.16, 135.75, 160.88, 119.78, 78.95, 161.03, 106.53, 57.98, 116.9}, + {67.46, 72.37, 175.12, 168.8, 54.33, 130.73, 53.12, 154.06, 56.89, 185.8, 102.72, 153.5, 154.82, 124.33, 115.88, 40.67, 76.91, 45.99, 34.18, 129.57, 77.16, 33, 38.22, 52.35, 59.83, 49.35, 104.43, 62.61, 129.27, 83.11, 141.97, 57.07, 72.81, 112.96, 132.5, 96.118, 57.75, 56.5, 77.88, 57.43, 126.71, 11.12, 134.98, 59.05, 35.69, 83.93, 40.02, 48.88, 123.89, 65.17, 116.8, 54.01, 74.97, 49.77, 184.72, 108.61, 47.32, 144.77, 123.93, 138.75, 175.03, 54.39, 63.87, 104.05, 48.31, 43.24, 78.43, 59.81, 124.97, 43.87, 44.04, 125.62, 123.51, 61.09, 132.47, 37.35, 50.04, 181.9, 112.01, 144.18, 67.92, 74.09, 137.13, 31.21, 91.42, 51.78, 101.33, 173.9, 128.76, 185.08, 91.88}, + {108.53, 110.86, 204.44, 224.14, 103.93, 137.2, 89.71, 186.75, 108.18, 225, 138.43, 205.74, 172.55, 165.16, 163.54, 86.14, 100.33, 103.3, 99.29, 161.55, 110.78, 101.36, 102.43, 91.68, 122.56, 95.29, 127.49, 118.28, 155.74, 117.37, 221.33, 91.87, 104.14, 147.83, 209.67, 115.462, 94.51, 94.23, 117.31, 95.75, 204.16, 128.77, 11.12, 108.52, 105.23, 95.25, 100.85, 83.62, 169.9, 105.01, 149.54, 112.52, 112.32, 88.87, 227.8, 119.79, 99.18, 144.2, 157.24, 164.62, 150.06, 99.82, 104.61, 143.19, 97.9, 123.88, 92.72, 106.3, 198.48, 102.55, 85.89, 101.96, 217.73, 99.41, 166.48, 100.9, 96.29, 197.3, 46.38, 140.65, 111.04, 112.2, 86.45, 106.45, 99.03, 89.48, 134.13, 207.5, 157.54, 215.94, 129.16}, + {34.64, 40.01, 141.79, 161.14, 8.38, 161.74, 22.79, 121.13, 13.51, 115.11, 76.29, 125.29, 128.6, 102.57, 98.46, 16.17, 42.04, 15.91, 28.19, 95.9, 44.51, 30.18, 29.67, 23.14, 32.52, 21.49, 67.05, 30.79, 104.99, 66.37, 143.63, 10.92, 45.81, 88.85, 148.32, 66.618, 29.48, 31.01, 41.28, 27.5, 129.99, 59.08, 107.96, 11.12, 41.6, 47.03, 37.81, 20.19, 104.68, 30.08, 88.86, 36.28, 52.34, 18.77, 160.96, 81.31, 29.49, 81.53, 99.02, 105.7, 147.87, 24.15, 44.15, 76.92, 27.08, 51.31, 67.83, 6.04, 137.91, 12.74, 10, 100.52, 152.74, 31.83, 112.47, 31.33, 23.55, 159.97, 84.2, 107.37, 43.96, 31.46, 110.59, 27.28, 83.48, 23.94, 75.9, 147.03, 97.34, 160.27, 68.79}, + {34.8, 37.15, 126.38, 158.16, 24.11, 156.57, 21.35, 121.25, 31.73, 116.05, 71.56, 123.34, 114.69, 94.89, 91.62, 15.01, 53.12, 20.34, 15.01, 94.76, 42.03, 3.31, 3.76, 24.16, 46.42, 19.16, 69.91, 33.7, 88.17, 54.49, 162.44, 28.79, 41.9, 85.02, 184.88, 67.432, 29.11, 27.88, 42.9, 25.09, 106.04, 35.75, 108.08, 41.59, 11.12, 47.74, 4.45, 18.88, 99.27, 29.33, 85.42, 30.85, 55.63, 18.59, 157.35, 78.04, 10.32, 108.5, 90.91, 104.38, 154.96, 10.92, 36.11, 72.73, 22, 25.35, 54.19, 36.79, 91.75, 16.82, 14.22, 95.68, 149.2, 28.63, 109.47, 8.11, 20.01, 150.98, 77.66, 103.23, 37.13, 39.5, 112.65, 23.34, 71.49, 21.69, 70.36, 0, 95.38, 122.28, 63.48}, + {42.08, 33.35, 147.51, 175.75, 45.06, 122.34, 32.6, 132.68, 49.66, 160.05, 87.14, 132.58, 171.14, 107.08, 132.09, 40.83, 56.87, 40.44, 37.98, 105.86, 52.92, 44.21, 45.91, 33.73, 66.04, 36.36, 80.37, 57.41, 97.74, 69.41, 168.25, 42.84, 53.74, 92.95, 163.38, 78.896, 36.14, 36.25, 55.42, 36.56, 151.11, 83.71, 95.38, 47.08, 47.76, 11.12, 49.16, 33.52, 156.29, 42.33, 102.51, 51.02, 58.09, 34.57, 169.55, 91, 45.09, 96.72, 102.95, 118.37, 170.96, 44.25, 47.07, 82.89, 46.92, 68.48, 79.93, 44.54, 143.52, 38.64, 40.98, 104.66, 163.45, 37.6, 115.42, 45.54, 35.12, 168.75, 77.42, 136.31, 42.97, 54.04, 102.42, 51.21, 82.44, 33.55, 81.89, 151.7, 103.06, 134.79, 81.35}, + {33.58, 40.45, 140.83, 151.41, 22.87, 101.47, 22.68, 122.5, 28.6, 129.21, 73.96, 123.2, 122.08, 102.38, 92.8, 17.07, 44.26, 15.21, 20.38, 102.85, 44.2, 7.67, 8.03, 32.34, 43.81, 21.54, 76.02, 31.38, 93.01, 56.18, 140.43, 22.82, 39.87, 84.11, 148.23, 66.5, 29.75, 31.13, 43.5, 27.2, 108.01, 41.49, 101.48, 37.53, 4.22, 50.28, 4.31, 32.32, 99.96, 37.09, 85.91, 25.33, 52.32, 19.27, 161.13, 96.77, 16.74, 94.98, 92.81, 106.97, 145.35, 11.83, 37.9, 78.72, 20.64, 34.53, 61.44, 29.44, 94.33, 15.82, 14.61, 97.47, 140.79, 31.97, 109.55, 16.43, 23.26, 149.82, 79.41, 107.82, 38.76, 42.44, 101.18, 20.16, 68.38, 25.56, 73.02, 145.84, 95.49, 138.23, 65.26}, + {19.16, 19.49, 112.95, 137.79, 12.72, 105.7, 6.81, 107.22, 22.38, 150.11, 63.34, 106.55, 118.46, 86.95, 77.19, 15.24, 31.53, 12.7, 10.22, 83.41, 31.51, 17.4, 17.88, 10.31, 39.47, 8.34, 57.33, 27.89, 89.83, 44.55, 124.39, 13.26, 29.25, 80.43, 131.05, 53.956, 13.19, 14.17, 32.87, 14.32, 126.01, 48.48, 83.61, 20.05, 18.56, 33.4, 21.77, 11.12, 88.37, 22.89, 70.01, 26.48, 39.65, 5.77, 147.66, 80.54, 19.77, 73.75, 82.1, 94.21, 136.33, 16.03, 26.27, 61.71, 22.16, 39.77, 44.54, 19.99, 89.3, 9.4, 15.92, 84.18, 139.08, 15.85, 92.13, 18.73, 11.21, 142.36, 70.36, 91.47, 21.54, 27.37, 84, 23.22, 67.96, 10.16, 58.85, 128.9, 80.49, 137.11, 56.16}, + {95.98, 96.94, 191.72, 80.5, 90.33, 29.42, 94.64, 169.33, 95.87, 18.71, 113.09, 185.42, 66.04, 155.71, 145.88, 84.47, 112.04, 119.05, 87.19, 158.04, 105.38, 90.36, 92.31, 102.73, 117.83, 88.82, 136.13, 122.94, 141.78, 121.42, 20.26, 95.58, 111.76, 35.85, 28.76, 102.822, 100.79, 97.81, 132.07, 85.68, 42.54, 123.49, 169.4, 104.3, 99.1, 155.49, 95.9, 88.33, 11.12, 101.52, 118.52, 135.85, 104.09, 86.7, 126.93, 139.34, 114.22, 53.28, 139.71, 161.42, 34.41, 95.41, 101.12, 130.22, 92.48, 111.8, 112.15, 95.12, 3.92, 132.7, 84.32, 139.73, 52.06, 90.57, 161.87, 96.9, 86.89, 33.39, 108.55, 19.2, 93.3, 106.41, 168.09, 98.35, 138.96, 93.68, 110.18, 197.67, 151.11, 64.03, 103.31}, + {39.09, 35.59, 129.06, 160.36, 25.19, 109.35, 23.06, 118.88, 32.79, 181.76, 76.98, 124.15, 131.98, 99.94, 95.04, 25.3, 48.18, 25.9, 23.6, 98.76, 47.11, 30.85, 29.29, 24.98, 52.92, 21.75, 73.94, 41.53, 100.45, 60.57, 136.65, 24.85, 43.23, 119.72, 192.58, 69.442, 30.5, 29.61, 48.07, 23.97, 143.3, 67.55, 101.47, 30.03, 29.34, 42.26, 36.87, 22.99, 101.29, 11.12, 86.03, 37.91, 52.39, 21.14, 158.15, 138.93, 34.12, 84.85, 94.77, 106.8, 170.71, 27.62, 38.58, 75.81, 35.3, 53.06, 71.82, 29.39, 141.86, 23.32, 25.07, 97.49, 154.22, 27.84, 112.72, 31.61, 23.39, 154.45, 78.81, 112.96, 36.07, 40.82, 106.81, 37.15, 77.89, 26.09, 75.42, 144.39, 94.92, 128.01, 71.83}, + {88.15, 83.19, 96.04, 109.59, 83.64, 136.97, 71.5, 78.31, 85.68, 126.33, 40.29, 81.09, 125.66, 58.41, 46.96, 85.75, 95.13, 79.23, 74.22, 64.67, 101.96, 90.53, 82.93, 75.24, 111.4, 74.57, 113.48, 96.42, 46.27, 31.4, 111.28, 86.78, 85.06, 140.03, 132.41, 112.3, 71.72, 74.49, 100.22, 81.43, 83.35, 117.08, 150.24, 88.86, 85.51, 102.48, 86.07, 70.03, 118.28, 86.01, 33.36, 88.43, 97.69, 69.74, 114.37, 125.46, 78.96, 141.61, 48.88, 67.28, 117.62, 83.13, 84.56, 45.89, 83.95, 107.61, 107.8, 85.86, 117.41, 79.23, 84.46, 144.03, 89.2, 74.64, 62.14, 82.76, 76.28, 96.31, 130.75, 132.62, 87.77, 97.54, 157, 88.74, 123.77, 68.92, 30.28, 99.91, 46.61, 120.59, 90.78}, + {25.44, 36.83, 136.79, 163.55, 21.14, 106.01, 26.02, 126.97, 16.24, 154.46, 81.33, 127.1, 121.03, 103.88, 93.5, 13.62, 45.7, 22.99, 26.96, 101.94, 47.25, 27.17, 27.06, 29.1, 61.43, 22.53, 78.39, 30.22, 96.75, 63.78, 125.31, 14.4, 44.17, 92.97, 104.47, 68.034, 31.38, 35.15, 47.93, 30.02, 134.49, 53.24, 112.94, 36.49, 30.88, 50.99, 25.68, 26.67, 135.75, 37.86, 88.42, 11.12, 56.44, 23.02, 164.81, 144.13, 32.97, 111.55, 96.06, 115.3, 155.3, 23.39, 43.39, 0, 6.6, 45.63, 57.2, 21.85, 97.92, 14.47, 16.85, 103.3, 157.46, 37.18, 110.68, 32.91, 25.06, 160.31, 74.89, 134.11, 42.59, 36.14, 106.05, 26.42, 66.43, 29.93, 77.52, 145.9, 93.74, 135.07, 68.85}, + {47.18, 55.2, 148.87, 168.92, 42.04, 117.25, 39.68, 132.17, 46.83, 127.69, 86.4, 132.06, 130.81, 111.65, 135.12, 42.15, 56.56, 43.36, 49.36, 112.51, 59.64, 45.98, 47.55, 34.21, 70.55, 39.88, 86.13, 60.43, 111.46, 68.54, 129.53, 46.85, 59.36, 102.67, 136.86, 78.624, 44.49, 40.52, 59.32, 40.33, 146.54, 71.92, 117.72, 48.96, 51.82, 58.28, 49.09, 35.37, 102.31, 48.79, 94.64, 57.47, 11.12, 38.7, 168.54, 89.86, 49.13, 100.61, 108.31, 122.97, 165.77, 46.19, 41.06, 84.3, 54.66, 69.7, 72.63, 44.73, 101.32, 46.78, 39.44, 111.1, 155.73, 30.4, 114.92, 49.93, 38.31, 159.72, 90.93, 146.79, 50.05, 58.09, 106.76, 53.86, 80.59, 38.18, 85.06, 148.2, 109.74, 149.94, 81.2}, + {25.02, 23.04, 120.12, 143.9, 16.31, 110.34, 4.8, 102.66, 23.06, 121.65, 59.95, 107.5, 114.35, 85.32, 78.28, 14.89, 33.36, 14.45, 7.8, 82.68, 33.51, 16.3, 15.44, 11.17, 40.68, 9.42, 53.5, 29.25, 81.88, 41.59, 113.77, 15.06, 25.63, 75.06, 110.32, 57.43, 11.84, 12.5, 33.86, 15.49, 121.03, 49.71, 88.81, 18.76, 18.56, 34.43, 18.52, 5.8, 86.73, 21.12, 69.76, 22.98, 40.73, 2.55, 147.07, 88.88, 15.48, 89.93, 80.47, 88.29, 132.1, 16.06, 23.18, 62.81, 18.87, 38.92, 48.37, 17.97, 94.42, 12.12, 14.79, 83.22, 139.89, 18, 90.53, 17.09, 12.51, 135.69, 68.15, 104.35, 24.45, 29.79, 91.56, 21.32, 63.66, 6.67, 56.14, 126.64, 78.46, 137.2, 55.4}, + {163.65, 154, 169.46, 23.2, 153.34, 164.6, 143.23, 165.26, 161.44, 140.97, 112.59, 164.76, 173.83, 146.23, 127.5, 158.42, 171.01, 153.73, 145.03, 152.73, 171.36, 161.13, 157.95, 148.46, 181.03, 150.45, 192.09, 171.31, 135.63, 109.44, 125.4, 153.76, 162.19, 157.89, 113.98, 167.5, 144.87, 142.42, 171.53, 152.63, 98.55, 184.56, 228.16, 160.62, 157.06, 169.44, 158.48, 147.94, 126.5, 158.56, 114.2, 164.83, 169.77, 146.94, 5.58, 203.4, 153.27, 169.37, 128.8, 143.48, 145.64, 157.24, 165.28, 123.77, 160.69, 179.06, 169.42, 157.12, 60.28, 154.11, 159.04, 223.89, 145.7, 147.45, 159.54, 159.4, 148.31, 122.76, 178.21, 144.67, 163.38, 167.46, 253.27, 163.36, 179.11, 142.03, 108.61, 177.92, 128.63, 157.43, 152.14}, + {145.77, 70.59, 98.82, 213.53, 105.72, 137.49, 91.05, 92.39, 117.95, 155.09, 132.61, 135.59, 173.99, 128.19, 129.35, 107.98, 127.66, 73.76, 69.49, 134.96, 127.24, 112.32, 75.61, 81.93, 103.42, 82.3, 106.96, 91.17, 108.26, 105.84, 160.45, 74.04, 77.4, 148.89, 154.97, 141.41, 71.91, 68.85, 93.23, 83.67, 181.65, 108.84, 119.83, 81.32, 78.05, 91.11, 98.43, 81.03, 139.15, 139.47, 125.67, 144.1, 92.74, 89.09, 203.74, 11.12, 73.33, 162.25, 111.87, 143.2, 185.39, 122.89, 46.82, 147.4, 136.93, 129.34, 134.83, 79.91, 198.33, 72.81, 106.49, 59.95, 168.85, 84.02, 198.66, 75.74, 79.87, 167.39, 96.45, 153.41, 201.77, 142.53, 91.87, 82.49, 151.05, 77.18, 125.35, 102.29, 126.88, 165.21, 116.39}, + {31.31, 33.77, 136.22, 155.16, 22.52, 100.74, 20.71, 118.11, 30.15, 128.3, 71.71, 118.77, 119.13, 93.44, 87.03, 21.94, 39.93, 28.23, 5.73, 97.07, 44.99, 9.38, 9.31, 26.72, 42.71, 16.79, 83.29, 57.73, 89.13, 52.5, 151.6, 23.64, 34.35, 84.82, 166.9, 64.79, 23.48, 28.96, 43.2, 24.67, 128.08, 47.99, 102.07, 29.46, 10.3, 45.89, 16.86, 20.02, 113.98, 34.16, 78.94, 32.91, 50.36, 15.48, 153.35, 73.28, 4.98, 96.91, 88.94, 102.66, 127.23, 17.93, 36.78, 71.16, 32.38, 31.58, 55.84, 25.02, 92.96, 40.56, 22.42, 96.22, 146.83, 29.67, 105.79, 10.54, 22.81, 147, 80.91, 111.71, 35.31, 34.72, 96.49, 27.66, 71.83, 20.75, 69.96, 139.69, 90.55, 140.75, 64.65}, + {86.13, 154.19, 187.24, 113.42, 110.42, 74.51, 88.06, 187.13, 107.71, 64.88, 141.64, 175.85, 114.58, 169.21, 162.62, 109.84, 124.6, 95, 106.16, 149.72, 98.95, 107.85, 83.61, 77.48, 102.33, 76.19, 150.29, 101.59, 189.86, 105.58, 66.37, 83.07, 92.71, 78.15, 56.37, 72.414, 96.46, 78.87, 117.47, 87.04, 98.62, 144.85, 144.41, 81.7, 108.5, 97.21, 95.23, 73.91, 53.18, 84.98, 141.59, 112.03, 103.02, 90.02, 169.35, 162.13, 97.27, 11.12, 145.6, 159.42, 79.26, 109.07, 84, 143.7, 113.91, 133.68, 63.24, 104.56, 95.1, 70.11, 103.26, 154.43, 150.67, 98.3, 206.36, 110.29, 96.13, 124.52, 120.67, 68.54, 75.72, 109.43, 149.7, 109.8, 66.01, 101, 128.59, 212.85, 153.38, 108.15, 112.27}, + {100.05, 93.72, 101.11, 137.02, 91.16, 158.37, 78.5, 77.82, 100.2, 146.78, 53.65, 100.46, 141.93, 55.57, 43.91, 90.06, 109.65, 87.99, 82.6, 55.25, 104.64, 91.18, 88.19, 81.9, 113.86, 85.94, 120.05, 103.34, 41.17, 40.63, 148.03, 89.96, 98.9, 144.87, 150.98, 117.732, 81.98, 80.84, 106.11, 89.38, 110.95, 125.07, 159.29, 98.91, 90.84, 102.96, 92.53, 82.03, 139.49, 94.86, 48.87, 95.98, 110.65, 80.46, 128.98, 111.84, 88.91, 145.28, 11.12, 95.62, 138.13, 91.89, 92.58, 51.51, 94.86, 111.66, 117.27, 95.53, 140.96, 87.63, 91.26, 151.06, 124.35, 90.24, 58.94, 95.53, 86.69, 122.4, 140.63, 150.77, 91.43, 101.05, 151.01, 95.81, 126.3, 76.36, 45.84, 0, 42.84, 142.71, 98.76}, + {104, 100.14, 64.07, 164.03, 96.03, 176.21, 85.91, 70.3, 119.41, 167.36, 65.05, 18.77, 181.42, 68.55, 81.16, 96.16, 125.15, 100.43, 94.72, 42.1, 114.87, 103.53, 95.85, 90.12, 132.47, 101.61, 133.07, 114.88, 69.48, 48.01, 149.08, 104.39, 118.7, 161.22, 166.27, 128.822, 94.97, 94.85, 115.37, 101.04, 133.49, 138.81, 169.93, 105.54, 104.25, 118.21, 106.33, 94.23, 161.43, 106.67, 67.17, 115.2, 126.17, 88.23, 143.83, 143.04, 102.87, 159.3, 95.34, 11.12, 167.61, 101.27, 105.56, 59.04, 109.89, 129.11, 125.13, 105.47, 149.69, 92.4, 91.39, 161.72, 127.78, 97.08, 67.8, 111.03, 96.89, 135.43, 146.45, 163.45, 99.78, 114.59, 174.18, 106.59, 135.12, 86.65, 56.56, 45.2, 51.77, 150.79, 109.97}, + {139.92, 185.44, 184.77, 115.72, 133.1, 50.1, 138.03, 169.02, 146.3, 31.42, 113.69, 184.81, 129.59, 145.31, 144.02, 130.38, 130.26, 153.91, 127.22, 143.17, 135.78, 136.15, 133.95, 142.09, 160.33, 130.42, 171.83, 168.21, 149.55, 109.87, 26.61, 143.05, 142.97, 82.78, 29.88, 113.67, 132.66, 142.84, 158.08, 125.66, 36.36, 174.53, 149.36, 147.52, 154.53, 170.34, 138.07, 136.1, 34.44, 170.06, 117.43, 154.85, 165.56, 131.88, 145.78, 184.95, 126.74, 78.8, 137.81, 167.3, 12.45, 143.45, 162.96, 122.45, 154.51, 129.84, 96.72, 133.51, 66.04, 164.45, 129.6, 142.58, 97.75, 137.42, 147.53, 145.13, 109.48, 58.1, 123.34, 49.07, 129.83, 163.96, 237.05, 154.17, 98.95, 124.96, 104.84, 188.44, 158.16, 35.25, 129.92}, + {29.7, 32.75, 133.24, 157.08, 19.95, 100.19, 17.3, 115.87, 29.66, 152.33, 70.6, 119.03, 121.84, 95.85, 89.87, 18.62, 39.47, 14.62, 17.6, 96.56, 40.98, 11.45, 20.55, 20.98, 40.92, 15.95, 64.63, 30.09, 99.07, 53.31, 117.99, 20.77, 41.73, 85.53, 145.08, 66.644, 23.01, 22.95, 44.31, 23.21, 120.36, 55.42, 99.78, 24.13, 10.88, 44.15, 12.27, 16.06, 95.4, 27.59, 83.04, 23.35, 48.92, 16.02, 157.09, 122.83, 17.88, 108.95, 91.77, 101.37, 143.86, 2.75, 32.73, 74.6, 21.55, 47.17, 56.13, 23.71, 90.69, 12.91, 18.69, 93.66, 149.89, 25.21, 102.99, 26.63, 17.11, 139.75, 72.97, 101.11, 36.09, 36.39, 103.15, 12.33, 68.46, 18.88, 68.17, 138.76, 89.19, 135.07, 63.29}, + {43.38, 36.98, 130.21, 156.43, 35.09, 109.48, 24.17, 118.28, 46.07, 149.42, 74.55, 121.63, 136.75, 97.6, 88.53, 33.88, 46.82, 34.39, 28.31, 102.19, 56.21, 36.96, 34.43, 28.59, 58.6, 26.94, 76.39, 48.8, 90.7, 57.01, 148.13, 34.94, 42.88, 89.7, 153.76, 72.702, 30.3, 26.48, 54.05, 34.24, 136.03, 64.01, 102.88, 44.11, 36.08, 47.04, 37.78, 26.28, 110.86, 38.57, 84.67, 43.37, 44.82, 23.13, 164.75, 46.49, 36.75, 113.17, 92.52, 105.69, 163.28, 32.77, 11.12, 70.58, 39.42, 55.56, 63.57, 35.52, 97.81, 31.26, 34.96, 100.22, 146.92, 12.21, 105.67, 33.93, 27.75, 149.25, 81.3, 110.16, 50.3, 47.24, 114.22, 40.67, 68.61, 25.9, 70.99, 138.7, 92.47, 117.26, 70.92}, + {77.18, 72.47, 89.94, 133.8, 73.93, 137.11, 61.06, 90.14, 72.75, 145.66, 39.34, 78.62, 142.01, 43.51, 37.25, 71.84, 85.47, 73.78, 68.33, 48.82, 90.93, 75.22, 71.45, 66.61, 102.44, 63.51, 104.33, 87.27, 41.66, 20.94, 120.63, 77.51, 71.97, 129.36, 144.84, 104.694, 61.94, 62.28, 86.24, 70.21, 109.97, 104.09, 142.74, 76.86, 72.77, 82.97, 78.63, 61.72, 130.34, 75.93, 45.97, 0, 87.58, 62.84, 124, 147.37, 71.17, 143.2, 51.61, 59.18, 122.85, 74.62, 70.6, 11.12, 84.05, 94.2, 101.51, 70.33, 146.73, 68.58, 72.81, 135.95, 110.71, 59.23, 64.28, 76.79, 64.8, 140.24, 123.13, 141.01, 77.13, 83.29, 150.3, 81.11, 109.61, 58.16, 33.05, 101.53, 51.12, 141.65, 85.86}, + {22.08, 33.32, 131.76, 158.04, 20.79, 100.47, 20.17, 115.82, 12.45, 119.87, 78.73, 123.84, 116.67, 100.42, 89.37, 14.68, 41.13, 14.92, 24.3, 92.54, 42.94, 24.72, 24.87, 23.18, 49.53, 17.19, 72.53, 26.47, 98.42, 58.1, 126.66, 11.44, 41.77, 89.42, 146.29, 64.336, 28.34, 31.67, 42.59, 26.64, 135.39, 47.78, 97.97, 27.05, 21.99, 46.95, 20.53, 22.46, 92.34, 35.29, 83.97, 6.59, 51.96, 18.86, 160.7, 136.88, 32.39, 113.4, 94.91, 110.01, 154.9, 21.54, 39.42, 84.02, 11.12, 49.83, 55.81, 18.8, 92.79, 13.63, 21.48, 100.33, 156.28, 30.12, 106.19, 29.16, 22.68, 154.78, 74.44, 102.3, 35.17, 23.97, 105.99, 27.56, 63.21, 25.94, 73.63, 138.79, 90.89, 114.51, 65.29}, + {52.96, 63.61, 154.08, 160.51, 47.95, 121.55, 39.91, 134.12, 50.18, 103.16, 94.29, 142.15, 82.96, 119.44, 110.52, 44.94, 63.39, 41.71, 29.1, 116.16, 66.32, 28.51, 25.16, 43.44, 44.51, 39.96, 89.14, 56.8, 117.67, 72.74, 82.99, 43.86, 59.83, 113.26, 87.04, 89.75, 46.67, 47.95, 63.7, 49.69, 85.02, 43.5, 122.75, 51.28, 25.35, 68.5, 34.31, 39.8, 112.1, 52.89, 107.55, 45.77, 72.49, 38.93, 178.94, 129.04, 31.61, 133.56, 111.59, 129.2, 130.13, 47.17, 55.64, 94.1, 49.88, 26.63, 87.94, 49.99, 78.14, 40.18, 44.19, 118.34, 97.85, 52.01, 123.35, 27.06, 41.97, 147.19, 103.46, 116.12, 57.32, 66.17, 122.22, 26.4, 84.3, 41.42, 91.09, 0, 114.71, 132.27, 76.78}, + {57.56, 62.98, 159.46, 159.18, 65.6, 95.41, 51.93, 144.2, 60.39, 95.27, 101.8, 151.28, 99.31, 116.88, 110.59, 57.74, 66.88, 53.55, 58.79, 124.61, 64.79, 63.03, 50.54, 50.32, 79.41, 50.78, 98.45, 68.1, 139.42, 75.29, 180.76, 54.67, 68.98, 92.07, 138.48, 47.428, 49.78, 57.85, 68.97, 49.52, 145.28, 78.24, 91.52, 67.79, 54.18, 79.91, 61.45, 44.13, 111.69, 71.96, 107.82, 57.13, 74.82, 48.44, 168.49, 132.97, 55.83, 63.24, 117.3, 125.27, 96.89, 56.2, 63.6, 101.51, 55.83, 87.93, 11.12, 55.45, 194.6, 48.16, 58.97, 105.43, 134.42, 60.38, 134.45, 56.5, 52.18, 147.56, 76.23, 155.55, 59.45, 67.41, 85.35, 61.74, 8.4, 48.45, 98.07, 160.44, 114.52, 131.92, 86.97}, + {20.55, 32.85, 140.05, 156.83, 11.59, 97.31, 20.06, 109.51, 6.74, 112.83, 72.1, 120.79, 121.76, 97.78, 91.74, 16.25, 48.18, 11.97, 24.69, 95.3, 42.98, 26.13, 23.18, 23.14, 46.65, 18.54, 65.66, 25.76, 98.34, 59.29, 137.25, 5.02, 40.73, 85.32, 141.76, 67.096, 27.07, 25.21, 41.65, 24.89, 127.59, 59.77, 100.85, 5.99, 36.73, 44.58, 29.14, 20.19, 95.25, 29.36, 85.76, 21.81, 47.59, 17.91, 157.27, 79.81, 25.14, 104.26, 95.57, 105.27, 133.87, 23.7, 35.44, 70.27, 18.77, 50, 55.54, 11.12, 92.46, 8.47, 8.33, 96.44, 141.08, 28.96, 105.69, 28.08, 21.3, 150.4, 74.33, 100.41, 32.24, 29.46, 100.31, 31.82, 82.79, 21.03, 70.12, 141.97, 91.4, 132.2, 63.43}, + {141.13, 147.91, 186.37, 63.02, 95.13, 26.96, 95.17, 193.07, 89.28, 14.85, 112.88, 178.87, 125.1, 155.34, 142.3, 81.37, 101.85, 94.15, 85.23, 153.87, 104.37, 87.83, 92.69, 120.96, 155.03, 84.12, 136.2, 142.59, 150.26, 125.76, 16.67, 128.52, 108.51, 27.26, 7.2, 138.444, 110.08, 91.52, 103.67, 102.15, 40.88, 126.99, 204.76, 137.88, 91.74, 143.32, 94.18, 89.42, 3.99, 141.91, 117.43, 97.85, 104.12, 94.52, 60.36, 197.83, 92.98, 94.92, 140.86, 149.76, 64.51, 90.66, 97.8, 146.74, 92.81, 78.01, 193.8, 92.52, 11.12, 127.16, 92.41, 165.47, 53.54, 83.97, 168.07, 89.76, 80.27, 26.91, 153.38, 15.47, 144.44, 125.62, 172.06, 134.1, 169.64, 85.76, 115.12, 198.65, 135.26, 23.65, 108.24}, + {8.71, 23.02, 130.83, 133.76, 3.11, 96.18, 14, 123.99, 9.49, 111.88, 68.51, 117.37, 120.91, 94.97, 85.77, 6.61, 34.28, 3.58, 10.69, 94.67, 34.71, 22.8, 18.76, 18.16, 30.54, 10.71, 64.4, 16.62, 94.74, 50.26, 130.14, 3.72, 33.78, 80.1, 130.87, 53.512, 20.52, 20.38, 56.98, 15.22, 134.13, 43.67, 101.28, 12.71, 16.78, 38.6, 15.94, 9.26, 133.7, 23.31, 79.35, 14.44, 44.83, 12.11, 154.3, 72.87, 40.58, 69.56, 87.57, 92.55, 164.75, 13, 31.25, 68.56, 13.64, 40.24, 48.16, 7.94, 126.36, 11.12, 12.1, 90.22, 145.93, 21.33, 99.35, 20.31, 9.44, 145.41, 75.97, 96.3, 23.72, 22.57, 106.12, 13.22, 67.93, 16.97, 66.41, 136.93, 85.56, 157.15, 59.34}, + {21.77, 31.43, 131.06, 146.3, 10.5, 98.73, 18.21, 109.77, 12.27, 106.92, 65.75, 112.76, 160.85, 94.95, 84.73, 5.94, 39.14, 8.38, 22.66, 99.09, 40.31, 18.6, 16.55, 19.96, 47.35, 12.72, 64.54, 22.41, 96.05, 58.87, 124.53, 5.53, 38.59, 84.31, 92.58, 64.736, 19.77, 20.96, 42.01, 16.11, 120.56, 44.38, 85.95, 9.99, 14.23, 40.92, 14.9, 16.03, 84.5, 25.11, 84.49, 16.88, 43.15, 14.79, 159.17, 106.27, 22.36, 103.2, 91.39, 91.57, 130.06, 18.64, 34.99, 72.82, 21.49, 44.23, 59, 8.47, 92.42, 12.13, 11.12, 90.72, 141.6, 21.79, 104.87, 22.91, 11.8, 122.94, 66.85, 117, 32.13, 32.2, 103.69, 18.26, 69.81, 17.35, 65.08, 129.32, 86.97, 119.75, 59.47}, + {98.51, 102.46, 197.43, 215.73, 97.99, 163.71, 83.17, 154.38, 98.89, 195.45, 131.38, 196.98, 164.16, 155.87, 153.18, 91.02, 104.42, 91.29, 87.17, 156.2, 106.55, 93.42, 92.8, 87.59, 119.86, 88.02, 125.9, 108.53, 149.78, 114.95, 173.34, 90.16, 99.23, 157.15, 169.6, 120.496, 82.94, 87.34, 107.82, 91.54, 190.4, 125.45, 101.07, 100.52, 95.66, 104.62, 97.15, 84.28, 139.61, 97.48, 144.06, 103.26, 111.85, 83.31, 223.7, 59.93, 96.21, 154, 151.05, 161.92, 142.8, 93.68, 100.22, 136.42, 100.34, 118.46, 105.42, 96.44, 165.4, 90.24, 90.7, 12.06, 200.03, 89.62, 166.48, 94.7, 89.28, 167.21, 30.12, 167.21, 96.77, 104.94, 43.65, 99.2, 116.99, 79.4, 128.18, 198.86, 149.81, 194.18, 121.13}, + {140.28, 158.84, 161.76, 141.79, 144.51, 135.51, 136.93, 166.58, 138.39, 72.49, 90.79, 157.98, 91.15, 129.65, 142.76, 140.92, 162.7, 146.1, 143.24, 139.81, 147.44, 143.53, 132.92, 138.46, 179.51, 140.52, 181.6, 163.83, 130.2, 101.54, 90.35, 156.64, 158.69, 142.81, 105.59, 144.576, 138.62, 140.87, 152.78, 147.12, 33.81, 124.78, 217.63, 152.63, 149.08, 163.26, 139.95, 139.53, 52.67, 154.29, 89.14, 157.4, 159.05, 139.76, 145.94, 168.4, 146.59, 149.79, 124.35, 127.9, 98.19, 149.9, 146.34, 110.61, 156.17, 97.7, 134.4, 141.33, 53.49, 145.9, 141.43, 200, 11.12, 136.6, 128.62, 132.99, 139.15, 31.93, 207.15, 102.91, 158.57, 146.87, 205.95, 157.93, 156.52, 132.21, 90.63, 167.69, 116.59, 72.01, 135.3}, + {33.17, 24.77, 123.19, 137.2, 25.58, 90.7, 16.69, 115.32, 30.92, 129.25, 67.86, 119.28, 143.23, 88.9, 79.99, 20.9, 43.09, 24.88, 22.56, 90.25, 45.47, 28.98, 29.74, 15.7, 51.15, 20.27, 67.28, 39.57, 91.38, 53.41, 143.34, 23.7, 37.12, 82.87, 148.16, 65.608, 20.38, 19.03, 41.43, 22.54, 119.7, 61.83, 99.25, 31.83, 28.61, 37.57, 30.91, 15.87, 90.45, 27.85, 74.67, 37.13, 31.97, 18, 147.36, 83.81, 29.68, 98.13, 90.26, 97.2, 139.35, 25.25, 12.22, 59.21, 30.11, 52.01, 60.36, 28.95, 83.97, 21.32, 21.75, 89.72, 136.73, 5.36, 92.42, 31.17, 16.64, 134.12, 65.04, 102.06, 26.43, 40.87, 101.23, 32.28, 66.39, 18.09, 62.36, 132.12, 83.99, 111.04, 62.29}, + {112.46, 106.44, 100.89, 173.29, 106.37, 171.99, 91.51, 89.72, 107.74, 179.6, 67.6, 102.26, 158.05, 62.75, 56.64, 103.59, 119.04, 99.23, 99.03, 72.97, 120.85, 106.16, 105.81, 92.29, 132.79, 96.5, 138.76, 118.61, 52.76, 53.26, 147.6, 103.18, 106.61, 170.02, 168.36, 149.318, 93.23, 93.05, 120.09, 103.35, 136.32, 132.33, 173.41, 112.82, 109.94, 115.25, 110.71, 92.09, 161.79, 112.34, 61.96, 110.69, 117.09, 90.63, 159.54, 198.73, 105.93, 205.72, 58.71, 67.81, 147.79, 103.09, 106.01, 65.37, 106.26, 126.05, 134.82, 105.73, 168.16, 99.4, 104.84, 166.76, 128.81, 92.55, 11.12, 108.84, 97.49, 151.91, 150.38, 168.97, 106.59, 120.4, 161.68, 116.1, 170.57, 89.97, 59.25, 109.36, 55.8, 170.13, 115.08}, + {41.32, 37.56, 137.79, 155.64, 25.12, 101.92, 18.46, 118.38, 31.73, 115.29, 70.11, 118.4, 131.17, 95.66, 91.07, 23.46, 46.8, 21.75, 6.79, 95.87, 42.96, 8.24, 8.91, 23.57, 44.78, 20.87, 68.15, 36.1, 97.55, 52.4, 108.56, 23.55, 40.58, 85.95, 121.32, 67.696, 23.26, 27.9, 43.51, 29.46, 120.67, 38.49, 104.56, 31.26, 8.07, 45.43, 15.72, 18.7, 96.64, 31.53, 82.67, 32.64, 52.6, 17.05, 159.32, 75.22, 10.51, 110.2, 95.45, 111.07, 145.03, 26.64, 33.9, 76.73, 29.1, 26.98, 56.4, 28.05, 89.72, 20.26, 22.88, 94.62, 133.03, 30.53, 108.73, 4.06, 21.13, 152.31, 86.35, 107.2, 35.69, 37.64, 101.46, 27.78, 70.26, 20.05, 69.22, 140.54, 99.98, 148.2, 63.98}, + {23.27, 18.61, 126.08, 139.72, 15.39, 101.93, 12.26, 114.06, 25.49, 127.75, 64.95, 114.69, 121.59, 87.66, 82.84, 12.01, 31.87, 12.24, 13.44, 91.22, 34.05, 17.64, 19.11, 12.85, 39.99, 12.97, 61.66, 27, 84.85, 49.21, 142.33, 12.4, 33, 75.96, 151.1, 58.784, 19.13, 18.34, 36.53, 12.29, 121.02, 50.02, 95.83, 23.53, 20.01, 35.1, 22.83, 11.28, 86.82, 23.5, 76.31, 25.02, 39.54, 12.53, 148.57, 79.71, 22.84, 96.07, 86.67, 97.02, 109.95, 17.17, 27.19, 64.79, 22.72, 41.99, 52.23, 21.24, 80.92, 9.44, 11.79, 89.3, 139.26, 16.74, 97.53, 21.25, 7.5, 133.38, 63.8, 90.87, 22.11, 29.4, 93.03, 23.55, 58.5, 13.83, 62.72, 133.45, 83.2, 126.7, 57.72}, + {149.34, 166.21, 173.66, 129.67, 149.97, 54.32, 129.27, 160.24, 157.53, 29.72, 104.84, 189.39, 44.43, 150.08, 149.11, 123.46, 153.11, 147.64, 139.48, 154.1, 164.94, 131.37, 144.87, 143.1, 179.88, 125.65, 177.08, 165.7, 146.73, 96.18, 15.73, 150.62, 154.44, 65.22, 40.31, 129.896, 135.08, 136.67, 159.84, 146.68, 23.64, 181.87, 197.35, 159.88, 150.76, 168.36, 149.98, 141.42, 33.25, 153.38, 96.31, 159.84, 162.53, 135.61, 121.41, 166.95, 146.38, 124.52, 122.44, 135.69, 58.74, 139.26, 149.29, 140.3, 154.8, 148, 147.41, 148.95, 26.93, 145.43, 122.98, 167.25, 32.76, 134.15, 152.04, 152.94, 133.06, 11.12, 150.77, 46.9, 159.46, 166.55, 203.73, 142.37, 81.41, 130.2, 90.43, 170.91, 121.93, 36.65, 129.59}, + {89.24, 76.71, 180.66, 157.49, 71.38, 107.96, 69, 136.38, 76.12, 119.44, 117.47, 166.25, 178.49, 185.43, 135.87, 66.83, 83.5, 74.46, 72.25, 163.77, 85.31, 76.19, 78.61, 68.72, 109.36, 71.56, 113.55, 86.47, 185.97, 103.35, 111, 77.04, 85.22, 127.93, 101.61, 101.464, 73.05, 70.16, 95.25, 70.57, 151.61, 111.83, 46.27, 84.22, 77.84, 77.34, 78.45, 70.08, 108.49, 77.82, 131.2, 74.85, 89.85, 68.4, 178.72, 96.41, 80.18, 120.75, 140.81, 147.52, 119.33, 72.99, 81.24, 122.95, 75.06, 103.49, 76.06, 74.33, 153.32, 75.89, 66.88, 30.05, 207.19, 65.15, 149.74, 86.57, 64.16, 150.72, 11.12, 171.45, 79.16, 92.97, 15.86, 79.2, 115.25, 68.28, 115.71, 185.97, 138.31, 122.69, 102.29}, + {112.69, 143.85, 196.15, 131.12, 101.13, 62.9, 96.72, 189.76, 103.25, 44.34, 132.23, 186.29, 93.39, 157.26, 147.06, 93.17, 114.54, 97.8, 99.2, 161.6, 149.17, 113.63, 106.03, 116.3, 125.79, 112.81, 141.45, 121.58, 174.31, 137.55, 32.31, 98.08, 136.11, 51.36, 22, 114.976, 132.02, 135.78, 146.89, 108.8, 53.58, 143.74, 140.39, 107.74, 104.07, 136.14, 107.9, 91.39, 18.48, 113.11, 132.46, 134.51, 146.43, 104.31, 144.75, 153.44, 111.83, 67.67, 150.73, 163.74, 49.1, 101.02, 110.25, 140.52, 102.78, 115.97, 156.86, 100.39, 15.54, 96.75, 116.7, 167.59, 104, 102.06, 167.01, 106.82, 90.84, 46.34, 172.26, 11.12, 118.54, 127.8, 196.76, 106.83, 105.82, 106.06, 126.31, 200.02, 160.56, 113.36, 116.73}, + {25.09, 12.27, 131.04, 168.57, 34.21, 104.34, 25.57, 115.34, 26.62, 193.25, 81.9, 125.1, 134.74, 105.01, 122.6, 28.28, 47.66, 29.48, 33.79, 98.11, 38.78, 37.37, 35.67, 24.44, 45.68, 26.4, 71.44, 48.2, 97.72, 61.6, 153.77, 31.33, 40.98, 90.14, 157.42, 58.726, 26.23, 25.85, 39.67, 15.14, 146.46, 67.89, 109.62, 44.1, 37.14, 42.87, 38.11, 21.51, 93, 36.12, 87.82, 42.57, 51.95, 24.47, 163.58, 201.75, 35.27, 75.69, 91.39, 99.94, 130.04, 36.15, 50.35, 77.62, 35.2, 57.4, 59.45, 32.34, 144.43, 23.73, 32.32, 96.79, 159.2, 26.45, 106.3, 35.75, 22.03, 159.44, 79.15, 118.64, 11.12, 28.42, 90.79, 43.48, 57.56, 26.34, 77.8, 143.45, 99.34, 170.72, 72.51}, + {26.56, 37.9, 143.59, 165.2, 32.9, 118.33, 29.43, 121.99, 22.73, 168.93, 85.61, 134.37, 136.26, 106.97, 104.42, 31.05, 52.87, 29.27, 29.01, 109.76, 53.22, 35, 40.94, 33.91, 39.96, 28.75, 81.78, 34.06, 108.72, 66.69, 144.02, 30.02, 49.79, 101.04, 152.2, 67.426, 38.34, 34.91, 50.69, 29.69, 150.15, 74.07, 110.95, 31.87, 39.63, 54.04, 41.34, 27.48, 107.34, 40.85, 97.46, 36.05, 60.54, 29.79, 167.32, 142.49, 34.73, 109.29, 101.14, 114.31, 164.12, 36.35, 47.27, 83.34, 23.85, 66.11, 67.81, 29.63, 125.57, 22.65, 32.55, 103.83, 147.04, 40.81, 120.31, 37.61, 29.38, 166.36, 92.78, 127.63, 28.36, 6.47, 103.43, 36.52, 77.46, 32.45, 81.69, 154.7, 100.91, 173.94, 76.1}, + {102.71, 113.63, 207.14, 221.09, 97.78, 177.18, 86.3, 182.12, 105, 254.07, 140.25, 200.32, 137.99, 162.52, 162.05, 94.07, 94.94, 93.01, 92.98, 162.02, 97.27, 96.51, 95.49, 88.65, 118.15, 90.75, 142.28, 116.75, 163.94, 109.85, 197.06, 93.7, 100.73, 152.38, 185.39, 108.058, 82.94, 95.47, 115.98, 88.79, 200.5, 132.4, 81.79, 105.72, 107.67, 99.82, 98.2, 77.91, 161.4, 104.2, 155.8, 101.55, 100.65, 88.65, 248.45, 87.59, 96.39, 145.31, 143.24, 166.12, 230.15, 96.33, 111.91, 151.87, 101.24, 117.22, 79.05, 97.57, 170.85, 97.11, 101.01, 42.52, 201.11, 97.25, 160.54, 96.58, 87.31, 205.63, 11.23, 193.79, 84.26, 101.02, 11.12, 94.11, 88.36, 88.38, 138.25, 210.6, 157.31, 216.36, 126.55}, + {21.46, 36.12, 140.49, 162.85, 32.33, 102.36, 24.39, 126.72, 29.18, 114.6, 79.83, 125.07, 122.92, 103.38, 98.19, 16.96, 42.98, 17.34, 23.01, 97.54, 44.8, 19.55, 28.3, 26.83, 38.09, 20.73, 76.54, 27.59, 102.71, 65.38, 144.45, 16.11, 50.28, 82.21, 142.11, 70.792, 30.45, 37.3, 47.23, 29.81, 135.74, 31.14, 100.11, 27.27, 23.24, 51.17, 19.75, 23.06, 98.33, 37.18, 88.74, 26.41, 56.86, 21.31, 163.43, 82.43, 27.6, 109.77, 95.75, 106.72, 154.7, 12.37, 40.66, 81.07, 27.57, 26.4, 61.97, 31.62, 134.11, 12.99, 18.24, 99.13, 158.71, 32.28, 113.09, 27.83, 23.55, 142.35, 79.21, 106.99, 43.48, 36.59, 98.47, 11.12, 77.71, 28.04, 76.59, 148.03, 96.86, 168.76, 67.92}, + {66.61, 65.9, 172.2, 153.09, 67.53, 96.29, 64.06, 154.54, 65.09, 112.32, 111.6, 159.45, 82.47, 131.84, 126.17, 63.3, 82.99, 63.92, 64.82, 132.79, 89.86, 66.23, 58.78, 64.79, 103.27, 62.88, 113.01, 86.28, 117.48, 89.36, 114.7, 57.88, 75.62, 108.56, 72.75, 51.37, 64.26, 66.73, 80.27, 58.91, 160.94, 91.39, 99.1, 83.5, 71.5, 82.4, 68.61, 68.73, 139.91, 77.9, 123.81, 65.53, 79.51, 63.73, 179.52, 151.23, 71.91, 65.95, 126.42, 135.29, 99.13, 68.51, 68.05, 109.63, 63.25, 84.45, 8.43, 82.89, 169.68, 68.06, 68.84, 116.49, 156.57, 66.41, 170.35, 70.33, 58.5, 81.51, 115.18, 105.75, 57.57, 77.28, 91.51, 77.73, 11.12, 62.05, 108.16, 177.45, 132.75, 149.45, 94.07}, + {26.11, 23.37, 118.71, 141.21, 20.64, 100.22, 8.37, 101.88, 24.23, 114.75, 56.03, 104.66, 118.26, 81.94, 74.63, 17.78, 34.06, 17.76, 12.87, 84.53, 35.51, 18.61, 18.88, 10.79, 43.25, 13.32, 50.9, 34.1, 78.89, 38.55, 122.3, 18.32, 23.26, 80.11, 128.11, 59.912, 8.17, 10.44, 34.4, 18.98, 119.74, 51.7, 89.06, 23.91, 21.65, 33.46, 22.56, 10.26, 93.43, 26.03, 68.89, 29.94, 38.67, 6.67, 142.08, 77.1, 20.74, 100.82, 76.36, 86.73, 125.31, 18.92, 25.84, 58.11, 25.92, 41.35, 48.46, 20.92, 85.75, 16.96, 17.29, 79.33, 132.35, 17.74, 89.77, 20.09, 13.8, 130.36, 67.85, 106.17, 26.29, 32.43, 92.45, 27.96, 61.95, 4.79, 53, 124, 74.44, 127.04, 55.9}, + {75.78, 72.51, 87.7, 116.46, 68.82, 129.65, 57.28, 73.71, 72.48, 119.25, 26.93, 79.73, 127.33, 53.46, 43.89, 63.74, 83.05, 66.25, 61.4, 55.94, 84.78, 66.45, 67.38, 60.18, 96.93, 61.18, 98.83, 82.99, 47.44, 18.32, 101.35, 69.42, 74.83, 125.13, 121.77, 99.178, 57.22, 59.04, 83.91, 67.49, 78.94, 101.61, 134.02, 75.8, 70.36, 81.79, 72.26, 58.88, 110.09, 75.37, 30.22, 77.3, 86.9, 56.04, 108.69, 125.41, 69.93, 128.32, 45.77, 56.62, 105.16, 68.13, 70.98, 33.03, 73.71, 91.04, 98, 70.08, 114.85, 66.53, 64.99, 128.19, 90.78, 62.36, 58.89, 69.22, 62.6, 90.55, 115.63, 126.01, 77.71, 81.72, 141.94, 76.53, 108.02, 53, 22.53, 93.94, 44.2, 119.8, 79.83}, + {145.62, 144.26, 12.97, 187.06, 140.29, 217.37, 125.19, 39.15, 141.82, 217.1, 104.55, 31.1, 221.66, 79.99, 95.57, 129.03, 154.57, 139.35, 142.48, 85.29, 156.74, 130.88, 131.01, 131.21, 169.16, 135.28, 170.16, 150.91, 105.13, 93.03, 182.34, 137.7, 144.45, 207.65, 206.38, 170.988, 135.46, 137.18, 154.7, 137.39, 160.03, 181.75, 207.44, 146.82, 144.37, 145.68, 145.27, 127.73, 196.37, 144.04, 100.68, 148.24, 157.81, 128.07, 178.87, 103.09, 136.92, 212.31, 93.07, 42.28, 191.6, 136.5, 143.65, 107.83, 137.23, 163.99, 158.13, 141.89, 195.4, 133.53, 135.29, 201.34, 167.73, 131.07, 105.28, 140.97, 132.77, 169.05, 188.07, 201.65, 145.66, 160.12, 218.86, 150.11, 181.23, 126.98, 95.53, 11.12, 93.47, 202.7, 143.15}, + {89.23, 97.47, 85.86, 141.12, 88.87, 154.54, 78.26, 83.94, 95.41, 151.5, 51.89, 86.61, 164.66, 48.78, 70.17, 83.33, 101.93, 85.42, 79.84, 66.75, 104.03, 89.82, 92.71, 80.49, 114.21, 82.84, 117.24, 103.77, 40.24, 39.68, 135.03, 91.76, 101.43, 145.02, 158.91, 119.96, 79.38, 77.76, 104.01, 84.12, 107.32, 128.82, 155.97, 97.32, 96.34, 102.82, 95.7, 80.54, 151.5, 94.83, 46.61, 93.97, 109.33, 78.4, 128.88, 126.69, 90.42, 152.23, 42.68, 51.69, 158, 89.19, 92.87, 51.03, 90.7, 114.82, 114.3, 92.24, 135.5, 85.64, 86.95, 149.56, 116.49, 83.95, 55.48, 100.18, 83.22, 121.72, 139.37, 158.58, 99.24, 100.83, 165.08, 96.76, 132.82, 74.51, 44.09, 92.61, 11.12, 149.63, 99.62}, + {130.19, 202.61, 210.41, 99.96, 149.7, 97.26, 141.64, 190.04, 131.74, 36.37, 128.05, 192.62, 105.97, 174.48, 140.62, 124.62, 165.74, 134.82, 142.14, 166.93, 152.24, 131.6, 125, 118.81, 156.3, 125, 186.72, 176.61, 158.12, 131.86, 39.41, 151.34, 153, 106.3, 32.71, 143.894, 144.93, 165.11, 149.91, 158.58, 62.96, 188.45, 220.93, 164.52, 125.91, 139.43, 141.74, 141.27, 69.38, 134.43, 125.35, 139.9, 158.24, 141.58, 162.2, 171.56, 145.48, 112.21, 147.27, 153.82, 40.35, 141.42, 118.72, 144.91, 120.24, 137.21, 136.11, 137.88, 28.5, 161.22, 125.12, 201.18, 77.41, 115.67, 170.13, 152.5, 131.38, 39.87, 126.79, 118.2, 174.37, 177.33, 231, 173.47, 156.2, 131.15, 123.94, 205.98, 155.54, 18.14, 137.62}, + {68.41, 74.25, 136.57, 145.41, 62.1, 114.02, 56.33, 124.32, 65.53, 124.79, 83.67, 128.56, 132.71, 106.13, 100.48, 58.38, 79.12, 60.2, 58.95, 105.4, 78.8, 62.22, 61.66, 59.56, 86.46, 57.17, 101.93, 75.53, 104.81, 70.64, 123.16, 61.9, 74.75, 102.92, 128.8, 76.27, 60.78, 62.07, 80.88, 61.99, 116.9, 91.98, 129.17, 68.77, 65.06, 81.42, 64.79, 56.45, 103.57, 71.97, 90.87, 68.79, 83.13, 55.52, 151.96, 116.16, 64.61, 112.42, 99.65, 109.8, 129.95, 63.41, 70.23, 86.15, 65.31, 78.74, 87.08, 63.56, 108.04, 59.19, 59.8, 120.81, 135.57, 62.15, 114.25, 64.05, 57.83, 129.51, 102.32, 116.45, 72.45, 76.37, 130.36, 67.85, 94.36, 56.05, 79.88, 137.53, 99.52, 133.24, 11.12}, + }; + + /** + * Median download bandwidth of each country in megabytes per second MBps + */ + protected static final double[] DOWNLOAD_BANDWIDTH_AVERAGE = { + 56.68, 11.04, 69.85, 79.47, 108.29, 48.79, 135.63, 141.49, 100.33, 31.23, 202.95, 260.92, 237.96, 101.46, + 70.33, 93.92, 66.99, 103.19, 243.01, 94.46, 161.12, 242.44, 28.09, 146.78, 53.61, 45.14, 32.22, 32.28, + 271.31, 223.04, 70.86, 31.96, 22.67, 135.2, 189.58, 124.97, 217.85, 62.96, 19.03, 71.69, 157.66, 21.45, + 161.72, 185.55, 122.74, 171.07, 66.17, 169.48, 30.32, 184.88, 212.17, 43.1, 176.98, 15.05, 147.46, 71.08, + 87.01, 171.21, 187.6, 245.52, 104.23, 106.16, 93.11, 280.67, 143.9, 149.33, 58.29, 242.13, 213.3, 15.93, + 188.09, 255.41, 203.24, 21.31, 240.63, 11.54, 52.79, 18.47, 73.92, 208.84, 122.19, 222.64, 172.59, 31.19, + 94.45, 63.46}; + public static final double DOWNLOAD_BANDWIDTH_SHAPE = 1.8; + protected static final double[] UPLOAD_BANDWIDTH_AVERAGE = { + 27.66, 2.15, 31.57, 24.93, 27.1, 47.59, 25.82, 81.71, 78.97, 31.9, 92.17, 204.37, 53.56, 59.96, 38.56, + 47.08, 27.08, 52.03, 172.94, 75.42, 73.58, 171.96, 29.8, 35.84, 34.56, 9.52, 10.99, 15.85, 225.49, 110.46, + 69.24, 21.11, 12.86, 35.66, 41.92, 57.69, 189.8, 59.46, 20.72, 24.13, 150.13, 15.17, 148.02, 114.78, 62.18, + 27.2, 25.77, 145.62, 16.8, 106.33, 129.2, 15.58, 152.08, 14.56, 42.1, 45.01, 84.52, 62.27, 76.75, 209.59, + 105.56, 43.54, 28.91, 255.65, 58.52, 46.6, 43.28, 198.1, 191.51, 9.33, 157.91, 169.23, 192.2, 18.63, 190.31, + 5.21, 21.19, 19.66, 74.87, 111.02, 35.47, 83.75, 51.33, 26.43, 82.17, 27.06}; + public static final double UPLOAD_BANDWIDTH_SHAPE = 1.8; + + public static final double LATENCY_PARETO_SHAPE = 5; + + + public GlobalNetworkStats86Countries(RandomnessEngine randomnessEngine) { + this.randomnessEngine = randomnessEngine; + } + + @Override + public double getLatency(EightySixCountries fromPosition, EightySixCountries toPosition) { + double mean = GLOBAL_LATENCY_BY_REGION[fromPosition.getValue()][toPosition.getValue()]; + double scale = ((LATENCY_PARETO_SHAPE-1)/LATENCY_PARETO_SHAPE) * mean; + return randomnessEngine.sampleParetoDistribution(scale, LATENCY_PARETO_SHAPE)/1000; + } + + @Override + public long sampleDownloadBandwidth(EightySixCountries region) { + return (long) randomnessEngine.sampleLogNormalDistribution(DOWNLOAD_BANDWIDTH_AVERAGE[region.getValue()], + DOWNLOAD_BANDWIDTH_SHAPE)*1000000; + } + + @Override + public long sampleUploadBandwidth(EightySixCountries region) { + return (long) randomnessEngine.sampleLogNormalDistribution(UPLOAD_BANDWIDTH_AVERAGE[region.getValue()], + UPLOAD_BANDWIDTH_SHAPE)*1000000; + } +} diff --git a/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinNodeGlobalNetworkStats86Countries.java b/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinNodeGlobalNetworkStats86Countries.java new file mode 100644 index 00000000..2509b8de --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinNodeGlobalNetworkStats86Countries.java @@ -0,0 +1,47 @@ +package jabs.network.stats.eightysixcountries.bitcoin; + +import jabs.network.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.eightysixcountries.EightySixCountries; +import jabs.network.stats.eightysixcountries.GlobalNetworkStats86Countries; +import jabs.network.stats.sixglobalregions.GlobalNetworkStats6Region; +import jabs.network.stats.sixglobalregions.SixRegions; +import jabs.simulator.randengine.RandomnessEngine; + +public class BitcoinNodeGlobalNetworkStats86Countries extends GlobalNetworkStats86Countries + implements NodeGlobalRegionDistribution { + + private static final double[] BITCOIN_COUNTRIES_DISTRIBUTION_2022 = { + 0, 0, 0.00211889346674514, 0.0160094173042966, 0.00494408475573867, 0, 0.00470865214832254, + 0.00965273690406121, 0.00447321954090642, 0.000235432607416127, 0.0397881106533255, 0.000824014125956445, + 0.0104767510300177, 0.000706297822248381, 0.000353148911124191, 0.00176574455562095, 0.000588581518540318, + 0.0104767510300177, 0.00164802825191289, 0.000588581518540318, 0.0281341965862272, 0.0588581518540318, 0, + 0.171630370806357, 0, 0.00105944673337257, 0.000117716303708064, 0.000235432607416127, 0.0103590347263096, + 0.00317834020011772, 0.00729841082989994, 0.00153031194820483, 0.000588581518540318, 0.00835785756327251, + 0.000706297822248381, 0.00835785756327251, 0.0164802825191289, 0.000941730429664509, 0, 0, + 0.000941730429664509, 0.000117716303708064, 0.00565038257798705, 0.000588581518540318, 0.0012948793407887, + 0.000353148911124191, 0.00188346085932902, 0.00105944673337257, 0.0454384932313125, 0.00223660977045321, 0, + 0, 0.00270747498528546, 0, 0.000353148911124191, 0, 0.000117716303708064, 0.00506180105944673, + 0.00235432607416127, 0.00447321954090642, 0.0226015303119482, 0.000117716303708064, 0.000824014125956445, + 0.0189523248969982, 0.00235432607416127, 0.00141259564449676, 0.00353148911124191, 0, 0.00706297822248381, + 0.000117716303708064, 0.0100058858151854, 0.0168334314302531, 0.00306062389640965, 0.000117716303708064, + 0.00188346085932902, 0.00141259564449676, 0, 0, 0.00835785756327251, 0.000588581518540318, + 0.0303708063566804, 0.241671571512654, 0.000117716303708064, 0.000470865214832254, + 0.00117716303708064, 0.125132430841672 + }; + public static final int BITCOIN_NUM_NODES_2022 = 7983; + + public BitcoinNodeGlobalNetworkStats86Countries(RandomnessEngine randomnessEngine) { + super(randomnessEngine); + } + + @Override + public EightySixCountries sampleRegion() { + return EightySixCountries.sixRegionsValues[ + randomnessEngine.sampleFromDistribution(BITCOIN_COUNTRIES_DISTRIBUTION_2022)]; + } + + @Override + public int totalNumberOfNodes() { + return BITCOIN_NUM_NODES_2022; + } +} diff --git a/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinProofOfWorkGlobalNetworkStats86Countries.java b/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinProofOfWorkGlobalNetworkStats86Countries.java new file mode 100644 index 00000000..a09c51e6 --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/bitcoin/BitcoinProofOfWorkGlobalNetworkStats86Countries.java @@ -0,0 +1,62 @@ +package jabs.network.stats.eightysixcountries.bitcoin; + +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.stats.eightysixcountries.EightySixCountries; +import jabs.simulator.randengine.RandomnessEngine; + +import static jabs.network.stats.sixglobalregions.ethereum.EthereumNodeGlobalNetworkStats6Regions.ETHEREUM_NUM_NODES_2022; + +public class BitcoinProofOfWorkGlobalNetworkStats86Countries extends BitcoinNodeGlobalNetworkStats86Countries + implements ProofOfWorkGlobalNetworkStats { + + public BitcoinProofOfWorkGlobalNetworkStats86Countries(RandomnessEngine randomnessEngine) { + super(randomnessEngine); + } + + public static final double[] BITCOIN_MINER_REGION_DISTRIBUTION_2020 = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.158, 0, 0.4906, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.269, 0, 0, 0, 0, 0, 0, 0, 0, + 0.467, 0.207, 0, 0, 0, 0.765, 0, 0, 0, 0, 0, 0, 0.366, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.647, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1612, 0, 0, 0, 0.602 + }; + + /** + * Hash power probability distribution (CDF) in Bitcoin Network + */ + public static final double[] BITCOIN_HASH_POWER_DISTRIBUTION_2022 = { + 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625 + }; + + /** + * Hash power probability distribution (Hash Power Values) in Bitcoin Network presented in ExaHash per second + */ + public static final long[] BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022 = { + 50, 37, 33, 23, 22, 17, 13, 10, 8, 5, 2, 1, 1, 1, 1, 1 + }; + + public static final int BITCOIN_NUM_MINERS_2022 = 30; + + public static final long BITCOIN_DIFFICULTY_2022 = 225; + + @Override + public EightySixCountries sampleMinerRegion() { + return EightySixCountries.sixRegionsValues[randomnessEngine.sampleFromDistribution(BITCOIN_MINER_REGION_DISTRIBUTION_2020)]; + } + + @Override + public double sampleMinerHashPower() { + return randomnessEngine.sampleDistributionWithBins(BITCOIN_HASH_POWER_DISTRIBUTION_2022, BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022); + } + + /** + * @return The share of miner nodes to all nodes in the Bitcoin network + */ + @Override + public double shareOfMinersToAllNodes() { + return BITCOIN_NUM_MINERS_2022/(double)BITCOIN_NUM_NODES_2022; + } + + @Override + public int totalNumberOfMiners() { + return BITCOIN_NUM_MINERS_2022; + } +} diff --git a/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumNodeGlobalNetworkStats86Countries.java b/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumNodeGlobalNetworkStats86Countries.java new file mode 100644 index 00000000..f81c944e --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumNodeGlobalNetworkStats86Countries.java @@ -0,0 +1,48 @@ +package jabs.network.stats.eightysixcountries.ethereum; + +import jabs.network.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.eightysixcountries.EightySixCountries; +import jabs.network.stats.sixglobalregions.GlobalNetworkStats6Region; +import jabs.network.stats.sixglobalregions.SixRegions; +import jabs.simulator.randengine.RandomnessEngine; + +public class EthereumNodeGlobalNetworkStats86Countries extends GlobalNetworkStats6Region + implements NodeGlobalRegionDistribution { + + private static final double[] ETHEREUM_REGION_DISTRIBUTION_2022 = { + 0, 0, 0.00050778605280975, 0.0157413676371022, 0.00626269465132024, 0, 0.0044008124576845, + 0.002708192281652, 0.0010155721056195, 0, 0.0260663507109005, 0.00016926201760325, 0.0206499661475965, 0, + 0.00016926201760325, 0.0023696682464455, 0.00016926201760325, 0.00321597833446175, 0.00050778605280975, + 0.00152335815842925, 0.0401150981719702, 0.0260663507109005, 0.00016926201760325, 0.116621530128639, 0, + 0.000677048070412999, 0, 0, 0.012186865267434, 0.00118483412322275, 0.00220040622884225, + 0.000846310088016249, 0, 0.019634394041977, 0.00220040622884225, 0.00423155044008125, 0.0240352064996615, + 0.000677048070412999, 0, 0, 0.000846310088016249, 0, 0.0023696682464455, 0.0003385240352065, + 0.001354096140826, 0.00050778605280975, 0.000846310088016249, 0.0003385240352065, 0, 0.0154028436018957, + 0.0030467163168585, 0, 0.00186188219363575, 0, 0, 0, 0, 0.00355450236966825, 0.002031144211239, + 0.0016926201760325, 0.011509817197021, 0, 0.00050778605280975, 0.0473933649289099, 0.000677048070412999, + 0.00186188219363575, 0.00050778605280975, 0.0204807041299932, 0.0044008124576845, 0, 0.0023696682464455, + 0.0111712931618145, 0.0044008124576845, 0, 0.00118483412322275, 0, 0.0016926201760325, 0, + 0.0037237643872715, 0.00016926201760325, 0.041299932295193, 0.473087339201083, 0.00050778605280975, 0, + 0.0010155721056195, 0.00152335815842925 + }; + + public static final int ETHEREUM_NUM_NODES_2022 = 5906; + + public EthereumNodeGlobalNetworkStats86Countries(RandomnessEngine randomnessEngine) { + super(randomnessEngine); + } + + @Override + public EightySixCountries sampleRegion() { + return EightySixCountries.sixRegionsValues[ + randomnessEngine.sampleFromDistribution(ETHEREUM_REGION_DISTRIBUTION_2022)]; + } + + /** + * @return Number of total nodes in the ethereum network + */ + @Override + public int totalNumberOfNodes() { + return ETHEREUM_NUM_NODES_2022; + } +} diff --git a/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumProofOfWorkGlobalNetworkStats86Countries.java b/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumProofOfWorkGlobalNetworkStats86Countries.java new file mode 100644 index 00000000..3d8f0a12 --- /dev/null +++ b/src/main/java/jabs/network/stats/eightysixcountries/ethereum/EthereumProofOfWorkGlobalNetworkStats86Countries.java @@ -0,0 +1,81 @@ +package jabs.network.stats.eightysixcountries.ethereum; + +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.stats.sixglobalregions.SixRegions; +import jabs.network.stats.sixglobalregions.ethereum.EthereumNodeGlobalNetworkStats6Regions; +import jabs.simulator.randengine.RandomnessEngine; + +public class EthereumProofOfWorkGlobalNetworkStats86Countries extends EthereumNodeGlobalNetworkStats6Regions + implements ProofOfWorkGlobalNetworkStats { + + public EthereumProofOfWorkGlobalNetworkStats86Countries(RandomnessEngine randomnessEngine) { + super(randomnessEngine); + } + public static final double[] ETHEREUM_MINER_REGION_DISTRIBUTION_2020 = { + 0, 0, 0.00050778605280975, 0.0157413676371022, 0.00626269465132024, 0, 0.0044008124576845, + 0.002708192281652, 0.0010155721056195, 0, 0.0260663507109005, 0.00016926201760325, 0.0206499661475965, 0, + 0.00016926201760325, 0.0023696682464455, 0.00016926201760325, 0.00321597833446175, 0.00050778605280975, + 0.00152335815842925, 0.0401150981719702, 0.0260663507109005, 0.00016926201760325, 0.116621530128639, 0, + 0.000677048070412999, 0, 0, 0.012186865267434, 0.00118483412322275, 0.00220040622884225, + 0.000846310088016249, 0, 0.019634394041977, 0.00220040622884225, 0.00423155044008125, 0.0240352064996615, + 0.000677048070412999, 0, 0, 0.000846310088016249, 0, 0.0023696682464455, 0.0003385240352065, + 0.001354096140826, 0.00050778605280975, 0.000846310088016249, 0.0003385240352065, 0, 0.0154028436018957, + 0.0030467163168585, 0, 0.00186188219363575, 0, 0, 0, 0, 0.00355450236966825, 0.002031144211239, + 0.0016926201760325, 0.011509817197021, 0, 0.00050778605280975, 0.0473933649289099, 0.000677048070412999, + 0.00186188219363575, 0.00050778605280975, 0.0204807041299932, 0.0044008124576845, 0, 0.0023696682464455, + 0.0111712931618145, 0.0044008124576845, 0, 0.00118483412322275, 0, 0.0016926201760325, 0, + 0.0037237643872715, 0.00016926201760325, 0.041299932295193, 0.473087339201083, 0.00050778605280975, 0, + 0.0010155721056195, 0.00152335815842925 + }; + + /** + * Hash power probability distribution (CDF) in Ethereum Network + */ + public static final double[] ETHEREUM_HASH_POWER_DISTRIBUTION_2022 = { + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027 + }; + + /** + * Hash power probability distribution (Hash Power Values) in Ethereum Network + */ + public static final long[] ETHEREUM_HASH_POWER_DISTRIBUTION_BIN_2022 = { + 1051, 285, 144, 114, 69, 55, 34, 30, 28, 27, 25, 22, 22, 21, 20, 16, + 15, 14, 14, 11, 11, 10, 9, 8, 6, 6, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2, 1 + }; + + public static final int ETHEREUM_NUM_MINERS_2022 = 37; + + public static final long ETHEREUM_DIFFICULTY_2022 = 2097; + + + @Override + public SixRegions sampleMinerRegion() { + return SixRegions.sixRegionsValues[randomnessEngine.sampleFromDistribution(ETHEREUM_MINER_REGION_DISTRIBUTION_2020)]; + } + + @Override + public double sampleMinerHashPower() { + return randomnessEngine.sampleDistributionWithBins(ETHEREUM_HASH_POWER_DISTRIBUTION_2022, + ETHEREUM_HASH_POWER_DISTRIBUTION_BIN_2022); + } + + /** + * @return The share of miner nodes to all nodes in the Bitcoin network + */ + @Override + public double shareOfMinersToAllNodes() { + return ETHEREUM_NUM_MINERS_2022 /(double)ETHEREUM_NUM_NODES_2022; + } + + /** + * @return total number of miners in Ethereum network + */ + @Override + public int totalNumberOfMiners() { + return ETHEREUM_NUM_MINERS_2022; + } +} diff --git a/src/main/java/jabs/network/networks/stats/lan/LAN100MNetworkStats.java b/src/main/java/jabs/network/stats/lan/LAN100MNetworkStats.java similarity index 83% rename from src/main/java/jabs/network/networks/stats/lan/LAN100MNetworkStats.java rename to src/main/java/jabs/network/stats/lan/LAN100MNetworkStats.java index 0488966f..fcc0fa4f 100644 --- a/src/main/java/jabs/network/networks/stats/lan/LAN100MNetworkStats.java +++ b/src/main/java/jabs/network/stats/lan/LAN100MNetworkStats.java @@ -1,12 +1,11 @@ -package jabs.network.networks.stats.lan; +package jabs.network.stats.lan; -import jabs.network.networks.stats.NetworkStats; -import jabs.network.networks.stats.sixglobalregions.SixRegions; +import jabs.network.stats.NetworkStats; import jabs.simulator.randengine.RandomnessEngine; public class LAN100MNetworkStats implements NetworkStats { protected final RandomnessEngine randomnessEngine; - protected static final double LAN_AVERAGE_LATENCY = 0.002; // 2 milli seconds + protected static final double LAN_AVERAGE_LATENCY = 0.02; // 20 milli seconds protected static final double LATENCY_PARETO_SHAPE = 5; protected static final long LAN_AVERAGE_BANDWIDTH = 100000000; diff --git a/src/main/java/jabs/network/networks/stats/lan/SingleNodeType.java b/src/main/java/jabs/network/stats/lan/SingleNodeType.java similarity index 87% rename from src/main/java/jabs/network/networks/stats/lan/SingleNodeType.java rename to src/main/java/jabs/network/stats/lan/SingleNodeType.java index 8162032f..ddfedee6 100644 --- a/src/main/java/jabs/network/networks/stats/lan/SingleNodeType.java +++ b/src/main/java/jabs/network/stats/lan/SingleNodeType.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats.lan; +package jabs.network.stats.lan; public enum SingleNodeType { LAN_NODE(0); diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/GlobalNetworkStats6Region.java b/src/main/java/jabs/network/stats/sixglobalregions/GlobalNetworkStats6Region.java similarity index 96% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/GlobalNetworkStats6Region.java rename to src/main/java/jabs/network/stats/sixglobalregions/GlobalNetworkStats6Region.java index bb66de84..db1f80da 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/GlobalNetworkStats6Region.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/GlobalNetworkStats6Region.java @@ -1,14 +1,13 @@ -package jabs.network.networks.stats.sixglobalregions; +package jabs.network.stats.sixglobalregions; -import jabs.network.networks.stats.NetworkStats; +import jabs.network.stats.NetworkStats; import jabs.simulator.randengine.RandomnessEngine; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; -import static jabs.network.networks.stats.sixglobalregions.SixRegions.*; +import static jabs.network.stats.sixglobalregions.SixRegions.*; import static java.util.Map.entry; public class GlobalNetworkStats6Region implements NetworkStats { @@ -34,10 +33,17 @@ public class GlobalNetworkStats6Region implements NetworkStats { entry(AUSTRALIA, Arrays.asList(0.09650, 0.06950, 0.31000, 0.09550, 0.12600, 0.12650, 0.03000, 0.09850, 0.04550, 0.00200)) ); + /** + * Sample download speed in bits per second + */ public static final long[] DOWNLOAD_BANDWIDTH_BIN = { 600000, 1600000, 3600000, 7600000, 15600000, 31600000, 63600000, 127600000, 255600000, 499600000 }; + + /** + * Sample upload speed in bits per second + */ public static final long[] UPLOAD_BANDWIDTH_BIN = { 200000, 400000, 800000, 1600000, 3200000, 6400000, 12800000, 25600000, 51200000, 99900000 }; diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/SixRegions.java b/src/main/java/jabs/network/stats/sixglobalregions/SixRegions.java similarity index 87% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/SixRegions.java rename to src/main/java/jabs/network/stats/sixglobalregions/SixRegions.java index f3194d66..38ab20fa 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/SixRegions.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/SixRegions.java @@ -1,4 +1,4 @@ -package jabs.network.networks.stats.sixglobalregions; +package jabs.network.stats.sixglobalregions; public enum SixRegions { NORTH_AMERICA(0), diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java b/src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java similarity index 61% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java rename to src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java index c68fde91..67b97acd 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinNodeGlobalNetworkStats6Regions.java @@ -1,15 +1,14 @@ -package jabs.network.networks.stats.sixglobalregions.bitcoin; +package jabs.network.stats.sixglobalregions.bitcoin; -import jabs.network.networks.stats.NetworkStats; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; -import jabs.network.networks.stats.sixglobalregions.GlobalNetworkStats6Region; -import jabs.network.networks.stats.sixglobalregions.SixRegions; +import jabs.network.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.sixglobalregions.GlobalNetworkStats6Region; +import jabs.network.stats.sixglobalregions.SixRegions; import jabs.simulator.randengine.RandomnessEngine; public class BitcoinNodeGlobalNetworkStats6Regions extends GlobalNetworkStats6Region implements NodeGlobalRegionDistribution { private static final double[] BITCOIN_REGION_DISTRIBUTION_2019 = {0.3316, 0.4998, 0.0090, 0.1177, 0.0224, 0.0195}; - public static final int ETHEREUM_NUM_NODES_2022 = 16052; + public static final int BITCOIN_NUM_NODES_2022 = 16052; public BitcoinNodeGlobalNetworkStats6Regions(RandomnessEngine randomnessEngine) { super(randomnessEngine); @@ -22,6 +21,6 @@ public SixRegions sampleRegion() { @Override public int totalNumberOfNodes() { - return ETHEREUM_NUM_NODES_2022; + return BITCOIN_NUM_NODES_2022; } } diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java b/src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java similarity index 60% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java rename to src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java index 90ba7d44..2b35a7a1 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/bitcoin/BitcoinProofOfWorkGlobalNetworkStats6Regions.java @@ -1,29 +1,34 @@ -package jabs.network.networks.stats.sixglobalregions.bitcoin; +package jabs.network.stats.sixglobalregions.bitcoin; -import jabs.network.networks.stats.MinerGlobalRegionDistribution; -import jabs.network.networks.stats.ProofOfWorkGlobalNetworkStats; -import jabs.network.networks.stats.sixglobalregions.SixRegions; +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.stats.sixglobalregions.SixRegions; import jabs.simulator.randengine.RandomnessEngine; +import static jabs.network.stats.sixglobalregions.ethereum.EthereumNodeGlobalNetworkStats6Regions.ETHEREUM_NUM_NODES_2022; + public class BitcoinProofOfWorkGlobalNetworkStats6Regions extends BitcoinNodeGlobalNetworkStats6Regions implements ProofOfWorkGlobalNetworkStats { - public BitcoinProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine randomnessEngine) { super(randomnessEngine); } - - public static final double[] BITCOIN_MINER_REGION_DISTRIBUTION_2020 = {0.0875, 0.0863, 0.0111, 0.8146, 0.0000, 0.0005}; + public static final double[] BITCOIN_MINER_REGION_DISTRIBUTION_2020 = { + 0.0875, 0.0863, 0.0111, 0.8146, 0.0000, 0.0005 + }; /** * Hash power probability distribution (CDF) in Bitcoin Network */ - public static final double[] BITCOIN_HASH_POWER_DISTRIBUTION_2022 = {0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625}; + public static final double[] BITCOIN_HASH_POWER_DISTRIBUTION_2022 = { + 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625, 0.0625 + }; /** * Hash power probability distribution (Hash Power Values) in Bitcoin Network presented in ExaHash per second */ - public static final long[] BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022 = {50, 37, 33, 23, 22, 17, 13, 10, 8, 5, 2, 1, 1, 1, 1, 1}; + public static final long[] BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022 = { + 50, 37, 33, 23, 22, 17, 13, 10, 8, 5, 2, 1, 1, 1, 1, 1 + }; public static final int BITCOIN_NUM_MINERS_2022 = 30; @@ -33,10 +38,18 @@ public SixRegions sampleMinerRegion() { } @Override - public long sampleMinerHashPower() { + public double sampleMinerHashPower() { return randomnessEngine.sampleDistributionWithBins(BITCOIN_HASH_POWER_DISTRIBUTION_2022, BITCOIN_HASH_POWER_DISTRIBUTION_BIN_2022); } + /** + * @return The share of miner nodes to all nodes in the Bitcoin network + */ + @Override + public double shareOfMinersToAllNodes() { + return BITCOIN_NUM_MINERS_2022/(double)ETHEREUM_NUM_NODES_2022; + } + @Override public int totalNumberOfMiners() { return BITCOIN_NUM_MINERS_2022; diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java b/src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java similarity index 64% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java rename to src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java index fba6e1f3..58959be8 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumNodeGlobalNetworkStats6Regions.java @@ -1,14 +1,14 @@ -package jabs.network.networks.stats.sixglobalregions.ethereum; +package jabs.network.stats.sixglobalregions.ethereum; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; -import jabs.network.networks.stats.sixglobalregions.GlobalNetworkStats6Region; -import jabs.network.networks.stats.sixglobalregions.SixRegions; +import jabs.network.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.sixglobalregions.GlobalNetworkStats6Region; +import jabs.network.stats.sixglobalregions.SixRegions; import jabs.simulator.randengine.RandomnessEngine; public class EthereumNodeGlobalNetworkStats6Regions extends GlobalNetworkStats6Region implements NodeGlobalRegionDistribution { private static final double[] ETHEREUM_REGION_DISTRIBUTION_2020 = {0.3503, 0.3563, 0.0100, 0.2358, 0.0414, 0.0062}; - public static final int ETHEREUM_NUM_NODES_2020 = 6203; + public static final int ETHEREUM_NUM_NODES_2022 = 5906; public EthereumNodeGlobalNetworkStats6Regions(RandomnessEngine randomnessEngine) { super(randomnessEngine); @@ -20,10 +20,10 @@ public SixRegions sampleRegion() { } /** - * @return + * @return Number of total nodes in the ethereum network */ @Override public int totalNumberOfNodes() { - return ETHEREUM_NUM_NODES_2020; + return ETHEREUM_NUM_NODES_2022; } } diff --git a/src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java b/src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java new file mode 100644 index 00000000..b101298e --- /dev/null +++ b/src/main/java/jabs/network/stats/sixglobalregions/ethereum/EthereumProofOfWorkGlobalNetworkStats6Regions.java @@ -0,0 +1,63 @@ +package jabs.network.stats.sixglobalregions.ethereum; + +import jabs.network.stats.ProofOfWorkGlobalNetworkStats; +import jabs.network.stats.sixglobalregions.SixRegions; +import jabs.simulator.randengine.RandomnessEngine; + +public class EthereumProofOfWorkGlobalNetworkStats6Regions extends EthereumNodeGlobalNetworkStats6Regions + implements ProofOfWorkGlobalNetworkStats { + + public EthereumProofOfWorkGlobalNetworkStats6Regions(RandomnessEngine randomnessEngine) { + super(randomnessEngine); + } + public static final double[] ETHEREUM_MINER_REGION_DISTRIBUTION_2020 = {0.0875, 0.0863, 0.0111, 0.8146, 0.0000, 0.0005}; + + /** + * Hash power probability distribution (CDF) in Ethereum Network + */ + public static final double[] ETHEREUM_HASH_POWER_DISTRIBUTION_2022 = { + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027, + 0.027027027, 0.027027027, 0.027027027, 0.027027027, 0.027027027 + }; + + /** + * Hash power probability distribution (Hash Power Values) in Ethereum Network + */ + public static final long[] ETHEREUM_HASH_POWER_DISTRIBUTION_BIN_2022 = { + 1051, 285, 144, 114, 69, 55, 34, 30, 28, 27, 25, 22, 22, 21, 20, 16, + 15, 14, 14, 11, 11, 10, 9, 8, 6, 6, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2, 1 + }; + + public static final int ETHEREUM_NUM_MINERS_2022 = 37; + + + @Override + public SixRegions sampleMinerRegion() { + return SixRegions.sixRegionsValues[randomnessEngine.sampleFromDistribution(ETHEREUM_MINER_REGION_DISTRIBUTION_2020)]; + } + + @Override + public double sampleMinerHashPower() { + return randomnessEngine.sampleDistributionWithBins(ETHEREUM_HASH_POWER_DISTRIBUTION_2022, + ETHEREUM_HASH_POWER_DISTRIBUTION_BIN_2022); + } + + /** + * @return The share of miner nodes to all nodes in the Bitcoin network + */ + @Override + public double shareOfMinersToAllNodes() { + return ETHEREUM_NUM_MINERS_2022 /(double)ETHEREUM_NUM_NODES_2022; + } + + /** + * @return total number of miners in Ethereum network + */ + @Override + public int totalNumberOfMiners() { + return ETHEREUM_NUM_MINERS_2022; + } +} diff --git a/src/main/java/jabs/network/networks/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java b/src/main/java/jabs/network/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java similarity index 75% rename from src/main/java/jabs/network/networks/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java rename to src/main/java/jabs/network/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java index c3427fab..5c7002af 100644 --- a/src/main/java/jabs/network/networks/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java +++ b/src/main/java/jabs/network/stats/sixglobalregions/iota/IOTANodeDistribution6Region.java @@ -1,8 +1,8 @@ -package jabs.network.networks.stats.sixglobalregions.iota; +package jabs.network.stats.sixglobalregions.iota; -import jabs.network.networks.stats.NodeGlobalRegionDistribution; -import jabs.network.networks.stats.sixglobalregions.GlobalNetworkStats6Region; -import jabs.network.networks.stats.sixglobalregions.SixRegions; +import jabs.network.stats.NodeGlobalRegionDistribution; +import jabs.network.stats.sixglobalregions.GlobalNetworkStats6Region; +import jabs.network.stats.sixglobalregions.SixRegions; import jabs.simulator.randengine.RandomnessEngine; public class IOTANodeDistribution6Region extends GlobalNetworkStats6Region diff --git a/src/main/java/jabs/package-info.java b/src/main/java/jabs/package-info.java new file mode 100644 index 00000000..7e3d2081 --- /dev/null +++ b/src/main/java/jabs/package-info.java @@ -0,0 +1 @@ +package jabs; \ No newline at end of file diff --git a/src/main/java/jabs/scenario/AbstractScenario.java b/src/main/java/jabs/scenario/AbstractScenario.java index 1595c6dc..c077c1b0 100644 --- a/src/main/java/jabs/scenario/AbstractScenario.java +++ b/src/main/java/jabs/scenario/AbstractScenario.java @@ -2,10 +2,13 @@ import jabs.log.AbstractLogger; import jabs.network.networks.Network; +import jabs.simulator.event.Event; import jabs.simulator.randengine.RandomnessEngine; import jabs.simulator.Simulator; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import java.util.concurrent.TimeUnit; /** @@ -19,7 +22,7 @@ public abstract class AbstractScenario { protected Network network; protected Simulator simulator; protected RandomnessEngine randomnessEngine; - protected AbstractLogger logger; + protected List loggers = new ArrayList<>(); long progressMessageIntervals; final String name; @@ -64,17 +67,24 @@ public String getName() { /** * creates an abstract scenario with a user defined name + * @param name scenario name string * @param seed this value gives the simulation a randomnessEngine seed - * @param logger this is output log of the scenario */ - public AbstractScenario(String name, long seed, AbstractLogger logger) { + public AbstractScenario(String name, long seed) { this.randomnessEngine = new RandomnessEngine(seed); this.name = name; simulator = new Simulator(); - this.logger = logger; this.progressMessageIntervals = TimeUnit.SECONDS.toNanos(2); } + /** + * Adds a new logger module to the simulation scenario + * @param logger the logger module + */ + public void AddNewLogger(AbstractLogger logger) { + this.loggers.add(logger); + } + /** * Sets the interval between two in progress messages * @param progressMessageIntervals the progress message interval described in nanoseconds @@ -86,28 +96,43 @@ public void setProgressMessageIntervals(long progressMessageIntervals) { /** * When called starts the simulation and runs everything to the end of simulation. This also * logs events using the logger object. + * @throws IOException */ public void run() throws IOException { System.err.printf("Staring %s...\n", this.name); this.createNetwork(); this.insertInitialEvents(); - logger.setScenario(this); - logger.initialLog(); + for (AbstractLogger logger:this.loggers) { + logger.setScenario(this); + logger.initialLog(); + } long simulationStartingTime = System.nanoTime(); long lastProgressMessageTime = simulationStartingTime; - while (simulator.thereIsMoreEvents() && !this.simulationStopCondition()) { - logger.logBeforeEvent(); + while (simulator.isThereMoreEvents() && !this.simulationStopCondition()) { + Event event = simulator.peekEvent(); + for (AbstractLogger logger:this.loggers) { + logger.logBeforeEachEvent(event); + } simulator.executeNextEvent(); - logger.logAfterEvent(); + for (AbstractLogger logger:this.loggers) { + logger.logAfterEachEvent(event); + } if (System.nanoTime() - lastProgressMessageTime > this.progressMessageIntervals) { - System.err.printf("Simulation in progress. Elapsed Real Time: %d, Elapsed Simulation Time: %.0f\n", - TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - simulationStartingTime), - this.simulator.getCurrentTime()); + double realTime = TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - simulationStartingTime); + double simulationTime = this.simulator.getSimulationTime(); + System.err.printf( + "Simulation in progress... " + + "Elapsed Real Time: %d:%02d:%02d, Elapsed Simulation Time: %d:%02d:%02d\n", + (long)(realTime / 3600), (long)((realTime % 3600) / 60), (long)(realTime % 60), + (long)(simulationTime / 3600), (long)((simulationTime % 3600) / 60), (long)(simulationTime % 60) + ); lastProgressMessageTime = System.nanoTime(); } } - logger.finalLog(); + for (AbstractLogger logger:this.loggers) { + logger.finalLog(); + } System.err.printf("Finished %s.\n", this.name); } diff --git a/src/main/java/jabs/scenario/BitcoinGlobalNetworkScenario.java b/src/main/java/jabs/scenario/BitcoinGlobalNetworkScenario.java index 9adce666..6b25074b 100644 --- a/src/main/java/jabs/scenario/BitcoinGlobalNetworkScenario.java +++ b/src/main/java/jabs/scenario/BitcoinGlobalNetworkScenario.java @@ -1,41 +1,62 @@ package jabs.scenario; -import jabs.log.AbstractLogger; -import jabs.network.networks.BitcoinGlobalProofOfWorkNetworkWithoutTx; -import jabs.network.networks.stats.sixglobalregions.bitcoin.BitcoinProofOfWorkGlobalNetworkStats6Regions; +import jabs.consensus.config.NakamotoConsensusConfig; +import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx; +import jabs.network.networks.bitcoin.BitcoinGlobalProofOfWorkNetworkWithoutTx; +import jabs.network.stats.eightysixcountries.bitcoin.BitcoinProofOfWorkGlobalNetworkStats86Countries; + +import static jabs.network.stats.eightysixcountries.bitcoin.BitcoinProofOfWorkGlobalNetworkStats86Countries.BITCOIN_DIFFICULTY_2022; public class BitcoinGlobalNetworkScenario extends AbstractScenario { - public final double simulationStopTime; + public final double stopTime; public final double averageBlockInterval; + public final int confirmationDepth; /** - * creates an abstract scenario with a user defined name + * creates a Bitcoin network scenario with parameters close to real-world but excluding transaction simulation for + * better simulation speed * - * @param name determines the name of simulation scenario - * @param seed this value gives the simulation seed value for randomness engine - * @param logger this is output log of the scenario + * @param name determines the name of simulation scenario + * @param seed this value gives the simulation seed value for randomness engine + * @param stopTime this determines how many seconds of simulation world time should it last. + * @param averageBlockInterval This determines the interval between two block generations in seconds. + * @param confirmationDepth The depth at which a block is considered confirmed (eg. 6) */ - public BitcoinGlobalNetworkScenario(String name, long seed, AbstractLogger logger, long simulationStopTime, double averageBlockInterval) { - super(name, seed, logger); - this.simulationStopTime = simulationStopTime; + public BitcoinGlobalNetworkScenario(String name, long seed, long stopTime, + double averageBlockInterval, int confirmationDepth) { + super(name, seed); + this.stopTime = stopTime; this.averageBlockInterval = averageBlockInterval; + this.confirmationDepth = confirmationDepth; } + /** + * Creates the network and populates it with miners and nodes almost equal to the real world. + */ @Override protected void createNetwork() { BitcoinGlobalProofOfWorkNetworkWithoutTx bitcoinNetwork = new BitcoinGlobalProofOfWorkNetworkWithoutTx<> - (randomnessEngine, new BitcoinProofOfWorkGlobalNetworkStats6Regions(randomnessEngine)); + (randomnessEngine, new BitcoinProofOfWorkGlobalNetworkStats86Countries(randomnessEngine)); this.network = bitcoinNetwork; - bitcoinNetwork.populateNetwork(simulator, this.averageBlockInterval); + bitcoinNetwork.populateNetwork(simulator, + new NakamotoConsensusConfig(BitcoinBlockWithoutTx.generateGenesisBlock(BITCOIN_DIFFICULTY_2022), + this.averageBlockInterval, this.confirmationDepth)); } + /** + * Starts mining in the network by creating mining processes for each node. + */ @Override protected void insertInitialEvents() { ((BitcoinGlobalProofOfWorkNetworkWithoutTx) network).startAllMiningProcesses(); } + /** + * Stops simulation after `stopTime` + * @return true if stopTime is passed + */ @Override protected boolean simulationStopCondition() { - return simulator.getCurrentTime() > simulationStopTime; + return simulator.getSimulationTime() > stopTime; } } diff --git a/src/main/java/jabs/scenario/EthereumCasperNetworkScenario.java b/src/main/java/jabs/scenario/EthereumCasperNetworkScenario.java deleted file mode 100644 index 1144504f..00000000 --- a/src/main/java/jabs/scenario/EthereumCasperNetworkScenario.java +++ /dev/null @@ -1,65 +0,0 @@ -package jabs.scenario; - -import jabs.consensus.algorithm.CasperFFG; -import jabs.network.networks.BitcoinGlobalProofOfWorkNetworkWithoutTx; -import jabs.network.networks.GlobalNetwork; -import jabs.network.networks.GlobalProofOfWorkNetwork; -import jabs.network.networks.stats.sixglobalregions.bitcoin.BitcoinProofOfWorkGlobalNetworkStats6Regions; -import jabs.network.networks.stats.sixglobalregions.ethereum.EthereumNodeGlobalNetworkStats6Regions; -import jabs.network.networks.stats.sixglobalregions.ethereum.EthereumProofOfWorkGlobalNetworkStats6Regions; -import jabs.network.node.nodes.PeerBlockchainNode; -import jabs.simulator.event.PacketDeliveryEvent; -import jabs.log.AbstractLogger; -import jabs.network.message.VoteMessage; -import jabs.network.networks.CasperFFGGlobalBlockchainNetwork; -import jabs.simulator.event.TxGenerationProcessRandomNetworkNode; -import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; - -public class EthereumCasperNetworkScenario extends AbstractScenario { - public final int numOfMiners; - public final int numOfNonMiners; - public final int checkpointSpace; - public final double simulationStopTime; - public final double txGenerationRate; - public final double blockGenerationRate; - - public double simulationTime = 0; - public long totalVoteMassageTraffic = 0; - - public DescriptiveStatistics blockFinalizationTimes = new DescriptiveStatistics(); - - public EthereumCasperNetworkScenario(long seed, AbstractLogger logger, int numOfMiners, int numOfNonMiners, int checkpointSpace, - long simulationStopTime, double txGenerationRate, double blockGenerationRate) { - super("Ethereum Casper Network", seed, logger); - this.numOfMiners = numOfMiners; - this.numOfNonMiners = numOfNonMiners; - this.checkpointSpace = checkpointSpace; - this.simulationStopTime = simulationStopTime; - this.txGenerationRate = txGenerationRate; - this.blockGenerationRate = blockGenerationRate; - } - - @Override - public void createNetwork() { - this.network = new CasperFFGGlobalBlockchainNetwork(randomnessEngine, checkpointSpace, - new EthereumProofOfWorkGlobalNetworkStats6Regions(randomnessEngine)); - ((GlobalProofOfWorkNetwork) network).populateNetwork(simulator, numOfMiners, numOfNonMiners); - } - - @Override - protected void insertInitialEvents() { - ((CasperFFGGlobalBlockchainNetwork) network).startAllMiningProcesses(); - simulator.putEvent(new TxGenerationProcessRandomNetworkNode(simulator, network, randomnessEngine, - 1/txGenerationRate), 0); - } - - @Override - public boolean simulationStopCondition() { - if (simulator.peekEvent() instanceof PacketDeliveryEvent) { - if (((PacketDeliveryEvent) simulator.peekEvent()).packet.getMessage() instanceof VoteMessage) { - totalVoteMassageTraffic += ((PacketDeliveryEvent) simulator.peekEvent()).packet.getSize(); - } - } - return (simulator.getCurrentTime() > simulationStopTime*1000); - } -} diff --git a/src/main/java/jabs/scenario/EthereumDAGsperNetworkScenario.java b/src/main/java/jabs/scenario/EthereumDAGsperNetworkScenario.java deleted file mode 100644 index d9375d0b..00000000 --- a/src/main/java/jabs/scenario/EthereumDAGsperNetworkScenario.java +++ /dev/null @@ -1,69 +0,0 @@ -package jabs.scenario; - -import jabs.network.networks.GlobalProofOfWorkNetwork; -import jabs.network.networks.stats.sixglobalregions.SixRegions; -import jabs.network.networks.stats.sixglobalregions.ethereum.EthereumProofOfWorkGlobalNetworkStats6Regions; -import jabs.simulator.event.PacketDeliveryEvent; -import jabs.log.AbstractLogger; -import jabs.network.message.VoteMessage; -import jabs.network.networks.DAGsperGlobalBlockchainNetwork; -import jabs.simulator.event.TxGenerationProcessRandomNetworkNode; -import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; - -public class EthereumDAGsperNetworkScenario extends AbstractScenario { - double simulationTime = 0; - long totalVoteMassageTraffic = 0; - - public DescriptiveStatistics blockFinalizationTimes = new DescriptiveStatistics(); - - public final int numOfMiners; - public final int numOfNonMiners; - public final int checkpointSpace; - public final double simulationStopTime; - public final double txGenerationRate; - public final double blockGenerationRate; - - public EthereumDAGsperNetworkScenario(long seed, AbstractLogger logger, int numOfMiners, int numOfNonMiners, int checkpointSpace, - double simulationStopTime, double txGenerationRate, double blockGenerationRate) { - super("Ethereum DAGsper Network", seed, logger); - this.numOfMiners = numOfMiners; - this.numOfNonMiners = numOfNonMiners; - this.checkpointSpace = checkpointSpace; - this.simulationStopTime = simulationStopTime; - this.txGenerationRate = txGenerationRate; - this.blockGenerationRate = blockGenerationRate; - } - - @Override - public void createNetwork() { - this.network = new DAGsperGlobalBlockchainNetwork<>(randomnessEngine, checkpointSpace, - new EthereumProofOfWorkGlobalNetworkStats6Regions(randomnessEngine)); - ((GlobalProofOfWorkNetwork) network).populateNetwork(simulator, numOfMiners, numOfNonMiners); - } - - @Override - protected void insertInitialEvents() { - ((DAGsperGlobalBlockchainNetwork) network).startAllMiningProcesses(); - simulator.putEvent(new TxGenerationProcessRandomNetworkNode(simulator, network, randomnessEngine, - 1/txGenerationRate), 0); - } - - @Override - public boolean simulationStopCondition() { - if (simulator.peekEvent() instanceof PacketDeliveryEvent) { - if (((PacketDeliveryEvent) simulator.peekEvent()).packet.getMessage() instanceof VoteMessage) { - totalVoteMassageTraffic += ((PacketDeliveryEvent) simulator.peekEvent()).packet.getSize(); - } - } -// if (simulator.getCurrentTime() - 10000 >= simulationTime) { -// simulationTime = simulator.getCurrentTime(); -// System.out.printf("\rsimulation time: %s, number of already seen blocks for miner 0: %s, number of finalized blocks: %s\n", -// simulationTime, -// ((peerBlockchainNode) network.getAllNodes().get(0)).numberOfAlreadySeenBlocks() -// , ((DeterministicFinalityConsensus) -// ((peerBlockchainNode) network.getAllNodes().get(0)).getConsensusAlgorithm() -// ).getNumOfFinalizedBlocks()); -// } - return (simulator.getCurrentTime() > simulationStopTime*1000); - } -} diff --git a/src/main/java/jabs/scenario/NormalEthereumNetworkScenario.java b/src/main/java/jabs/scenario/NormalEthereumNetworkScenario.java index f1765bd4..c20a172e 100644 --- a/src/main/java/jabs/scenario/NormalEthereumNetworkScenario.java +++ b/src/main/java/jabs/scenario/NormalEthereumNetworkScenario.java @@ -1,54 +1,46 @@ package jabs.scenario; -import jabs.log.AbstractLogger; -import jabs.network.networks.CasperFFGGlobalBlockchainNetwork; -import jabs.network.networks.EthereumGlobalProofOfWorkNetwork; -import jabs.network.networks.GlobalProofOfWorkNetwork; -import jabs.network.networks.stats.sixglobalregions.SixRegions; -import jabs.network.networks.stats.sixglobalregions.ethereum.EthereumProofOfWorkGlobalNetworkStats6Regions; -import jabs.network.node.nodes.PeerBlockchainNode; -import jabs.simulator.event.TxGenerationProcessRandomNetworkNode; +import jabs.consensus.config.GhostProtocolConfig; +import jabs.ledgerdata.ethereum.EthereumBlock; +import jabs.network.networks.ethereum.EthereumGlobalProofOfWorkNetwork; +import jabs.network.stats.sixglobalregions.ethereum.EthereumProofOfWorkGlobalNetworkStats6Regions; -public class NormalEthereumNetworkScenario extends AbstractScenario { - double simulationTime = 0; +import static jabs.network.stats.eightysixcountries.ethereum.EthereumProofOfWorkGlobalNetworkStats86Countries.ETHEREUM_DIFFICULTY_2022; - private final int numOfMiners; - private final int numOfNonMiners; +public class NormalEthereumNetworkScenario extends AbstractScenario { private final double simulationStopTime; - private final double txGenerationRate; - private final double blockGenerationRate; + private final double averageBlockInterval; - public NormalEthereumNetworkScenario(long seed, AbstractLogger logger, int numOfMiners, int numOfNonMiners, double simulationStopTime, double txGenerationRate, double blockGenerationRate) { - super("Normal Ethereum Network", seed, logger); - this.numOfMiners = numOfMiners; - this.numOfNonMiners = numOfNonMiners; + /** + * @param name + * @param seed + * @param simulationStopTime + * @param averageBlockInterval + */ + public NormalEthereumNetworkScenario(String name, long seed, + double simulationStopTime, double averageBlockInterval) { + super(name, seed); this.simulationStopTime = simulationStopTime; - this.txGenerationRate = txGenerationRate; - this.blockGenerationRate = blockGenerationRate; + this.averageBlockInterval = averageBlockInterval; } @Override public void createNetwork() { - this.network = new EthereumGlobalProofOfWorkNetwork<>(randomnessEngine, + EthereumGlobalProofOfWorkNetwork ethereumNetwork = new EthereumGlobalProofOfWorkNetwork<>(randomnessEngine, new EthereumProofOfWorkGlobalNetworkStats6Regions(randomnessEngine)); - this.network.populateNetwork(simulator); + this.network = ethereumNetwork; + ethereumNetwork.populateNetwork(simulator, + new GhostProtocolConfig(EthereumBlock.generateGenesisBlock(ETHEREUM_DIFFICULTY_2022), + this.averageBlockInterval)); } @Override protected void insertInitialEvents() { ((EthereumGlobalProofOfWorkNetwork) network).startAllMiningProcesses(); - simulator.putEvent(new TxGenerationProcessRandomNetworkNode(simulator, network, randomnessEngine, - 1/txGenerationRate), 0); } @Override public boolean simulationStopCondition() { - if (simulator.getCurrentTime() - 10000 >= simulationTime) { - simulationTime = simulator.getCurrentTime(); - System.out.printf("\rsimulation time: %s, number of already seen blocks for miner 0: %s\n", - simulationTime, - ((PeerBlockchainNode) network.getAllNodes().get(0)).numberOfAlreadySeenBlocks()); - } - return (simulator.getCurrentTime() > simulationStopTime*1000); + return (simulator.getSimulationTime() > simulationStopTime); } } diff --git a/src/main/java/jabs/scenario/PBFTLANScenario.java b/src/main/java/jabs/scenario/PBFTLANScenario.java index 8d1a72ab..099b7425 100644 --- a/src/main/java/jabs/scenario/PBFTLANScenario.java +++ b/src/main/java/jabs/scenario/PBFTLANScenario.java @@ -1,10 +1,10 @@ package jabs.scenario; +import jabs.consensus.config.PBFTConsensusConfig; import jabs.ledgerdata.pbft.PBFTPrePrepareVote; -import jabs.log.AbstractLogger; import jabs.network.message.VoteMessage; -import jabs.network.networks.BlockFactory; -import jabs.network.networks.PBFTLocalLANNetwork; +import jabs.ledgerdata.BlockFactory; +import jabs.network.networks.pbft.PBFTLocalLANNetwork; import jabs.network.node.nodes.Node; import jabs.network.node.nodes.pbft.PBFTNode; @@ -14,8 +14,8 @@ public class PBFTLANScenario extends AbstractScenario { protected int numNodes; protected double simulationStopTime; - public PBFTLANScenario(String name, long seed, AbstractLogger logger, int numNodes, double simulationStopTime) { - super(name, seed, logger); + public PBFTLANScenario(String name, long seed, int numNodes, double simulationStopTime) { + super(name, seed); this.numNodes = numNodes; this.simulationStopTime = simulationStopTime; } @@ -23,7 +23,7 @@ public PBFTLANScenario(String name, long seed, AbstractLogger logger, int numNod @Override public void createNetwork() { network = new PBFTLocalLANNetwork(randomnessEngine); - network.populateNetwork(this.simulator, this.numNodes); + network.populateNetwork(this.simulator, this.numNodes, new PBFTConsensusConfig()); } @Override @@ -41,6 +41,6 @@ protected void insertInitialEvents() { @Override public boolean simulationStopCondition() { - return (simulator.getCurrentTime() > this.simulationStopTime); + return (simulator.getSimulationTime() > this.simulationStopTime); } } diff --git a/src/main/java/jabs/scenario/SlushLANScenario.java b/src/main/java/jabs/scenario/SlushLANScenario.java new file mode 100644 index 00000000..f5e3b5b9 --- /dev/null +++ b/src/main/java/jabs/scenario/SlushLANScenario.java @@ -0,0 +1,88 @@ +package jabs.scenario; + +import jabs.consensus.algorithm.Snow; +import jabs.consensus.config.SnowConsensusConfig; +import jabs.ledgerdata.BlockFactory; +import jabs.ledgerdata.snow.SnowBlock; +import jabs.ledgerdata.snow.SnowPrepareQuery; +import jabs.network.message.QueryMessage; +import jabs.network.networks.snow.SlushLocalLANNetwork; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SlushNode; + +import java.util.ArrayList; +import java.util.List; + +import static jabs.network.node.nodes.snow.SlushNode.SNOW_GENESIS_BLOCK; + +/** + * File: Snow.java + * Description: Implements SnowBall protocol for JABS blockchain simulator. + * Author: Siamak Abdi + * Date: August 22, 2023 + */ + +public class SlushLANScenario extends AbstractScenario { + protected int numNodes; + protected double simulationStopTime; + + public SlushLANScenario(String name, long seed, int numNodes, double simulationStopTime) { + super(name, seed); + this.numNodes = numNodes; + this.simulationStopTime = simulationStopTime; + } + + @Override + public void createNetwork() { + network = new SlushLocalLANNetwork(randomnessEngine); + network.populateNetwork(this.simulator, this.numNodes, new SnowConsensusConfig()); + } + + @Override + protected void insertInitialEvents() { + List nodes = network.getAllNodes(); + Node startNode = nodes.get(0); // the first node that starts proposing a block + SlushNode slushNode = (SlushNode) startNode; + List sampledNeighbors = sampleNeighbors(startNode, Snow.k); + SnowBlock snowBlock = BlockFactory.sampleSlushBlock(simulator, network.getRandom(), + (SlushNode) startNode, SNOW_GENESIS_BLOCK); + slushNode.currentBlock = snowBlock; + for (Node destination : sampledNeighbors) { + startNode.query( + new QueryMessage( + new SnowPrepareQuery<>(startNode, snowBlock)), + destination); + } + // ----------------------------------- + for (int n = 1; n < nodes.size(); n++) { + List samples = sampleNeighbors(nodes.get(n), Snow.k); + SlushNode otherNodes = (SlushNode) nodes.get(n); + otherNodes.currentBlock = SNOW_GENESIS_BLOCK; + for (Node destination : samples) { + nodes.get(n).query( + new QueryMessage( + new SnowPrepareQuery<>(nodes.get(n), SNOW_GENESIS_BLOCK)), + destination); + } + } + } + + private List sampleNeighbors(Node node, int k) { + List neighbors = new ArrayList<>(); + neighbors.addAll(node.getP2pConnections().getNeighbors()); + neighbors.remove(node); + List sampledNodes = new ArrayList<>(); + for (int i = 0; i < k; i++) { + int randomIndex = randomnessEngine.sampleInt(neighbors.size()); + sampledNodes.add(neighbors.get(randomIndex)); + neighbors.remove(randomIndex); + } + return sampledNodes; + } + + @Override + public boolean simulationStopCondition() { + return (simulator.getSimulationTime() > this.simulationStopTime); + } + +} diff --git a/src/main/java/jabs/scenario/SnowLANScenario.java b/src/main/java/jabs/scenario/SnowLANScenario.java new file mode 100644 index 00000000..171bd983 --- /dev/null +++ b/src/main/java/jabs/scenario/SnowLANScenario.java @@ -0,0 +1,88 @@ +package jabs.scenario; + +import jabs.consensus.algorithm.Snow; +import jabs.consensus.config.SnowConsensusConfig; +import jabs.ledgerdata.BlockFactory; +import jabs.ledgerdata.snow.SnowBlock; +import jabs.ledgerdata.snow.SnowPrepareQuery; +import jabs.network.message.QueryMessage; +import jabs.network.networks.snow.SnowLocalLANNetwork; +import jabs.network.node.nodes.Node; +import jabs.network.node.nodes.snow.SnowNode; + +import java.util.ArrayList; +import java.util.List; + +import static jabs.network.node.nodes.snow.SnowNode.SNOW_GENESIS_BLOCK; + +/** + * File: Snow.java + * Description: Implements SnowBall protocol for JABS blockchain simulator. + * Author: Siamak Abdi + * Date: August 22, 2023 + */ + +public class SnowLANScenario extends AbstractScenario{ + protected int numNodes; + protected double simulationStopTime; + + public SnowLANScenario(String name, long seed, int numNodes, double simulationStopTime) { + super(name, seed); + this.numNodes = numNodes; + this.simulationStopTime = simulationStopTime; + } + + @Override + public void createNetwork() { + network = new SnowLocalLANNetwork(randomnessEngine); + network.populateNetwork(this.simulator, this.numNodes, new SnowConsensusConfig()); + } + + @Override + protected void insertInitialEvents() { + List nodes = network.getAllNodes(); + Node startNode = nodes.get(0); // the first node that starts proposing a block + SnowNode snowNode = (SnowNode) startNode; + List sampledNeighbors = sampleNeighbors(startNode, Snow.k); + SnowBlock snowBlock = BlockFactory.sampleSnowBlock(simulator, network.getRandom(), + (SnowNode) startNode, SNOW_GENESIS_BLOCK); + snowNode.currentBlock = snowBlock; + for(Node destination:sampledNeighbors){ + startNode.query( + new QueryMessage( + new SnowPrepareQuery<>(startNode, snowBlock) + ), destination + ); + } + //----------------------------------- + for(int n=1;n samples = sampleNeighbors(nodes.get(n), Snow.k); + SnowNode otherNodes = (SnowNode) nodes.get(n); + otherNodes.currentBlock = SNOW_GENESIS_BLOCK; + for(Node destination:samples){ + nodes.get(n).query( + new QueryMessage( + new SnowPrepareQuery<>(nodes.get(n), SNOW_GENESIS_BLOCK) + ), destination + ); + } + } + } + private List sampleNeighbors(Node node, int k) { + List neighbors = new ArrayList<>(); + neighbors.addAll(node.getP2pConnections().getNeighbors()); + neighbors.remove(node); + List sampledNodes = new ArrayList<>(); + for (int i = 0; i < k; i++) { + int randomIndex = randomnessEngine.sampleInt(neighbors.size()); + sampledNodes.add(neighbors.get(randomIndex)); + neighbors.remove(randomIndex); + } + return sampledNodes; + } + @Override + public boolean simulationStopCondition() { + return (simulator.getSimulationTime() > this.simulationStopTime); + } + +} diff --git a/src/main/java/jabs/simulator/Simulator.java b/src/main/java/jabs/simulator/Simulator.java index eee1e2c1..a9a76fb1 100644 --- a/src/main/java/jabs/simulator/Simulator.java +++ b/src/main/java/jabs/simulator/Simulator.java @@ -21,7 +21,7 @@ public class Simulator { /** * The simulation execution time of the most recent event */ - private double currentTime = 0L; + private double simulationTime = 0L; /** * Number of events inserted in the event queue till now (whether simulated @@ -78,7 +78,7 @@ public void executeNextEvent() { if (!eventQueue.isEmpty()) { ScheduledEvent currentScheduledEvent = eventQueue.poll(); Event currentEvent = currentScheduledEvent.event(); - currentTime = currentScheduledEvent.time(); + simulationTime = currentScheduledEvent.time(); currentEvent.execute(); } } @@ -102,7 +102,7 @@ public Event peekEvent() { * Check if more events exist in the event queue to be simulated * @return True if there is any event in the queue */ - public boolean thereIsMoreEvents() { + public boolean isThereMoreEvents() { return !eventQueue.isEmpty(); } @@ -116,7 +116,7 @@ public boolean thereIsMoreEvents() { * @return the scheduled event */ public ScheduledEvent putEvent(Event event, double remainingTimeToExecution) { - ScheduledEvent sEvent = new ScheduledEvent(event, currentTime + remainingTimeToExecution, insertedEvents); + ScheduledEvent sEvent = new ScheduledEvent(event, simulationTime + remainingTimeToExecution, insertedEvents); eventQueue.add(sEvent); insertedEvents++; return sEvent; @@ -137,7 +137,7 @@ public void removeEvent(ScheduledEvent scheduledEvent) { * Returns the simulation time that the latest event has executed * @return Simulation time of the latest simulated event */ - public double getCurrentTime() { return currentTime; } + public double getSimulationTime() { return simulationTime; } /** * Clears the event queue from any more events. Restarts the current time of @@ -145,7 +145,7 @@ public void removeEvent(ScheduledEvent scheduledEvent) { */ public void reset() { eventQueue.clear(); - currentTime = 0; + simulationTime = 0; } } diff --git a/src/main/java/jabs/simulator/event/AbstractLogEvent.java b/src/main/java/jabs/simulator/event/AbstractLogEvent.java new file mode 100644 index 00000000..a6258e48 --- /dev/null +++ b/src/main/java/jabs/simulator/event/AbstractLogEvent.java @@ -0,0 +1,22 @@ +package jabs.simulator.event; + +/** + * The class of events extending AbstractLogEvent serve as a notification for logger to log an event. Sometimes things + * happen inside nodes without having an event in the simulator queue. For example when a block is finalized there is no + * apparent direct event in the simulator's event queue, but it might be needed to record that. + */ +public class AbstractLogEvent implements Event { + protected final double time; + + public AbstractLogEvent(double time) { + this.time = time; + } + + /** + * Log event does not have any execute function it acts as a medium to inform logger if it needs to record anything + * new to the output. + */ + @Override + public void execute() { + } +} diff --git a/src/main/java/jabs/simulator/event/AbstractPacketProcessor.java b/src/main/java/jabs/simulator/event/AbstractPacketProcessor.java index 9380f61c..2429866b 100644 --- a/src/main/java/jabs/simulator/event/AbstractPacketProcessor.java +++ b/src/main/java/jabs/simulator/event/AbstractPacketProcessor.java @@ -20,7 +20,7 @@ public int compareTo(TimedPacket o) { } } - public final Node node; + protected final Node node; public AbstractPacketProcessor(Simulator simulator, Network network, RandomnessEngine randomnessEngine, Node node) { this.simulator = simulator; @@ -34,10 +34,15 @@ public boolean isQueueEmpty() { } public void addToQueue(Packet packet) { - TimedPacket timedPacket = new TimedPacket(packet, simulator.getCurrentTime()); + TimedPacket timedPacket = new TimedPacket(packet, simulator.getSimulationTime()); packetsQueue.add(timedPacket); } + public Packet peek() { + TimedPacket timedPacket = this.packetsQueue.peek(); + return timedPacket.packet; + } + public void execute() { TimedPacket timedPacket = this.packetsQueue.poll(); if (timedPacket != null) { @@ -50,4 +55,8 @@ public void execute() { public abstract double processingTime(Packet packet); protected abstract void sendPacketToNextProcess(Packet packet); + + public Node getNode() { + return node; + } } diff --git a/src/main/java/jabs/simulator/event/BlockConfirmationEvent.java b/src/main/java/jabs/simulator/event/BlockConfirmationEvent.java new file mode 100644 index 00000000..4b9db71b --- /dev/null +++ b/src/main/java/jabs/simulator/event/BlockConfirmationEvent.java @@ -0,0 +1,28 @@ +package jabs.simulator.event; + +import jabs.ledgerdata.Block; +import jabs.network.node.nodes.Node; + +public class BlockConfirmationEvent extends AbstractLogEvent { + /** + * This is the node that confirms a block. + */ + private final Node node; + /** + * The block that gets confirmed + */ + private final Block block; + public BlockConfirmationEvent(double time, Node node, Block block) { + super(time); + this.node = node; + this.block = block; + } + + public Node getNode() { + return node; + } + + public Block getBlock() { + return block; + } +} diff --git a/src/main/java/jabs/simulator/randengine/RandomnessEngine.java b/src/main/java/jabs/simulator/randengine/RandomnessEngine.java index d88f7120..666400ec 100644 --- a/src/main/java/jabs/simulator/randengine/RandomnessEngine.java +++ b/src/main/java/jabs/simulator/randengine/RandomnessEngine.java @@ -1,8 +1,10 @@ package jabs.simulator.randengine; import org.apache.commons.math3.distribution.ExponentialDistribution; +import org.apache.commons.math3.distribution.LogNormalDistribution; import org.apache.commons.math3.distribution.ParetoDistribution; import org.apache.commons.math3.random.MersenneTwister; +import org.apache.commons.math3.util.FastMath; import java.util.Collections; import java.util.List; @@ -72,8 +74,13 @@ public double sampleDouble(double max) { return this.nextDouble() * max; } - public double sampleExponentialDistribution(double averageTimeBetweenGenerations) { - ExponentialDistribution expDist = new ExponentialDistribution(this, averageTimeBetweenGenerations); + public double sampleExponentialDistribution(double mean) { + ExponentialDistribution expDist = new ExponentialDistribution(this, mean); + return expDist.sample(); + } + + public double sampleLogNormalDistribution(double median, double stdDev) { + LogNormalDistribution expDist = new LogNormalDistribution(this, FastMath.log(median), stdDev); return expDist.sample(); }